/* --- 0. CSS Variables & Global Reset --- */
:root {
    /* RIGO WEAR Brand Colors */
    --color-primary: #000000;
    /* Deep Black */
    --color-secondary: #FFD700;
    /* Pure Gold */
    --color-accent: #FFFFFF;
    /* Crisp White for text */
    --color-royal-blue: #4169E1;
    /* Royal Blue (A sophisticated accent) */

    /* Typography */
    --font-heading: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
}

/* Global Box Sizing and Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-primary);
    /* Black background */
    color: var(--color-accent);
    /* White text by default */
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    max-width: 100vw;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    /* Gold for main headings */
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
    /* Gold hover effect */
}


/* --- 1. Header & Navigation Styling --- */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    /* Subtle hover effect for luxury feel */
}

.logo img {
    height: 60px;
    /* Increased for better visibility of the Home of Elegance text */
    width: auto;
    object-fit: contain;
}

#main-nav ul {
    list-style: none;
    display: flex;
}

#main-nav ul li {
    margin-left: 30px;
}

#main-nav ul li a {
    font-size: 1.1em;
    padding: 5px 0;
}

#main-nav {
    display: flex;
}

#main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-actions .menu-toggle {
    display: none;
    /* Hide toggle button on desktop */
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5em;
    cursor: pointer;
}


/* --- 2. Hero Section Styling (Luxury Modern Left-Aligned View) --- */
#hero {
    background: radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.07) 0%, rgba(10, 10, 10, 1) 65%), #080808;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 25px 0 40px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

/* Background Luxury Geometry Accent */
#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    text-align: left;
    padding: 30px 0 30px 25px; /* Increased vertical padding to extend the border gracefully */
    position: relative;
    border-left: 3px solid var(--color-secondary);
}

.hero-eyebrow {
    display: block;
    color: var(--color-secondary);
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 25px; /* Increased spacing */
}

#hero h1 {
    font-size: 2.5rem; /* Slightly larger for better balance, still keeping it elegant */
    line-height: 1.3;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px; /* Increased spacing */
    text-shadow: none;
}

#hero .highlight-gold {
    color: var(--color-secondary);
    font-weight: 700;
}

#hero p {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 45px; /* Increased spacing to push buttons down and fill space */
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero Showcase Frame (Right Side) */
.hero-showcase {
    flex: 1.2;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.showcase-frame {
    position: relative;
    width: 100%;
    max-width: 480px; /* Slightly wider to accommodate fade */
    height: 550px;
    background: transparent;
    transition: transform 0.4s ease;
}

.showcase-frame:hover {
    transform: translateY(-5px);
}

.showcase-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.6s ease;
    /* Mask the image edges so it blends seamlessly into the dark background */
    -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.showcase-frame:hover img {
    transform: scale(1.04);
}

.showcase-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.showcase-badge i {
    color: var(--color-secondary);
    font-size: 1.3rem;
}

.showcase-badge strong {
    display: block;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.showcase-badge span {
    display: block;
    color: var(--color-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.top-badge {
    top: 25px;
    right: -50px; /* Pushed to the right to avoid blocking the Rigo Wear sign */
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.bottom-badge {
    bottom: 35px;
    left: -20px; /* Pushed slightly out for a matching 3D floating effect */
    animation: floatBadge 4s ease-in-out 2s infinite alternate;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

/* Call to Action Button Styling (Gold and prominent) */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-secondary);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    transform: translateY(-2px);
}

.cta-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 600;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background-color: rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
}

/* Hero Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-showcase {
        max-width: 100%;
    }

    .showcase-frame {
        max-width: 100%;
        height: 420px;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        padding-left: 20px;
        border-left: 2px solid var(--color-secondary);
    }

    #hero h1 {
        font-size: 2.1rem;
    }

    #hero p {
        font-size: 1.05rem;
    }

    .cta-button, .cta-secondary {
        padding: 12px 24px;
        font-size: 0.82rem;
    }

    .showcase-frame {
        height: 350px;
    }

    .showcase-badge {
        padding: 10px 14px;
    }

    .showcase-badge strong {
        font-size: 0.78rem;
    }

    .showcase-badge span {
        font-size: 0.7rem;
    }
}

/* --- 3. Featured Products/Collections Styling --- */
#featured-products {
    padding: 80px 5%;
    text-align: center;
}

#featured-products h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}

/* Subtle gold line under the section heading */
#featured-products h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

/* Grid Layout for Products (3 columns on desktop) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 240px)); /* 150px ensures 2 columns on mobile */
    justify-content: center;
    gap: 15px; /* Slightly tighter gap for mobile 2-column */
}

/* Styling for an individual Product Card (We'll add the HTML content soon) */
.product-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    opacity: 0.9;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Forces all cards to be perfectly equal in height */
    background-color: #080808; /* Subtle frame background for letterboxing */
    border-radius: 8px; /* Soft edges for images only */
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Fits full image inside the box without any truncation */
    transition: transform 0.8s ease;
}

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

