/* ══════════════════════════════════════════════════════════════
   WAPIO DESKTOP — Light Modern Design System v2
   Paleta: blanco / verde Wapio / grises cálidos
   Fuentes: Syne (display) + DM Sans (body)
   Layout: sidebar-nav | contenido | panel-carrito (slide-in)
══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg:           #f8f8f6;
    --bg-2:         #ffffff;
    --bg-3:         #f2f2ef;
    --bg-4:         #e8e8e4;
    --surface:      #ffffff;

    --accent:       #22c55e;
    --accent-dim:   #16a34a;
    --accent-light: #dcfce7;
    --accent-glow:  rgba(34,197,94,0.12);

    --text-1:       #111111;
    --text-2:       #555550;
    --text-3:       #999994;

    --border:       rgba(0,0,0,0.07);
    --border-2:     rgba(0,0,0,0.13);

    --danger:       #e05a4e;

    --radius-xs:    4px;
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    20px;

    --font-display: 'Syne', 'Bricolage Grotesque', sans-serif;
    --font-body:    'DM Sans', 'Geist', sans-serif;

    --sidebar-w:    230px;
    --cart-w:       340px;
    --header-h:     280px;
    --transition:   0.18s ease;
}

/* Reemplazar cualquier referencia a Syne o DM Sans */
:root {
    --font-body: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
}

body, .dt-sidebar, .dt-main {
    font-family: 'Inter', sans-serif;
}

/* Títulos de sección — más parecido a apps de delivery */
.dt-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
}

/* Nombre del local en sidebar */
.dt-brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Nombre de productos en cards */
.dt-card-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.dt-brand-banner {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.dt-brand-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3) 100%);
}

.dt-brand-banner .owl-carousel,
.dt-brand-banner .owl-stage-outer,
.dt-brand-banner .owl-stage,
.dt-brand-banner .owl-item {
    height: 140px;
}

.dt-brand-banner .owl-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.dt-brand-banner .owl-animated-out,
.dt-brand-banner .owl-animated-in {
    animation: none !important;
}

.dt-brand-banner .owl-item {
    background: transparent !important;
}

.dt-brand-banner .animated {
    animation-duration: 0s !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   LAYOUT ROOT
══════════════════════════════════════════════════════════════ */
.dt-root {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    transition: grid-template-columns var(--transition);
}

.dt-root.cart-open {
    grid-template-columns: var(--sidebar-w) 1fr var(--cart-w);
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.dt-sidebar {
    grid-column: 1;
    grid-row: 1 / 99;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.dt-brand {
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.dt-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dt-brand-logo {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-2);
    background: var(--bg-3);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dt-brand-logo img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dt-brand-info { flex: 1; min-width: 0; }
.dt-brand-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-brand-address {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
    line-height: 1.3;
}

.dt-social {
    display: flex;
    gap: 12px;
    padding-top: 2px;
}
.dt-social a {
    color: var(--text-3);
    font-size: 14px;
    transition: color var(--transition);
    text-decoration: none;
}
.dt-social a:hover { color: var(--accent); }

.dt-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}
.dt-nav::-webkit-scrollbar { display: none; }

.dt-nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 8px 18px 10px;
}

.dt-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background var(--transition);
    border-left: 2px solid transparent;
    text-decoration: none;
    border-radius: 0;
}
.dt-cat-item:hover {
    background: var(--bg-3);
    border-left-color: var(--border-2);
}
.dt-cat-item.active {
    background: var(--accent-light);
    border-left-color: var(--accent);
}
.dt-cat-thumb {
    width: 30px; height: 30px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.70;
    transition: opacity var(--transition);
}
.dt-cat-item:hover .dt-cat-thumb,
.dt-cat-item.active .dt-cat-thumb { opacity: 1; }
.dt-cat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    transition: color var(--transition);
}
.dt-cat-item.active .dt-cat-name { color: var(--accent-dim); font-weight: 700; }
.dt-cat-item:hover .dt-cat-name { color: var(--text-1); }

