:root {
    --primary-color: #2c2c2c;
    /* Dark text */
    --secondary-color: #fcfaf7;
    /* Luxury creamy white */
    --accent-color: #8c7b6c;
    /* Brownish accent */
    --white: #ffffff;
    --text-color: #333333;
    --light-text: #666666;
    --accent-gold: #c5a059;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-nav: 'Outfit', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.8rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 4rem;
    --container-width: 1400px;
    --border-radius: 4px;
    /* Less rounded as requested */
    --btn-radius: 0px;
    /* Sharp luxury buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Premium Image Loading & Error States */
img {
    color: transparent;
    font-size: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Fallback background for containers */
.product-image, .category-card, .about-item, .modal-item, .cart-item-image {
    background-color: #f2f2f2 !important; /* Darker white variant to be distinct from background */
    position: relative;
    overflow: hidden;
}

/* Specifically for the luxury theme - ensuring it's obvious it's a container */
.product-image {
    background-color: #f2f2f2 !important; 
}

/* Show image once loaded */
img.loaded {
    opacity: 1;
}

/* Hide broken images explicitly */
img.error {
    opacity: 0 !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    /* Improved readability */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem; /* Increased side margins for luxury aesthetic */
}

/* Header */
header {
    padding: var(--spacing-sm) 0;
    background-color: rgba(252, 250, 247, 0.9);
    /* Luxury creamy white with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Transparent Header styles for Index Page Hero Overlay */
.index-page header.header--transparent {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.index-page header.header--transparent .logo,
.index-page header.header--transparent .nav-links a,
.index-page header.header--transparent .icon-buttons button,
.index-page header.header--transparent .icon-buttons button i {
    color: #eec662 !important;
    font-size: 0.85rem !important;
}

.index-page header.header--transparent .search-bar input::placeholder,
.index-page header.header--transparent .search-bar input,
.index-page header.header--transparent .search-bar i {
    color: #eec662 !important;
}

.index-page header.header--transparent .search-bar input {
    border-color: rgba(197, 160, 89, 0.4) !important;
}

.index-page header.header--transparent .cart-badge {
    border-color: transparent;
}

.index-page,
body.index-page {
    padding-top: 0 !important; /* Allow hero to go behind header */
}

body {
    padding-top: 80px;
    /* Offset for fixed header */
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem; /* Scaled down from 1.6rem to balance with 'Showroom' */
    font-weight: 700;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 0.9rem; /* Scaled to match the new text scale */
    color: #b59049; /* Dark gold icon */
    filter: drop-shadow(0 2px 4px rgba(181, 144, 73, 0.2));
}

.logo-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensure Crystal and Showroom are left-aligned */
    line-height: 1;
}

.logo-name span {
    font-family: var(--font-body);
    font-size: 0.65rem; /* Slightly smaller for perfect hierarchy */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #b59049;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* More spacing */
}

.nav-links a {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 500;
    /* Reduced for a more elegant look */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: #6b5d50;
    /* Luxury mockup secondary color */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-bar {
    position: relative;
    margin-right: var(--spacing-sm);
}

.search-bar input {
    padding: 8px 35px 8px 20px;
    border-radius: 20px;
    border: 1px solid #aaa;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    width: 220px;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-bar i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b5d50;
    /* Match navigation color */
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-bar i:hover {
    color: var(--primary-color);
}

.icon-buttons {
    display: flex;
    gap: 10px;
}

.icon-buttons button {
    background: none;
    border: none;
    /* Removed circle/border */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b5d50;
    /* Match navigation color */
    font-size: 0.8rem !important;
    transition: all 0.3s ease;
}

.icon-buttons button:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

button[aria-label="Menu"] {
    display: none; /* Hidden on desktop */
}

/* Hide duplicate mobile search icon on desktop */
.icon-buttons .mobile-search-btn {
    display: none;
}


/* Hero Section */
.hero {
    background: url('../images/nigerian_luxury_interior_hero.png');
    background-size: cover;
    background-position: center;
    padding: 0;
    overflow: visible;
    position: relative;
    min-height: 85vh;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    min-height: 85vh;
    z-index: 2;
    text-align: center;
}

.hero-content {
    flex: none;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 15px;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-gold);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    background-color: #b59049; /* Slightly darker gold */
}

.hero-image {
    display: none;
}

/* Categories Section */
.categories {
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    /* Changed to serif for elegance */
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Adjusted ratio */
    grid-auto-rows: 250px;
    /* Allow new rows to match height */
    gap: var(--spacing-md);
    width: 100%;
}

.product-card {
    position: relative;
    background-color: transparent;
    /* Remove white background */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: none;
    /* Remove shadows as requested */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: scale(1.02);
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    /* Smoother zoom */
}

.category-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent */
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.3s;
}

.category-card:hover .category-label {
    background-color: var(--white);
    transform: translateX(-50%) translateY(-2px);
}

.category-card.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Responsive adjustment for grid */
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 200px 200px;
    }

    .category-card.large {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--spacing-sm);
    }

    .category-card {
        height: 250px;
    }
}

