/* 
    Style pour StyleHive - E-commerce Luxe 2026
*/

:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #7F1D35;
    --accent-hover: #5D1427;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions & Easings */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Buttons & Inputs
   ========================================= */

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-main);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 153, 85, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 2px;
}

.link-arrow i {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.link-arrow:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.link-arrow:hover i {
    transform: translateX(4px);
}


/* =========================================
   Animations (Fade In Up)
   ========================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 2rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
}

/* =========================================
   Search Bar (Navbar)
   ========================================= */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 50px;
    transition: var(--transition-smooth);
    padding: 2px;
}

.search-input-wrapper {
    width: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.search-container.active .search-input-wrapper {
    width: 250px;
    margin-right: 0.5rem;
    padding-left: 1rem;
}

.search-container.active .search-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: #A0A0A0;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-container.active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        z-index: 10;
        padding: 0 5%;
        justify-content: center;
    }

    .search-container.active .search-form {
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .search-container.active .search-input-wrapper {
        width: 100%;
    }
    
    .search-container.active .search-input {
        font-size: 1.1rem;
    }
}

/* =========================================
   Homepage themes managed from the admin
   ========================================= */
.homepage {
    --theme-bg: #ffffff;
    --theme-text: #111111;
    --theme-muted: #666666;
    --theme-accent: #7f1d35;
    --theme-accent-hover: #5d1427;
    --theme-surface: rgba(255, 255, 255, 0.88);
    --theme-line: rgba(23, 23, 23, 0.08);
    --theme-banner: #171717;
    --theme-shadow: 0 14px 34px rgba(23, 23, 23, 0.08);
    background: var(--theme-bg);
    color: var(--theme-text);
}

.homepage.palette-burgundy {
    --theme-bg: #ffffff;
    --theme-text: #111111;
    --theme-muted: #666666;
    --theme-accent: #7f1d35;
    --theme-accent-hover: #5d1427;
    --theme-surface: rgba(255, 255, 255, 0.92);
    --theme-line: rgba(23, 23, 23, 0.08);
    --theme-banner: #171717;
}

.homepage.palette-cognac {
    --theme-bg: #f4e8d8;
    --theme-text: #211a16;
    --theme-muted: #725f52;
    --theme-accent: #a76535;
    --theme-accent-hover: #784422;
    --theme-surface: rgba(255, 249, 240, 0.9);
    --theme-line: rgba(86, 52, 31, 0.16);
    --theme-banner: #211a16;
}

.homepage.palette-olive {
    --theme-bg: #f1eee6;
    --theme-text: #27302a;
    --theme-muted: #687067;
    --theme-accent: #65745b;
    --theme-accent-hover: #46513f;
    --theme-surface: rgba(255, 255, 252, 0.88);
    --theme-line: rgba(39, 48, 42, 0.14);
    --theme-banner: #27302a;
}

.homepage.theme-atelier .hero {
    background: linear-gradient(120deg, var(--theme-bg) 0%, color-mix(in srgb, var(--theme-accent) 13%, var(--theme-bg)) 100%);
}

.homepage.theme-atelier .hero-image img {
    filter: saturate(.8) contrast(1.08);
}

.homepage.theme-atelier .product-card,
.homepage.theme-atelier .glass-card {
    border-radius: 2px;
}

.homepage.theme-organic .product-card,
.homepage.theme-organic .glass-card,
.homepage.theme-organic .about-image img {
    border-radius: 22px;
}

.homepage.theme-organic .hero-image img {
    border-radius: 34px;
}

.homepage .announcement-bar {
    background-color: var(--theme-banner);
    color: var(--theme-accent);
    border-bottom-color: var(--theme-line);
}

.homepage .navbar,
.homepage .navbar.scrolled {
    background: var(--theme-surface);
    border-bottom-color: var(--theme-line);
    box-shadow: var(--theme-shadow);
}

.homepage .logo,
.homepage h1,
.homepage h2,
.homepage h3,
.homepage h4,
.homepage .nav-links a,
.homepage .footer-links a {
    color: var(--theme-text);
}

.homepage .hero,
.homepage .collection,
.homepage .about {
    background-color: var(--theme-bg);
}

.homepage .hero p,
.homepage .section-header p,
.homepage .about-content p,
.homepage .footer-newsletter p {
    color: var(--theme-muted);
}

.homepage .btn-primary,
.homepage .status-badge,
.homepage .link-arrow:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.homepage .btn-primary:hover,
.homepage .link-arrow {
    color: var(--theme-accent);
}

.homepage .product-card,
.homepage .glass-card {
    border-color: var(--theme-line);
    background-color: var(--theme-surface);
}

.homepage .eyebrow,
.homepage .price,
.homepage .brand-divider-kicker,
.homepage .brand-divider-mark span {
    color: var(--theme-accent);
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    padding-top: 100px;
    gap: 4rem;
}