.dt-sidebar-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.dt-powered {
    font-size: 10px;
    color: var(--text-3);
    text-align: center;
}
.dt-powered a { color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.dt-powered a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   HEADER BANNER
══════════════════════════════════════════════════════════════ */
.dt-header {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    height: var(--header-h);
    overflow: hidden;
    background: var(--bg-3);
}
.dt-root.cart-open .dt-header { grid-column: 2; }

.dt-header-media {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dt-header-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(248,248,246,0.05) 0%,
        rgba(248,248,246,0.55) 100%
    );
}

.dt-marquee {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: rgba(34,197,94,0.10);
    border-top: 1px solid rgba(34,197,94,0.18);
    display: flex; align-items: center;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.dt-marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 32s linear infinite;
}
.dt-marquee-inner span {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dim);
    padding: 0 72px 0 0;
    letter-spacing: 0.3px;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.dt-call-btn {
    position: absolute;
    top: 16px; right: 16px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-2);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text-1); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background var(--transition);
    font-family: var(--font-body);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.dt-call-btn:hover { background: rgba(255,255,255,1); }
.dt-call-btn i { font-size: 16px !important; color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   MAIN — Catálogo
══════════════════════════════════════════════════════════════ */
.dt-main {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 28px 100px;
    min-width: 0;
    background: var(--bg);
}

.dt-section { margin-bottom: 44px; }

.dt-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.dt-section-thumb {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.dt-section-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.2px;
}
.dt-section-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    background: var(--bg-3);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 50px;
}

/* ── Grid — 5 columnas base, 6 en pantallas grandes ── */
.dt-items-grid,
.dt-section .dt-items-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
}

@media (min-width: 1100px) {
    .dt-items-grid,
    .dt-section .dt-items-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (min-width: 1400px) {
    .dt-items-grid,
    .dt-section .dt-items-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* Con carrito abierto: una columna menos */
.dt-root.cart-open .dt-items-grid,
.dt-root.cart-open .dt-section .dt-items-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (min-width: 1400px) {
    .dt-root.cart-open .dt-items-grid,
    .dt-root.cart-open .dt-section .dt-items-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* ── Card ── */
.dt-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeUp 0.28s ease both;
}
.dt-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(34,197,94,0.14);
    transform: translateY(-2px);
}

.dt-card-img-wrap {
    overflow: hidden;
    height: 110px;
    flex-shrink: 0;
    background: var(--bg-3);
}
.dt-card-img {
    width: 100%; height: 110px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.96);
}
.dt-card:hover .dt-card-img {
    transform: scale(1.06);
    filter: brightness(1.02);
}

/* Precio chip */
.dt-price-chip {
    position: absolute;
    top: 86px;
    left: 8px;
    background: var(--accent);
    border-radius: 50px;
    padding: 3px 8px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(34,197,94,0.30);
}
.dt-price-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(0,0,0,0.60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dt-price-value {
    font-size: 11px;
    font-weight: 800;
    color: #000;
    font-family: var(--font-display);
}

.dt-card-body {
    padding: 12px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dt-card-name {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
}
.dt-card-desc {
    font-size: 10px;
    color: var(--text-3);
    line-height: 1.4;
    overflow: hidden;
    max-height: 2.8em;
}

/* Neutralizar HTML roto en descripciones */
.dt-card-desc * {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dt-card-desc br {
    display: block !important;
    content: "" !important;
}

/* Add button al hover */
.dt-card-add {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition), transform var(--transition);
}
.dt-card:hover .dt-card-add {
    opacity: 1;
    transform: translateY(0);
}
.dt-add-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #000;
}
.dt-add-icon i { font-size: 14px !important; }

/* ══════════════════════════════════════════════════════════════
   PANEL CARRITO
══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   PANEL CARRITO
══════════════════════════════════════════════════════════════ */
.dt-cart-panel {
    grid-column: 3;
    grid-row: 1 / 99;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}
.dt-root.cart-open .dt-cart-panel {
    display: flex;
}
.dt-cart-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.dt-cart-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-cart-title i { font-size: 18px !important; color: var(--accent); }
.dt-cart-badge {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    padding: 2px 8px;
    font-family: var(--font-display);
}
.dt-cart-close {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-3);
    background: transparent;
    border: none;
    transition: background var(--transition), color var(--transition);
}
.dt-cart-close:hover { background: var(--bg-3); color: var(--text-1); }
.dt-cart-close i { font-size: 20px !important; }