/* Popular Section */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
    /* Closer spaces */
    margin-bottom: var(--spacing-lg);
}

/* Collage helper classes */
.w-2 {
    grid-column: span 2;
}

.h-2 {
    grid-row: span 2;
}

.w-3 {
    grid-column: span 3;
}

.collection-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px; /* Reduced gap between carousel items as requested */
    margin-bottom: var(--spacing-lg);
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.05);
    /* scroll-snap-type: x mandatory removed for auto-carousel */

    /* For Firefox: hidden by default, visible on hover */
    scrollbar-width: none;
    position: relative;
}

/* Fade indicators for scrolling */
.collection-section::after {
    content: '';
    position: absolute;
    top: 80px;
    /* Offset for title */
    right: 0;
    width: 60px;
    height: calc(100% - 100px);
    background: linear-gradient(to right, transparent, var(--secondary-color));
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.collection-section::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    width: 60px;
    height: calc(100% - 100px);
    background: linear-gradient(to left, transparent, var(--secondary-color));
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.collection-grid:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Scrollbar Styling for Webkit */
.collection-grid::-webkit-scrollbar {
    height: 6px;
    background: transparent;
}

.collection-grid::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.collection-grid::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

/* Show scrollbar thumb ONLY on hover */
.collection-grid:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.collection-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.collection-grid>* {
    flex: 0 0 calc(24% - (8px * 3 / 4)); /* Slightly increased from 22% for a refined look */
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .collection-grid>* {
        flex: 0 0 calc(30% - (var(--spacing-md) * 2 / 3)); /* Reduced from 33.333% */
    }
}

@media (max-width: 768px) {
    .collection-grid>* {
        flex: 0 0 calc(45% - (var(--spacing-md) / 2)); /* Reduced from 50% */
    }
}

@media (max-width: 480px) {
    .collection-grid>* {
        flex: 0 0 80%; /* Reduced from 85% */
        /* Leaves a bit more space for the next card to be visible */
    }
}

.product-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    /* Consistent aspect ratio for general collections */
    width: 100%;
    height: auto;
    background-color: #ececec;
}

/* Special override for Homepage Popular collage to fill masonry cells */
.popular-grid .product-image {
    aspect-ratio: auto;
    height: 100%;
}

.category-card-link {
    background-color: transparent;
    box-shadow: none;
}

.category-card-link:hover {
    box-shadow: none;
}

.category-card-link .product-image {
    border: none;
}

.modal-grid .product-image {
    border: none !important;
    border-radius: 6px !important;
}

.modal-grid .modal-item.product-card {
    background-color: transparent !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    /* Stack icons vertically like many fashion sites, or keep horizontal */
    gap: 10px;
    opacity: 0;
    /* Hidden by default */
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-icons {
    opacity: 1;
    transform: translateX(0);
}

.product-icons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, color 0.2s;
}

.product-icons button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.product-card:hover .hover-overlay {
    opacity: 1;
}