.hero-content {
    max-width: 500px;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image {
    position: relative;
    height: 80vh;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: float 6s ease-in-out infinite;
}

.floating-card p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.floating-card span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   Featured Products (Collection)
   ========================================= */

.collection {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.product-card {
    group: product;
}

.product-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #EFECE7;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

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

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.product-info .notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.price {
    font-size: 1.1rem;
    font-weight: 500;
}

/* =========================================
   Badges (Promo, New, Discount)
   ========================================= */

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    display: inline-block;
    line-height: 1;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    line-height: 1;
}

.status-badge.promo { background: #e74c3c; color: #fff; }
.status-badge.new { background: #ffffff; color: #141414; border: 1px solid rgba(0,0,0,0.1); }
.status-badge.exclusive { background: #141414; color: #fff; }
.status-badge.bestseller { background: #7F1D35; color: #fff; }

@media (max-width: 768px) {
    .discount-badge {
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
        border-radius: 3px;
    }
    .status-badge {
        top: 8px;
        left: 8px;
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
    }
}

/* =========================================
   About Section
   ========================================= */

.about {
    padding: 8rem 5%;
    background-color: #EFECE7;
}

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 2rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-content .link-arrow {
    margin-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background-color: var(--text-main);
    color: var(--bg-primary);
    padding: 6rem 5% 2rem;
}

.footer h2, .footer h4 {
    color: var(--bg-primary);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A0A0A0;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #A0A0A0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--bg-primary);
}

.footer-newsletter h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: #A0A0A0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--bg-primary);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form .btn-primary {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.newsletter-form .btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A0A0A0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #A0A0A0;
}

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

/* Developer Credit */
.dev-credit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #A0A0A0;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.dev-credit:hover {
    color: var(--bg-primary);
}

.dev-credit strong {
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition-fast);
}

.dev-credit:hover strong {
    color: #d4b678;
}

.dev-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dev-credit:hover .dev-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(184, 153, 85, 0.5);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-image {
        height: 40vh;
        margin-top: 1rem;
        border-radius: 12px;
    }
    .hero-image img {
        border-radius: 12px;
    }
    .floating-card {
        padding: 0.8rem 1rem;
        bottom: -20px;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        box-sizing: border-box;
        border-radius: 8px;
    }
    .floating-card p {
        font-size: 1rem;
    }
    .floating-card span {
        font-size: 0.75rem;
    }
    .collection {
        padding: 3rem 5%;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .about {
        padding: 4rem 5%;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }
    .about-image {
        height: 400px;
    }
    .about-content h2 {
        font-size: 2.2rem;
    }
    .footer {
        padding: 3rem 5% 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    .footer-bottom > div {
        justify-content: center;
    }
    .dev-credit {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        
        max-height: 0;
        overflow: hidden;
        padding: 0 5%;
        opacity: 0;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    }
    .nav-links.active {
        max-height: 300px;
        padding: 1.5rem 5%;
        opacity: 1;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links a {
        font-size: 0.85rem;
        font-weight: 500;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        margin-bottom: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .product-info .notes {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .price-action .price {
        font-size: 0.95rem;
    }
    
    .price-action .icon-btn {
        width: 30px;
        height: 30px;
    }
    
    .price-action .icon-btn i {
        width: 14px;
        height: 14px;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-image {
        order: -1;
        height: 300px;
    }
    .about-content h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        word-break: keep-all;
        hyphens: none;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .dev-credit {
        justify-content: center;
        font-size: 0.8rem;
    }
    .dev-avatar {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    /* Sur très petit écran, social links + dev-credit en colonne */
    .footer-bottom > div[style] {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bottom {
        gap: 1rem;
        padding-top: 1.5rem;
    }
    .dev-credit {
        font-size: 0.78rem;
    }
}

/* =========================================
   Homepage Shopify-inspired storefront
   ========================================= */

.homepage {
    --bg-primary: #ffffff;
    --text-main: #171717;
    --text-muted: #74736e;
    --accent: #7f1d35;
    --accent-hover: #5d1427;
    background: #ffffff;
}

.homepage .announcement-bar {
    height: 34px;
    background: #171717;
    color: #ffffff;
    font-size: 0.67rem;
    letter-spacing: 1.6px;
    box-shadow: none;
    border-bottom: 0;
}

.shop-page .announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 100%;
    padding: 0 1rem;
    gap: 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.shop-page .navbar {
    position: fixed;
    top: 34px !important;
}

.product-page-shell .announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 100%;
    padding: 0 1rem;
    gap: 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.product-page-shell .navbar {
    position: fixed;
    top: 34px !important;
}

.homepage .navbar {
    top: 34px !important;
    padding: 1.2rem 0 !important;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.homepage .navbar.scrolled {
    padding: 0.8rem 0 !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 24px rgba(23, 23, 23, 0.06);
}

.homepage .nav-container {
    max-width: 1280px;
}

.homepage .logo {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.homepage .nav-links {
    gap: 2.2rem;
}

.homepage .nav-links a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.6px;
}

.homepage .nav-links a::after {
    background: var(--accent);
    height: 2px;
}

.homepage .navbar {
    box-sizing: border-box;
}

.homepage .nav-container {
    min-height: 48px;
}

.homepage .nav-actions {
    align-items: center;
}

.homepage .hero {
    min-height: auto;
    max-width: none;
    padding: 9rem max(5%, calc((100vw - 1280px) / 2)) 5rem;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 5rem;
    align-items: center;
    background: #111111;
    color: #ffffff;
}

.homepage .hero-content {
    max-width: 510px;
}

.homepage .eyebrow {
    color: #c48798;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
}

.homepage .hero h1 {
    max-width: 500px;
    font-family: var(--font-body);
    font-size: clamp(3.3rem, 6vw, 6.2rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.homepage .hero p {
    max-width: 430px;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.68);
}

.homepage .btn-primary {
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #111111;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.homepage .btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(40, 92, 77, 0.18);
}

.homepage .hero-image {
    height: min(68vh, 700px);
    min-height: 500px;
    border-radius: 0;
    background: #292929;
    border: 1px solid rgba(196, 135, 152, 0.45);
    box-shadow: 18px 18px 0 rgba(127, 29, 53, 0.78);
}

.homepage .hero-image img {
    border-radius: 0;
    object-position: center;
    filter: grayscale(0.22) contrast(1.05);
}

.homepage .floating-card {
    bottom: 24px;
    left: 24px;
    padding: 1rem 1.25rem;
    border-radius: 0;
    background: #ffffff;
    border: 0;
    box-shadow: 0 12px 30px rgba(23, 23, 23, 0.12);
    animation: none;
}

.homepage .floating-card p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #111111;
}

.homepage .floating-card span {
    font-size: 0.72rem;
}

.homepage #avis {
    margin-top: 0 !important;
    padding: 4rem 0 3.5rem !important;
    background: #171717 !important;
}

.homepage .collection {
    max-width: 1280px;
    padding: 7rem 5% 8rem;
    background: #ffffff;
}

.homepage .section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
    padding-bottom: 1.5rem;
}

.homepage .section-header h2 {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 0;
}

.homepage .section-header p {
    max-width: 330px;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: right;
}

.homepage .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.4rem;
}

.homepage .product-image {
    border-radius: 0;
    background: #f1f1f1;
    margin-bottom: 1rem;
}

.homepage .hover-overlay {
    background: rgba(23, 23, 23, 0.16);
}

.homepage .hover-overlay .btn-secondary {
    border-radius: 0;
    background: #ffffff;
    padding: 0.8rem 1.1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.homepage .product-info h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.homepage .product-info .notes {
    font-size: 0.8rem;
}

.homepage .price {
    font-size: 0.92rem;
    font-weight: 700;
}

.homepage .status-badge,
.homepage .discount-badge {
    border-radius: 0;
}

.homepage .about {
    padding: 7rem 5%;
    background: #f2f2f2;
}

.homepage .about-grid {
    max-width: 1280px;
    gap: 5rem;
}

.homepage .about-image {
    height: 560px;
    border-radius: 0;
}

.homepage .about-content h2 {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.homepage .about-content p {
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.8;
}

.homepage .link-arrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

@media (max-width: 992px) {
    .homepage .hero {
        padding-top: 8rem;
        gap: 3rem;
    }

    .homepage .hero-image {
        min-height: 440px;
    }
}

@media (max-width: 768px) {
    .homepage .announcement-bar {
        height: 32px;
        font-size: 0.58rem;
    }

    .homepage .navbar {
        top: 32px !important;
    }

    .homepage .nav-links {
        top: 100%;
        background: #ffffff;
    }

    .homepage .hero {
        padding: 8.5rem 5% 4rem;
        gap: 2.5rem;
        text-align: left;
    }

    .homepage .hero-content {
        margin: 0;
    }

    .homepage .hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .homepage .hero-image {
        height: 58vh;
        min-height: 390px;
        box-shadow: 10px 10px 0 rgba(127, 29, 53, 0.78);
    }

    .homepage .section-header {
        display: block;
    }

    .homepage .section-header p {
        margin-top: 0.7rem;
        text-align: left;
    }

    .homepage .collection {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .homepage .about {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* =========================================
   Premium storefront system: shop + product
   ========================================= */

:root {
    --color-primary: #7a1f2b;
    --color-primary-dark: #56131e;
    --color-dark: #0d0d0d;
    --color-ink: #171717;
    --color-paper: #f8f5f2;
    --color-line: rgba(13, 13, 13, 0.12);
    --color-soft: #eee9e5;
    --color-muted: #77716d;
}

body {
    background: var(--color-paper);
    color: var(--color-ink);
}

.navbar {
    border-bottom-color: var(--color-line);
}

.logo {
    color: var(--color-dark);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a::after,
.icon-btn:hover,
.link-arrow:hover,
.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-primary {
    background: var(--color-dark);
    border-radius: 0;
}

.btn-primary:hover {
    background: var(--color-primary);
    box-shadow: 0 12px 24px rgba(122, 31, 43, 0.2);
}

/* Collection listing */
.shop-header {
    padding: 11rem 5% 4rem !important;
    background: var(--color-paper) !important;
    text-align: left !important;
    max-width: 1280px;
    margin: 0 auto;
}

.shop-header h1 {
    max-width: 720px;
    font-family: var(--font-body) !important;
    font-size: clamp(2.8rem, 6vw, 5.5rem) !important;
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.96;
    margin-bottom: 1.25rem !important;
}

.shop-header p {
    max-width: 480px !important;
    margin: 0 !important;
    color: var(--color-muted) !important;
    font-size: 1rem !important;
}

.shop-container {
    max-width: 1280px !important;
    padding: 0 5% 7rem !important;
    grid-template-columns: 240px 1fr !important;
    gap: 3.5rem !important;
}

.sidebar {
    top: 100px !important;
    padding: 1.5rem !important;
    border-radius: 0 !important;
    border: 1px solid var(--color-line) !important;
    box-shadow: none !important;
    background: #fff !important;
}

.filter-section {
    border-bottom-color: var(--color-line) !important;
}

.filter-title {
    font-size: 0.7rem !important;
    letter-spacing: 1.8px !important;
    color: var(--color-dark) !important;
}

.radio-label,
.price-display,
.top-search-input::placeholder {
    color: var(--color-muted) !important;
}

.radio-label input[type="radio"],
.range-slider {
    accent-color: var(--color-primary) !important;
}

.top-search-wrapper {
    margin-bottom: 2rem !important;
}

.top-search-input {
    padding: 1rem 1.25rem 1rem 3.5rem !important;
    border-radius: 0 !important;
    border-color: var(--color-line) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.top-search-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.1) !important;
    transform: none !important;
}

.top-search-wrapper svg {
    color: var(--color-primary) !important;
}

.btn-filter,
.pagination-btn.active {
    border-radius: 0 !important;
    background: var(--color-dark) !important;
}

.btn-filter:hover,
.pagination-btn.active:hover {
    background: var(--color-primary) !important;
}

.btn-reset,
.mobile-filter-btn,
.pagination-btn {
    border-radius: 0 !important;
    border-color: var(--color-line) !important;
}

.mobile-filter-btn {
    background: #fff !important;
}

.products-grid {
    gap: 2.8rem 1.4rem !important;
}

.products-grid .product-card .product-image {
    border-radius: 0 !important;
    background: var(--color-soft) !important;
}

.products-grid .product-card .product-image img,
.product-grid .product-card .product-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease !important;
}

.products-grid .product-card:hover .product-image img,
.product-grid .product-card:hover .product-image img {
    transform: scale(1.045) !important;
    filter: contrast(1.03) saturate(0.92);
}

.products-grid .product-info h3,
.product-grid .product-info h3 {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.products-grid .price,
.product-grid .price {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
}

.products-grid .price-action .icon-btn,
.product-grid .price-action .icon-btn {
    border-radius: 0 !important;
    background: var(--color-dark) !important;
    color: #fff !important;
}

.products-grid .price-action .icon-btn:hover,
.product-grid .price-action .icon-btn:hover {
    background: var(--color-primary) !important;
}

.status-badge,
.discount-badge {
    border-radius: 0 !important;
}

/* Product detail */
.product-page {
    max-width: 1280px !important;
    padding: 10rem 5% 6rem !important;
}

.product-container {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important;
    gap: 5rem !important;
}

.product-visual {
    top: 105px !important;
}

.product-main-image-container {
    min-height: 620px;
    padding: 2.5rem !important;
    border-radius: 0 !important;
    border: 1px solid var(--color-line) !important;
    background: #fff !important;
    box-shadow: 14px 14px 0 rgba(122, 31, 43, 0.12) !important;
}

.product-main-image-container::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(248,245,242,0.1)) !important;
}

.thumb {
    border-radius: 0 !important;
    border-color: var(--color-line) !important;
    background: #fff !important;
}

.thumb:hover,
.thumb.active {
    border-color: var(--color-primary) !important;
    background: rgba(122, 31, 43, 0.05) !important;
    box-shadow: none !important;
}

.product-details-inner {
    gap: 1.35rem !important;
}

.product-category {
    color: var(--color-primary) !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 2px !important;
}

.product-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(2.6rem, 4vw, 4.5rem) !important;
    letter-spacing: -0.035em;
    line-height: 0.98 !important;
}

.product-price {
    color: var(--color-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}

.stock-badge,
.note-tag {
    border-radius: 0 !important;
}

.note-tag {
    border-color: var(--color-line) !important;
    background: #fff !important;
}

.cod-form-container {
    padding: 1.75rem !important;
    border-radius: 0 !important;
    border: 1px solid var(--color-line) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.cod-form-container h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.7rem !important;
}

.form-control,
.quantity-selector,
.delivery-option-label {
    border-radius: 0 !important;
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.1) !important;
}

.delivery-option-label:has(input:checked) {
    border-color: var(--color-primary) !important;
    background: rgba(122, 31, 43, 0.05) !important;
}

.btn-submit {
    border-radius: 0 !important;
    background: var(--color-primary) !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
}

.btn-submit:hover:not(:disabled) {
    background: var(--color-primary-dark) !important;
}

.btn-whatsapp {
    border-radius: 0 !important;
}

.accordion-header {
    color: var(--color-dark) !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.4px;
}

.accordion-content-inner,
.trust-badge {
    color: var(--color-muted) !important;
}

.sticky-bottom-bar {
    border-radius: 0 !important;
    border-top: 1px solid var(--color-line);
}

.sticky-btn-commander {
    border-radius: 0 !important;
    background: var(--color-primary) !important;
    box-shadow: none !important;
    animation: none !important;
}

.sticky-btn-commander:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: none !important;
}

@media (max-width: 992px) {
    .product-page {
        padding-top: 8rem !important;
    }

    .product-main-image-container {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 8rem 5% 3rem !important;
    }

    .shop-container {
        padding-bottom: 5rem !important;
    }

    .product-page {
        padding: 7.5rem 4% 4rem !important;
    }

    .product-container {
        gap: 3rem !important;
    }

    .product-visual {
        position: relative !important;
        top: 0 !important;
    }

    .product-main-image-container {
        min-height: 360px;
        padding: 1.25rem !important;
        box-shadow: 8px 8px 0 rgba(122, 31, 43, 0.12) !important;
    }
}

/* =========================================
   Homepage smartphone layout
   ========================================= */

/* Editorial transition between the collection and brand story */
.homepage .brand-divider {
    position: relative;
    display: grid;
    grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1.7fr) minmax(90px, 0.55fr);
    align-items: center;
    gap: 2rem;
    min-height: 210px;
    padding: 3.5rem max(5%, calc((100vw - 1280px) / 2));
    overflow: hidden;
    background: #0d0d0d;
    color: #fff;
}

.homepage .brand-divider::before,
.homepage .brand-divider::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(122, 31, 43, 0.55);
    transform: rotate(45deg);
    pointer-events: none;
}

.homepage .brand-divider::before {
    left: -110px;
    top: 18px;
}

.homepage .brand-divider::after {
    right: -110px;
    bottom: 18px;
}

.homepage .brand-divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7a1f2b);
}

.homepage .brand-divider-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.homepage .brand-divider-kicker {
    display: block;
    margin-bottom: 0.8rem;
    color: #c48798;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.homepage .brand-divider-content p {
    max-width: 590px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.homepage .brand-divider-mark {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.12em;
    text-align: right;
}

.homepage .brand-divider-mark span {
    color: #7a1f2b;
}

@media (max-width: 768px) {
    .homepage {
        min-width: 0;
    }

    .homepage .announcement-bar {
        height: 34px;
        padding: 0 0.75rem;
        gap: 6px;
        font-size: 0.56rem;
        letter-spacing: 0.8px;
        white-space: nowrap;
    }

    .shop-page .announcement-bar {
        height: 34px;
        padding: 0 0.75rem;
        gap: 5px;
        font-size: 0.56rem;
        letter-spacing: 0.8px;
        line-height: 1;
        white-space: nowrap;
    }

    .product-page-shell .announcement-bar {
        height: 34px;
        font-size: 0.56rem;
        letter-spacing: 0.8px;
    }

    .homepage .announcement-bar svg {
        width: 14px !important;
        height: 14px !important;
    }

    .homepage .navbar {
        top: 34px !important;
        padding: 0.85rem 0 !important;
    }

    .homepage .nav-container {
        position: relative;
        padding: 0 4.5%;
    }

    .homepage .logo {
        font-size: 1.05rem;
        letter-spacing: 0.16em;
    }

    .homepage .nav-actions {
        gap: 0.15rem !important;
    }

    .homepage .icon-btn {
        width: 34px;
        height: 34px;
    }

    .homepage .nav-links {
        z-index: 20;
        gap: 0;
        padding-left: 4.5%;
        padding-right: 4.5%;
    }

    .homepage .nav-links.active {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .homepage .nav-links a {
        width: 100%;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--color-line);
        font-size: 0.68rem;
    }

    .homepage .nav-links a:last-child {
        border-bottom: 0;
    }

    .homepage .search-container.active {
        inset: 0;
        z-index: 30;
        width: 100%;
        height: 100%;
        padding: 0 4.5%;
        background: #fff;
    }

    .homepage .hero {
        padding: 8.8rem 5% 3.5rem !important;
        gap: 2.25rem;
        grid-template-columns: minmax(0, 1fr);
    }

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

    .homepage .eyebrow {
        margin-bottom: 0.9rem;
        font-size: 0.58rem;
        letter-spacing: 2.2px;
    }

    .homepage .hero h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 15vw, 4.4rem);
        line-height: 0.94;
        letter-spacing: -0.065em;
        overflow-wrap: anywhere;
    }

    .homepage .hero p {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .homepage .hero .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .homepage .hero-image {
        width: calc(100% - 8px);
        height: min(112vw, 470px);
        min-height: 0;
        margin-right: 8px;
        box-shadow: 8px 8px 0 rgba(127, 29, 53, 0.78);
    }

    .homepage .floating-card {
        right: 12px;
        left: 12px;
        bottom: 12px;
        padding: 0.8rem 0.9rem;
    }

    .homepage .floating-card p {
        font-size: 0.64rem;
    }

    .homepage .floating-card span {
        font-size: 0.62rem;
    }

    .homepage #avis {
        padding: 3.25rem 0 2.75rem !important;
    }

    .homepage #avis > div:nth-child(2) {
        padding: 0 4.5% !important;
    }

    .homepage #testi-track > div {
        align-items: flex-start;
        gap: 0.8rem !important;
        padding: 1.2rem !important;
    }

    .homepage #testi-track > div > div {
        min-width: 0;
    }

    .homepage #avis > div:first-child + div > div:first-child p {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }

    .homepage .testi-stats {
        gap: 0.65rem;
        padding: 1rem 4.5%;
    }

    .homepage .testi-stats > div[style] > div:first-child {
        font-size: 1.15rem !important;
    }

    .homepage .testi-stats > div[style] > div:last-child {
        font-size: 0.52rem !important;
        letter-spacing: 0.55px !important;
        line-height: 1.25;
    }

    .homepage .collection {
        padding: 4rem 5% 4.5rem;
    }

    .homepage .section-header {
        margin-bottom: 1.8rem;
        padding-bottom: 1.1rem;
    }

    .homepage .section-header h2 {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
        line-height: 1;
    }

    .homepage .section-header p {
        max-width: 100%;
        font-size: 0.8rem;
    }

    .homepage .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem 0.8rem;
    }

    .homepage .product-image {
        margin-bottom: 0.7rem;
    }

    .homepage .product-info h3 {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .homepage .product-info .notes {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.68rem;
        line-height: 1.35;
        margin-bottom: 0.45rem;
    }

    .homepage .price {
        font-size: 0.78rem;
    }

    .homepage .price-action .icon-btn {
        width: 28px;
        height: 28px;
    }

    .homepage .price-action .icon-btn svg {
        width: 14px;
        height: 14px;
    }

    .homepage .about {
        padding: 4.5rem 5%;
    }

    .homepage .about-grid {
        gap: 2.25rem;
    }

    .homepage .about-image {
        height: min(95vw, 380px);
    }

    .homepage .about-content {
        text-align: left;
    }

    .homepage .about-content h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .homepage .about-content p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .homepage .footer {
        padding: 4rem 5% 1.5rem;
    }

    .homepage .footer-grid {
        gap: 2.25rem;
    }

    .homepage .newsletter-form {
        gap: 0.6rem;
    }

    .homepage .newsletter-form input,
    .homepage .newsletter-form .btn-primary {
        min-height: 46px;
    }

    .homepage .footer-bottom > div[style] {
        gap: 1rem !important;
    }

    .homepage .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .homepage .hero h1 {
        font-size: 2.75rem;
    }

    .homepage .product-grid {
        gap: 1.5rem 0.6rem;
    }

    .homepage .testi-stats {
        gap: 0.45rem;
    }

    .homepage .testi-stats > div[style] > div:last-child {
        font-size: 0.48rem !important;
    }
}