/* Badges - Fashion Nova Style */
.badge-signature {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #8b0000; /* Dark Red */
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 12px;
    z-index: 2;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #111;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    z-index: 3;
}

/* Product Info */
.product-info {
    padding: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    margin-bottom: 5px;
    width: 100%;
    line-height: 1.3;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 5px;
}

.product-card p.price {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.product-card p.price-original {
    text-decoration: line-through;
    color: #777;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Elegant visible text link for viewing details */
.product-card .quick-view-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.product-card .quick-view-btn:hover {
    color: var(--color-secondary);
}

/* --- 4. Bespoke Process/Callout Styling --- */
#bespoke-callout {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, rgba(10, 10, 10, 1) 85%), #080808;
    padding: 90px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

#bespoke-callout h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

#bespoke-callout p {
    font-size: 1.3em;
    color: var(--color-accent);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Secondary Button Styling (for "Learn More") - Luxury Gold Outline */
.secondary-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--color-secondary);
    color: #000000;
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* --- 5. Testimonial Section & Marquee Animation --- */
.testimonial-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

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

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

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

.testimonial-card {
    width: 400px;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 30px;
    margin: 0 15px;
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.testimonial-card i {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-card p {
    color: #eee;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.client-info {
    border-top: 1px solid #222;
    padding-top: 20px;
}

.client-info strong {
    display: block;
    color: var(--color-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-info span {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 6. Masters Behind the Craft (Team Section) --- */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.master-card {
    background: #080808;
    border: 1px solid #111;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.master-card:hover {
    border-color: #FFD700;
    transform: translateY(-10px);
    background: #0d0d0d;
}

.master-image-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFD700;
    padding: 5px;
}

.master-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.master-symbol {
    width: 80px;
    height: 80px;
    margin: 60px auto 90px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.master-symbol i {
    color: #FFD700;
    font-size: 2rem;
    opacity: 0.7;
}

.master-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.master-info p {
    color: #FFD700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* --- 7. Latest Insights (Blog Section Structure) --- */
#latest-insights {
    padding: 80px 5%;
    text-align: center;
}

#latest-insights h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}

/* Subtle gold line under the section heading */
#latest-insights h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    text-align: left;
}

.insight-card {
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 12px;
    transition: box-shadow 0.3s;
}

.insight-card:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.insight-card h3 {
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 8px;
}

.insight-card p {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.insight-card a {
    color: var(--color-royal-blue);
    font-weight: bold;
}

/* --- 6. Footer Styling --- */
#main-footer {
    background-color: #0d0d0d;
    color: #ccc;
    padding: 60px 5% 20px 5%;
    font-size: 0.9em;
    border-top: 3px solid var(--color-secondary);
    /* Strong Gold separator */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-secondary);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p {
    margin-bottom: 8px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.social-icons a {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 1.5em;
    margin-right: 15px;
    padding: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   7. MEDIA QUERIES (Mobile/Tablet Adjustments)
   ==================================== */

/* --- Tablet Devices (Max width 1024px) --- */
@media (max-width: 1024px) {

    /* Header/Navigation */
    #main-nav {
        display: none;
        /* Hide standard nav bar on smaller screens */
    }

    /* Hero Section Adjustments */
    #hero h1 {
        font-size: 2.8em;
    }

    /* Grid Layouts */
    /* Forces the insights grid to show 2 items per row on tablets */
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
    }

    /* Footer Adjustment */
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


/* --- Mobile Devices (Max width 600px) --- */
@media (max-width: 600px) {

    /* Header/Navigation */
    #main-header {
        padding: 15px 5%;
        border-bottom: none;
        /* Remove subtle gold line for cleaner mobile header */
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5em;
    }

    /* Mobile Navigation */
    #main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0d0d0d;
        border-bottom: 1px solid #FFD700;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        order: 3;
    }

    #main-nav.active {
        max-height: 300px;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 5%;
    }

    #main-nav ul li {
        padding: 10px 0;
        border-bottom: 1px solid #222;
    }

    /* Make the menu toggle button visible on mobile */
    .header-actions .menu-toggle {
        display: block;
        transition: transform 0.3s ease;
    }

    .header-actions .menu-toggle.active {
        transform: rotate(90deg);
    }

    /* Hero Section Adjustments for Mobile */
    #hero {
        min-height: auto;
        padding: 15px 0 10px 0;
    }

    .hero-container {
        gap: 15px;
    }

    .hero-content {
        padding: 10px 0 10px 15px;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    #hero h1 {
        font-size: 1.35rem !important;
        line-height: 1.25;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }

    #hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-actions {
        gap: 10px;
    }

    /* Section Padding */
    #featured-products,
    #latest-insights,
    #bespoke-callout {
        padding: 40px 5%;
    }

    /* Grid Layouts */
    .insights-grid {
        grid-template-columns: 1fr;
    }

    /* Font Adjustments for Mobile */
    h2 {
        font-size: 1.6em !important;
    }
    
    .process-steps h2, .order-summary-box h2, .checkout-forms h1 {
        font-size: 1.4em !important;
    }

    /* Footer Adjustment */
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4 {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .footer-col ul {
        padding: 0;
    }

    #main-nav.active {
        display: block;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        padding: 10px 0;
    }

    /* Additional UI Mobile Fixes */
    .testimonial-card {
        width: 85vw;
        max-width: 350px;
        margin: 0 10px;
    }

    #product-listing, #product-detail-section, #cart-section, #checkout-details-section, .story-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .detail-container, .contact-container, .cart-container, .checkout-container {
        gap: 20px;
    }
    
    .search-box input, .sort-box select {
        width: 100%;
    }
    
    #main-nav.active ul {
        flex-direction: column;
        /* Stack the links vertically */
        text-align: center;
    }

    #main-nav.active ul li {
        margin: 10px 0;
    }
}