.click-to-view {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-details-hover {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 6;
    pointer-events: none;
    max-width: calc(100% - 30px);
}

.product-details-hover p {
    margin: 0;
    margin-bottom: 2px;
}

.product-details-hover p:last-child {
    margin-bottom: 0;
}

/* Make sure the text is crisp */
.product-details-hover strong {
    color: #D4AF37;
    /* Gold accent for labels */
    font-weight: 600;
}

.product-card:hover .product-details-hover {
    opacity: 1;
    transform: translateY(0);
}

.hover-overlay .click-to-view {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.product-card:hover .hover-overlay .click-to-view {
    transform: translateY(0);
}

.product-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Homepage Index-wide Hover Effect - Luxury Mockup Style */
.index-page .product-label {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    background-color: transparent !important;
    box-shadow: none !important;
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    pointer-events: none;
    padding-bottom: 30px;
    /* Elevated slightly more */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.index-page .product-label span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #c5a059;
    /* Gold color from mockup */
    font-family: var(--font-body);
    font-weight: 500;
}

.index-page .product-label h3 {
    font-size: 1.6rem;
    color: white;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.index-page .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 4;
}

.index-page .product-card:hover .product-image::after,
.index-page .category-card:hover .product-image::after,
.index-page .about-item:hover .product-image::after {
    opacity: 1;
}

.index-page .product-card:hover .product-label,
.index-page .category-card:hover .product-label,
.index-page .about-item:hover .product-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.index-page .product-card:hover .product-image img,
.index-page .category-card:hover .product-image img,
.index-page .about-item:hover .product-image img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Remove legacy label styles for index */
.index-page .category-label {
    display: none !important;
}

.index-page .about-item h3 {
    display: none;
    /* We now use the label inside product-card */
}

/* Ensure Category and About cards behave like product-images */
.index-page .category-card .product-image,
.index-page .about-item .product-image {
    height: 100%;
    width: 100%;
}

.index-page .about-grid {
    gap: 20px;
}

.category-card-link .product-label {
    background-color: rgba(255, 255, 255, 0.95);
}

.category-card-link:hover .product-label {
    transform: translateX(-50%) translateY(-2px);
    background-color: var(--white);
}

.view-all-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 40px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

    .product-image {
        height: 300px;
    }
}

/* About Section */
.about {
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for better control */
    grid-template-rows: 300px 300px;
    gap: var(--spacing-md);
}

.about-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--white);
    background-color: #ddd;
    /* Fallback */
}

.about-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-item:hover img {
    transform: scale(1.05);
}

.about-item h3 {
    position: absolute;
    bottom: 25px;
    left: 25px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 2;
    margin: 0;
}

.about-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

/* Specific Grid Placements to match image */
/* Row 1: Exclusive (Wide), Customers (Square) */
.exclusive {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.customers {
    grid-column: 3 / 5;
    /* Modified to take right side of top row */
    grid-row: 1 / 2;
}

/* Row 2: Handmade (Square), Stores (Square), Story (Wide Text) */
/* Actually, let's try a different layout that might match better:
   R1: Big landscape (2), Square (1), Square (1)
   R2: Square (1), Square (1), Big Landscape (2)
   But for the specific text block, let's do:
*/

.crafts {
    grid-column: 1 / 3;
    /* Wide to balance */
    grid-row: 2 / 3;
}

.stores {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.story {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    background-color: #8c7b6c;
    /* Earthy brown */
    color: var(--white);
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
}

.story::after {
    display: none;
}

.story-content h3 {
    position: relative;
    bottom: auto;
    left: auto;
    margin-bottom: var(--spacing-sm);
    text-shadow: none;
    font-size: 1.5rem;
}

.story-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
}

/* Newsletter Section */
.newsletter {
    position: relative;
    padding: 80px 0;
    /* Vertical padding */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    background-color: #333;
    /* Fallback */
}

.newsletter-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.newsletter-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) blur(2px);
    /* Blur for better text contrast */
}

.newsletter-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 60px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: grey;
}

