
/* ==========================================================================
   ESTILOS DE LA BOLSA DE COMPRA (CARRITO) · MARCA DAMA BLANCA
   Diseño Editorial Plano, Limpio y sin Cajas de Colores
   Tipografía: Object Sans (Pesos finos y elegantes 300 / 400 / 500)
   ========================================================================== */

.db-cart-main-wrap {
    width: 100% !important;
    margin: 0 auto !important;
    padding-top: clamp(140px, 16vh, 175px) !important;
    padding-bottom: 7rem !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .db-cart-main-wrap {
        padding-top: clamp(95px, 12vh, 115px) !important;
    }
}

/* 1. BREADCRUMBS Y CABECERA EDITORIAL PLANA */
.db-cart-nav-crumbs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(18, 18, 16, 0.4);
    margin-bottom: 2rem;
}
.db-cart-nav-crumbs a {
    color: rgba(18, 18, 16, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}
.db-cart-nav-crumbs a:hover {
    color: #121210;
}
.db-cart-nav-crumbs .sep {
    opacity: 0.3;
}
.db-cart-nav-crumbs .current {
    color: #121210;
    font-weight: 500;
}

.db-cart-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    margin-bottom: 1.8rem;
}
.db-cart-hero-header h1 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #121210;
    margin: 0 0 0.4rem 0;
}
.db-cart-hero-header p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.6);
    margin: 0;
    letter-spacing: -0.01em;
}
.db-cart-back-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #121210;
    text-decoration: none;
    border-bottom: 1px solid rgba(18, 18, 16, 0.25);
    padding-bottom: 2px;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.db-cart-back-shop:hover {
    opacity: 0.7;
    border-color: #121210;
}

/* 2. BARRA DE ENVÍO PLANA (SIN CAJA DE COLOR SÓLIDA) */
.db-cart-notice-flat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    margin-bottom: 3.5rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(18, 18, 16, 0.75);
}
.db-cart-notice-flat .notice-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: rgba(18, 18, 16, 0.45);
}

/* 3. LAYOUT EDITORIAL ASIMÉTRICO DEL CARRITO */
.db-cart-editorial-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: flex-start;
}

/* 4. TABLA DE ARTÍCULOS PLANA (SIN FONDOS NI CAJAS) */
.db-cart-items-container {
    width: 100%;
}

.db-cart-table {
    width: 100%;
    border-collapse: collapse;
}
.db-cart-table thead th {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.64rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(18, 18, 16, 0.4);
    text-align: left;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
}
.db-cart-table thead th.th-qty {
    text-align: center;
}
.db-cart-table thead th.th-subtotal {
    text-align: right;
}

.db-cart-row {
    border-bottom: 1px solid rgba(18, 18, 16, 0.06);
}
.db-cart-row td {
    padding: 1.8rem 0;
    vertical-align: middle;
}

/* Miniatura limpia sin caja de color */
.db-cart-thumb-cell {
    width: 90px;
    padding-right: 1.5rem !important;
}
.db-cart-thumb-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0;
}
.db-cart-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.db-cart-row:hover .db-cart-thumb-box img {
    transform: scale(1.05);
}

/* Información del Producto */
.db-cart-info-cell {
    padding-right: 1rem !important;
}
.db-cart-item-tag {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.58rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(18, 18, 16, 0.4);
    margin-bottom: 0.2rem;
    display: block;
}
.db-cart-item-title {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.25;
    color: #121210;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.db-cart-item-title:hover {
    opacity: 0.65;
}
.db-cart-item-unit-price {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.55);
    margin-top: 0.3rem;
    display: block;
}

/* Selector de Cantidad en Píldora Fina */
.db-cart-qty-cell {
    text-align: center;
    width: 120px;
}
.db-pill-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid rgba(18, 18, 16, 0.14);
    border-radius: 9999px;
    height: 36px;
    padding: 2px 4px;
    box-sizing: border-box;
    width: 96px;
}
.db-pill-stepper .quantity {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.db-pill-stepper .quantity label {
    display: none !important;
}
.db-pill-step-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #121210;
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}
.db-pill-step-btn:hover {
    background-color: rgba(18, 18, 16, 0.05);
}
.db-pill-step-input {
    width: 30px !important;
    height: 26px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-family: 'Object Sans', 'ObjectSans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #121210 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.db-pill-step-input::-webkit-outer-spin-button,
.db-pill-step-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal de Línea */
.db-cart-subtotal-cell {
    text-align: right;
    width: 100px;
}
.db-cart-subtotal-num {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #121210;
}

/* Botón Eliminar Sutil */
.db-cart-remove-cell {
    width: 36px;
    text-align: right;
}
.db-cart-btn-del {
    background: transparent;
    border: none;
    color: rgba(18, 18, 16, 0.25);
    cursor: pointer;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.db-cart-btn-del:hover {
    color: #121210;
    transform: scale(1.15);
}

/* Toolbar de Acciones */
.db-cart-actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 2rem;
    margin-top: 0.5rem;
}
.db-coupon-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.db-coupon-txt {
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(18, 18, 16, 0.14);
    border-radius: 0px;
    outline: none;
    background: transparent;
    min-width: 180px;
    color: #121210;
    transition: border-color 0.2s ease;
}
.db-coupon-txt:focus {
    border-color: #121210;
}
.db-btn-coupon-apply {
    background: #121210;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}
.db-btn-coupon-apply:hover {
    background-color: #333333;
}

.db-btn-cart-update {
    background: transparent;
    border: 1px solid rgba(18, 18, 16, 0.25);
    color: #121210;
    padding: 0.75rem 1.5rem;
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.db-btn-cart-update:hover {
    border-color: #121210;
    background-color: #121210;
    color: #ffffff;
}

/* 5. RESUMEN DEL PEDIDO PLANO (SIN CAJA DE COLOR) */
.db-cart-summary-sticky {
    position: sticky;
    top: 100px;
}
.db-order-summary-box {
    background-color: transparent !important;
    border: 1px solid rgba(18, 18, 16, 0.09);
    padding: 2.2rem 2rem;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    box-sizing: border-box;
}
.db-summary-head-title {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #121210;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
}

.db-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #121210;
}
.db-summary-line.subtotal {
    font-weight: 400;
}
.db-summary-line.shipping {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border-top: 1px solid rgba(18, 18, 16, 0.06);
    border-bottom: 1px solid rgba(18, 18, 16, 0.06);
    padding: 0.9rem 0;
}
.db-summary-line.shipping .ship-title-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 400;
}
.db-summary-line.shipping .ship-note {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.55);
    line-height: 1.4;
}