/* ====================================
   8. SHOP PAGE SPECIFIC STYLING
   ==================================== */

#shop-hero {
    /* Uses the same styling principles as the main #hero, but shorter */
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    background-color: var(--color-primary);
    /* Use deep black */
}

#shop-hero h1 {
    font-size: 3em;
}

#product-listing {
    padding: 60px 5%;
}

/* Container for sidebar and product grid */
#product-listing .container {
    display: flex;
    gap: 40px;
}

/* Sidebar Styling */
#shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

#shop-sidebar h2 {
    color: var(--color-accent);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.filter-group {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.filter-group h3 {
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.filter-group ul {
    list-style: none;
}

.filter-group ul li {
    margin-bottom: 8px;
}

/* Color Swatches (small color indicators) */
.color-options {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #333;
    transition: border-color 0.2s;
}

.color-swatch.black {
    background-color: #000;
}

.color-swatch.blue {
    background-color: var(--color-royal-blue);
}

.color-swatch.gray {
    background-color: #555;
}

.color-swatch.gold {
    background-color: var(--color-secondary);
}

.color-swatch:hover {
    border-color: var(--color-secondary);
}

/* Main Product Grid Area */
#product-grid {
    flex-grow: 1;
    /* Reuse the existing .grid-layout class from index.html */
}

/* Search Container Styling */
.search-and-grid {
    flex-grow: 1;
}

/* Filter Actions Row */
.filter-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
    font-size: 1em;
    border-radius: 4px;
    transition: border-color 0.3s, background-color 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-box {
    min-width: 200px;
}

.sort-box select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.sort-box select:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-box select option {
    background-color: #000;
    color: var(--color-accent);
}


/* --- Mobile Adjustments for Shop Page --- */
@media (max-width: 900px) {

    /* Stack the sidebar and the product grid vertically */
    #product-listing .container {
        flex-direction: column;
    }

    /* Hide the desktop sidebar on mobile */
    #shop-sidebar {
        display: none;
    }
}