@media (max-width: 768px) {
    .homepage .brand-divider {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: 260px;
        padding: 3.5rem 8%;
    }

    .homepage .brand-divider-line {
        width: 64px;
        margin: 0 auto;
        background: #7a1f2b;
    }

    .homepage .brand-divider-content p {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .homepage .brand-divider-mark {
        font-size: 2.4rem;
        text-align: center;
    }

    .homepage .brand-divider::before,
    .homepage .brand-divider::after {
        width: 110px;
        height: 110px;
    }

    .homepage .brand-divider::before {
        left: -78px;
        top: 12px;
    }

    .homepage .brand-divider::after {
        right: -78px;
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        height: 34px !important;
        min-height: 34px;
        padding: 0 0.65rem;
        white-space: nowrap !important;
        line-height: 1;
        text-align: center;
    }

    .homepage .product-title {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .homepage .hero h1,
    .shop-header h1 {
        overflow-wrap: anywhere;
    }
}

/* Final mobile navbar layout */
@media (max-width: 768px) {
    .homepage .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        height: 58px;
        padding: 0 !important;
    }

    .shop-page .navbar,
    .shop-page .navbar.scrolled,
    .product-page-shell .navbar,
    .product-page-shell .navbar.scrolled {
        position: fixed !important;
        top: 34px !important;
        left: 0;
        right: 0;
        width: 100%;
        height: 58px;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid var(--color-line);
        box-shadow: 0 5px 24px rgba(13, 13, 13, 0.08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .product-page-shell .announcement-bar {
        top: 0;
        left: 0;
        height: 34px;
        padding: 0 0.75rem;
        font-size: 0.56rem;
        letter-spacing: 0.8px;
        white-space: nowrap;
    }

    .shop-page .nav-container {
        width: 100%;
        height: 58px;
        min-height: 58px;
        padding: 0 4.5%;
    }

    .homepage .nav-container {
        width: 100%;
        height: 58px;
        min-height: 58px;
        padding: 0 4.5%;
    }

    .homepage .nav-links {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        padding: 0 4.5% !important;
        gap: 0 !important;
        opacity: 0;
        overflow: hidden;
        background: #ffffff;
        border-bottom: 1px solid var(--color-line);
        box-shadow: 0 14px 24px rgba(13, 13, 13, 0.08);
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    .homepage .nav-links.active {
        max-height: 240px !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        opacity: 1;
    }

    .homepage .nav-links a {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
        line-height: 1.2;
    }

    .homepage .mobile-menu-btn {
        display: flex !important;
        flex: 0 0 34px;
    }

    .homepage .search-container {
        position: static;
    }

    .homepage .search-container.active {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 4.5% !important;
        background: #ffffff !important;
    }

    .homepage .search-container.active .search-form {
        height: 100%;
        align-items: center;
    }

    .homepage .announcement-bar {
        display: none !important;
    }
}

/* Testimonials: light editorial section with source filters */
.homepage #avis {
    background: #ffffff !important;
    color: var(--color-ink);
    padding: 6rem 0 4.5rem !important;
}

.homepage #avis > div:nth-child(2) {
    max-width: 1040px !important;
}

.homepage #avis > div:nth-child(2) > h2 {
    color: var(--color-dark) !important;
}

.homepage .testimonial-filters {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.homepage .testimonial-filter {
    min-height: 34px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(13, 13, 13, 0.16);
    border-radius: 999px;
    background: transparent;
    color: #68615e;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.homepage .testimonial-filter:hover,
.homepage .testimonial-filter.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.homepage #testi-track {
    gap: 1rem !important;
    padding: 0.4rem 0.15rem 0.75rem !important;
}

.homepage #testi-track > div {
    background: #ffffff !important;
    border: 1px solid rgba(13, 13, 13, 0.12) !important;
    border-radius: 0 !important;
    box-shadow: 0 15px 35px rgba(13, 13, 13, 0.06);
}

.homepage #testi-track > div:nth-child(2) {
    border-top: 3px solid var(--color-primary) !important;
    background: #fff !important;
}