.dt-cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

/* Todo hijo directo del cart-body ocupa exactamente el espacio disponible */
.dt-cart-body > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* ── Checkout dentro del panel: ocupa todo el alto ── */
.dt-cart-body .checkout-overlay {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
}
.dt-cart-body .checkout-header {
    flex-shrink: 0;
}
.dt-cart-body .checkout-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 14px;
}
.dt-cart-body .checkout-footer {
    flex-shrink: 0;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    background: var(--surface);
}

/* ── Carrito normal (show_cart) dentro del panel ── */
.dt-cart-body > *:not(.checkout-overlay) {
    padding: 14px;
    overflow-y: auto;
    flex: 1;
}

/* ── Footer compacto: totales y botones ── */
.dt-cart-body .row-detail {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-3);
    padding: 2px 0;
}
.dt-cart-body .wp-mesa-badge {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.dt-cart-body .row-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    padding: 5px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 3px;
}
.dt-cart-body .btn-send-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 4px;
}
.dt-cart-body .btn-back-store {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--text-3);
    font-size: 12px;
    padding: 5px;
    text-decoration: none;
}

/* ── Ocultar elementos innecesarios en desktop ── */
#dt-cart-body .wp-cta-row,
#dt-cart-body .wp-login-section .wp-cta-secondary {
    display: none !important;
}
#dt-cart-body button[onclick*="history.go"] {
    display: none !important;
}
/* ══════════════════════════════════════════════════════════════
   BARRA CARRITO FLOTANTE
══════════════════════════════════════════════════════════════ */
.dt-cart-bar {
    position: fixed;
    bottom: 18px;
    left: calc(var(--sidebar-w) + 50%);
    transform: translateX(-50%);
    z-index: 500;
    width: min(440px, calc(100vw - var(--sidebar-w) - 40px));
    pointer-events: auto;
}
.dt-root.cart-open .dt-cart-bar { display: none !important; }

#mycart {
    width: 100% !important;
    height: 52px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 8px !important;
    background: var(--text-1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22) !important;
    cursor: pointer;
    position: static !important;
    transform: none !important;
    left: auto !important; bottom: auto !important;
    gap: 0 !important;
    transition: box-shadow var(--transition) !important;
}
#mycart:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.30) !important; }
#mycart #cartCount {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    padding: 4px 13px !important;
    font-size: 13px !important;
    font-family: var(--font-display) !important;
}
#mycart #cartAmount {
    color: #fff !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    float: none !important;
    padding-right: 12px !important;
    font-size: 14px !important;
}
#mycart .cart-label {
    color: #fff !important;
    font-weight: 600 !important;
    padding-left: 12px !important;
    font-size: 13px !important;
}

/* ── WA ── */
.wachat {
    position: fixed !important;
    bottom: 22px; right: 22px;
    width: 50px !important; height: 50px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35) !important;
    z-index: 500; cursor: pointer;
    transition: box-shadow var(--transition) !important;
}
.wachat:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.50) !important; }

/* ── Visibilidad ── */
.show-cart { display: block !important; }
.hide-cart { display: none !important; }
.show-wa   { display: block !important; }
.hide-wa   { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   MODAL PRODUCTO DESKTOP — Rediseño compacto v3
   Clase real: .modal-dialog-item (no .modal-dialog)
══════════════════════════════════════════════════════════════ */

#page_container .modal-dialog-item {
    max-width: 300px !important;
    width: 300px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    min-height: 100vh !important;
}

#page_container .modal.in {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#page_container .modal-content {
    border-radius: 20px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22) !important;
    border: none !important;
    max-height: calc(100vh - 60px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Imagen reducida */
#page_container .wp-gallery {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    flex-shrink: 0 !important;
    position: relative !important;
}
#page_container .wp-gallery img,
#page_container .wp-gallery .item img {
    height: 140px !important;
    width: 100% !important;
    object-fit: cover !important;
}
#page_container .wp-gallery .owl-carousel,
#page_container .wp-gallery .owl-stage-outer,
#page_container .wp-gallery .owl-stage,
#page_container .wp-gallery .owl-item {
    height: 140px !important;
}

/* Body scrolleable */
#page_container .wp-body {
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
}

