/* Design Tokens */
:root {
    --primary-bg: #0A0A0A;
    --secondary-bg: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --gold: #C5A059;
    --gold-hover: #DBC48E;
    --cream: #F5F5DC;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --whatsapp-green: #25D366;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.layout-pending .navbar,
body.layout-pending .hero,
body.layout-pending section,
body.layout-pending footer,
body.layout-pending .whatsapp-float {
    opacity: 0;
}

body:not(.layout-pending) .navbar,
body:not(.layout-pending) .hero,
body:not(.layout-pending) section,
body:not(.layout-pending) footer,
body:not(.layout-pending) .whatsapp-float {
    opacity: 1;
    transition: opacity 0.16s ease;
}

/* Fix FOUC for logo */
.fouc-fix {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fouc-fix.loaded {
    opacity: 1;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--gold);
}

/* Buttons */
.btn-primary,
.btn-primary-large {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--gold);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary:hover,
.btn-primary-large:hover {
    background-color: var(--gold-hover);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-whatsapp-large {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: transparent;
    border: 2px solid var(--whatsapp-green);
    color: var(--whatsapp-green);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    margin-left: 1rem;
}

.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-green);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: 0.2rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0;
    width: fit-content;
}

.logo img {
    height: 38px;
    width: auto;
    display: block !important;
    visibility: visible !important;
    margin: 0;
    filter: brightness(1.1);
    transform-origin: center left;
}

.editable-image-wrapper {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    line-height: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a.btn-primary {
    color: var(--primary-bg) !important;
}

.nav-links a.btn-primary:hover {
    color: var(--primary-bg) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section — Slideshow */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Slideshow dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 20;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-white);
    opacity: 0.8;
}



/* Categories Section (Explore Ambientes Slider) */
.categories {
    padding: 8rem 0;
    background-color: var(--primary-bg);
}

/* text-center utility */
.text-center {
    text-align: center;
}

/* Category section title centered */
.categories .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}


.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: visible;
    /* Changed from hidden to allow box-shadow glow */
    /* 3D perspective for coverflow */
    perspective: 1200px;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    /* Custom snap logic: Re-enabled for manual scroll, disabled during JS animation */
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    /* Generous side padding so side cards are visible during coverflow and shadows have room */
    padding: 5rem 15% 7rem 15%;
    /* INCREASED top padding from 3rem to 5rem to stop box-shadow glow from being clipped! */
    scrollbar-width: none;
    width: 100%;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 280px;
    height: 380px;
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: center;
    /* CSS transition disabled on the outer card to allow JS to instantly jump without tearing logic to make it full Apple-style loop */
    background: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: visible;
    /* Allow inner scale to exceed boundaries slightly for a premium feel */
}

.category-card-frame {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
    transition: border-color 0.4s ease, border-width 0.4s ease, box-shadow 0.4s ease;
}

.category-card.cf-center .category-card-frame {
    border-color: var(--gold);
    border-width: 1.5px;
    /* Slightly thinner to look better when scaled */
    box-shadow: inset 0 0 15px rgba(197, 160, 89, 0.1);
}

.category-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Slower and smoother */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 1;
    background: #080808;
    isolation: isolate;
    contain: paint;
}

/* JS will apply .cf-center / .cf-side classes; no conflicting hover needed */
.category-card.cf-center {
    box-shadow: 0 20px 60px rgba(197, 160, 89, 0.35);
}

.category-card.cf-center:hover .category-card-inner {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.6);
    /* Enhanced lighting/glow as requested */
}


.slider-nav {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 48px;
    height: 48px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-nav:hover {
    background: var(--gold);
    color: var(--primary-bg);
}

.category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: none;
    transform-origin: center center;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.category-img {
    border-radius: 12px;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 6rem 1.5rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass to the card below if needed, though card has its own handler */
}

/* Background blur separated for text clarity and smooth edge */
/* Blur and mask are intentionally preserved during scale to avoid visual flickering */
.category-info::before {
    content: '';
    position: absolute;
    inset: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.85) 30%,
            rgba(0, 0, 0, 0.4) 65%,
            transparent 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    /* Force persistent rendering during rapid layout shifts */
    will-change: transform, backdrop-filter, mask-image;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.visual-editor-active .category-card-inner,
body.editor-active .category-card-inner {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-info h3,
.category-info p {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    /* Re-enable pointer events for text if needed */
}

.category-info h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-info p {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Products Section */
.products {
    padding: 8rem 0;
    background-color: var(--secondary-bg);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.filter-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--text-white);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--gold);
    color: var(--primary-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Product Card Improvements */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(197, 160, 89, 0.45);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.08) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(197, 160, 89, 0.045) 100%);
    box-shadow:
        0 0 0 1px rgba(197, 160, 89, 0.16),
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 34px rgba(197, 160, 89, 0.14);
}