/* Mobile Filter Menu Styles */
.mobile-filter-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px 5%;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-filter-menu.active {
    display: block;
}

.mobile-filter-menu h2 {
    color: var(--color-accent);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.mobile-filter-menu .filter-group h3 {
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.mobile-filter-menu .filter-group ul {
    list-style: none;
    padding-left: 0;
}

.mobile-filter-menu .filter-group ul li {
    margin-bottom: 12px;
}

.mobile-filter-menu .filter-group ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 5px 0;
}

.filter-group ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.filter-group ul li a.active {
    color: var(--color-secondary);
    font-weight: bold;
    border-left: 2px solid var(--color-secondary);
    padding-left: 10px;
}

/* ====================================
   9. CONTACT PAGE SPECIFIC STYLING
   ==================================== */

#contact-hero {
    background-color: #0d0d0d;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

#contact-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

#contact-hero p {
    font-size: 1.2em;
    color: #ccc;
}

#contact-details {
    padding: 80px 5%;
}

.contact-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-area,
.info-map-area {
    flex: 1;
}

/* Form Styling */
.contact-form-area h2,
.info-map-area h2 {
    color: var(--color-secondary);
    font-size: 2em;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: var(--color-accent);
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

/* Info and Map Styling */
.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #ccc;
}

#map-placeholder {
    margin-top: 30px;
    height: 300px;
    background-color: #1a1a1a;
    border: 1px solid var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
    font-size: 1.5em;
    text-align: center;
    overflow: hidden;
}

#map-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* --- Mobile Adjustments for Contact Page --- */
@media (max-width: 800px) {
    .contact-container {
        flex-direction: column;
    }
}

/* ====================================
   10. BESPOKE PAGE SPECIFIC STYLING
   ==================================== */

#bespoke-hero {
    /* Similar to contact hero, setting a professional tone */
    background-color: #0d0d0d;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

#bespoke-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

#bespoke-intro {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.bespoke-content {
    flex: 1;
}

.bespoke-image {
    flex: 1;
    height: 450px;
    /* Adjusted height for your pic.png */
    background-color: #1a1a1a;
    border: 3px solid var(--color-secondary);
    /* Gold border for luxury */
    overflow: hidden;
    /* Ensures the image doesn't bleed over the border */
    display: flex;
    justify-content: center;
    align-items: center;
}

.bespoke-content h2 {
    color: var(--color-accent);
    /* White heading here */
    font-size: 2.2em;
    margin-bottom: 20px;
}

.bespoke-content p {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.1em;
}

/* Bespoke Process Section */
#bespoke-process {
    padding: 80px 5%;
    background-color: #1a1a1a;
    /* Dark gray background for contrast */
    text-align: center;
}

#bespoke-process h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.process-steps {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens */
}

.step-card {
    background-color: #000;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 30px;
    max-width: 250px;
    flex-grow: 1;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--color-secondary);
    /* Gold circle */
    color: var(--color-primary);
    /* Black number */
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.step-card h3 {
    color: var(--color-accent);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.step-card p {
    color: #ccc;
}

/* --- Mobile Adjustments for Bespoke Page --- */
@media (max-width: 900px) {
    #bespoke-intro {
        flex-direction: column;
    }

    .bespoke-image {
        order: -1;
        /* Move image above text on mobile */
        margin-bottom: 30px;
        height: 250px;
    }

    .process-steps {
        flex-direction: column;
        /* Stack the steps vertically on mobile */
        align-items: center;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ====================================
   11. ABOUT US PAGE SPECIFIC STYLING
   ==================================== */

#about-hero {
    /* Uses similar styling to other hero sections */
    background-color: #0d0d0d;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

#about-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Story Sections (Alternating Layout) */
.story-section {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--color-primary);
    /* FIX: Ensure base is black */
}

.story-section:nth-child(odd) {
    background-color: #1a1a1a;
    /* Alternating background for visual interest */
}

.story-content {
    flex: 1;
}

.story-image {
    flex: 1;
    height: 350px;
    background-color: #000;
    border: 1px solid var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
    font-size: 1.2em;
    overflow: hidden;
    min-width: 0;
}

.story-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.story-content h2 {
    color: var(--color-secondary);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1.1em;
}

/* Ensure image comes first when reversed (left-image) */
.story-section.right-image {
    flex-direction: row-reverse;
}


/* Value Proposition Section */
#value-prop {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--color-primary);
    /* FIX: Ensure this section is black */
}