/* Detalles */
#page_container .wp-details {
    padding: 12px 14px 6px !important;
}
#page_container .wp-product-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
}
#page_container .wp-description {
    font-size: 11px !important;
    color: var(--text-2) !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}
#page_container .wp-price-row {
    margin-bottom: 6px !important;
}
#page_container .wp-price-value {
    font-size: 16px !important;
    font-weight: 800 !important;
}
#page_container .wp-size-chips {
    gap: 4px !important;
    margin-bottom: 6px !important;
}
#page_container .wp-size-chip {
    font-size: 10px !important;
    padding: 2px 8px !important;
}

/* Selector variante */
#page_container .wp-select-wrap {
    padding: 0 14px 10px !important;
}
#page_container .wp-select-label {
    font-size: 10px !important;
    margin-bottom: 4px !important;
}
#page_container .wp-select-native {
    height: 34px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
}

/* Footer */
#page_container .wp-footer {
    padding: 10px 14px 14px !important;
    border-top: 1px solid var(--border) !important;
    flex-shrink: 0 !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#page_container .wp-add-btn {
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    flex: 1 !important;
}
#page_container .wp-qty {
    flex-shrink: 0 !important;
}
#page_container .wp-qty-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
}
#page_container .wp-qty-num {
    font-size: 13px !important;
    min-width: 22px !important;
    color: var(--wp-teal) !important;
    -webkit-text-fill-color: var(--wp-teal) !important;
}

/* Botón cerrar */
#page_container .wp-close {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
    z-index: 20 !important;
}

/* Backdrop */
#page_container .modal-backdrop.in {
    opacity: 0.45 !important;
}

/* ══════════════════════════════════════════════════════════════
   SWEETALERT
══════════════════════════════════════════════════════════════ */
.sweet-overlay { background: rgba(0,0,0,0.45) !important; }
.sweet-alert {
    background: var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18) !important;
    font-family: var(--font-body) !important;
    border: 1px solid var(--border-2) !important;
}
.sweet-alert h2 {
    color: var(--text-1) !important;
    font-family: var(--font-display) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}
.sweet-alert p { color: var(--text-2) !important; font-size: 13px !important; }
.sweet-alert button.confirm {
    background: var(--accent) !important; color: #000 !important;
    font-weight: 700 !important; border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}
.sweet-alert button.cancel {
    background: var(--bg-3) !important; color: var(--text-2) !important;
    box-shadow: none !important; border-radius: var(--radius-sm) !important;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1100px) {
    :root { --sidebar-w: 180px; --header-h: 200px; --cart-w: 300px; }
    .dt-main { padding: 20px 18px 100px; }
    .dt-items-grid,
    .dt-section .dt-items-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1600px) {
    :root { --cart-w: 360px; }
}

/* Animación tarjetas */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   CARRITO Y CHECKOUT — Contener dentro del panel desktop
══════════════════════════════════════════════════════════════ */

/* Panel: cadena flex completa */
.dt-cart-panel {
    display: none;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.dt-root.cart-open .dt-cart-panel {
    display: flex;
}

.dt-cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    min-height: 0;
}

/* ── wp-cart-view (show_cart) ── */
#dt-cart-body .wp-cart-view {
    position: relative !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    z-index: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

#dt-cart-body .wp-cart-header {
    position: relative !important;
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
}

#dt-cart-body .wp-cart-body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;    /* anula el 40vh que pisaba */
    padding: 10px 12px 0 !important;
}

#dt-cart-body .wp-cart-footer {
    position: relative !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06) !important;
    padding: 12px 14px !important;
}

/* ── checkout-overlay (show_checkout) ── */
#dt-cart-body .checkout-overlay {
    position: relative !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    z-index: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    max-height: none !important;
}

#dt-cart-body .checkout-header {
    position: relative !important;
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
}

#dt-cart-body .checkout-body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;    /* anula el 40vh que pisaba */
    min-height: 0 !important;
    padding: 14px !important;
}

#dt-cart-body .checkout-footer {
    position: relative !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06) !important;
    padding: 12px 14px 16px !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
}

