@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg: #FDFBF7;
    --surface: #ffffff;
    --surface2: #F8F4F0;
    --border: #E8E0D8;
    --border2: #D4C8BC;
    --text: #2D1F1A;
    --text2: #8A7A6E;
    --text3: #B8A89C;
    --accent: #A67C52;
    --accent2: #8B6340;
    --accent-light: rgba(166, 124, 82, 0.12);
    --gold: #C4956A;
    --gold-light: rgba(196, 149, 106, 0.14);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.07);
    --radius: 12px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-nav a {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text2);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s;
}

.top-nav a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.top-wa {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    white-space: nowrap;
}

.top-wa:hover {
    background: #16a34a;
    transform: scale(1.03);
}

.top-wa svg {
    width: 17px;
    height: 17px;
    fill: #fff;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text);
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
    .top-nav { display: none; }
    .top-wa { display: none; }
    .mobile-menu-btn { display: flex; }
    .top-nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem;
        box-shadow: var(--shadow-md);
    }
    .top-nav.open a { width: 100%; padding: 0.75rem 1rem; }
}

/* ===== HERO BANNER ===== */
.hero {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: var(--surface2);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253,251,247,0.70) 0%, rgba(253,251,247,0.15) 50%, rgba(253,251,247,0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--text);
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0,0,0,0.04);
    max-width: 700px;
}

.hero-content .hero-line {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1rem auto;
    opacity: 0.6;
}

.hero-content .hero-sub {
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text2);
    font-weight: 400;
}

.hero-logo-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-logo {
    width: 95%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero { height: 280px; }
    .hero-logo-circle { width: 180px; height: 180px; }
    .hero-content .hero-sub { font-size: 0.65rem; letter-spacing: 3px; }
}

@media (max-width: 480px) {
    .hero { height: 240px; }
    .hero-logo-circle { width: 140px; height: 140px; }
}

/* ===== CATÁLOGO ===== */
.catalogo-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.catalogo-wrap .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.catalogo-wrap .section-header h2 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text2);
}

.catalogo-wrap .section-line {
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin: 1rem auto 0;
    opacity: 0.5;
}

.catalogo-contenedor {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* --- CATEGORY GRID --- */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px;
}

.cat-grid-card {
    width: calc((100% - 32px) / 3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem 1rem 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    position: relative;
}

.cat-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(166, 124, 82, 0.10);
    border-color: var(--accent);
}

.cat-grid-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light), 0 8px 32px rgba(166, 124, 82, 0.10);
    background: linear-gradient(135deg, #FFFAF5 0%, var(--surface) 80%);
}

/* Circular icon container */
.cat-grid-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-grid-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-grid-card:hover .cat-grid-icon-wrap {
    border-color: var(--accent);
    transform: scale(1.06);
}

.cat-grid-card:hover .cat-icon-img {
    transform: scale(1.12);
}

.cat-grid-card:hover .cat-grid-icon-wrap svg {
    transform: scale(1.1) rotate(-3deg);
}

.cat-grid-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
}

.cat-grid-count {
    font-size: 0.6rem;
    color: var(--text3);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

/* --- EXPANDED CONTENT --- */
.cat-grid-expanded {
    display: none;
    width: 100%;
    padding: 0 28px 28px;
    border-top: 2px solid var(--gold-light);
    background: linear-gradient(180deg, #FFFAF5 0%, var(--bg) 100%);
    border-radius: 12px;
    margin-bottom: 0;
}

.cat-exp-top {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    background: var(--accent-light);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cat-exp-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(166,124,82,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cat-exp-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-exp-icon-wrap .cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-exp-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-exp-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
    position: relative;
}

.cat-exp-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
}

.cat-exp-desc {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
    max-width: 600px;
    font-weight: 430;
}

.cat-exp-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text2);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.cat-exp-close:hover {
    background: var(--accent-light);
    color: var(--accent);
    transform: rotate(90deg);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .cat-grid { gap: 10px; padding: 16px; }
    .cat-grid-card { width: calc((100% - 10px) / 2); padding: 1.6rem 0.8rem 1.2rem; }
    .cat-grid-icon-wrap { width: 52px; height: 52px; }
    .cat-grid-icon-wrap svg { width: 22px; height: 22px; }
    .cat-grid-name { font-size: 0.65rem; letter-spacing: 1px; }
    .cat-grid-expanded { padding: 0 16px 16px; }
    .cat-exp-top { padding: 14px 16px; }
    .cat-exp-icon-wrap { width: 40px; height: 40px; }
    .cat-exp-icon-wrap svg { width: 18px; height: 18px; }
    .cat-exp-title { font-size: 1rem; }
    .tab-item { padding: 6px 14px; font-size: 0.62rem; }
    .tabs-menu { gap: 4px; }
}

@media (max-width: 480px) {
    .cat-grid { gap: 8px; padding: 12px; }
    .cat-grid-card { width: calc((100% - 8px) / 2); }
}

/* --- TABS --- */
.tabs-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 14px;
}