.product-image {
    width: 100%;
    min-height: 250px;
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Lightbox Gallery Styles V2 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox.solo-view {
    padding: 0;
    overflow: auto;
    backdrop-filter: none;
    align-items: center;
    justify-content: center;
    touch-action: pinch-zoom pan-x pan-y;
}

.lightbox-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    width: 95%;
}

.lightbox-card {
    position: relative;
    background: #0a0a0a;
    border: 2px solid #c5a059;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.solo-view .lightbox-card {
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.lightbox.solo-view .lightbox-wrapper {
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.solo-view .lightbox-info,
.lightbox.solo-view .thumb-strip-wrap,
.lightbox.solo-view .lightbox-counter,
.lightbox.solo-view .lb-nav {
    display: none;
}

.lightbox.solo-view .lightbox-main-img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    background: transparent;
    cursor: zoom-in;
    touch-action: pinch-zoom pan-x pan-y;
    transition: width 0.28s ease, height 0.28s ease;
}

.lightbox.solo-view.alt-zoom-out .lightbox-main-img {
    cursor: zoom-out;
}

.lightbox.solo-view.zoomed-view .lightbox-card {
    display: block;
    text-align: center;
}

.lightbox.solo-view.zoomed-view .lightbox-main-img {
    max-width: none;
    max-height: none;
    display: block;
    margin: 0 auto;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid #c5a059;
    color: #c5a059;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.lightbox-main-img {
    width: 100%;
    height: 55vh;
    object-fit: contain;
    background: #000;
    cursor: zoom-in;
    transition: height 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(197, 160, 89, 0.1);
    border: none;
    color: #c5a059;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.lb-nav:hover {
    background: #c5a059;
    color: #000;
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}

.lightbox-info {
    padding: 1.2rem 2rem;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
}

.lightbox-info h3 {
    color: #c5a059;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.lightbox-info .info-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.lightbox-info .info-specs {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Thumbnail Strip V2 — CoverFlow */
.thumb-strip-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    perspective: 800px;
    overflow: hidden;
}

.thumb-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 20%;
    scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    min-width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.4;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s ease,
        filter 0.3s ease,
        border-color 0.3s ease;
    filter: grayscale(0.6);
    transform-origin: center center;
    flex-shrink: 0;
    will-change: transform, opacity;
}

.thumb-item:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

.thumb-item.active,
.thumb-item.cf-center {
    border-color: #c5a059;
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.15) !important;
}

.thumb-nav {
    background: none;
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: #c5a059;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb-nav:hover {
    background: rgba(197, 160, 89, 0.2);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2100;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lightbox.solo-view .lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    opacity: 1 !important;
    transition: none;
    width: 46px;
    height: 46px;
    line-height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .lightbox-main-img {
        height: 40vh;
    }

    .lightbox-wrapper {
        padding: 10px;
    }

    .lightbox-info h3 {
        font-size: 1.4rem;
    }
}

/* Product Card Detail Layout */
.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 4px 0;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    --wa-bottom: 30px;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
}

.whatsapp-float,
.whatsapp-float:hover,
.whatsapp-float:active,
.whatsapp-float:visited {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.whatsapp-float i {
    text-decoration: none !important;
    border: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }
}

.product-category {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-buy {
    width: min(100%, 220px);
    align-self: center;
    margin: 0 auto;
    padding: 0.8rem;
    background-color: var(--gold);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.product-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    overflow: hidden;
    white-space: nowrap;
}

.product-consult-btn i {
    flex: 0 0 auto;
}

.product-consult-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.btn-buy:hover {
    background-color: var(--gold-hover);
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--primary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--gold);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--gold);
}