/* ── Ocultar elementos innecesarios en desktop ── */
#dt-cart-body .wp-cart-close,
#dt-cart-body .btn-close-x { display: none !important; }
#dt-cart-body .wp-cta-row,
#dt-cart-body .wp-login-section .wp-cta-secondary { display: none !important; }
#dt-cart-body button[onclick*="history.go"] { display: none !important; }

/* ── Botones compactos ── */
#dt-cart-body .wp-cta-primary,
#dt-cart-body .btn-action.btn-send-wa {
    height: 42px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
}
#dt-cart-body .btn-action.btn-back-store {
    height: 34px !important;
    font-size: 12px !important;
}

/* ── Inputs compactos ── */
#dt-cart-body .input-pill {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

/* Restaurar scroll del body */
body:has(#dt-cart-body .wp-cart-view),
body:has(#dt-cart-body .checkout-overlay) {
    overflow: auto !important;
}



/* ============================================================
/* ── WAPIO BRAND PALETTE ──
   ============================================================ */

:root {
    --wp-green:      #00C853;
    --wp-teal:       #00BFA5;
    --wp-navy:       #0D1B2A;
    --wp-grad:       linear-gradient(135deg, #00C853 0%, #00BFA5 100%);
    --wp-surface:    #ffffff;
    --wp-bg:         #f4f7f5;
    --wp-border:     #e4ede8;
    --wp-text:       #0D1B2A;
    --wp-muted:      #6b7c74;
    --wp-danger:     #FF5252;
    --wp-radius:     16px;
    --wp-radius-sm:  10px;
    --wp-radius-xs:  8px;
}


/* ============================================================
   CHECKOUT OVERLAY (checkout.php)
   ============================================================ */

.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fbfb;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header */
.checkout-header {
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.btn-close-x {
    position: absolute;
    right: 20px;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
}

/* Cuerpo */
.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.form-section {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.section-title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Inputs estilo Pill */
.input-pill {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    padding: 15px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.input-pill:focus {
    outline: none;
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Footer fijo */
/* ===== CHECKOUT OVERLAY / PANEL ===== */
.checkout-overlay {
    display: flex;
    flex-direction: column;
    height: 100%;          /* ocupa todo el panel en desktop */
    max-height: 100vh;
}

.checkout-body {
    flex: 1;               /* crece y empuja el footer hacia abajo */
    overflow-y: auto;
    padding: 16px;
}

/* ===== FOOTER COMPACTO ===== */
.checkout-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;        /* nunca se encoge */
}

.wp-mesa-badge {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.row-detail {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding: 1px 0;
}

.row-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    padding: 5px 0 8px;
    border-top: 1px solid #eee;
    margin-top: 3px;
}

.btn-send-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 4px;
}

.btn-back-store {
    display: block;
    text-align: center;
    background: transparent;
    color: #bbb;
    font-size: 12px;
    padding: 5px;
    text-decoration: none;
}

.btn-action:active {
    transform: scale(0.97);
}


/* ============================================================
   CART VIEW (cart.php)
   ============================================================ */

.wp-cart-view {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: var(--wp-bg);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

/* Header */
.wp-cart-header {
    background: var(--wp-surface);
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--wp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.wp-cart-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--wp-text);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.wp-cart-subtitle {
    font-size: 11px;
    color: var(--wp-muted);
    margin: 0;
    text-align: center;
}

.wp-cart-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--wp-bg);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--wp-muted);
    flex-shrink: 0;
}

/* Scrollable items */
.wp-cart-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px 0;
}

/* Item card */
.wp-cart-card {
    background: var(--wp-surface);
    border-radius: var(--wp-radius);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(13,27,42,.06);
}

.wp-cart-card-img {
    width: 52px; height: 52px;
    border-radius: var(--wp-radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--wp-bg);
}

.wp-cart-card-info {
    flex: 1;
    min-width: 0;
}

.wp-cart-card-name {
    font-size: 13px; font-weight: 600;
    color: var(--wp-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0 0 2px;
}

.wp-cart-card-unit {
    font-size: 11px;
    color: var(--wp-muted);
    margin: 0;
}

.wp-variety-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--wp-bg);
    color: var(--wp-muted);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 3px;
}

.wp-cart-card-right {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 8px; flex-shrink: 0;
}

