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

:root{
    --ink:#211d20;
    --muted:#756a70;
    --rose:#c98d9f;
    --rose-dark:#8f596b;
    --blush:#f8eaee;
    --blush-2:#f3d8e0;
    --cream:#fffaf9;
    --line:#eadde1;
    --white:#fff;
    --shadow:0 18px 55px rgba(62,34,43,.09);
    --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family:'DM Sans',Arial,sans-serif;
    background:var(--cream);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,90%);margin:auto}

.site-header{
    position:sticky;top:0;z-index:50;
    background:rgba(255,250,249,.88);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(234,221,225,.8);
}
.nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{font-size:25px;font-weight:800;letter-spacing:.16em;line-height:.8}
.brand span{
    display:block;margin-top:9px;
    font-size:8px;letter-spacing:.38em;font-weight:600;
    color:var(--rose-dark);
}
.nav nav{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:600}
.nav nav a{position:relative;padding:10px 0}
.nav nav a:not(:last-child)::after{
    content:"";position:absolute;left:0;right:100%;bottom:4px;height:1px;
    background:var(--rose-dark);transition:.25s ease
}
.nav nav a:hover::after{right:0}
.nav nav strong{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:23px;height:23px;padding:0 6px;margin-left:4px;
    border-radius:999px;background:var(--blush-2);font-size:11px;
}

