@import url('../variables.css');

/* Customer Specific Styles */
/* Note: Base styles (body, btn, inputs, tables) are imported from variables.css */

body {
    background-color: #0e0e0e;
}

/* Header */
header {
    background-color: #0e0e0e;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Top Notification Bar */
.top-bar {
    background-color: #D4AF37;
    /* Gold */
    color: #000000;
    /* Black */
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
    z-index: 101;
}


.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.navbar {
    display: flex;
    flex-direction: column;
    /* Stack logo and links */
    justify-content: center;
    align-items: center;
    padding: var(--space-2) var(--space-4) 0 var(--space-4);
    /* Reduced top padding */
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-2);
    /* Reduced gap between logo and links */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 140px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-6);
    /* Wider gap for centered look */
    align-items: center;
    padding-bottom: var(--space-2);
    /* Reduced padding bottom */
}

.nav-links a {
    text-decoration: none;
    color: #D4AF37;
    /* Golden Color */
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 20px;
    /* Cinzel Font */
}

.nav-links a:hover {
    color: #DAA520;
    /* Darker Gold on hover */
}

/* Specific override for icons to be white */
.nav-links .nav-icon {
    color: #ffffff !important;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-links svg {
    width: 24px;
    height: 24px;
}

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    order: 99;
    margin-top: -10px;
    /* Pull it slightly up closer to 'Contact Us' */
}

@media (max-width: 768px) {
    .nav-icons-group {
        margin-top: -20px;
        /* Pull it more upwards on mobile sidebar */
        justify-content: center;
        width: 100%;
    }
}

.nav-links .nav-icon:hover {
    color: #cccccc !important;
}

.cart-icon,
.search-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: #ffffff !important;
    /* Force white for cart icon */
    font-weight: var(--font-bold) !important;
}

.cart-count {
    background-color: var(--color-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 999px;
    vertical-align: top;
    margin-left: var(--space-1);
    margin-left: var(--space-1);
}

/* Mobile Search Bar */
.mobile-search-container {
    display: none;
    /* Hidden by default (desktop) */
    padding: 0 var(--space-4) var(--space-4) var(--space-4);
    /* Bottom and side padding */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    /* Dark bg */
    border: 1px solid #333;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    cursor: pointer;
    /* Indicates it's clickable */
}

.mobile-search-input-wrapper svg {
    color: #888;
    margin-right: 10px;
}

.mobile-search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 0.95rem;
    cursor: pointer;
    /* Input also clickable */
    outline: none;
}

.mobile-search-input-wrapper input::placeholder {
    color: #888;
}

.mobile-nav-icons {
    display: none;
}

@media (max-width: 768px) {
    .mobile-search-container {
        display: none;
    }

    .navbar {
        padding-bottom: 0;
    }

    .navbar-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }

    .mobile-menu-btn {
        justify-self: start;
        margin: 0 !important;
    }

    .logo {
        justify-self: center;
        margin: 0 !important;
    }

    .logo img {
        max-height: 80px;
        /* Smaller logo for mobile to fit nicely */
    }

    .mobile-nav-icons {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
    color: var(--color-text);
    padding: var(--space-6) 0;
    text-align: center;
    margin-bottom: var(--space-5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    font-weight: var(--font-bold);
}

.hero p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-5);
    opacity: 0.9;
}

.hero .btn {
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-weight: var(--font-bold);
    padding: var(--space-3) var(--space-5);
}

.hero .btn:hover {
    background-color: var(--color-bg-soft);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-6);
}

h2 {
    color: var(--color-text);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-2);
    display: inline-block;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-5);
}

.product-card {
    background: #1a1a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #1a1a1a;
}

.product-info {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: var(--text-xs);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.product-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: #D4AF37;
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #ffffff;
    margin-bottom: var(--space-4);
    margin-top: auto;
    /* Push price down */
}

.product-card .btn {
    width: 100%;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #16a34a;
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.05em;
}

/* Product Card needs position relative for badge */
.product-card {
    position: relative;
}

/* Price Wrapper */
.product-price-wrapper {
    margin-top: auto;
    margin-bottom: var(--space-3);
}

.product-price-original {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: var(--space-1);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #ffffff;
}