/* Footer Styles Redesign */
.footer {
    background-color: #050505;
    padding: 6rem 0 4rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo-small {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 1;
    filter: brightness(1.1) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    margin: 0 auto 0.5rem !important;
    display: block;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: var(--text-white);
    color: var(--primary-bg);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.social-icon i {
    width: 1.35em;
    min-width: 1.35em;
    display: inline-block;
    line-height: 1;
    text-align: center;
    margin: 0 !important;
    transform: none !important;
}

.social-icon .fa-facebook-f {
    width: 1.35em;
    min-width: 1.35em;
    text-align: center;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--text-white);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-secondary-links {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    line-height: 1.2;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}


.footer-secondary-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.7rem;
    /* Smaller as requested */
    transition: var(--transition);
    opacity: 0.8;
    line-height: 1.2;
    display: inline-block;
}

.footer-secondary-separator {
    color: var(--text-gray);
    font-size: 0.7rem;
    opacity: 0.55;
    line-height: 1.2;
    display: inline-block;
}

.footer-links a:hover,
.footer-secondary-links a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.7rem;
    /* Matches requested size */
    opacity: 0.6;
    margin-top: 1rem;
    line-height: 1.8;
    text-align: center;
}

.footer-contact-details {
    display: flex;
    gap: 2rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: -1rem;
}

.footer-contact-details i {
    color: var(--gold);
    margin-right: 5px;
}

@media (max-width: 600px) {

    .footer-links,
    .footer-contact-details {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-secondary-links {
        flex-direction: row;
        gap: 0.45rem;
        flex-wrap: nowrap;
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-whatsapp-large {
        margin-left: 0;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.4s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin specific session styles */
.session-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 30;
}

.edit-session-btn,
.delete-session-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.edit-session-btn {
    background: #c5a059;
    color: #000;
}

.edit-session-btn:hover {
    background: #dbc48e;
}

.delete-session-btn {
    background: rgba(229, 85, 85, 0.9);
    color: #fff;
}

.delete-session-btn:hover {
    background: #f44;
}

.btn-primary:hover {
    background-color: #dbc48e;
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.thumb-item {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--gold);
}

.lightbox-img-container {
    position: relative;
    max-width: 90%;
    margin-bottom: 2rem;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===================================================
   VISUAL EDITOR STYLES (Controller Style)
=================================================== */
#editor-properties {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}

#editor-properties * {
    box-sizing: border-box;
}

#editor-properties.collapsed {
    transform: translateX(calc(100% - 40px));
}

#panel-toggle {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

#panel-toggle:hover {
    background: #e5c079;
    left: -20px;
}

#editor-properties.collapsed #panel-toggle i {
    transform: none;
}

#editor-properties h4 {
    color: var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.prop-group {
    margin-bottom: 1.2rem;
}

.prop-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.prop-group input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

.prop-val {
    float: right;
    color: var(--gold);
    font-size: 0.8rem;
}

/* Draggable & Selected Styles */
.visual-editor-active .draggable-section:hover,
.visual-editor-active .draggable-item:hover,
.editor-active .draggable-section:hover,
.editor-active .draggable-item:hover {
    outline: 2px dashed rgba(197, 160, 89, 0.4);
    outline-offset: 2px;
}

/* Category Slider Grids */
.visual-editor-active .category-card,
.editor-active .category-card {
    position: relative;
    border: 1px dashed rgba(197, 160, 89, 0.2);
}

.visual-editor-active .category-slide:hover,
.editor-active .category-slide:hover {
    border: 1px dashed var(--gold);
    z-index: 50;
}

.selected-for-edit {
    outline: 2px dashed var(--gold) !important;
    outline-offset: 2px !important;
    position: relative;
    z-index: 100;
}

body.visual-editor-active #contact .selected-for-edit,
body.editor-active #contact .selected-for-edit {
    z-index: 5;
}

body.visual-editor-active #contact .draggable-item,
body.editor-active #contact .draggable-item {
    position: relative;
    z-index: 20;
}

body.visual-editor-active #contact .draggable-item.selected-for-edit,
body.editor-active #contact .draggable-item.selected-for-edit {
    z-index: 40;
}

