@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
    --bg: #fffafc;
    --bg-soft: #fff3f8;
    --surface: #ffffff;
    --surface-2: #fff7fb;
    --text: #24141f;
    --muted: #746673;
    --muted-2: #9a8c98;
    --line: rgba(36, 20, 31, 0.08);
    --line-strong: rgba(36, 20, 31, 0.14);
    --primary: #ff4da6;
    --primary-2: #ff7fbe;
    --primary-dark: #d92d84;
    --accent: #ffd6e8;
    --success: #148a4b;
    --success-bg: #eefbf3;
    --danger: #c81e4f;
    --danger-bg: #fff1f4;
    --warning: #b96a00;
    --warning-bg: #fff5e8;
    --shadow-sm: 0 8px 24px rgba(17, 12, 16, 0.06);
    --shadow-md: 0 16px 40px rgba(17, 12, 16, 0.10);
    --shadow-lg: 0 30px 70px rgba(17, 12, 16, 0.14);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --container: 1240px;
}

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,77,166,0.08), transparent 26%),
        linear-gradient(180deg, #fffafc 0%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open{
    overflow: hidden;
}

img{
    max-width: 100%;
    display: block;
}

a{
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select{
    font: inherit;
}

button{
    cursor: pointer;
}

main{
    display: block;
}

.container{
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-buy{
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.btn-primary{
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 16px 30px rgba(255,77,166,0.24);
}

.btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255,77,166,0.28);
}

.btn-secondary{
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line-strong);
}

.btn-secondary:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,77,166,0.22);
    color: var(--primary-dark);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(6px);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-outline:hover{
    background: #fff;
    transform: translateY(-2px);
}

.btn-buy{
    background: #151218;
    color: #fff;
    box-shadow: 0 16px 30px rgba(0,0,0,0.14);
}

.btn-buy:hover{
    transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-buy:disabled{
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.visually-hidden{
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* HEADER */
.header{
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(36,20,31,0.06);
    box-shadow: 0 8px 22px rgba(17,12,16,0.04);
}

.logo{
    display: flex;
    align-items: center;
}

.logo a,
.logo{
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    text-decoration: none;
}

.nav{
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a{
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.nav a:hover,
.nav a.active{
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.nav a::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    opacity: 0;
    transform: scaleX(.65);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
}

.nav a:hover::after,
.nav a.active::after{
    opacity: 1;
    transform: scaleX(1);
}

.nav-link-disabled{
    opacity: .9;
}

.header-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255,77,166,0.16);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    pointer-events: auto;
}

.cart-icon:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,77,166,0.28);
    background: #fffafd;
}

.cart-icon:active{
    transform: translateY(0);
}

.cart-icon:focus-visible{
    box-shadow: 0 0 0 4px rgba(255,77,166,0.14), var(--shadow-md);
    border-color: rgba(255,77,166,0.34);
}

.cart-icon *{
    pointer-events: none;
}

.cart-icon-emoji{
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#cart-count{
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(255,77,166,.28);
    pointer-events: none;
}

.cart-count-bump{
    animation: cartBump .32s ease;
}

@keyframes cartBump{
    0%{ transform: scale(1); }
    40%{ transform: scale(1.25); }
    100%{ transform: scale(1); }
}

/* PAGE */
.shop-page{
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    padding-bottom: 48px;
}

.hero{
    position: relative;
    overflow: hidden;
    margin: 26px 0 22px;
    border-radius: 30px;
    padding: 54px 26px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.6), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,77,166,0.18), transparent 28%),
        linear-gradient(135deg, #fff7fb 0%, #fff0f7 48%, #ffffff 100%);
    border: 1px solid rgba(255,77,166,0.10);
    box-shadow: var(--shadow-md);
}