.newsletter-form button {
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer Section */
footer {
    background-color: #f9f9f9;
    padding-top: 60px;
    padding-bottom: 30px;
    color: var(--text-color);
    border-top: 1px solid #eee;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px; /* More consistent gap */
    margin-bottom: 60px;
    padding-top: 20px; /* Optional top breathing room */
}

.footer-brand {
    flex: 0 0 320px; /* Fixed width for brand to stabilize alignment */
    margin-right: 40px;
}

.footer-brand .logo {
    display: flex;
    margin-bottom: 25px; /* Consistent spacing with headers */
    margin-top: 0;
    text-decoration: none;
    line-height: 1.1; /* Improved alignment */
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.social-links {
    margin-top: 15px; /* Added margin-top to refine spacing in brand column */
}

.social-links p {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon-buttons button {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s;
    position: relative; /* For badge positioning */
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid white;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s;
    z-index: 10;
}

.cart-badge.active {
    opacity: 1;
}

.icon-buttons button:hover {
    color: var(--accent-color);
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: var(--light-text);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* Subtle movement */
}

.copyright {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--light-text);
}

/* Responsive Final Polish */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
        --spacing-lg: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 300px);
    }

    .exclusive {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .customers {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .story {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .crafts {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .stores {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 350px 250px 250px;
    }

    .category-card.large {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
    }

    /* Header */
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Logo size handled in mobile.css */

    .nav-links {
        display: none;
        /* Hide nav links for now, typically a hamburger menu would toggle this */
    }

    .search-bar {
        display: none;
        /* Hide search relative to simple mobile view or move it */
    }

    .icon-buttons {
        margin-left: auto;
    }

    /* Hero */
    .hero-container {
        flex-direction: column;
        padding-top: 2rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        width: 100%;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .category-card,
    .category-card.large {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }

    /* Popular */
    .popular-grid {
        grid-template-columns: 1fr;
        /* Stack products */
        gap: 20px;
    }

    .product-image {
        aspect-ratio: 1 / 1;
    }

    /* About */
    .about-grid {
        display: flex;
        /* Flex stack is easier than grid reset often */
        flex-direction: column;
        gap: 20px;
    }

    .about-item,
    .story {
        width: 100%;
        height: 250px;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .story {
        height: auto;
        min-height: 250px;
    }

    /* Newsletter */
    .newsletter-content h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 10px;
        padding: 0;
    }

    .newsletter-form input {
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--primary-color);
        width: 100%;
        text-align: center;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .footer-column ul {
        align-items: center;
        /* Center list items */
    }

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

    /* Footer logo spacing handled in mobile.css */
}

/* Interactive Selection Styles */
.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card.selected {
    border-color: #d4af37;
    /* Gold color */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    background-color: rgba(212, 175, 55, 0.05);
    /* Very subtle gold tint */
    border-radius: 15px;
}

/* Checkmark indicator */
.product-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #d4af37;
    /* Gold */
    border-radius: 50%;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#checkout-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000000;
    /* Black */
    color: #ffffff;
    /* White text */
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    /* Reduced size */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

#checkout-floating-btn:hover {
    transform: translateY(-3px);
    background-color: #333333;
    /* Dark Grey hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Premium Product Card Styles */
.product-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 25px;
    line-height: 1.2;
}

.product-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.product-price {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Remove old price tag style if any default exists or hide standalone */
.product-price-tag {
    display: none;
    /* Hide the floating one if we miss removing any, but we will move them */
}


/* Make product cards and about items clickable */
a.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.about-item {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Page Load Animation */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Modal Styles */

body.modal-open {
    overflow: hidden !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: transparent;
    width: 90%;
    max-width: 1200px;
    min-height: 300px;
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: none;
    /* Removed faint line as requested */
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
    color: #8c7b6c;
}

.modal-body {
    overflow-y: auto;
    padding: 24px 20px; /* Symmetrical padding for perfect centering */
    flex: 1;

    /* Elegant scrollbar for Firefox - more visible */
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    transition: scrollbar-color 0.3s ease;
}

.modal-body:hover {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Elegant scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
    width: 10px; /* Increased from 6px */
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Slightly visible by default */
    border-radius: 6px;
    transition: background 0.3s ease;
}

.modal-body:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35); /* More visible on hover */
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.modal-grid .product-card {
    height: 100%;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.modal-grid .product-card:hover {
    transform: translateY(-4px);
}

.modal-grid .product-card.selected {
    border: 2px solid #D4AF37;
    /* Gold border */
    background-color: rgba(212, 175, 55, 0.05);
    /* Very subtle gold tint */
}

/* Checkmark indicator shown on selected modal cards */
.modal-select-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    pointer-events: none;
}

.modal-grid .product-card.selected .modal-select-indicator {
    opacity: 1;
    transform: scale(1);
}

/* ── Out of Stock badge for storefront product cards ─────────────────── */
.oos-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(180, 30, 30, 0.88);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 6;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.product-card.oos-item {
    cursor: not-allowed;
}

.product-card.oos-item:hover {
    transform: none;
    border-color: transparent;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

/* Multi-step Checkout Modals */
.small-modal {
    max-width: 500px;
}

.info-modal {
    max-width: 700px;
}

.preview-modal {
    max-width: 600px;
}

.success-modal {
    max-width: 450px;
}

#checkout-selection-modal .modal-title,
#customer-info-modal .modal-title {
    color: #D4AF37;
}

.selection-caption {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: var(--font-body);
}

.selection-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.selection-buttons .btn {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
}

/* Luxury Form Styling */
.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.1);
}

.form-group.full-width {
    grid-column: span 2;
}

/* Order Preview Elements */
.preview-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.preview-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-item-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.preview-item-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.preview-summary {
    background: rgba(212, 175, 55, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

.preview-summary p {
    margin: 5px 0;
    font-size: 1rem;
}

.preview-summary span {
    color: #D4AF37;
    font-weight: 600;
}

/* Success Modal Elements */
.success-icon {
    font-size: 4rem;
    color: #D4AF37;
    margin-bottom: 20px;
}

.tracking-id-display {
    background: #1a1a1a;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px;
    margin: 20px 0;
    letter-spacing: 2px;
    border-radius: 8px;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.small-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Luxury Button for forms */
.btn-luxury {
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-luxury:hover {
    background: #e8c94a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

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

/* ===== GLOBAL FLOATING CHECKOUT BAR ===== */
#global-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110000;
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    /* Even slimmer */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

#global-checkout-bar.visible {
    transform: translateY(0);
}

#global-checkout-bar:hover {
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.97), rgba(40, 40, 40, 0.97));
}

#global-checkout-btn {
    background-color: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 6px 18px;
    /* Very compact */
    border-radius: 30px;
    /* Fully rounded */
    font-family: var(--font-body);
    /* Cleaner modern font */
    font-weight: 400;
    /* Minimal bold */
    font-size: 0.8rem;
    /* Smaller */
    cursor: pointer;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#global-checkout-btn:hover {
    background-color: #e8c94a;
    transform: translateY(-1px);
}

#global-cart-summary {
    color: #D4AF37;
    /* Gold for visibility */
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#global-cancel-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    width: 28px;
    /* Smaller */
    height: 28px;
    /* Smaller */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#global-cancel-btn:hover {
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #global-checkout-bar {
        padding: 8px 15px;
    }
}