.homepage #testi-track > div p {
    color: #5d5754 !important;
}

.homepage #testi-track > div > div:last-child {
    color: var(--color-dark) !important;
}

.homepage #testi-track > div > div:last-child span {
    color: var(--color-primary) !important;
}

.homepage #testi-track img {
    border-color: var(--color-primary) !important;
}

.homepage #testi-dots {
    display: none !important;
}

.homepage .testi-stats {
    border-top-color: rgba(13, 13, 13, 0.1) !important;
}

.homepage .testi-stats > div[style] > div:first-child {
    color: var(--color-dark) !important;
}

.homepage .testi-stats > div[style] > div:first-child span {
    color: var(--color-primary) !important;
}

.homepage .testi-stats > div[style] > div:last-child {
    color: #827b77 !important;
}

.homepage .testi-sep {
    background: rgba(13, 13, 13, 0.14) !important;
}

@media (max-width: 768px) {
    .homepage #avis {
        padding: 4.5rem 0 3.5rem !important;
    }

    .homepage #avis > div:nth-child(2) {
        padding: 0 5% !important;
    }

    .homepage .testimonial-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.2rem 0.1rem 0.5rem;
        scrollbar-width: none;
    }

    .homepage .testimonial-filters::-webkit-scrollbar {
        display: none;
    }

    .homepage .testimonial-filter {
        flex: 0 0 auto;
        padding: 0.48rem 0.85rem;
        font-size: 0.62rem;
    }

    .homepage #testi-track > div {
        box-shadow: 0 10px 24px rgba(13, 13, 13, 0.06);
    }
}