.hero{
    position:relative;overflow:hidden;
    padding:88px 0 105px;
    background:
      radial-gradient(circle at 85% 35%,rgba(236,188,202,.42),transparent 31%),
      linear-gradient(135deg,#fff 0%,#fff 43%,#fbf0f3 100%);
}
.hero::before{
    content:"";position:absolute;width:420px;height:420px;border-radius:50%;
    border:1px solid rgba(201,141,159,.25);right:-180px;top:-170px;
}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:75px;align-items:center}
.hero-copy{max-width:650px}
.eyebrow{
    margin:0 0 18px;
    font-size:10px;letter-spacing:.28em;text-transform:uppercase;
    color:var(--rose-dark);font-weight:700
}
.hero h1{
    margin:0;
    font-size:clamp(52px,6.4vw,88px);
    line-height:.92;
    letter-spacing:-.055em;
    font-weight:700;
}
.hero h1 em{
    display:block;
    margin-top:7px;
    font-family:'Playfair Display',Georgia,serif;
    font-weight:400;
    letter-spacing:-.045em;
}
.lead{font-size:16px;line-height:1.8;color:var(--muted);max-width:570px}
.hero .lead{margin:28px 0 32px}
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    border:0;border-radius:999px;padding:14px 23px;cursor:pointer;
    font-size:13px;font-weight:700;transition:.25s ease
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:var(--ink);color:#fff;box-shadow:0 10px 24px rgba(33,29,32,.14)}
.btn.secondary{background:var(--blush);color:var(--rose-dark)}
.btn.whatsapp{background:#262126;color:#fff}

.hero-card{
    position:relative;height:530px;border-radius:34px;
    background:linear-gradient(145deg,#efcbd7,#e7b9c8);
    box-shadow:var(--shadow);
    display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.hero-card::before,.hero-card::after{
    content:"";position:absolute;border:1px solid rgba(255,255,255,.62);
    border-radius:50%;
}
.hero-card::before{width:390px;height:390px}
.hero-card::after{width:265px;height:265px}
.hero-card span{font-size:105px;letter-spacing:.13em;font-weight:800;z-index:2}
.hero-card small{position:absolute;bottom:65px;z-index:2;font-size:10px;letter-spacing:.45em;text-transform:uppercase}

.section{padding:92px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:34px}
.section-head h1,.section-head h2{
    margin:0;font-size:43px;line-height:1;letter-spacing:-.04em
}
.section-head a{font-size:13px;font-weight:700;color:var(--rose-dark)}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-card{
    background:var(--white);border:1px solid rgba(234,221,225,.8);
    border-radius:20px;overflow:hidden;
    transition:.3s ease;box-shadow:0 8px 35px rgba(62,34,43,.035)
}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-image{
    position:relative;height:285px;background:linear-gradient(145deg,#fbf0f3,#f1dce2);
    display:flex;align-items:center;justify-content:center;overflow:hidden
}
.product-image::after{
    content:"";position:absolute;width:135px;height:135px;border-radius:50%;
    border:1px solid rgba(143,89,107,.16)
}
.product-image.large{height:560px;border-radius:28px}
.product-image.small{height:86px;width:86px;min-width:86px;border-radius:14px}
.product-image img{width:100%;height:100%;object-fit:cover;position:relative;z-index:2}
.product-image span{font-family:'Playfair Display',serif;font-size:40px;color:var(--rose-dark);font-style:italic;z-index:2}
.product-info{padding:19px 19px 21px}
.product-info small{font-size:10px;text-transform:uppercase;letter-spacing:.15em;color:var(--rose-dark)}
.product-info h3{margin:8px 0 7px;font-size:16px;line-height:1.35}
.product-info p{margin:0;color:#8a7e83;font-size:12px}

.filters{
    display:grid;grid-template-columns:1fr 240px auto;gap:10px;
    padding:10px;background:#fff;border:1px solid var(--line);
    border-radius:18px;margin-bottom:34px;box-shadow:0 8px 30px rgba(62,34,43,.035)
}
.filters input,.filters select,.admin-form input,.admin-form select,.admin-form textarea,.auth-card input{
    width:100%;border:1px solid var(--line);border-radius:12px;padding:13px 14px;
    background:#fff;color:var(--ink);outline:none
}
.filters input:focus,.filters select:focus,.admin-form input:focus,.admin-form textarea:focus,.auth-card input:focus{
    border-color:var(--rose);box-shadow:0 0 0 4px rgba(201,141,159,.10)
}

.detail{display:grid;grid-template-columns:1fr .85fr;gap:75px;align-items:center}
.detail-copy h1{font-size:54px;line-height:1.02;letter-spacing:-.05em;margin:9px 0 15px}
.detail-category{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:var(--rose-dark)}
.detail-copy .lead{margin:25px 0}

.cart-list{display:grid;gap:12px;margin-bottom:20px}
.cart-item{
    display:flex;align-items:center;gap:18px;padding:14px;
    background:#fff;border:1px solid var(--line);border-radius:18px
}
.cart-copy{flex:1;display:flex;flex-direction:column;gap:5px}
.cart-copy small{color:var(--muted)}
.cart-item input{width:78px;padding:10px;border:1px solid var(--line);border-radius:10px}
.quote-box{
    margin-top:38px;padding:34px;border-radius:26px;
    background:linear-gradient(135deg,#f8e8ed,#f2d7e0);
    display:flex;justify-content:space-between;gap:30px;align-items:center;
    box-shadow:0 15px 45px rgba(90,45,60,.07)
}
.quote-box h2{margin:5px 0 9px;font-size:28px;letter-spacing:-.03em}

.narrow{max-width:760px}
.auth-card,.admin-form{
    background:#fff;border:1px solid var(--line);border-radius:24px;
    padding:34px;box-shadow:var(--shadow)
}
.auth-card{max-width:500px;margin:auto}
.auth-card form,.admin-form{display:grid;gap:18px;margin-top:20px}
.auth-card label,.admin-form label{display:grid;gap:7px;font-size:13px;font-weight:700}
.check{display:flex!important;align-items:center;gap:9px}.check input{width:auto}
.full{width:100%}
.admin-table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 30px rgba(62,34,43,.035)}
.admin-table{width:100%;border-collapse:collapse;min-width:800px}
.admin-table th,.admin-table td{text-align:left;padding:17px;border-bottom:1px solid var(--line);font-size:13px}
.admin-table th{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.row-actions{display:flex;gap:12px;align-items:center}
.row-actions a,.row-actions button{color:var(--rose-dark);font-weight:700}
.row-actions button{border:0;background:none;cursor:pointer}
.actions{display:flex;gap:10px}
.alert{margin-top:15px;padding:13px 16px;border-radius:12px;font-size:13px}
.alert.success{background:#edf7f0;color:#376b49}.alert.error{background:#fdebed;color:#8a3c48}
.empty{padding:65px;text-align:center;background:#fff;border:1px dashed var(--line);border-radius:20px}
.footer{padding:42px 0;color:#8d7d83;font-size:11px;letter-spacing:.03em;border-top:1px solid var(--line);margin-top:25px}

@media(max-width:900px){
    .hero-grid,.detail{grid-template-columns:1fr}
    .hero-card{height:390px}
    .product-grid{grid-template-columns:repeat(2,1fr)}
    .detail-copy h1{font-size:43px}
}
@media(max-width:700px){
    .nav{min-height:74px}
    .nav nav{gap:15px;font-size:12px}
    .hero{padding:65px 0 75px}
    .hero h1{font-size:55px}
    .section{padding:65px 0}
    .section-head{align-items:flex-start;flex-direction:column}
    .filters{grid-template-columns:1fr;padding:12px}
    .quote-box{flex-direction:column;align-items:flex-start}
}
@media(max-width:480px){
    .container{width:92%}
    .product-grid{grid-template-columns:1fr}
    .product-image{height:300px}
    .hero h1{font-size:48px}
    .hero-card{height:310px}
    .hero-card span{font-size:72px}
    .section-head h1,.section-head h2{font-size:35px}
    .cart-item{gap:10px}
    .product-image.small{width:62px;min-width:62px;height:62px}
}

/* === MAR v3: carrito, administración, branding y uploads === */
.brand{display:flex;align-items:center;gap:11px;min-width:220px}
.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:12px;letter-spacing:.12em;font-weight:800}
.brand-copy{display:flex;flex-direction:column;gap:2px}
.brand-copy strong{font-size:13px;letter-spacing:.02em}
.brand-copy small{font-size:9px;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
.brand>img{width:44px;height:44px;object-fit:contain;border-radius:12px;background:#fff}
.admin-subtitle{margin:9px 0 0;color:var(--muted);font-size:13px;max-width:620px;line-height:1.6}
.admin-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}
.admin-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 30px rgba(62,34,43,.035)}
.admin-stat span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}
.admin-stat strong{font-size:24px;letter-spacing:-.03em}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.admin-product-cell{display:flex;align-items:center;gap:12px;min-width:240px}
.admin-thumb{width:46px;height:46px;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#fbf0f3,#f1dce2);display:grid;place-items:center;flex:none}
.admin-thumb img{width:100%;height:100%;object-fit:cover}
.admin-thumb span{font-family:'Playfair Display',serif;color:var(--rose-dark);font-size:14px;font-style:italic}
.status{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800}
.status.on{background:#edf7f0;color:#376b49}.status.off{background:#f5eef0;color:#8d7d83}
.upload-box{display:grid;gap:12px;padding:18px;border:1px dashed #ddcbd1;background:#fcf7f9;border-radius:16px}
.upload-title{margin:0;font-weight:800;font-size:13px}.upload-help{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.upload-box input[type=file]{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.current-image{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.current-image img{width:105px;height:105px;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:#fff}
.brand-preview{padding:14px;border-radius:15px;background:#fff;border:1px solid var(--line);display:flex;justify-content:center}
.brand-preview img{max-width:280px;max-height:100px;object-fit:contain}
.favicon-preview{width:64px;height:64px;border-radius:14px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.favicon-preview img{width:100%;height:100%;object-fit:contain}
.cart-toolbar{display:flex;justify-content:space-between;gap:20px;padding:14px 2px 18px;color:var(--muted);font-size:12px}
.cart-toolbar strong{color:var(--ink);font-size:13px}
.quantity-control{display:grid;gap:5px}.quantity-control label{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.quantity-control input{width:78px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.remove-btn{border:0;background:transparent;color:#a34e62;font-weight:800;font-size:11px;cursor:pointer;padding:8px}
.remove-btn:hover{text-decoration:underline}
.hidden-form{display:none}
.cart-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.empty-mark{width:66px;height:66px;margin:0 auto 16px;border-radius:20px;display:grid;place-items:center;background:var(--blush);font-family:'Playfair Display',serif;font-size:20px;color:var(--rose-dark);font-style:italic}
.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.hero-card img{position:relative;z-index:2;max-width:65%;max-height:45%;object-fit:contain;filter:drop-shadow(0 15px 25px rgba(83,44,56,.12))}

@media(max-width:760px){
    .admin-stat-grid{grid-template-columns:1fr}
    .cart-toolbar{align-items:flex-start;flex-direction:column;gap:4px}
    .cart-item{align-items:flex-start;flex-wrap:wrap}
    .cart-copy{min-width:calc(100% - 100px)}
    .quantity-control{margin-left:100px}
    .cart-actions{justify-content:stretch;flex-direction:column}
    .cart-actions .btn{width:100%}
}

/* === MAR v4: carrito lateral / vista previa === */
.cart-trigger{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 0;
    border:0;
    background:transparent;
    color:var(--ink);
    cursor:pointer;
    font:inherit;
    font-size:13px;
    font-weight:600;
}
.cart-trigger:hover .cart-badge{transform:scale(1.08)}
.cart-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:23px;
    height:23px;
    padding:0 6px;
    border-radius:999px;
    background:var(--blush-2);
    color:var(--ink);
    font-size:11px;
    transition:.2s ease;
}

.cart-overlay{
    position:fixed;
    inset:0;
    z-index:90;
    background:rgba(28,22,25,.32);
    backdrop-filter:blur(3px);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
}
.cart-overlay.is-open{
    opacity:1;
    visibility:visible;
}

.cart-drawer{
    position:fixed;
    top:0;
    right:0;
    z-index:100;
    width:min(455px,100vw);
    height:100dvh;
    display:flex;
    flex-direction:column;
    background:var(--cream);
    border-left:1px solid var(--line);
    box-shadow:-22px 0 70px rgba(43,25,32,.16);
    transform:translateX(105%);
    transition:transform .32s cubic-bezier(.22,.8,.2,1);
}
.cart-drawer.is-open{transform:translateX(0)}
.drawer-lock{overflow:hidden}

.cart-drawer-head{
    flex:none;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:30px 28px 22px;
    background:rgba(255,250,249,.96);
    border-bottom:1px solid var(--line);
}
.cart-drawer-head .eyebrow{margin:0 0 7px}
.cart-drawer-head h2{margin:0;font-size:31px;letter-spacing:-.04em}
.cart-drawer-head span{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.cart-close{
    width:40px;height:40px;
    border:1px solid var(--line);
    border-radius:50%;
    background:#fff;
    color:var(--ink);
    cursor:pointer;
    font-size:27px;
    line-height:1;
    display:grid;
    place-items:center;
    transition:.2s ease;
}
.cart-close:hover{background:var(--blush);transform:rotate(5deg)}

.cart-drawer-body{
    flex:1;
    min-height:0;
    overflow-y:auto;
    padding:18px 22px 25px;
}
.drawer-items{display:grid;gap:10px}
.drawer-item{
    display:grid;
    grid-template-columns:70px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:11px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
}
.drawer-product-image{
    width:70px;height:78px;
    border-radius:13px;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#fbf0f3,#f1dce2);
}
.drawer-product-image img{width:100%;height:100%;object-fit:cover}
.drawer-product-image span{font-family:'Playfair Display',serif;color:var(--rose-dark);font-style:italic;font-size:24px}
.drawer-item-copy{min-width:0;display:grid;gap:4px}
.drawer-item-copy strong{font-size:13px;line-height:1.3}
.drawer-item-copy small{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-qty-form{display:flex;align-items:center;gap:5px;margin-top:4px}
.qty-btn{
    width:27px;height:27px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--cream);
    color:var(--ink);
    cursor:pointer;
    font-weight:700;
    line-height:1;
}
.qty-btn:hover{background:var(--blush)}
.drawer-qty{
    width:35px;
    border:0;
    background:transparent;
    text-align:center;
    font-weight:700;
    font-size:12px;
    padding:5px 0;
    -moz-appearance:textfield;
}
.drawer-qty::-webkit-outer-spin-button,.drawer-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.drawer-remove-form{align-self:start}
.drawer-remove{
    width:30px;height:30px;
    border:0;
    background:transparent;
    color:#9d737f;
    cursor:pointer;
    font-size:22px;
    line-height:1;
    border-radius:50%;
}
.drawer-remove:hover{background:var(--blush);color:var(--rose-dark)}

.cart-empty{
    min-height:420px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:30px 20px;
}
.cart-empty-mark{
    width:74px;height:74px;
    display:grid;place-items:center;
    border-radius:24px;
    background:var(--blush-2);
    color:var(--rose-dark);
    font-size:17px;
    font-weight:800;
    letter-spacing:.14em;
    margin-bottom:18px;
}
.cart-empty h3{margin:0 0 8px;font-size:21px}
.cart-empty p{margin:0 auto 22px;max-width:270px;color:var(--muted);font-size:13px;line-height:1.6}

.cart-drawer-foot{
    flex:none;
    padding:18px 22px 24px;
    background:#fff;
    border-top:1px solid var(--line);
    box-shadow:0 -12px 35px rgba(62,34,43,.05);
}
.cart-drawer-foot p{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5}
.cart-drawer-foot .btn{width:100%}
.drawer-continue{
    display:block;
    text-align:center;
    margin-top:13px;
    color:var(--rose-dark);
    font-size:12px;
    font-weight:700;
}
.drawer-continue:hover{text-decoration:underline}

@media(max-width:700px){
    .cart-drawer{width:100vw;border-left:0}
    .cart-drawer-head{padding:24px 20px 18px}
    .cart-drawer-body{padding:14px 15px 20px}
    .cart-drawer-foot{padding:15px 15px 20px}
    .drawer-item{grid-template-columns:62px minmax(0,1fr) auto}
    .drawer-product-image{width:62px;height:70px}
}


/* === MAR v5: temas intercambiables === */
:root{
    --theme-bg:#fbf7f8;
    --theme-card:#ffffff;
    --theme-primary:#d28ca3;
    --theme-primary-dark:#8f596b;
    --theme-ink:#272126;
    --theme-muted:#81747a;
    --theme-line:#eadde2;
    --theme-soft:#f6e6eb;
    --theme-hero:#efcbd7;
}
body{background:var(--theme-bg);color:var(--theme-ink)}
.site-header{background:color-mix(in srgb, var(--theme-bg) 86%, transparent);border-bottom-color:var(--theme-line)}
.brand-mark{background:var(--theme-ink)}
.hero-card{background:linear-gradient(145deg,var(--theme-hero),var(--theme-soft))}
.btn.primary{background:var(--theme-ink)}
.btn.secondary{background:var(--theme-soft);color:var(--theme-primary-dark)}
.btn.whatsapp{background:var(--theme-ink)}
.section-head a,.detail-category,.product-info small{color:var(--theme-primary-dark)}
.product-card,.admin-stat,.admin-table-wrap,.auth-card,.admin-form{border-color:var(--theme-line)}
.product-image{background:linear-gradient(145deg,var(--theme-bg),var(--theme-soft))}
.product-image span,.admin-thumb span{color:var(--theme-primary-dark)}
.filters input:focus,.filters select:focus,.admin-form input:focus,.admin-form textarea:focus,.auth-card input:focus{border-color:var(--theme-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--theme-primary) 14%,transparent)}
.quote-box{background:linear-gradient(135deg,var(--theme-soft),var(--theme-hero))}
.cart-drawer{background:var(--theme-card);border-left-color:var(--theme-line)}
.cart-empty-mark{background:var(--theme-ink)}
.drawer-continue{color:var(--theme-primary-dark)}

body.theme-green{--theme-bg:#f7faf7;--theme-card:#fff;--theme-primary:#6e9b7d;--theme-primary-dark:#41664e;--theme-ink:#1f2b24;--theme-muted:#718077;--theme-line:#dce8df;--theme-soft:#e9f3ec;--theme-hero:#cfe3d4}
body.theme-mono{--theme-bg:#f7f7f7;--theme-card:#fff;--theme-primary:#111;--theme-primary-dark:#111;--theme-ink:#111;--theme-muted:#6b6b6b;--theme-line:#dedede;--theme-soft:#eeeeee;--theme-hero:#dedede}
body.theme-gold{--theme-bg:#151313;--theme-card:#1d1a18;--theme-primary:#c9a24a;--theme-primary-dark:#e2bd62;--theme-ink:#f6f0e2;--theme-muted:#b8ad99;--theme-line:#3b3429;--theme-soft:#2a241b;--theme-hero:#3a3020}
body.theme-yellow{--theme-bg:#fffdf2;--theme-card:#fff;--theme-primary:#dfb82f;--theme-primary-dark:#a57f08;--theme-ink:#22201a;--theme-muted:#77705b;--theme-line:#eee4bd;--theme-soft:#fff6c9;--theme-hero:#f4dc69}
body.theme-gold .site-header{background:rgba(21,19,19,.9)}
body.theme-gold .product-card,body.theme-gold .admin-stat,body.theme-gold .admin-table-wrap,body.theme-gold .auth-card,body.theme-gold .admin-form{background:var(--theme-card)}
body.theme-gold .product-info p,body.theme-gold .lead{color:var(--theme-muted)}
body.theme-gold .btn.primary{background:#f4ead1;color:#191613}
body.theme-gold .btn.secondary{background:#3a3020;color:#e2bd62}
body.theme-mono .btn.secondary{background:#111;color:#fff}
body.theme-mono .hero-card{background:linear-gradient(145deg,#222,#777)}
body.theme-mono .hero-card span,body.theme-mono .hero-card small{color:#fff}

.settings-block{display:grid;gap:18px;padding-bottom:28px;border-bottom:1px solid var(--theme-line)}
.settings-block:last-of-type{border-bottom:0;padding-bottom:0}
.settings-block-head h2{margin:5px 0 0;font-size:24px;letter-spacing:-.03em}
.field-help{margin:-8px 0 0;color:var(--theme-muted);font-size:12px;line-height:1.5}
.theme-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.theme-option{display:grid;gap:9px;padding:10px;border:1px solid var(--theme-line);border-radius:16px;background:var(--theme-card);cursor:pointer;transition:.2s ease}
.theme-option:hover{transform:translateY(-2px)}
.theme-option.selected{border:2px solid var(--theme-primary);padding:9px;box-shadow:0 8px 24px color-mix(in srgb,var(--theme-primary) 12%,transparent)}
.theme-option input{position:absolute;opacity:0;pointer-events:none}
.theme-preview{height:88px;border-radius:11px;overflow:hidden;display:block;background:var(--theme-bg);border:1px solid var(--theme-line);position:relative}
.theme-preview-top{display:block;height:18px;background:var(--theme-card);border-bottom:1px solid var(--theme-line)}
.theme-preview-main{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px}
.theme-preview-main i,.theme-preview-main b,.theme-preview-main em{display:block;border-radius:5px;background:var(--theme-soft);height:25px}
.theme-preview-main i{grid-column:1/3;height:20px;background:var(--theme-primary)}
.theme-preview-main b{background:var(--theme-card);border:1px solid var(--theme-line)}
.theme-preview-main em{background:var(--theme-hero)}
.theme-preview.theme-green{--theme-bg:#f7faf7;--theme-card:#fff;--theme-primary:#6e9b7d;--theme-soft:#e9f3ec;--theme-hero:#cfe3d4;--theme-line:#dce8df}
.theme-preview.theme-mono{--theme-bg:#f7f7f7;--theme-card:#fff;--theme-primary:#111;--theme-soft:#eee;--theme-hero:#ddd;--theme-line:#ddd}
.theme-preview.theme-gold{--theme-bg:#151313;--theme-card:#1d1a18;--theme-primary:#c9a24a;--theme-soft:#2a241b;--theme-hero:#3a3020;--theme-line:#3b3429}
.theme-preview.theme-yellow{--theme-bg:#fffdf2;--theme-card:#fff;--theme-primary:#dfb82f;--theme-soft:#fff6c9;--theme-hero:#f4dc69;--theme-line:#eee4bd}
.theme-name{font-size:12px;font-weight:800}
.theme-dots{display:flex;gap:5px}.theme-dots i{width:15px;height:15px;border-radius:50%;border:1px solid rgba(0,0,0,.08)}
@media(max-width:900px){.theme-picker{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.theme-picker{grid-template-columns:repeat(2,1fr)}}

/* ============================================================
   ADMIN V5 - búsqueda, precios y categorías
   ============================================================ */
.admin-search{
    display:grid;
    grid-template-columns:minmax(0,1fr) 240px auto auto;
    gap:12px;
    align-items:end;
    margin:24px 0;
    padding:18px;
    background:var(--theme-card);
    border:1px solid var(--theme-line);
    border-radius:22px;
}
.admin-search label{display:block;margin-bottom:7px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--theme-muted)}
.admin-search input,.admin-search select{width:100%;min-height:48px;border:1px solid var(--theme-line);border-radius:14px;background:var(--theme-bg);padding:0 14px;font:inherit;color:var(--theme-ink)}
.admin-empty{text-align:center;padding:42px!important;color:var(--theme-muted)}
.muted{color:var(--theme-muted);font-size:13px}
.category-admin-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:20px}
.admin-form-card{background:var(--theme-card);border:1px solid var(--theme-line);border-radius:24px;padding:26px;box-shadow:0 12px 40px rgba(20,30,24,.04)}
.admin-form-card h2{margin:0 0 18px}
.category-list{display:grid;gap:12px}
.category-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:12px;border:1px solid var(--theme-line);border-radius:16px;background:var(--theme-bg)}
.category-row>form:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.category-row input[type=text]{min-height:42px;border:1px solid var(--theme-line);border-radius:12px;padding:0 12px;background:var(--theme-card);color:var(--theme-ink)}
.category-active{display:flex!important;align-items:center;gap:6px!important;margin:0!important;white-space:nowrap}
.category-active input{width:auto!important;min-height:0!important}
.row-delete{border:0;background:transparent;color:#9a5665;font:inherit;font-weight:800;cursor:pointer;padding:8px}
@media(max-width:900px){
    .admin-search{grid-template-columns:1fr 1fr}
    .category-admin-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
    .admin-search{grid-template-columns:1fr}
    .category-row{grid-template-columns:1fr}
    .category-row>form:first-child{grid-template-columns:1fr}
}