body {
    animation: slideInFromBottom 0.4s ease-out;
}

main {
    animation: slideInFromBottom 0.5s ease-out 0.1s both;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {

    /* Header & Navigation */
    .header-container {
        padding: 0 var(--spacing-sm);
        position: relative;
    }

    .nav-links {
        display: none;
        /* Hide default nav */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .icon-buttons button[aria-label="Menu"] {
        display: flex !important;
        /* Ensure menu button is visible */
    }

    /* Cart Page Alignment */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px;
        position: relative;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        gap: 5px;
    }

    .cart-item-name {
        font-size: 1.1rem;
    }

    .cart-item-price {
        font-size: 0.95rem;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        width: 100%;
    }

    .quantity-controls {
        padding: 5px 10px;
    }

    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .remove-item {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
    }

    .item-subtotal {
        font-size: 1.1rem;
    }

    /* Horizontal Scrolling for Collections on Mobile */
    .collection-grid {
        display: flex;
        overflow-x: auto;
        /* scroll-snap-type: x mandatory removed for auto-carousel */
        gap: 15px;
        padding-bottom: 15px;
        width: 100%;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
    }

    .collection-grid::-webkit-scrollbar {
        height: 6px;
    }

    .collection-grid::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 10px;
    }

    .product-card {
        min-width: 160px; /* Reduced floor width so images can shrink more comfortably on mobile */
        /* Ensure items have width to scroll */
        scroll-snap-align: start;
        margin: 0;
    }

    /* Footer adjustments */
    /* Footer adjustments */
    .footer-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        /* Changed to center */
        align-items: center;
        /* Center items */
        gap: 30px;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .social-links p {
        margin: 0;
        font-weight: 600;
        text-align: center;
    }

    .social-icons {
        display: flex;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-column ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    .footer-column h4 {
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
}

/* Search Results & Collections Animation */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.animate-fade-in {
    animation: slideFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@media (min-width: 769px) {
    .icon-buttons button[aria-label="Menu"] {
        display: none;
        /* Hide menu button on desktop */
    }
}

/* About Page Specific Hero with Background Picture */
.about-hero-picture {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1618220179428-22790b461013?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0 50px;
    text-align: center;
    color: white;
}

.about-hero-picture h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}


.about-hero-picture p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 1px;

}

/* Order Processing Loader */
#payment-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    /* Dark semi-transparent background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197, 160, 89, 0.2);
    /* accent-gold with low opacity */
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Search Results Styling Customization */
.search-results-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.search-similar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Desktop Grid for Search Results */
@media (min-width: 769px) {
    .search-results-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        flex-wrap: wrap !important;
    }
    
    .search-results-grid > * {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* Hide carousel fade indicators in search results */
    #search-results-container .collection-section::after,
    #search-results-container .collection-section::before {
        display: none !important;
    }
}

/* Default 90% zoom on desktop (restricted to mouse/pointer devices to protect mobile WebKit) */
@media screen and (min-width: 992px) and (hover: hover) and (pointer: fine) {
    body {
        zoom: 0.9;
    }
}