.tab-item {
    padding: 8px 18px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    background: var(--surface);
    border: 1px solid var(--border);
}

.tab-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.tab-item.activo {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(166, 124, 82, 0.25);
}

.tabs-contenido { padding: 0.5rem 0; }

.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.activo { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    animation: cardSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardSlideUp {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}



.product-card:hover {
    box-shadow: 0 10px 28px rgba(166, 124, 82, 0.08);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.product-card .img-wrap {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--surface2);
}

.product-card .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03));
    pointer-events: none;
}

.cat-icon-img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

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

.product-card .img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.product-card .product-info {
    flex: 1;
    padding: 0.65rem 0.75rem 0.75rem;
}


.product-card .product-price {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card .product-bcv {
    display: block;
    font-size: 0.6rem;
    color: var(--text2);
    margin-top: 0.15rem;
}

.product-card .product-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0.75rem 0.75rem;
    padding: 0.45rem 0.9rem;
    background: transparent;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 20px;
    transition: all 0.25s;
}
.product-card .product-wa:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .product-card .product-wa {
        margin: 0 0.5rem 0.5rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }
    .catalogo-wrap { padding: 2rem 0.75rem 2.5rem; }
    .tabs-menu { padding: 8px 10px 0; gap: 3px; }
    .tab-item { padding: 6px 12px; font-size: 0.6rem; }
    .tabs-contenido { padding: 0.75rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card .product-info { padding: 0.4rem 0.5rem 0.5rem; }


    .product-card .product-price { font-size: 0.75rem; }
}

/* --- SIDEBAR MODE --- */
.cat-grid.sidebar-mode {
    display: flex;
    padding: 0;
    gap: 0;
    min-height: 400px;
    animation: sidebarLayoutIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sidebarLayoutIn {
    0% { gap: 16px; padding: 28px; }
    100% { gap: 0px; padding: 0px; }
}

.cat-sidebar {
    width: 190px;
    flex-shrink: 0;
    padding: 16px 10px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface2);
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-sidebar.visible {
    opacity: 1;
    transform: translateX(0);
}

.cat-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, border-color 0.25s;
}

.cat-sidebar.visible .cat-sidebar-item {
    opacity: 1;
    transform: translateX(0);
}

.cat-sidebar-item:hover {
    background: var(--accent-light);
    border-color: var(--border);
}

.cat-sidebar-item.active {
    background: var(--accent-light);
    border-color: var(--accent);
}

.cat-sidebar-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-sidebar-icon .cat-icon-img,
.cat-sidebar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-sidebar-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-sidebar-name {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
}

.cat-main-content {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease 0.15s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.cat-main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cat-grid.sidebar-mode {
        flex-direction: column;
        animation: none;
    }
    .cat-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 4px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px);
    }
    .cat-sidebar.visible {
        transform: translateY(0);
    }
    .cat-sidebar-item {
        flex-shrink: 0;
        flex-direction: column;
        padding: 8px 12px;
        gap: 4px;
        min-width: 70px;
        text-align: center;
        transform: translateY(-8px);
    }
    .cat-sidebar.visible .cat-sidebar-item {
        transform: translateY(0);
    }
    .cat-sidebar-name {
        font-size: 0.55rem;
    }
    .cat-main-content {
        padding: 12px;
    }
}

/* ===== SEC-DESC / SEC-PRECIO ===== */
.sec-desc {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 0.5rem;
    text-align: center;
    padding: 0.6rem 1rem 0.4rem;
    background: var(--accent-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.sec-precio {
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 1rem;
    text-align: center;
}

.sec-precio strong {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
}

.tab-panel .sec-desc {
    background: transparent;
    border: none;
    text-align: left;
    padding: 0 0 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 0.76rem;
}

.tab-panel .sec-precio { text-align: left; }

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.footer-brand p {
    font-size: 0.76rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text2);
    margin-bottom: 0.8rem;
}

.footer-col a {
    display: block;
    font-size: 0.76rem;
    color: var(--text2);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.66rem;
    color: var(--text3);
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: none; }
    .footer-social { justify-content: center; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.whatsapp-float svg {
    display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox .lb-content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .lb-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lightbox .lb-btn {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: background 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox .lb-btn:hover { background: rgba(255,255,255,0.15); }
.lightbox .lb-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-wa {
    bottom: 3.8rem; left: 50%; transform: translateX(-50%);
    background: #25D366; width: 44px; height: 44px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}
.lightbox .lb-wa:hover { background: #20bd5a; }

.lightbox .lb-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    background: rgba(0,0,0,0.5);
    padding: 0.3rem 1rem;
    border-radius: 4px;
}