.wp-cart-card-price {
    font-size: 15px; font-weight: 700;
    color: var(--wp-text);
}

.wp-cart-card-actions {
    display: flex; align-items: center; gap: 6px;
}

.wp-mini-qty {
    display: flex; align-items: center; gap: 4px;
}

.wp-mini-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: none; background: var(--wp-bg);
    color: var(--wp-teal); font-size: 16px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: background .15s;
}

.wp-mini-btn:hover {
    background: rgba(0,191,165,.15);
}

.wp-mini-num {
    font-size: 13px; font-weight: 700;
    color: var(--wp-text); min-width: 18px; text-align: center;
}

.wp-remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--wp-danger); opacity: .65; padding: 0;
    display: flex; align-items: center; transition: opacity .15s;
}

.wp-remove-btn:hover {
    opacity: 1;
}

/* Footer */
.wp-cart-footer {
    background: var(--wp-surface);
    border-radius: var(--wp-radius) var(--wp-radius) 0 0;
    box-shadow: 0 -4px 20px rgba(13,27,42,.08);
    padding: 16px 18px 20px;
    flex-shrink: 0;
}

.wp-delivery-row {
    display: flex; gap: 8px; margin-bottom: 14px;
}

.wp-delivery-opt {
    flex: 1; padding: 9px 6px;
    border-radius: var(--wp-radius-sm);
    border: 1.5px solid var(--wp-border);
    background: var(--wp-bg); text-align: center;
    font-size: 12px; font-weight: 600; color: var(--wp-muted);
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

.wp-delivery-opt.active {
    border-color: var(--wp-teal);
    background: rgba(0,191,165,.08);
    color: var(--wp-teal);
}

.wp-delivery-opt input {
    display: none;
}

.wp-pay-select {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 500; color: var(--wp-text);
    background: var(--wp-bg);
    border: 1.5px solid var(--wp-border);
    border-radius: var(--wp-radius-sm);
    padding: 10px 14px; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300BFA5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    margin-bottom: 14px; cursor: pointer;
}

.wp-pay-select:focus {
    outline: none;
    border-color: var(--wp-teal);
}

.wp-totals {
    display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px;
}

.wp-total-row {
    display: flex; justify-content: space-between; align-items: center;
}

.wp-total-label {
    font-size: 13px; color: var(--wp-muted);
}

.wp-total-value {
    font-size: 13px; font-weight: 600; color: var(--wp-text);
}

.wp-total-row.final .wp-total-label {
    font-size: 15px; font-weight: 700; color: var(--wp-text);
}

.wp-total-row.final .wp-total-value {
    font-size: 20px; font-weight: 800; color: var(--wp-text);
}

.wp-mesa-badge {
    text-align: center; margin-bottom: 12px;
}

.wp-mesa-badge span {
    font-size: 22px; font-weight: 800;
    background: var(--wp-grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.wp-cta-primary {
    width: 100%; height: 48px; border: none; border-radius: 50px;
    background: var(--wp-grad); color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 10px; transition: opacity .2s, transform .1s;
}

.wp-cta-primary:active {
    transform: scale(.98);
}

.wp-cta-row {
    display: flex; gap: 8px;
}

.wp-cta-secondary {
    flex: 1; height: 38px;
    border: 1.5px solid var(--wp-border); border-radius: 50px;
    background: transparent; font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--wp-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: border-color .2s, color .2s;
}

.wp-cta-secondary:hover {
    border-color: var(--wp-teal);
    color: var(--wp-teal);
}

.wp-login-section {
    text-align: center; padding: 4px 0 16px;
}

.wp-login-title {
    font-size: 13px; color: var(--wp-muted); margin-bottom: 10px;
}

.wp-login-btn {
    width: 100%; height: 42px;
    border: 1.5px solid var(--wp-border); border-radius: 50px;
    background: var(--wp-surface); font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--wp-text);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 8px; transition: border-color .2s;
}

.wp-login-btn:hover {
    border-color: var(--wp-teal);
}

.wp-login-btn img {
    height: 18px; width: auto;
}
/* ══════════════════════════════════════════════════════════════
   WAPIO DESKTOP — Fixes v1
   1. Sidebar banner + brand: estilo similar a mobile
   2. Modal de producto: más angosto y proporcional
══════════════════════════════════════════════════════════════ */

/* ── 1. SIDEBAR BRAND — Banner + logo centrado ── */

/* El bloque .dt-brand pasa a ser vertical y sin padding lateral apretado */
.dt-brand {
    padding: 0 0 14px !important;
    gap: 0 !important;
    border-bottom: 1px solid var(--border);
}

/* Banner ocupa todo el ancho del sidebar, altura generosa */
.dt-brand-banner {
    width: 100% !important;
    height: 130px !important;
    border-radius: 0 !important;        /* sin bordes — va de punta a punta */
    margin-bottom: 0 !important;
    position: relative;
}

/* Overlay más intenso al fondo para que el logo resalte */
.dt-brand-banner-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.50) 100%) !important;
}

