:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --text: #333;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navbar */
#top-bar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.search-box {
    flex: 1;
    margin: 0 20px;
    display: flex;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 0 20px 20px 0;
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links button, .wishlist-icon, .cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: var(--secondary);
    transition: 0.2s;
}

.auth-links button:hover, .wishlist-icon:hover, .cart-icon:hover {
    color: var(--primary);
}

#cart-count, #wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Product Hero */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 15px;
    background: white;
    margin-top: 20px;
    border-radius: 15px;
}

.product-gallery {
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    border-radius: 10px;
    display: none;
}

.slide.active {
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.price-tag {
    margin-bottom: 15px;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 15px;
}

.description {
    margin-bottom: 20px;
    color: #666;
}

.options label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.color-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}

.color-btn.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.quantity-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.quantity-picker button {
    width: 35px;
    height: 35px;
    background: #eee;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-picker input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-order-now {
    flex: 2;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    transition: 0.3s;
}

.btn-add-cart {
    flex: 1.5;
    padding: 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: 0.3s;
}

.btn-wishlist.active i {
    color: #e74c3c;
    font-weight: 900;
}

.btn-order-now:hover { background: var(--primary-dark); }
.btn-add-cart:hover { background: #1a252f; }

/* Order Form */
.order-form-container {
    padding: 60px 0;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-card h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 5px;
}

.form-card p {
    text-align: center;
    color: #888;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-options {
    display: flex;
    gap: 20px;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--secondary);
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-container input {
    width: auto;
    margin-left: 8px;
}

.btn-gps {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

#gps-status {
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.order-summary {
    background: #fff3e0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.summary-line.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Extra Sections */
.extra-desc, .suggested-products {
    padding: 40px 0;
    text-align: center;
}

.detailed-info {
    text-align: right;
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.detailed-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
}

.general-info {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.products-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.product-card {
    min-width: 200px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.card-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 5;
    color: #999;
}

.card-wishlist.active i {
    color: #e74c3c;
    font-weight: 900;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 40px 0 0 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin-left: 15px;
}

.copyright {
    text-align: center;
    padding: 15px;
    background: #1a252f;
    font-size: 14px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.cart-sidebar.open {
    left: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

/* Floating Button */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    z-index: 1500;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Account Page Styles */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-back {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
}

.account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.account-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.account-card h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: var(--primary);
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    font-weight: bold;
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.btn-edit-profile {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.btn-logout:hover {
    background: #fecaca;
}

.order-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h4 {
    margin-bottom: 5px;
}

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    background: #e1f5fe;
    color: #0288d1;
}

.btn-track {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Tracking Stepper */
.tracking-stepper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 35px;
    width: 2px;
    height: 20px;
    background: #ddd;
}

.step-icon {
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.step.completed .step-icon {
    background: #27ae60;
    color: white;
}

.step.active .step-icon {
    background: var(--primary);
    color: white;
}

.step.completed + .step::after {
    background: #27ae60;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    .product-hero {
        grid-template-columns: 1fr;
    }
    
    .form-row, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .search-box {
        display: none;
    }
}