#value-prop h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.value-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.value-card {
    max-width: 350px;
    background-color: #0d0d0d;
    padding: 30px;
    border-top: 5px solid var(--color-royal-blue);
    /* Subtle royal blue accent */
    text-align: left;
}

.value-card h3 {
    color: var(--color-accent);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.value-card p {
    color: #ccc;
}

/* --- Mobile Adjustments for About Page --- */
@media (max-width: 800px) {
    .story-section {
        flex-direction: column;
    }

    .story-section.right-image {
        flex-direction: column;
        /* Resetting the reverse order for mobile */
    }

    .value-cards {
        flex-direction: column;
        /* Stack cards vertically */
        align-items: center;
    }

    .value-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ====================================
   12. PRODUCT DETAIL PAGE STYLING
   ==================================== */

#product-detail-section {
    padding: 100px 5% 50px 5%;
}

.detail-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Product Gallery Styling (Left Column) --- */
.product-gallery {
    flex: 3;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border 0.3s;
    border: 1px solid transparent;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    opacity: 1;
    border-color: var(--color-secondary);
}

/* --- Product Info Styling (Right Column) --- */
.product-info {
    flex: 2;
    padding-top: 20px;
}

.product-title {
    color: var(--color-accent);
    font-size: 2.5em;
    margin-bottom: 5px;
}

.product-price {
    color: var(--color-secondary);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Customization Options */
.options-group {
    margin-bottom: 25px;
}

.options-group label {
    display: block;
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.options-group select,
.options-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: var(--color-accent);
    border-radius: 5px;
    appearance: none;
    /* Removes default OS styling for select/number */
}

.quantity-input input[type="number"] {
    width: 80px;
    /* Smaller width for quantity */
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2em;
    padding: 15px 0;
}

/* Additional Details (Accordion/Tabs style) */
.additional-details {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding-top: 20px;
}

.detail-item h3 {
    color: var(--color-accent);
    font-size: 1.1em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
}

.detail-content {
    /* Initially hidden via JavaScript, shown here for structure */
    padding: 15px 0;
    color: #ccc;
    display: none;
}

/* --- Related Products Section --- */
#related-products {
    padding: 50px 5% 80px 5%;
    text-align: center;
    background-color: #1a1a1a;
}

#related-products h2 {
    color: var(--color-secondary);
    font-size: 2em;
    margin-bottom: 30px;
}

/* --- Mobile Adjustments for Product Detail Page --- */
@media (max-width: 900px) {
    .detail-container {
        flex-direction: column;
    }

    .product-gallery,
    .product-info {
        flex: auto;
        /* Allow both columns to take full width */
    }

    .product-gallery {
        order: -1;
        /* Place image at the top */
    }
}

/* ====================================
   13. CART/CHECKOUT PAGE STYLING
   ==================================== */

#cart-section {
    padding: 100px 5% 80px 5%;
}

.cart-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items-list {
    flex: 2;
}

.cart-items-list h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 15px;
}

/* Individual Cart Item Styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    font-size: 1.2em;
    color: var(--color-accent);
    margin: 0;
}

.custom-options {
    font-size: 0.9em;
    color: #999;
    margin: 5px 0;
}

.price-per-item {
    color: var(--color-secondary);
    font-weight: bold;
}

.item-quantity input {
    width: 60px;
    padding: 5px;
    text-align: center;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: var(--color-accent);
}

.item-subtotal {
    font-weight: bold;
    color: var(--color-secondary);
    width: 100px;
    text-align: right;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: var(--color-royal-blue);
}

/* Checkout Progress Bar */
.checkout-progress {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--color-secondary);
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 5px;
}

/* --- Order Summary Box Styling (Right Column) --- */
.order-summary-box {
    flex: 1;
    background-color: #0d0d0d;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    height: fit-content;
    /* Ensure box doesn't stretch */
}