body.visual-editor-active #contact #footer-center-content.selected-for-edit,
body.editor-active #contact #footer-center-content.selected-for-edit {
    z-index: 5 !important;
}

.editor-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.editor-actions-grid .topbar-btn {
    font-size: 0.7rem;
    padding: 0.4rem;
}

.img-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    padding: 10px;
    text-align: center;
    flex-direction: column;
}

.img-edit-overlay:hover {
    opacity: 1;
}

#guide-v,
#guide-h {
    position: fixed;
    background-color: var(--gold);
    z-index: 9998;
    display: none;
    pointer-events: none;
}

#guide-v {
    width: 1px;
    height: 100vh;
    top: 0;
}

#guide-h {
    height: 1px;
    width: 100vw;
    left: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    --wa-bottom: 25px;
    bottom: var(--wa-bottom);
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: white !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        --wa-bottom: 15px;
        bottom: var(--wa-bottom);
        right: 15px;
    }
}

/* WhatsApp Editor Overlay */
.whatsapp-edit-overlay {
    position: absolute;
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.editor-active #whatsapp-global {
    display: none !important;
}

body.editor-active #whatsapp-global:hover .whatsapp-edit-overlay {
    display: flex;
    opacity: 1;
    left: -130px;
}

@keyframes pulse-border {
    0% {
        border-color: var(--gold);
    }

    50% {
        border-color: white;
    }

    100% {
        border-color: var(--gold);
    }
}

/* Sortable Polish */
.sortable-ghost,
.drag-placeholder {
    opacity: 0.3 !important;
    transform: scale(0.9) !important;
    filter: grayscale(1) !important;
}

.sortable-chosen {
    cursor: grabbing !important;
}

.sortable-drag {
    opacity: 1 !important;
    z-index: 1000000 !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8) !important;
    cursor: grabbing !important;
    transition: none !important;
}

.is-dragging-card .category-card {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.3s ease !important;
}

.admin-kanban-track {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
    perspective: none !important;
}

.admin-kanban-track .category-card {
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    margin: 0 !important;
    flex: 0 0 280px;
}

.admin-kanban-track .add-session-card {
    flex: 0 0 280px;
    min-width: 280px;
    cursor: default;
}

.admin-kanban-track .category-card:not(.add-session-card) {
    cursor: grab;
}

/* Custom drag placeholder */
.drag-placeholder {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(197, 160, 89, 0.08);
    border: 2px dashed rgba(197, 160, 89, 0.35);
    transition: none;
}

body.dragging-card {
    cursor: grabbing !important;
    user-select: none;
}

/* Editable text visual feedback */
[contenteditable="true"] {
    cursor: text !important;
}

[contenteditable="true"]:hover {
    background: rgba(197, 160, 89, 0.05);
    border-radius: 4px;
}

[contenteditable="true"]:focus {
    background: rgba(197, 160, 89, 0.1);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
    border-radius: 4px;
}

/* ============================================================
   MOBILE OPTIMIZATIONS — max-width: 768px
   Desktop layout is completely untouched above this block.
   ============================================================ */