.hero-inner{
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-chip{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    color: var(--primary-dark);
    border: 1px solid rgba(255,77,166,0.16);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.hero h1{
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero p{
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.shop-toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 26px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(36,20,31,0.06);
    box-shadow: var(--shadow-sm);
}

.toolbar-left h2{
    margin: 0 0 4px;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.toolbar-left p{
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* FILTROS */
.shop-filters{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 22px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(36,20,31,0.06);
    box-shadow: var(--shadow-sm);
}

.search-wrap{
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input{
    flex: 1;
    min-width: 240px;
    border: 1px solid rgba(36,20,31,0.10);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus{
    border-color: rgba(255,77,166,0.38);
    box-shadow: 0 0 0 4px rgba(255,77,166,0.10);
}

.chips-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip{
    border: 1px solid rgba(36,20,31,0.08);
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.filter-chip:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-chip.active{
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(255,77,166,0.20);
}

.section-anchor{
    scroll-margin-top: 100px;
}

.products-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.products-meta p{
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.products-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.empty-products{
    grid-column: 1 / -1;
    padding: 46px 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
    border: 1px dashed rgba(255,77,166,0.22);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-products h3{
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.empty-products p{
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.product-card{
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(36,20,31,0.06);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,77,166,0.18);
}

.product-media{
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.12;
    background: #f8f4f7;
}

.product-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-card:hover .product-media img{
    transform: scale(1.05);
}

.product-badge{
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(255,77,166,.24);
}

.product-badge.dynamic{
    background: linear-gradient(135deg, #151218, #39313a);
}

.product-category{
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.84);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    max-width: max-content;
}

.product-category.is-new{
    color: var(--success);
    background: rgba(238,251,243,.95);
}

.product-category.is-sale{
    color: var(--danger);
    background: rgba(255,241,244,.95);
}

.product-category.is-sold{
    color: #68717c;
    background: rgba(243,244,246,.96);
}

.product-overlay{
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.product-stock{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
}

.product-body{
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px;
    flex: 1;
}

.product-title{
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.product-description{
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom{
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.price{
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-actions .btn-primary,
.product-actions .btn-secondary{
    padding: 11px 14px;
    font-size: 0.9rem;
}

.product-hidden{
    display: none !important;
}

/* OFERTAS Y NUEVOS */
.offers-box{
    margin: 24px 0 26px;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff8fb 0%, #fff2f8 100%);
    border: 1px solid rgba(255,77,166,0.10);
    box-shadow: var(--shadow-sm);
}

.offers-box h2{
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.offers-box p{
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.new-products-banner{
    display: none;
    position: sticky;
    top: 86px;
    z-index: 999;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #151218, #2c1d28);
    color: #fff;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.new-products-banner.show{
    display: flex;
}

.new-products-banner strong{
    font-size: 0.98rem;
}

.new-products-banner button{
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #24141f;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

/* PAGINACIÓN */
.products-pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.page-btn{
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(36,20,31,0.08);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-btn:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.page-btn.active{
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-color: transparent;
}

/* TOAST */
.toast{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100000;
    min-width: 250px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    background: #151218;
    box-shadow: var(--shadow-lg);
    animation: toastIn .28s ease;
    font-weight: 600;
    line-height: 1.45;
}

.toast.toast-success{
    background: linear-gradient(135deg, #121212, #2a1c25);
}

.toast.toast-error{
    background: linear-gradient(135deg, #8b1237, #c81e4f);
}

.toast.toast-info{
    background: linear-gradient(135deg, #1d1a22, #3a2d3b);
}

@keyframes toastIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* CART */
.cart-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 9980;
}

.cart-overlay.active{
    opacity: 1;
    visibility: visible;
}

.cart-drawer{
    position: fixed;
    top: 0;
    right: -390px;
    z-index: 9998;
    width: min(390px, 100%);
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(36,20,31,0.08);
    box-shadow: -20px 0 50px rgba(0,0,0,0.10);
    transition: right .28s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open{
    right: 0 !important;
}

.cart-header{
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(36,20,31,0.08);
    background: rgba(255,255,255,0.98);
}

.cart-header h3{
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cart-close{
    width: 38px;
    height: 38px;
    border: 1px solid rgba(36,20,31,0.10);
    background: #fff;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.cart-close:hover{
    transform: translateY(-1px);
    background: #fff7fb;
    box-shadow: var(--shadow-md);
}

.cart-close:active{
    transform: translateY(0);
}

.cart-items,
#cart-items{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 8px;
}

.cart-item{
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(36,20,31,0.06);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cart-item img{
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f5f7;
}

.cart-item-info{
    min-width: 0;
}

.cart-item-info h4{
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.cart-item-info p{
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cart-item-controls{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}

.qty-btn{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 10px;
    background: #f4f1f4;
    color: #24141f;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, background .2s ease;
}

.qty-btn:hover{
    transform: translateY(-1px);
    background: #ece6eb;
}

.qty-value{
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove{
    border: none;
    background: transparent;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px;
    cursor: pointer;
}

.cart-empty{
    color: var(--muted);
    text-align: center;
    padding: 34px 12px;
    line-height: 1.7;
}

.cart-footer{
    position: sticky;
    bottom: 0;
    border-top: 1px solid rgba(36,20,31,0.08);
    padding: 16px;
    background: #fff;
    z-index: 2;
}

.cart-total{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.cart-checkout-btn{
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.cart-clear-btn{
    width: 100%;
}

.cart-footer .btn-primary,
.cart-footer .btn-buy,
.cart-footer .btn-secondary{
    width: 100%;
    margin-top: 10px;
}

/* FOOTER */
.footer{
    margin-top: 28px;
    background: #120d12;
    color: #fff;
    padding: 62px 20px 20px;
}

.footer-container{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer h2{
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.5rem;
}

.footer p{
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-newsletter h4{
    margin: 0 0 15px;
    font-size: 1rem;
}

.footer-links ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li{
    margin-bottom: 10px;
}

.footer-links a{
    color: rgba(255,255,255,0.76);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover{
    color: #fff;
}

.socials{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.socials a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.socials a:hover{
    background: rgba(255,255,255,0.14);
}

.footer-newsletter form{
    margin-top: 14px;
}

.footer-newsletter input{
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    outline: none;
}

.footer-newsletter button{
    width: 100%;
}

.footer-bottom{
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.56);
}

/* MODAL */
.modal{
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 20, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.modal-content{
    position: relative;
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: modalFadeIn .28s ease;
}

@keyframes modalFadeIn{
    from{
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: transform .2s ease, background .2s ease;
}

.close-modal:hover{
    transform: scale(1.06);
    background: #fff;
}

.modal-body{
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 560px;
}

.modal-gallery{
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 166, 0.10), transparent 35%),
        linear-gradient(180deg, #fff8fc 0%, #ffffff 100%);
    border-right: 1px solid rgba(0,0,0,0.06);
}

.modal-main-media{
    width: 100%;
    aspect-ratio: 4 / 4.8;
    border-radius: 22px;
    overflow: hidden;
    background: #f7f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.modal-main-media img,
.modal-main-media video,
.modal-main-image,
.modal-main-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-thumbs{
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-thumb{
    width: 92px;
    height: 92px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.modal-thumb img,
.modal-thumb video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-thumb:hover{
    transform: translateY(-2px);
}

.modal-thumb.active{
    border-color: #ff4da6;
    box-shadow: 0 12px 26px rgba(255,77,166,0.22);
}

.modal-thumb-video{
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-thumb-play{
    position: absolute;
    inset: auto auto 8px 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-info{
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.modal-meta-top{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.modal-badge,
.modal-category,
.modal-availability{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.modal-badge{
    background: linear-gradient(135deg, #ff4da6, #ff85c2);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255,77,166,.24);
}

.modal-category{
    background: #f6f1ff;
    color: #6e3cbc;
}

.modal-category.is-new{
    background: #eefaf2;
    color: #148a4b;
}

.modal-category.is-sale{
    background: #fff0f7;
    color: #c02474;
}

.modal-category.is-sold{
    background: #f3f4f6;
    color: #6b7280;
}

.modal-availability.in-stock{
    background: #effcf4;
    color: #10814a;
}

.modal-availability.out-of-stock{
    background: #fff1f2;
    color: #be123c;
}

#modal-title{
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 2vw, 2.35rem);
    line-height: 1.1;
    color: #1b1020;
}

#modal-description{
    margin: 0 0 18px;
    color: #5b5561;
    font-size: 1rem;
    line-height: 1.75;
}

.modal-price{
    font-size: 2rem;
    font-weight: 800;
    color: #ff4da6;
    margin-bottom: 22px;
    letter-spacing: -.02em;
}

.modal-actions{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.modal-link{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b42372;
    text-decoration: none;
    font-weight: 700;
    margin-top: 2px;
}

.modal-link:hover{
    text-decoration: underline;
}

.footer-contact-anchor{
    scroll-margin-top: 100px;
}

/* RESPONSIVE */
@media (max-width: 900px){
    .modal-content{
        max-width: 720px;
    }

    .modal-body{
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .modal-gallery{
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 22px;
    }

    .modal-info{
        padding: 24px 22px 26px;
    }

    .modal-main-media{
        aspect-ratio: 1 / 1.08;
    }
}

@media (max-width: 768px){
    .header{
        padding: 14px 16px;
    }

    .shop-page{
        width: min(var(--container), calc(100% - 20px));
    }

    .hero{
        padding: 34px 18px;
        border-radius: 24px;
    }

    .shop-toolbar,
    .shop-filters,
    .offers-box{
        padding: 16px;
        border-radius: 20px;
    }

    .products-grid{
        gap: 18px;
    }

    .product-body{
        padding: 16px;
    }

    .cart-drawer{
        width: min(100%, 360px);
    }

    .footer{
        padding-top: 48px;
    }

    .new-products-banner{
        top: 78px;
    }
}

@media (max-width: 640px){
    .nav{
        display: none;
    }
}

@media (max-width: 560px){
    .modal{
        padding: 12px;
    }

    .modal-content{
        border-radius: 20px;
    }

    .modal-gallery,
    .modal-info{
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-thumb{
        width: 74px;
        height: 74px;
        border-radius: 14px;
    }

    .modal-actions{
        flex-direction: column;
    }

    .btn-primary,
    .btn-buy{
        width: 100%;
        min-width: 100%;
    }

    #modal-title{
        font-size: 1.5rem;
    }

    .modal-price{
        font-size: 1.7rem;
    }

    .product-bottom{
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions{
        width: 100%;
        flex-direction: column;
    }

    .product-actions .btn-primary,
    .product-actions .btn-secondary{
        width: 100%;
    }

    .footer-bottom{
        flex-direction: column;
    }

    .toast{
        right: 12px;
        left: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: none;
    }

    .cart-drawer{
        width: 100%;
        right: -100%;
    }

    .cart-item{
        grid-template-columns: 60px 1fr;
    }

    .cart-item img{
        width: 60px;
        height: 60px;
    }

    .cart-item-remove{
        grid-column: 2 / 3;
        justify-self: start;
        padding-left: 0;
    }

    .search-input{
        min-width: 100%;
    }

    .new-products-banner{
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SHOP PATCH 5.1 */
@media (max-width: 640px){
    .nav{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
    .header{flex-wrap:wrap;justify-content:center}
}

/* Production hardening additions */
.modal-main-iframe{
    width:100%;
    min-height:460px;
    border:0;
    border-radius:22px;
    background:#000;
}

.modal-size-title{
    font-size:.92rem;
    font-weight:800;
    margin:18px 0 10px;
}

.modal-size-list{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.modal-size-btn{
    border:1px solid rgba(36,20,31,.12);
    background:#fff;
    padding:10px 14px;
    border-radius:12px;
    font-weight:800;
    cursor:pointer;
}

.modal-size-btn.active{
    background:#151218;
    color:#fff;
    border-color:#151218;
}

.modal-qty-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:18px 0 10px;
}

.modal-qty-label{
    font-weight:800;
}

.modal-qty-control{
    display:flex;
    align-items:center;
    gap:8px;
}

.modal-qty-control input{
    width:76px;
    padding:10px 12px;
    border:1px solid rgba(36,20,31,.1);
    border-radius:12px;
    text-align:center;
}

.qty-btn{
    width:36px;
    height:36px;
    border:none;
    border-radius:12px;
    background:#f3edf1;
    font-weight:900;
    cursor:pointer;
}

.modal-html-description{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid rgba(36,20,31,.08);
    color:var(--text);
}

.modal-html-description iframe,
.modal-html-description video,
.modal-html-description img{
    max-width:100%;
    border-radius:18px;
}

/* PREMIUM VISUAL OVERRIDES */
.product-card{
    isolation:isolate;
    background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,248,252,.98) 100%);
}

.product-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.28) 100%);
    pointer-events:none;
    opacity:.85;
}

.product-media{
    border-bottom:1px solid rgba(36,20,31,.05);
}

.product-media::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:36%;
    background:linear-gradient(180deg, rgba(17,12,16,0) 0%, rgba(17,12,16,.22) 100%);
    pointer-events:none;
    z-index:1;
}

.product-video-card{
    position:relative;
    width:100%;
    height:100%;
    min-height:100%;
    overflow:hidden;
    background:linear-gradient(180deg, #0f0f12 0%, #201923 100%);
}

.product-video-card iframe,
.product-video-card video{
    width:100%;
    height:100%;
    border:0;
    object-fit:cover;
    display:block;
}

.product-video-preview-card video{
    transform:scale(1.01);
}

.product-video-embed-card iframe{
    pointer-events:none;
}

.product-video-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:radial-gradient(circle at center, rgba(255,255,255,.06), rgba(0,0,0,.22));
    color:#fff;
    z-index:2;
    pointer-events:none;
    transition:opacity .28s ease, transform .28s ease;
}

.product-video-overlay span{
    width:68px;
    height:68px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:1.55rem;
    background:rgba(255,255,255,.16);
    backdrop-filter:blur(10px);
    box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.product-video-overlay small{
    padding:8px 12px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    background:rgba(15,10,20,.48);
}

.product-card:hover .product-video-overlay{
    opacity:.28;
}

.product-body{
    position:relative;
    z-index:2;
}

.product-actions .btn-primary,
.product-actions .btn-secondary{
    border-radius:16px;
}

/* ========= MODAL PREMIUM CON UNA SOLA BARRA VERTICAL ========= */
.premium-modal{
    width:100%;
    max-width:980px;
    max-height:min(92vh, 980px);
    height:min(92vh, 980px);
    border:1px solid rgba(255,255,255,.35);
    background:linear-gradient(180deg, #fff 0%, #fffafb 100%);
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,77,166,.42) rgba(36,20,31,.08);
}

.premium-modal::-webkit-scrollbar{
    width:10px;
}

.premium-modal::-webkit-scrollbar-track{
    background:rgba(36,20,31,.05);
}

.premium-modal::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg, rgba(255,77,166,.58), rgba(255,127,190,.72));
    border-radius:999px;
    border:2px solid rgba(255,255,255,.85);
}

.product-modal-body{
    display:grid;
    grid-template-columns:1.08fr 0.92fr;
    align-items:start;
    flex:0 0 auto;
    min-height:0;
    max-height:none;
    overflow:visible;
}

.modal-gallery{
    position:relative;
    min-height:0;
    overflow:visible;
}

.modal-info{
    min-height:0;
    overflow:visible;
    max-height:none;
    height:auto;
    padding-right:30px;
    background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,250,252,.98) 100%);
}

.modal-main-media{
    position:relative;
    box-shadow:0 20px 48px rgba(17,12,16,.08), inset 0 0 0 1px rgba(255,255,255,.85);
}

.modal-main-media::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 100%);
}

.modal-thumb{
    background:linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.modal-html-description{
    margin-top:20px;
    padding:18px;
    border:1px solid rgba(255,77,166,.08);
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,247,251,.9) 0%, rgba(255,255,255,.96) 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}

.modal-html-description > *:first-child{
    margin-top:0;
}

.modal-html-description > *:last-child{
    margin-bottom:0;
}

.modal-html-description iframe{
    min-height:520px;
    background:#111;
}

/* anulamos scrollbar interno viejo */
.modal-info::-webkit-scrollbar{
    width:0;
    height:0;
}

/* DESKTOP */
@media (min-width: 901px){
    .premium-modal{
        height:min(92vh, 980px);
    }

    .product-modal-body{
        height:auto;
    }

    .modal-gallery{
        overflow:visible;
    }

    .modal-info{
        height:auto;
        overflow:visible;
        padding-right:30px;
    }
}

/* TABLET / MOBILE */
@media (max-width: 900px){
    .premium-modal{
        max-height:88vh;
        height:88vh;
    }

    .product-modal-body{
        grid-template-columns:1fr;
        overflow:visible;
        max-height:none;
    }

    .modal-gallery{
        border-right:none;
        border-bottom:1px solid rgba(0,0,0,.06);
    }

    .modal-info{
        overflow:visible;
        max-height:none;
        height:auto;
        padding-right:22px;
    }
}

@media (max-width: 560px){
    .product-video-overlay span{
        width:56px;
        height:56px;
        font-size:1.3rem;
    }

    .modal-html-description iframe{
        min-height:420px;
    }
}