/* Add to Cart Button */
.btn-add-cart {
    background: var(--color-primary);
    color: #000;
    border: 2px solid var(--color-primary);
    font-weight: var(--font-bold);
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.product-card>a {
    display: block;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card>a:hover {
    text-decoration: none;
    color: inherit;
}

/* Cart Page */
/* Table styles inherited from variables.css */
/* Specific cart adjustments */

.cart-summary {
    background: var(--color-bg);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-top: var(--space-5);
    text-align: right;
}

.cart-summary h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.qty-input {
    width: 60px;
    padding: var(--space-1);
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: var(--color-danger);
    background: none;
    /* Override potential global hover */
}

/* Checkout Page */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form {
    background: var(--color-bg);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.order-summary {
    background: var(--color-bg);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    height: fit-content;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-4);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

/* Utility */
#empty-cart-msg,
#success-msg,
#error-msg {
    text-align: center;
    padding: var(--space-5);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    display: none;
}

#error-msg {
    color: var(--color-danger);
    background: rgba(220, 38, 38, 0.1);
}

#success-msg {
    color: var(--color-success);
    background: rgba(22, 163, 74, 0.1);
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* Trust Bar (Legacy reference, keeping for compatibility if reused) */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-4);
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

/* Dynamic Home Components */

/* Category Strip (Infinite Loop) */
.category-strip-container {
    overflow: hidden;
    background: var(--color-bg);
    padding: var(--space-4) 0;
    margin-bottom: var(--space-6);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.category-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.category-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cat-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-item:hover {
    transform: translateY(-5px);
    color: var(--color-primary);
}

.cat-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-2);
    border: 3px solid transparent;
    transition: all 0.2s;
    background: #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cat-item:hover .cat-img {
    border-color: var(--color-primary);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.cat-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 5px;
}

/* Product Detail Page (PDP) */
.pdp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-top: var(--space-6);
    color: #fff;
    /* Force white text */
}

.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: #1a1a1a;
    /* Dark background */
    border: 1px solid #333;
}

.thumbnail-list {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #1a1a1a;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #D4AF37;
    /* Gold */
}

.pdp-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
    line-height: 1.1;
    color: #fff;
    /* White title */
}

.pdp-category {
    color: #D4AF37;
    /* Gold */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
    display: block;
}

.pdp-price {
    font-size: 2rem;
    font-weight: 700;
    color: #D4AF37;
    /* Gold price */
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.pdp-price .compare-price {
    text-decoration: line-through;
    color: #888;
    /* Muted text */
    font-size: 1.25rem;
    font-weight: 400;
}

.pdp-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: var(--radius-btn);
    overflow: hidden;
    background: #000;
}

.qty-btn {
    padding: var(--space-2) var(--space-3);
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
}

.qty-btn:hover {
    background: #333;
}

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: #000;
}

.pdp-description {
    line-height: 1.7;
    color: #ccc;
    /* Light grey description */
    margin-bottom: var(--space-6);
}

.pdp-meta {
    border-top: 1px solid #333;
    padding-top: var(--space-4);
    font-size: 0.9rem;
    color: #888;
}

.pdp-meta p {
    margin-bottom: var(--space-2);
}

.pdp-video-section {
    margin-top: var(--space-8);
}

.pdp-video-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 var(--space-4);
    }

    .pdp-container {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 350px;
    }
}

/* Hero Carousel */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-6);
    background: var(--color-bg);
    min-height: 400px;
}

.hero-slide {
    display: flex;
    /* Flex to center content */
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    position: relative;
    /* Make relative so it takes space and flow */
}

/* Adjustments because absolute positioning stack */
/* Actually better approach for simple fade slider is generic absolute stacking with container min-height, 
   but for responsive content height, we might want JS to toggle 'display' or use grid stacking. 
   Let's use display:none/block for simplicity or opacity with absolute if height implies. 
   Let's use Display for safety on varied heights. */
.hero-slide {
    position: relative;
    display: none;
    opacity: 0;
}

.hero-slide.active {
    display: flex;
    opacity: 1;
}

.hero-text {
    flex: 1;
    max-width: 500px;
    padding-right: var(--space-4);
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    color: var(--color-text);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.hero-visual {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Promo Banner */
.promo-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    margin: var(--space-6) 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: var(--space-6);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay for text readability */
}

.promo-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

/* Section Service Grid (Dynamic Version) */
.service-grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    padding: var(--space-6) 0;
    text-align: center;
}