@media (max-width: 768px) {

    /* ── Container padding ─────────────────────────── */
    .container {
        padding: 0 1rem;
    }

    /* ── Navbar / Mobile Drawer ────────────────────── */
    .navbar {
        padding: 0.3rem 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 2000;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(197, 160, 89, 0.2);
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        width: 100%;
    }

    .nav-links a.btn-primary {
        margin-top: 1.5rem;
        display: block;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        cursor: pointer;
        border-radius: 8px;
        background: rgba(197, 160, 89, 0.08);
        border: 1px solid rgba(197, 160, 89, 0.25);
        color: var(--gold);
        z-index: 2001;
        transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-btn:active {
        background: rgba(197, 160, 89, 0.2);
    }

    /* Overlay behind the drawer */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1999;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* ── Hero Section ──────────────────────────────── */
    .hero {
        height: 100dvh;
        min-height: 500px;
        padding-top: 64px;
    }

    .hero-overlay {
        background: linear-gradient(160deg,
                rgba(0, 0, 0, 0.85) 0%,
                rgba(0, 0, 0, 0.55) 60%,
                rgba(0, 0, 0, 0.3) 100%);
    }

    .hero-content {
        max-width: 100%;
        padding: 0 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        opacity: 0.85;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .btn-primary-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-whatsapp-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin-left: 0;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* ── Categories / Carousel ─────────────────────── */
    .categories {
        padding: 4rem 0 3rem;
    }

    .categories .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .slider-wrapper {
        display: block;
        gap: 0;
        perspective: none;
        overflow: visible;
    }

    .slider-track {
        box-sizing: border-box;
        width: 100%;
        padding: 1.5rem max(16px, calc((100vw - min(74vw, 280px)) / 2)) 4rem;
        gap: 1rem;
        scroll-snap-type: none;
        scroll-padding-inline: max(16px, calc((100vw - min(74vw, 280px)) / 2));
        overscroll-behavior-x: contain;
        touch-action: pan-y;
    }

    .category-card {
        flex: 0 0 min(74vw, 280px);
        min-width: 0;
        max-width: none;
        height: 320px;
    }

    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        flex-shrink: 0;
        /* Always show arrows on mobile — user expects them */
        display: flex !important;
    }

    .slider-nav.prev {
        left: 12px;
    }

    .slider-nav.next {
        right: 12px;
    }

    .category-info h3 {
        font-size: 1.25rem;
    }

    .category-info p {
        font-size: 0.75rem;
    }

    /* ── Products Section ──────────────────────────── */
    .products {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        min-height: 220px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .btn-buy {
        width: min(100%, 220px);
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* ── About Section ─────────────────────────────── */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        box-shadow: 10px 10px 0 var(--gold);
        border-radius: 8px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-features {
        gap: 1rem;
    }

    .feature i {
        font-size: 1.1rem;
        min-width: 24px;
    }

    /* ── Lightbox ──────────────────────────────────── */
    .lightbox {
        padding: 0;
        align-items: flex-end;
    }

    .lightbox-wrapper {
        width: 100%;
        max-width: 100%;
        gap: 0;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .lightbox-card {
        border-radius: 20px 20px 0 0;
        border-width: 1px;
        max-width: 100%;
        width: 100%;
        flex: 1;
        overflow-y: auto;
    }

    .lightbox-main-img {
        height: 42dvh;
    }

    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 2rem;
        position: absolute;
    }

    .lightbox-counter {
        top: 12px;
        left: 12px;
        font-size: 0.75rem;
    }

    .lb-prev {
        left: 6px;
        width: 40px;
        height: 40px;
    }

    .lb-next {
        right: 6px;
        width: 40px;
        height: 40px;
    }

    .lightbox-info {
        padding: 1rem 1.2rem;
    }

    .lightbox-info h3 {
        font-size: 1.2rem;
    }

    .lightbox-info .info-price {
        font-size: 1.1rem;
    }

    .thumb-strip-wrap {
        max-width: 100%;
        padding: 0 0 env(safe-area-inset-bottom, 0.5rem);
    }

    .thumb-strip {
        padding: 10px 15%;
        gap: 8px;
    }

    .thumb-item {
        min-width: 64px;
        height: 64px;
    }

    /* Touch swipe hint for lightbox on mobile */
    .lightbox-swipe-hint {
        display: block;
        text-align: center;
        font-size: 0.7rem;
        opacity: 0.45;
        padding: 0.3rem 0;
        color: var(--text-gray);
        letter-spacing: 0.05em;
    }

    /* ── Footer ────────────────────────────────────── */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-center {
        gap: 1.2rem;
    }

    .footer-social {
        gap: 1.2rem;
    }

    .social-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-contact-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        align-items: center;
        margin-top: 0;
    }

    /* ── Floating WhatsApp ─────────────────────────── */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        --wa-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        bottom: var(--wa-bottom);
        right: 16px;
    }
}

/* ── Extra-small screens (iPhone SE, older Androids) ── */
@media (max-width: 390px) {
    .hero h1 {
        font-size: 2rem;
    }

    .category-card {
        flex-basis: min(72vw, 260px);
        height: 280px;
    }

    .btn-primary-large,
    .btn-whatsapp-large {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

/* ── Tablet portrait (769px – 1024px) ─────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .category-card {
        min-width: 240px;
        height: 340px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }
}

/* ── Safe area insets (iPhone notch / home indicator) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    @media (max-width: 768px) {
        .nav-links {
            padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        }
    }
}