/* Shop mobile correction: keep the filter and catalog in one column */
@media (max-width: 768px) {
    .shop-page .shop-header {
        padding: 8rem 5% 2.75rem !important;
    }

    .shop-page .shop-header h1 {
        font-size: clamp(2.5rem, 13vw, 4rem) !important;
    }

    .shop-page .shop-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: 0 5% 5rem !important;
    }

    .shop-page .mobile-filter-btn {
        min-height: 46px;
        margin-bottom: 1rem !important;
    }

    .shop-page .sidebar {
        width: 100%;
        min-width: 0;
        padding: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .shop-page .shop-products {
        min-width: 0;
        gap: 1.25rem;
    }

    .shop-page .top-search-wrapper {
        margin-bottom: 1.5rem !important;
    }

    .shop-page .top-search-input {
        min-width: 0;
        font-size: 0.9rem !important;
    }

    .shop-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.8rem 0.75rem !important;
    }

    .shop-page .product-card,
    .shop-page .product-info {
        min-width: 0;
    }

    .shop-page .product-info h3 {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .shop-page .shop-container {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .shop-page .products-grid {
        gap: 1.5rem 0.55rem !important;
    }

    .shop-page .product-info h3 {
        font-size: 0.78rem !important;
    }

    .shop-page .product-info .notes {
        font-size: 0.68rem !important;
    }
}

/* Product mobile correction: stack gallery, details and checkout */
@media (max-width: 992px) {
    .product-page-shell .product-page {
        width: 100%;
        max-width: 100% !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .product-page-shell .product-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 3rem !important;
    }

    .product-page-shell .product-visual,
    .product-page-shell .product-details {
        width: 100%;
        min-width: 0;
    }

    .product-page-shell .product-visual {
        position: relative !important;
        top: 0 !important;
    }

    .product-page-shell .product-main-image-container {
        width: 100%;
        min-height: min(72vw, 520px);
    }
}

@media (max-width: 768px) {
    .product-page-shell .product-page {
        padding-top: 7.5rem !important;
        padding-bottom: 4rem !important;
    }

    .product-page-shell .product-container {
        gap: 2.5rem !important;
    }

    .product-page-shell .product-main-image-container {
        min-height: min(92vw, 420px) !important;
        padding: 1rem !important;
        box-shadow: 8px 8px 0 rgba(122, 31, 43, 0.12) !important;
    }

    .product-page-shell .product-main-image-container img {
        max-height: min(78vw, 360px) !important;
    }

    .product-page-shell .product-title {
        font-size: clamp(2.2rem, 11vw, 3.4rem) !important;
        line-height: 1 !important;
    }

    .product-page-shell .product-price {
        font-size: 1.55rem !important;
    }

    .product-page-shell .product-meta {
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    .product-page-shell .cod-form-container {
        padding: 1.15rem !important;
    }

    .product-page-shell .form-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    .product-page-shell .delivery-options {
        flex-direction: column;
        gap: 0.65rem;
    }

    .product-page-shell .delivery-option-label {
        min-width: 0;
        width: 100%;
    }

    .product-page-shell .trust-badges {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .product-page-shell .sticky-bottom-bar {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        transform: none;
        padding: 0.55rem 0.65rem;
    }

    .product-page-shell .sticky-bar-content {
        gap: 0.65rem;
    }

    .product-page-shell .sticky-product-info {
        min-width: 0;
    }

    .product-page-shell .sticky-thumbnail {
        width: 42px;
        height: 42px;
    }

    .product-page-shell .sticky-btn-commander {
        min-width: 0;
        padding: 0.75rem 0.8rem !important;
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .product-page-shell .product-page {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .product-page-shell .product-main-image-container {
        min-height: 300px !important;
    }

    .product-page-shell .product-main-image-container img {
        max-height: 280px !important;
    }

    .product-page-shell .gallery-thumbnails {
        gap: 0.4rem;
    }

    .product-page-shell .product-title {
        overflow-wrap: anywhere;
    }

    .product-page-shell .sticky-product-info {
        display: none;
    }

    .product-page-shell .sticky-bar-content {
        justify-content: stretch;
    }

    .product-page-shell .sticky-btn-commander {
        width: 100%;
        flex: 1;
    }
}

/* Final theme overrides for the admin-selected homepage appearance */
.homepage.palette-burgundy {
    --bg-primary: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #7f1d35;
    --accent-hover: #5d1427;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(23, 23, 23, 0.08);
    --hero-bg: #111111;
}

.homepage.palette-cognac {
    --bg-primary: #f4e8d8;
    --text-main: #211a16;
    --text-muted: #725f52;
    --accent: #a76535;
    --accent-hover: #784422;
    --glass-bg: rgba(255, 249, 240, 0.92);
    --glass-border: rgba(86, 52, 31, 0.16);
    --hero-bg: #211a16;
}

.homepage.palette-olive {
    --bg-primary: #f1eee6;
    --text-main: #27302a;
    --text-muted: #687067;
    --accent: #65745b;
    --accent-hover: #46513f;
    --glass-bg: rgba(255, 255, 252, 0.9);
    --glass-border: rgba(39, 48, 42, 0.14);
    --hero-bg: #27302a;
}

.homepage.theme-atelier .hero {
    background: linear-gradient(120deg, var(--bg-primary), color-mix(in srgb, var(--accent) 13%, var(--bg-primary)));
}

.homepage.theme-atelier .product-card,
.homepage.theme-atelier .glass-card {
    border-radius: 2px;
}

.homepage.theme-organic .product-card,
.homepage.theme-organic .glass-card,
.homepage.theme-organic .about-image img {
    border-radius: 22px;
}

.homepage.theme-organic .hero-image img {
    border-radius: 34px;
}

.homepage .announcement-bar {
    background-color: var(--text-main);
    color: var(--accent);
    border-bottom-color: var(--glass-border);
}

.homepage .navbar,
.homepage .navbar.scrolled {
    background: var(--glass-bg);
    border-bottom-color: var(--glass-border);
}

.homepage .hero,
.homepage .collection,
.homepage .about {
    background-color: var(--bg-primary);
}

.homepage .hero {
    background: var(--hero-bg);
    color: #ffffff;
}

.homepage.theme-atelier .hero {
    background: linear-gradient(120deg, var(--hero-bg), color-mix(in srgb, var(--accent) 24%, var(--hero-bg)));
}

.homepage .product-card,
.homepage .glass-card {
    border-color: var(--glass-border);
    background-color: var(--glass-bg);
}

@media (max-width: 768px) {
    .homepage .announcement-bar {
        display: none !important;
    }

    .homepage .navbar,
    .homepage .navbar.scrolled,
    .homepage.shop-page .navbar,
    .homepage.shop-page .navbar.scrolled,
    .homepage.product-page-shell .navbar,
    .homepage.product-page-shell .navbar.scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        height: 58px;
        padding: 0 !important;
    }

    .homepage .navbar,
    .homepage .navbar.scrolled,
    .homepage .search-container.active {
        background: var(--glass-bg) !important;
    }

    .homepage .nav-links {
        background: var(--glass-bg);
        border-bottom-color: var(--glass-border);
    }
}

/* Apply the selected homepage appearance across the storefront */
.homepage.shop-page,
.homepage.product-page-shell {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.homepage.shop-page .shop-header,
.homepage.product-page-shell .product-page {
    background-color: var(--bg-primary);
}

.homepage.shop-page .shop-header h1,
.homepage.shop-page .filter-title,
.homepage.shop-page .product-info h3,
.homepage.product-page-shell .product-title,
.homepage.product-page-shell .cod-form-container h3 {
    color: var(--text-main);
}

.homepage.shop-page .shop-header p,
.homepage.shop-page .product-info .notes,
.homepage.product-page-shell .product-category,
.homepage.product-page-shell .product-description,
.homepage.product-page-shell .cod-form-container p {
    color: var(--text-muted);
}

.homepage.shop-page .sidebar,
.homepage.shop-page .product-card,
.homepage.product-page-shell .product-main-image-container,
.homepage.product-page-shell .cod-form-container {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.homepage.shop-page .top-search-input,
.homepage.shop-page .filter-section,
.homepage.product-page-shell .note-tag,
.homepage.product-page-shell .delivery-option-label {
    border-color: var(--glass-border);
    background: color-mix(in srgb, var(--glass-bg) 82%, transparent);
}

.homepage.shop-page .top-search-input:focus,
.homepage.shop-page .btn-filter:hover,
.homepage.shop-page .pagination-btn.active,
.homepage.product-page-shell .delivery-option-label:has(input:checked) {
    border-color: var(--accent);
}

.homepage.shop-page .btn-filter,
.homepage.product-page-shell .sticky-btn-commander,
.homepage.product-page-shell .btn-primary {
    background: var(--accent);
}

.homepage.shop-page .btn-filter:hover,
.homepage.product-page-shell .sticky-btn-commander:hover {
    background: var(--accent-hover);
}

.homepage.product-page-shell .product-main-image-container::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%);
}

.homepage.theme-atelier.shop-page .product-card,
.homepage.theme-atelier.product-page-shell .cod-form-container,
.homepage.theme-atelier.product-page-shell .product-main-image-container {
    border-radius: 2px;
}

.homepage.theme-organic.shop-page .product-card,
.homepage.theme-organic.shop-page .sidebar,
.homepage.theme-organic.product-page-shell .cod-form-container,
.homepage.theme-organic.product-page-shell .product-main-image-container {
    border-radius: 22px;
}

.homepage .footer-links .footer-nav-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 220px);
    padding: 0.7rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
    border-radius: 6px;
    color: var(--bg-primary);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.homepage .footer-links .footer-nav-button svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
    transition: transform .25s ease;
}

.homepage .footer-links .footer-nav-button:hover {
    border-color: var(--accent);
    color: var(--bg-primary);
    background: var(--accent);
    transform: translateX(4px);
}

.homepage .footer-links .footer-nav-button:hover svg {
    color: var(--bg-primary);
    transform: translate(2px, -2px);
}

.homepage.product-page-shell .sticky-bottom-bar {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--text-main) 18%, transparent), 0 0 0 1px var(--glass-border);
}