.service-card {
    padding: var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

/* Login/Profile Icons White */
.login-btn,
.profile-btn {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: auto !important;
    /* Ensure it doesn't take full width if inherited */
}

/* Force SVG stroke to be white as well */
.login-btn svg,
.profile-btn svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* Hide Order No / Cart Count */
.cart-count {
    display: none !important;
}

.service-icon img,
.service-icon svg {
    width: 100%;
    height: 100%;
}

/* Newsletter */
.newsletter-section {
    background: var(--color-bg);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}

.newsletter-section h2 {
    border: none;
    margin-bottom: var(--space-2);
}

.newsletter-form {
    display: flex;
    gap: var(--space-2);
    max-width: 500px;
    margin: var(--space-4) auto 0;
}

/* Navigation Icons Group */
.nav-icons-group {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {

    .nav-icons-group {
        justify-content: center;
        /* Center icons on mobile */
        margin-top: var(--space-2);
        padding-bottom: var(--space-2);
    }

    /* Header & Navigation */
    .navbar {
        flex-direction: column;
        align-items: stretch;
        /* Full width */
        padding: var(--space-2) var(--space-4);
        /* Reduced from var(--space-3) */
        position: relative;
    }

    .navbar-header {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        /* Show on mobile */
        background: none;
        border: none;
        color: var(--color-primary);
        cursor: pointer;
        padding: var(--space-2);
        z-index: 101;
        position: absolute;
        right: 0;
    }

    .nav-links {
        display: none;
        /* Hide default menu */
        flex-direction: column;
        width: 100%;
        background-color: #0e0e0e;
        /* Opaque background */
        padding: var(--space-4) 0;
        border-top: 1px solid var(--color-border);
        margin-top: var(--space-2);
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links.active {
        display: flex !important;
        /* Show when toggled force */
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        text-align: left;
        width: 100%;
        padding: var(--space-2) 0;
        /* padding-left: 1.5rem; */
    }

    /* Target the container of the icons specifically */
    .nav-icons-group {
        display: flex;
        justify-content: space-between;
        /* Spread evenly: left, center, right */
        width: 100%;
        order: 99;
        margin-top: var(--space-2);
        padding-top: 0 !important;
        padding-bottom: var(--space-4) !important;
        margin-bottom: var(--space-2);
        padding-left: var(--space-6);
        /* Add padding so they don't touch the very edges */
        padding-right: var(--space-6);
        border-bottom: 1px solid var(--color-border);
        border-top: none;
    }

    /* Ensure icons inside are centered and sized correctly */
    .nav-icons-group .nav-icon-item {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
    }

    .nav-links a {
        font-size: 1.1rem;
        /* Significantly reduced from 20px/1.5rem */
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    .logo img {
        max-height: 40px;
        /* Further reduced from 50px */
    }

    /* Hero Section */
    .hero h1,
    .hero-text h1 {
        font-size: 2rem;
        /* Smaller heading */
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-slide {
        flex-direction: column-reverse;
        text-align: center;
        padding: var(--space-4);
        justify-content: center;
    }

    .hero-text {
        padding-right: 0;
        margin-top: var(--space-4);
    }

    .hero-visual img {
        max-height: 250px;
    }

    /* Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    @media (max-width: 480px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: left;
    }

    .footer-col {
        align-items: flex-start;
    }

    .footer-links li {
        justify-content: flex-start;
        display: flex;
    }

    .footer-heading {
        text-align: left !important;
        width: 100%;
        display: block;
    }

    .social-links {
        justify-content: flex-start !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: var(--space-4);
        /* Ensure gap is maintained */
        width: 100%;
    }

    /* General Padding */
    .container {
        padding: 0 var(--space-3);
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
        /* Hide on desktop */
    }

    .navbar-header {
        display: contents;
        /* Let children participate in flex container */
    }

    .trust-item {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        font-size: var(--text-sm);
        font-weight: var(--font-medium);
        color: var(--color-text-muted);
    }

    .trust-item svg {
        width: 20px;
        height: 20px;
        color: var(--color-success);
    }

    /* Hero Enhancements */
    .hero {
        position: relative;
        overflow: hidden;
        padding: var(--space-6) var(--space-4);
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    /* Enhanced Product Card */
    .product-card {
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .badge-overlay {
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--color-accent, #f59e0b);
        /* Fallback */
        color: #fff;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: bold;
        z-index: 10;
    }

    .product-card .btn {
        width: 100%;
        padding: var(--space-3);
        font-size: 1rem;
        transition: all 0.2s;
    }

    .product-card .btn:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(31, 58, 138, 0.2);
    }

    /* Responsive Main */
    @media (max-width: 768px) {
        .trust-bar {
            gap: var(--space-4);
            font-size: var(--text-xs);
        }

        .hero h1 {
            font-size: 2rem;
        }

        .nav-links {
            gap: var(--space-3);
            font-size: var(--text-sm);
        }
    }
}


/* ===== PRODUCT DETAIL PAGE (PDP) ===== */

/* Main PDP Container - Side by Side Layout */
.pdp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

/* Left: Image Gallery */
.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 1rem;
}

.thumbnail-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Right: Product Info */
.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdp-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pdp-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.pdp-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compare-price {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.pdp-description {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.pdp-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    background: #f9fafb;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-value {
    border: none;
    text-align: center;
    width: 60px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    background: white;
}

.pdp-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Responsive PDP */
@media (max-width: 968px) {
    .pdp-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pdp-info h1 {
        font-size: 1.5rem;
    }

    .pdp-price {
        font-size: 1.5rem;
    }
}

/* PDP Tabs (Enhanced) */
.pdp-tabs-container {
    margin-top: var(--space-8);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.pdp-tabs-header {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    background: #f9fafb;
    gap: 2px;
}

.pdp-tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    max-width: 200px;
}

.pdp-tab-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}

.pdp-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: #fff;
    font-weight: 800;
}

.pdp-tab-content {
    padding: 2rem;
    display: none;
    animation: fadeIn 0.4s ease;
}

.pdp-tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.specs-table th {
    width: 30%;
    color: var(--color-text-muted);
    font-weight: 600;
    background: #f9fafb;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Page Styles */
.profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn {
    background: white;
    color: #667eea !important;
    border: 2px solid #667eea;
    padding: 0.4rem 1.15rem;
    /* Adjusted for border width */
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.profile-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-tab.active {
    background: #000;
    color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
}

.profile-tab svg {
    width: 20px;
    height: 20px;
}

.profile-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-section.active {
    display: block;
}

.profile-card {
    background: #000;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #1a1a1a;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D4AF37 0%, #b8860b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #000;
}

.profile-header h2 {
    font-size: 2rem;
    margin: 0;
    color: #D4AF37;
    border: none;
    padding: 0;
}

.profile-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.detail-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item p {
    margin: 0;
    font-size: 1.125rem;
    color: #fff;
    font-weight: 500;
}

.logout-btn {
    width: 100%;
    padding: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.orders-header {
    margin-bottom: 2rem;
}

.orders-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #D4AF37;
    border: none;
    padding: 0;
}

.orders-header p {
    color: #aaa;
    margin: 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.order-header h3 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
    color: #D4AF37;
}

.order-date {
    color: #aaa;
    font-size: 0.875rem;
    margin: 0;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed,
.status-delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #ccc;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    margin-bottom: 1rem;
}

.order-total {
    display: flex;
    gap: 1rem;
    font-size: 1.125rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #D4AF37 0%, #b8860b 100%);
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.order-address {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid #333;
}

.order-address strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #D4AF37;
}

.order-address p {
    margin: 0;
    color: #ccc;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg,
.error-state svg {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    color: #6b7280;
    margin: 0;
}

@media (max-width: 768px) {
    .profile-tabs {
        flex-direction: column;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .order-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* About Us Page */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1544367563-12123d8965cd?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
}

.about-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.story-section {
    margin-bottom: 6rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.story-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.values-section {
    background: #f8fafc;
    padding: 6rem 0;
    margin-bottom: 6rem;
    text-align: center;
}

.values-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.value-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.value-card p {
    color: #64748b;
    line-height: 1.6;
}

.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 6rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #16a34a;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Us Page */
.contact-hero {
    background: #1e293b;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-container {
    margin-bottom: 6rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: #64748b;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    background: #f1f5f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.info-item p {
    color: #64748b;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.map-section {
    height: 450px;
    background: #f1f5f9;
    margin-bottom: -4rem;
    /* Compensate for main padding if any */
}

/* Fix for About Hero Image */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?q=80&w=1470&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* =========================================
   Footer Styles
   ========================================= */
.site-footer {
    background-color: #0e0e0e;
    color: #ffffff;
    padding: var(--space-8) 0 var(--space-4);
    margin-top: auto;
    /* Push to bottom if using flex-col body */
    font-family: var(--font-heading);
    /* Cinzel Font */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    /* Slightly wider for newsletter */
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

/* Center the first column (Follow Us) */
.footer-col:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-4);
    /* Increased from space-3 for better breathing room */
}

.footer-links a {
    color: #D4AF37;
    /* Golden */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    /* Slight increase for readability */
    transition: color 0.2s;
    letter-spacing: 0.02em;
    /* Added tracking */
    display: inline-block;
    /* Helps with clickable area */
}

.footer-links a:hover {
    color: #DAA520;
    /* Darker Gold */
    text-decoration: none;
}

.newsletter-col p {
    font-size: 0.85rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    text-align: left;
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-newsletter-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
}

.footer-newsletter-form input {
    background: transparent;
    border: none;
    border-radius: 50px;
    border-bottom: 2px solid #333;
    padding: var(--space-2) 0;
    color: #fff;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.footer-newsletter-form input:focus {
    border-bottom-color: #D4AF37;
}

.btn-subscribe {
    background-color: #D4AF37;
    /* Yellow/Golden */
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: var(--space-2);
    width: fit-content;
    font-size: 0.9rem;
    transition: background 0.2s;
    font-family: var(--font-primary);
    /* Keep button modern for readability */
}

.btn-subscribe:hover {
    background-color: #e6c200;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    color: #ffffff;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-primary);
    /* Keep copyright modern as requested to "don't change this line" style mostly or just content? "don't change this line", implying content usually. But I'll reset font to default sans-serif for this line to be safe as user said "don't change this line '...'" */
}

@media (max-width: 900px) {

    /* Adjusted breakpoint for 4 columns */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading {
        margin-bottom: var(--space-3);
    }

    .social-links {
        justify-content: center;
    }

    .footer-newsletter-form {
        align-items: center;
        /* Center form elements on mobile */
    }

    .footer-newsletter-form input {
        width: 100%;
        text-align: center;
    }
}

/* ====================
   Search Overlay
   ==================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.search-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--space-2);
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
}

.search-input-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
    margin-right: var(--space-3);
}

#search-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #fff;
    outline: none;
    font-family: var(--font-heading);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.close-search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    transition: background 0.2s;
}

.close-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-search-btn svg {
    width: 32px;
    height: 32px;
}

.search-message {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-top: var(--space-8);
}

.search-results-grid {
    margin-top: var(--space-6);
}

/* Match product card styles in dark overlay */
.search-results-grid .product-card {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #fff;
}

.search-results-grid .product-title {
    color: #D4AF37 !important;
}

.search-results-grid .product-price {
    color: #ffffff !important;
}

.search-results-grid .product-card:hover {
    border-color: #D4AF37 !important;
}

.search-results-grid .product-category {
    color: #888;
}

.search-results-grid .product-price-original {
    color: #888;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #search-input {
        font-size: 1.5rem;
    }

    .search-container {
        padding-top: var(--space-6);
    }
}

/* Mobile Navbar Adjustments */
@media (max-width: 768px) {
    .navbar-header {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        align-items: center;
        padding: 0 1rem;
        position: relative;
    }

    .logo img {
        max-height: 80px;
        /* Increased size for mobile */
    }

    .mobile-menu-btn {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }
}

/* Image Modal Styles */
.image-modal-container {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-nav-btn.prev {
    left: 20px;
}

.modal-nav-btn.next {
    right: 20px;
}

@media only screen and (max-width: 700px) {
    .image-modal-content {
        width: 100%;
        max-height: 80vh;
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }

    .modal-nav-btn.prev {
        left: 10px;
    }

    .modal-nav-btn.next {
        right: 10px;
    }
}