/* ================================================
   Shopify Cart Drawer — My Boudoir
   Palette: cream bg #faf8f5 · dark text #2c2c2c · gold accent #a8977b
   ================================================ */

/* Overlay */
.shopify-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.shopify-cart-overlay.is-open {
    display: block;
    opacity: 1;
}

/* Drawer */
.shopify-cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 100vw;
    height: 100%;
    background: #faf8f5;
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: inherit;
}
.shopify-cart-drawer.is-open {
    right: 0;
}

/* Prevent body scroll when drawer is open */
body.cart-drawer-active {
    overflow: hidden;
}

/* ---- Header ---- */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #e8e0d5;
    flex-shrink: 0;
}
.cart-drawer-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c2c2c;
}
.cart-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #888;
    transition: color 0.15s;
}
.cart-close-btn:hover {
    color: #2c2c2c;
}

/* ---- Items list ---- */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}
.cart-items-list::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Cart item */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #ede8e0;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    display: block;
}
.cart-item-img--placeholder {
    background: #ede8e0;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 500;
    color: #2c2c2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-qty {
    margin: 0 0 3px;
    font-size: 12px;
    color: #888;
}
.cart-item-price {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #a8977b;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #bbb;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.cart-item-remove:hover {
    color: #c0392b;
}

/* ---- Empty state ---- */
.cart-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ---- Error ---- */
.cart-error-msg {
    padding: 16px 0;
    color: #c0392b;
    font-size: 13px;
}

/* ---- Footer ---- */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #e8e0d5;
    flex-shrink: 0;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.03em;
}

/* Checkout button — matches Add to Cart style */
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #a8977b;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
}
.cart-checkout-btn:hover {
    background: #96866a;
    color: #fff !important;
}

/* ---- Mini-cart Blocksy: ocultar dropdown, solo se usa el drawer ---- */
.ct-cart-content {
    display: none !important;
}

/* ---- Badge contador del carrito en header ---- */
.ct-dynamic-count-cart {
    color: #fff !important;
}

/* ---- Ocultar "View cart" nativo de WooCommerce (reemplazado por el drawer) ---- */
.single-product a.added_to_cart,
a.added_to_cart.wc-forward {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .shopify-cart-drawer {
        width: 100vw;
    }
}

/* ================================================
   Slideshow — 3 columnas (imagen | logo | imagen)
   ================================================ */
.adriana-slideshow {
    width: 100%;
    overflow: hidden;
}
.adriana-slideshow-inner {
    display: flex;
    align-items: stretch;
}
.adriana-slide-col {
    flex: 1 1 33.333%;
    overflow: hidden;
    line-height: 0;
}
.adriana-slide-col img {
    width: 100%;
    height: auto;
    display: block;
    object-position: top;
}
.adriana-slide-center img {
    background: #faf8f5;
}
@media (max-width: 600px) {
    .adriana-slideshow-inner {
        flex-direction: column;
    }
    .adriana-slide-col {
        flex: none;
        width: 100%;
    }
    .adriana-slide-center {
        padding: 24px 0;
    }
}