.db-summary-line.grand-total {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-top: 1px solid rgba(18, 18, 16, 0.12);
    padding-top: 1.1rem;
    margin-top: 0.3rem;
}

.db-btn-proceed-checkout {
    background-color: #121210;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.05rem 1.8rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.db-btn-proceed-checkout:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Sellos de Confianza Planos */
.db-cart-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-top: 1px solid rgba(18, 18, 16, 0.08);
    padding-top: 1.1rem;
    margin-top: 0.3rem;
}
.db-trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.7);
}
.db-trust-icon {
    font-size: 0.82rem;
    opacity: 0.8;
}

/* ==========================================================================
   ESTADO DE CARRITO VACÍO PLANO (SIN CAJA ROSA)
   ========================================================================== */
.db-empty-state-flat {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    text-align: center;
    border-bottom: 1px solid rgba(18, 18, 16, 0.08);
    margin-bottom: 4.5rem;
}
.db-empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.2rem auto;
    color: #121210;
    stroke-width: 1;
    opacity: 0.65;
}
.db-empty-state-flat h2 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #121210;
    margin: 0 0 0.75rem 0;
}
.db-empty-state-flat p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.6);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
.db-empty-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #121210;
    color: #ffffff;
    padding: 0.9rem 2rem;
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 9999px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.db-empty-cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Cuadrícula de 4 Variedades Recomendadas (Limpia y Plana, como Inicio-2) */
.db-empty-recom-head {
    margin-bottom: 2.5rem;
}
.db-empty-recom-head h3 {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #121210;
    margin: 0 0 0.35rem 0;
}
.db-empty-recom-head p {
    font-family: 'Object Sans', 'ObjectSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(18, 18, 16, 0.55);
    margin: 0;
}

.db-empty-recom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 1050px) {
    .db-empty-recom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .db-empty-recom-grid {
        grid-template-columns: 1fr;
    }
}

.db-recom-card {
    background: transparent !important;
    border: none !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
}

.db-recom-img-wrap {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background: transparent;
}
.db-recom-img-wrap img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s ease;
}
.db-recom-card:hover .db-recom-img-wrap img {
    transform: scale(1.05);
}

.db-recom-title {
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.25;
    color: #121210;
    margin: 0 0 0.4rem 0;
}
.db-recom-desc {
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.45;
    color: #555555;
    margin: 0 0 0.8rem 0;
}
.db-recom-price {
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #121210;
    margin-bottom: 1.2rem;
}
.db-recom-btn {
    display: inline-flex;
    align-items: center;
    background-color: #9ad5c6;
    color: #0b1a2d;
    text-decoration: none;
    padding: 0.45rem 1.2rem;
    font-family: 'Object Sans', 'ObjectSans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.db-recom-btn:hover {
    background-color: #88c9b9;
    transform: translateY(-2px);
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
    .db-cart-editorial-layout {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .db-cart-table thead {
        display: none;
    }
    .db-cart-table, 
    .db-cart-table tbody, 
    .db-cart-row {
        display: block;
        width: 100%;
    }
    
    .db-cart-row {
        position: relative;
        display: grid;
        grid-template-columns: 75px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 10px;
        padding: 1.2rem 0;
        background: transparent;
        border-bottom: 1px solid rgba(18, 18, 16, 0.08);
        box-sizing: border-box;
    }
    
    .db-cart-thumb-cell {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding: 0 !important;
        width: 75px;
    }
    .db-cart-thumb-box {
        width: 75px;
        height: 75px;
    }
    
    .db-cart-info-cell {
        grid-column: 2;
        grid-row: 1;
        padding: 0 28px 0 0 !important;
    }
    .db-cart-item-title {
        font-size: 0.96rem;
    }
    
    .db-cart-qty-cell {
        grid-column: 2;
        grid-row: 2;
        padding: 0 !important;
        text-align: left;
        width: auto;
    }
    .db-pill-stepper {
        height: 32px;
        width: 92px;
        touch-action: manipulation;
    }
    .db-pill-step-btn {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
        touch-action: manipulation;
    }
    .db-pill-step-input {
        width: 28px;
        height: 24px;
        font-size: 16px !important;
        pointer-events: none;
    }
    
    .db-cart-subtotal-cell {
        grid-column: 2;
        grid-row: 2;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }
    .db-cart-subtotal-num {
        font-size: 1rem;
    }
    
    .db-cart-remove-cell {
        position: absolute;
        top: 0.75rem;
        right: 0;
        padding: 0 !important;
        width: auto;
    }
    
    .db-cart-actions-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding-top: 1.2rem;
    }
    .db-coupon-box {
        width: 100%;
    }
    .db-coupon-txt {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px !important;
    }
    .db-btn-cart-update {
        width: 100%;
        text-align: center;
    }
}