/* Logo centrado y sobrepuesto al banner (posición absoluta) */
.dt-brand-top {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px 14px 0 !important;
    margin-top: -26px;          /* sube para superponerse al banner */
    position: relative;
    z-index: 2;
}

.dt-brand-logo {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;      /* circular, como en mobile */
    border: 2px solid #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

/* Nombre e info centrados */
.dt-brand-info {
    text-align: center !important;
}

.dt-brand-name {
    font-size: 12px !important;
    letter-spacing: 0.8px !important;
    text-align: center;
}

.dt-brand-address {
    text-align: center;
    font-size: 9px !important;
}

/* Redes sociales centradas debajo */
.dt-social {
    justify-content: center !important;
    padding: 6px 0 0 !important;
}

/* ── 2. MODAL DE PRODUCTO — más angosto y compacto ── */



/* ── WAPIO BRAND PALETTE ── */
:root {
    --wp-green:      #00C853;
    --wp-teal:       #00BFA5;
    --wp-navy:       #0D1B2A;
    --wp-grad:       linear-gradient(135deg, #00C853 0%, #00BFA5 100%);
    --wp-grad-soft:  linear-gradient(135deg, rgba(0,200,83,.12) 0%, rgba(0,191,165,.12) 100%);
    --wp-surface:    #ffffff;
    --wp-bg:         #f7f9f8;
    --wp-border:     #e8efec;
    --wp-text:       #0D1B2A;
    --wp-muted:      #6b7c74;
    --wp-radius:     16px;
    --wp-radius-sm:  10px;
}

/* ── MODAL SHELL ── */
#dinamicModalEdito .modal-dialog {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

#dinamicModalEdito .modal-content {
    max-height: 92vh;
}

/* ── CLOSE BUTTON ── */
.wp-close {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 20;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(13,27,42,.45);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    transition: background .2s;
}
.wp-close:hover { background: rgba(13,27,42,.7); }

/* ── SCROLLABLE BODY ── */
.wp-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* ── GALLERY: exactly 30% of viewport height ── */
.wp-gallery {
    position: relative;
    height: 20vh;
    min-height: 140px;
    max-height: 220px;
    background: var(--wp-navy);
    overflow: hidden;
}
.wp-gallery .owl-carousel,
.wp-gallery .owl-stage-outer,
.wp-gallery .owl-stage,
.wp-gallery .owl-item,
.wp-gallery .item {
    height: 100% !important;
}
.wp-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}
/* Gradient fade at bottom of image */
.wp-gallery::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--wp-surface));
    pointer-events: none;
    z-index: 5;
}
/* Category tag */
.wp-category-tag {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 10;
    background: var(--wp-grad);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── DETAILS SECTION ── */
.wp-details {
    padding: 14px 18px 8px;
}
.wp-product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--wp-text);
    margin: 0 0 6px;
    line-height: 1.25;
}
.wp-description {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: var(--wp-muted);
    line-height: 1.55;
    margin: 0 0 10px;
}