.homepage.product-page-shell .sticky-btn-commander {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--accent) 32%, transparent);
}

.homepage.product-page-shell .sticky-btn-commander:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-hover) 38%, transparent);
}

.homepage.product-page-shell .sticky-thumbnail {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* Editorial backdrop for the shop introduction */
.homepage.shop-page .shop-header {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 330px;
    max-width: none !important;
    margin: 0 !important;
    padding: 10rem max(5%, calc((100vw - 1280px) / 2)) 4.5rem !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: var(--hero-bg) !important;
    color: #ffffff;
}

.homepage.shop-page .shop-header::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(5%, calc((100vw - 1280px) / 2));
    z-index: -1;
    width: 2px;
    background: var(--accent);
    content: "";
    opacity: .9;
}

.homepage.shop-page .shop-header::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(115deg, transparent 0 58%, color-mix(in srgb, var(--accent) 16%, transparent) 58% 58.2%, transparent 58.2%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    content: "";
    opacity: .75;
}

.homepage.shop-page .shop-header h1 {
    position: relative;
    max-width: 760px;
    margin-left: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 3px 22px rgba(0,0,0,.16);
}

.homepage.shop-page .shop-header p {
    position: relative;
    margin-left: 1.5rem !important;
    color: rgba(255,255,255,.72) !important;
}

.homepage.shop-page .shop-container {
    padding-top: clamp(2.75rem, 5vw, 5.5rem) !important;
}

/* Full-width background for the featured collection section */
.homepage .collection {
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding-right: max(5%, calc((100vw - 1280px) / 2));
    padding-left: max(5%, calc((100vw - 1280px) / 2));
    background: linear-gradient(180deg, var(--bg-primary), color-mix(in srgb, var(--accent) 4%, var(--bg-primary))) !important;
}

.homepage .collection .section-header,
.homepage .collection .product-grid,
.homepage .collection > div:last-child {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .homepage.shop-page .shop-header {
        min-height: 280px;
        padding: 8.5rem 6% 3.5rem !important;
    }

    .homepage.shop-page .shop-header::before {
        left: 6%;
    }

    .homepage.shop-page .shop-header h1,
    .homepage.shop-page .shop-header p {
        margin-left: 1rem !important;
    }

    .homepage.shop-page .shop-container {
        padding-top: 2.5rem !important;
    }

    .homepage .collection {
        padding-right: 5%;
        padding-left: 5%;
    }
}