.order-summary-box h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--color-accent);
    text-align: center;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #333;
}

.summary-line span {
    color: #ccc;
}

.summary-line.grand-total {
    border-top: 2px solid var(--color-secondary);
    border-bottom: none;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 1.3em;
}

.summary-line.grand-total span {
    color: var(--color-secondary);
    font-weight: bold;
}

.checkout-btn {
    display: block;
    width: 100%;
    margin-top: 30px;
    font-size: 1.1em;
    text-align: center;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #999;
}

/* --- Mobile Adjustments for Cart Page --- */
@media (max-width: 900px) {
    .cart-container {
        flex-direction: column;
    }

    .order-summary-box {
        order: -1;
        /* Move the summary box to the top on mobile */
    }

    .cart-item {
        flex-wrap: wrap;
        /* Wrap elements on small screens */
    }

    .item-details {
        flex-basis: 100%;
        /* Details take full width under the image */
    }

    .item-quantity,
    .item-subtotal,
    .remove-item-btn {
        margin-left: auto;
        flex-basis: auto;
    }

    .item-quantity {
        order: 3;
    }

    .item-subtotal {
        order: 4;
    }
}

/* ====================================
   14. CHECKOUT DETAILS STYLING
   ==================================== */

#checkout-details-section {
    padding: 100px 5% 80px 5%;
}

.checkout-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-forms {
    flex: 2;
}

.checkout-forms h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--color-accent);
}