/* Price display */
.wp-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}
.wp-price-label {
    font-size: 11px;
    color: var(--wp-muted);
    font-family: 'Poppins', sans-serif;
}
.wp-price-value {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: var(--wp-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Size chips (small display) */
.wp-size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.wp-size-chip {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--wp-muted);
    background: var(--wp-bg);
    border: 1px solid var(--wp-border);
    border-radius: 20px;
    padding: 3px 10px;
}
.wp-size-chip strong {
    color: var(--wp-teal);
    font-weight: 700;
}

/* Divider */
.wp-divider {
    height: 1px;
    background: var(--wp-border);
    margin: 10px 0;
}

/* ── SIZE SELECTOR ── */
.wp-select-wrap {
    padding: 0 18px 10px;
}
.wp-select-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--wp-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}
.wp-select-native {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp-text);
    background: var(--wp-bg);
    border: 1.5px solid var(--wp-border);
    border-radius: var(--wp-radius-sm);
    padding: 10px 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300BFA5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .2s;
}
.wp-select-native:focus {
    outline: none;
    border-color: var(--wp-teal);
}

/* ── QUANTITY + CTA FOOTER ── */
.wp-footer {
    position: sticky;
    bottom: 0;
    background: var(--wp-surface);
    border-top: 1px solid var(--wp-border);
    padding: 12px 18px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* Quantity control */
.wp-qty {
    display: flex;
    align-items: center;
    background: var(--wp-bg);
    border: 1.5px solid var(--wp-border);
    border-radius: 50px;
    overflow: hidden;
    flex-shrink: 0;
}
.wp-qty-btn {
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--wp-teal);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.wp-qty-btn:hover { background: rgba(0,191,165,.1); }
.wp-qty-num {
    min-width: 28px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--wp-text);
    pointer-events: none;
}

/* Add to cart button */
.wp-add-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 50px;
    background: var(--wp-grad);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wp-add-btn:active { transform: scale(.97); }
.wp-add-btn:disabled { opacity: .45; cursor: not-allowed; }
.wp-add-btn i { font-size: 16px; }

.wp-qty-num {
    position: static !important;
    font-size: 14px;
    font-weight: 700;
     color: var(--wp-teal);
    min-width: 32px;
    text-align: center;
    font-size: 15px;
}


/* Ancho máximo reducido: 420 px es suficiente para desktop */
#page_container .modal-dialog {
    max-width: 320px !important;
    width: 320px !important;
    margin: 60px auto !important;
}

/* Centrar el modal verticalmente en lugar de pegarlo arriba */
#page_container .modal.in {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Redondeo y sombra más refinados */
#page_container .modal-content {
    border-radius: 20px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22) !important;
    border: none !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
}

/* Imagen del producto — altura proporcionada al ancho reducido */
#page_container .wp-gallery {
    height: 180px !important;
    background-color: var(--bg-3) !important;
}
#page_container .wp-gallery img {
    height: 180px !important;
    object-fit: cover !important;
}

/* Tipografía y espaciado interno compactos */
#page_container .wp-details {
    padding: 12px 14px 6px !important;
}
#page_container .wp-product-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
}
#page_container .wp-price-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--accent-dim) !important;
}
#page_container .wp-description {
    font-size: 11px !important;
    color: var(--text-2) !important;
    line-height: 1.5 !important;
}
#page_container .wp-select-wrap {
    padding: 0 14px 8px !important;
}
#page_container .wp-select-native {
    height: 34px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
}

/* Chips de tamaño */
#page_container .wp-size-chips {
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
}

/* Footer con botón de agregar */
#page_container .wp-footer {
    padding: 10px 14px 14px !important;
    border-top: 1px solid var(--border) !important;
}
#page_container .wp-add-btn {
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
}
#page_container .wp-qty-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
}
#page_container .wp-qty-num {
    font-size: 15px !important;
    font-weight: 700 !important;
    min-width: 24px !important;
    text-align: center !important;
}

/* Backdrop más suave */
#page_container .modal-backdrop.in {
    opacity: 0.55 !important;
}

/* ── Precio tachado + badge descuento ── */
.wp-price-original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.85em;
    font-weight: 400;
    margin-right: 2px;
}
.wp-discount-badge {
    display: inline-block;
    background: #ef5350;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 4px;
    letter-spacing: 0.4px;
    vertical-align: middle;
}
 
/* Badge en las cards del catálogo */
.wp-card-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef5350;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(239,83,80,0.4);
}
 
/* Precio tachado en las cards */
.wp-price-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 0.78em;
    font-weight: 400;
    display: block;
    line-height: 1;
    margin-bottom: 1px;
}