/* Form Block Styling */
.form-block {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.form-block h2 {
    font-size: 1.8em;
    color: var(--color-secondary);
    margin-bottom: 25px;
}

/* Two-column form layout */
.form-group-half {
    display: flex;
    gap: 20px;
}

.form-group-half .form-group {
    flex: 1;
}

/* General form input styling (reuse from contact page) */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: var(--color-accent);
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group label {
    display: block;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group .inline-label {
    display: inline;
    font-weight: normal;
    margin-left: 10px;
    color: #ccc;
}

/* Checkout Progress Indicator Styling */
.checkout-progress {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #666;
}

.checkout-progress strong {
    color: var(--color-secondary);
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.proceed-to-payment {
    padding: 15px 30px;
}

/* --- Mobile Adjustments for Checkout Page --- */
@media (max-width: 900px) {
    .checkout-container {
        flex-direction: column;
    }

    .order-summary-box {
        order: -1;
        width: 100%;
        margin-bottom: 30px;
    }

    .form-group-half {
        flex-direction: column;
        gap: 0;
    }

    .checkout-actions {
        flex-direction: column;
        gap: 15px;
    }

    .back-to-cart,
    .proceed-to-payment {
        width: 100%;
        text-align: center;
    }
}

/* ====================================
   15. CHECKOUT PAYMENT STYLING
   ==================================== */

#checkout-payment-section {
    padding: 100px 5% 80px 5%;
}

/* Payment Options Block */
.payment-options {
    margin-bottom: 30px;
}

.payment-option {
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    transition: border-color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

/* Highlight the selected option */
.payment-option.selected {
    border-color: var(--color-secondary);
    background-color: #0d0d0d;
}

.payment-option label {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--color-accent);
    cursor: pointer;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    /* Custom styling for radio button */
    accent-color: var(--color-secondary);
    width: 18px;
    height: 18px;
}

.card-details-fields {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px dashed #333;
    /* Styles are reused from form-group and form-group-half */
}

.payment-logo {
    color: var(--color-royal-blue);
    margin-top: 10px;
    font-size: 0.9em;
    font-style: italic;
}

/* Agreement Checkbox */
.agreement-checkbox {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.agreement-checkbox a {
    color: var(--color-royal-blue);
}

/* Final Place Order Button */
.place-order-btn {
    font-size: 1.3em;
    font-weight: bold;
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* --- Summary Review Block (Right Column) --- */
.summary-review-block {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.summary-review-block h4 {
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.summary-review-block p {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.edit-link {
    display: inline-block;
    color: var(--color-royal-blue);
    font-size: 0.9em;
    margin-top: 5px;
}

/* ====================================
   16. ORDER CONFIRMATION PAGE STYLING
   ==================================== */

#confirmation-section {
    padding: 100px 5% 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    /* Ensure it takes up most of the viewport height */
}

.confirmation-box {
    background-color: #0d0d0d;
    padding: 50px;
    max-width: 600px;
    text-align: center;
    border: 3px solid var(--color-secondary);
    /* Bold gold border for celebration */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.confirmation-header {
    margin-bottom: 20px;
}

.checkmark-icon {
    font-size: 3em;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.confirmation-box h1 {
    font-size: 2.5em;
    color: var(--color-accent);
}

.thanks-message {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 30px;
}

.order-details-summary {
    background-color: #1a1a1a;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: left;
}

.order-details-summary h2 {
    font-size: 1.2em;
    color: var(--color-secondary);
    margin-bottom: 15px;
    text-align: center;
}

.order-number {
    font-size: 1.5em;
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.detail-row span {
    color: #ccc;
    font-size: 0.95em;
}

.detail-amount {
    color: var(--color-secondary);
    font-weight: bold;
}

.next-steps {
    text-align: left;
    margin-bottom: 30px;
}

.next-steps h3 {
    color: var(--color-accent);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: disc;
    padding-left: 20px;
    color: #ccc;
    line-height: 1.8;
}

.next-steps ul li a {
    color: var(--color-royal-blue);
}

.back-home-btn {
    /* Reuse secondary-button styling */
    display: inline-block;
    padding: 12px 30px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    .confirmation-box {
        padding: 30px;
        margin: 0 5%;
        border-width: 2px;
    }
}

/* Floating Cart Button */
#floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#floating-cart:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Optimized Mobile-First Grid */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    flex-grow: 1;
}

/* Removed conflicting fixed height on product images */

.product-card .card-content {
    padding: 15px;
}

.product-card .brief-desc {
    font-size: 0.85rem;
    color: #888;
    margin: 10px 0;
    line-height: 1.4;
}

/* Mobile Adjustments (Phones) */
@media (max-width: 768px) {
    #product-grid,
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        /* Guaranteed 2 items per row on mobile */
        gap: 10px;
    }

    #bespoke-callout {
        padding: 50px 5%;
    }

    #bespoke-callout h2 {
        font-size: 1.8rem;
    }

    #bespoke-callout p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .testimonial-card {
        width: 285px; /* Compact width for mobile screens */
        padding: 20px;
        margin: 0 8px;
    }

    .testimonial-card p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

/* Global Shop Hero & Compact Layout */
#shop-hero {
    padding: 10px 5% 0 5% !important;
    margin: 0 !important;
    text-align: center;
}

#shop-hero h1 {
    font-size: 2.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

#product-listing {
    padding: 5px 5% 60px 5% !important;
    margin: 0 !important;
}

.shop-layout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.filter-actions {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
}

@media (max-width: 768px) {
    #shop-hero {
        padding: 5px 5% 0 5% !important;
        margin: 0 !important;
    }

    #shop-hero h1 {
        font-size: 1.25rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #product-listing {
        padding: 0 5% 30px 5% !important;
        margin: 0 !important;
    }

    .filter-actions {
        margin-top: 2px !important;
        margin-bottom: 8px !important;
    }
}

/* Search Bar Styling */
.search-container {
    margin-bottom: 30px;
    width: 100%;
}

#shop-search {
    width: 100%;
    padding: 15px 20px;
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--color-accent);
    font-size: 1rem;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#shop-search:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
    .search-container {
        margin-top: 0 !important;
        margin-bottom: 15px;
    }
}

/* --- Shop Controls & Mobile Category Filters --- */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent any child from causing page overflow */
    box-sizing: border-box;
}

.controls-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.category-box,
.sort-box {
    flex: 1;
}

.category-box select,
.sort-box select {
    width: 100%;
    padding: 10px 12px;
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--color-accent);
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.category-box select:focus,
.sort-box select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.category-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 6px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Strictly constrain to parent width, never overflow the page */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.category-chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #ccc;
    font-size: 0.78rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.chip-btn.active,
.chip-btn:hover {
    background: var(--color-secondary);
    color: #000;
    border-color: var(--color-secondary);
    font-weight: bold;
}