/* ============================================================
   Capa de estilos del rediseño por dominios
   Se añade al final para no alterar la identidad visual original.
   ============================================================ */

:root {
    --rose: #a84551;
    --rose-dark: #8f3742;
    --brown: #3e2f1f;
    --sand: #faf7f2;
    --muted-text: #7a6f63;
    --soft-border: #eadfd2;
    --ok: #2e7d32;
    --danger: #c0392b;
    --info: #2c5282;
    --radius-soft: 14px;
}

.site-main { min-height: 70vh; }
.muted { color: var(--muted-text); }
.small { font-size: 12px; }
.mono { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Avisos flotantes ---------- */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
}
.toast-message {
    padding: 13px 17px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    animation: dj-slide-in .3s ease-out;
}
.toast-message.success { background: #2e7d32; }
.toast-message.error { background: #c0392b; }
.toast-message.warning { background: #8a5a00; }
.toast-message.info { background: #2c5282; }
@keyframes dj-slide-in { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); }
.btn-outline { background: #fff; color: var(--brown); border-color: var(--soft-border); }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.link-button { background: none; border: none; padding: 0; color: var(--rose); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }
.text-link { color: var(--rose); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Formularios ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.form-field label, .field-label { font-size: 13px; font-weight: 600; color: var(--brown); }
.form-field .required { color: var(--rose); margin-left: 3px; }
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(192, 96, 107, .12);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.form-field .field-error { font-size: 12px; color: var(--danger); font-weight: 600; }
.form-field .help-text { font-size: 12px; color: var(--muted-text); }
.form-check { flex-direction: row; align-items: center; gap: 8px; }
.form-check input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

/* Cédula/teléfono con selector y contraseñas con ojo */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group select {
    width: 92px;
    min-width: 92px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    background: #faf7f2;
    font-weight: 600;
}
.input-group input {
    flex: 1;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.password-wrap { position: relative; width: 100%; }
.password-wrap input { width: 100%; padding-right: 46px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7b6a5c;
    cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible { background: #f4ece5; color: var(--rose); }
.form-section { margin-bottom: 26px; }
.form-section h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step-number {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--rose); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
}
.form-alert { background: #fdecea; color: #8e1f16; border-left: 4px solid var(--danger); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.form-alert p { margin: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.radio-card {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.radio-card:hover { border-color: var(--rose); }
.radio-card input { accent-color: var(--rose); }
.radio-card:has(input:checked) { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(192,96,107,.12); background: #fff8f8; }

/* ---------- Autenticación ---------- */
.auth-page { display: flex; justify-content: center; padding: 48px 20px; background: var(--sand); }
.auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: 18px;
    padding: 36px 30px 30px;
    box-shadow: 0 18px 40px rgba(62, 47, 31, .08);
}
.auth-card-wide { max-width: 720px; }
.auth-close { position: absolute; top: 12px; right: 18px; font-size: 28px; line-height: 1; color: #6b5f53; text-decoration: none; }
.auth-close:hover { color: var(--brown); }
.auth-header { text-align: center; margin-bottom: 22px; }
.auth-header img { max-height: 64px; margin: 0 auto 10px; display: block; border-radius: 10px; }
.auth-header h1 { font-family: 'Playfair Display', serif; font-size: 27px; color: var(--brown); }
.auth-header p { color: var(--muted-text); font-size: 14px; margin-top: 4px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted-text); margin-top: 14px; }
.auth-alt a { color: var(--rose); font-weight: 600; }
.auth-support {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--soft-border);
    text-align: center;
    font-size: 12px;
    color: var(--muted-text);
    line-height: 1.6;
}
.auth-support a { color: var(--brown); font-weight: 700; text-decoration: underline; }

/* Logo y enlaces del formulario de ingreso */
.auth-header .auth-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 72px;
    margin: 0 auto 12px;
    padding: 4px 8px;
    background: #ffffff;
    border: 1px solid #efe5d8;
    border-radius: 14px;
    object-fit: contain;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.12);
}
.auth-header .auth-subtitle {
    color: #5b4a3b;
    font-size: 14px;
    font-weight: 700;
}
.auth-alt .auth-action-link {
    color: #8b1e2d;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.auth-alt .auth-action-link:hover,
.auth-alt .auth-action-link:focus-visible {
    color: #5f101b;
    border-bottom-color: #5f101b;
}

/* ---------- Cabeceras de página ---------- */
.page-banner { background: var(--sand); border-bottom: 1px solid var(--soft-border); padding: 42px 20px 34px; text-align: center; }
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 40px); color: var(--brown); }
.page-banner p { color: var(--muted-text); margin-top: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-heading h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--brown); }

/* ---------- Catálogo ---------- */
.product-meta-line { font-size: .78rem; color: #6f6255; padding: 0 0 10px; }
.stock-note { font-size: .75rem; color: #8a5a00; font-weight: 600; padding-bottom: 8px; }
.out-of-stock { font-size: .8rem; font-weight: 700; color: var(--danger); background: #fdecea; padding: 9px; border-radius: 8px; }
.catalog-layout { max-width: 1280px; margin: 32px auto 60px; padding: 0 20px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.catalog-sidebar { background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-soft); padding: 20px; position: sticky; top: 96px; }
.catalog-sidebar h3 { font-family: 'Playfair Display', serif; font-size: 19px; margin-bottom: 12px; color: var(--brown); }
.filter-link { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; color: #5f5347; font-size: 14px; text-decoration: none; }
.filter-link span { color: #6f6255; font-size: 12px; }
.filter-link:hover { background: var(--sand); color: var(--brown); }
.filter-link.active { background: #f7e9ea; color: var(--rose); font-weight: 700; }
.sidebar-search { margin-top: 20px; border-top: 1px solid var(--soft-border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-search label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-text); }
.sidebar-search input { padding: 9px 11px; border: 1px solid var(--soft-border); border-radius: 8px; font-size: 14px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.result-count { color: var(--muted-text); font-size: 14px; }

/* ---------- Detalle de producto ---------- */
.breadcrumbs { max-width: 1180px; margin: 22px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-text); }
.breadcrumbs a { color: var(--muted-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose); }
.product-detail { max-width: 1180px; margin: 24px auto 60px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; }
.product-detail-media { position: relative; }
.product-detail-image { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgba(62,47,31,.12); }
.product-gallery { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--soft-border); }
.product-detail-info { padding-top: 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--rose); }
.product-detail-info h1 { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--brown); margin-top: 6px; }
.product-detail-name { font-size: 17px; font-weight: 500; color: var(--muted-text); margin-top: 4px; }
.product-detail-price { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--rose); margin: 16px 0 12px; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-description { color: #5c5248; line-height: 1.7; margin-bottom: 22px; }
.add-to-cart-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 18px; background: var(--sand); border: 1px solid var(--soft-border); border-radius: var(--radius-soft); }
.quantity-picker { display: flex; flex-direction: column; gap: 6px; }
.quantity-picker label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-text); }
.quantity-picker input { width: 92px; padding: 11px; border: 1px solid var(--soft-border); border-radius: 9px; font-size: 15px; }
.product-perks { list-style: none; margin-top: 24px; display: grid; gap: 10px; color: #5c5248; font-size: 14px; }
.product-perks i { color: var(--rose); width: 20px; }
.related-section { max-width: 1280px; margin: 0 auto 70px; padding: 0 20px; }

/* ---------- Carrito ---------- */
.cart-page { max-width: 1180px; margin: 32px auto 60px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-page-items { display: flex; flex-direction: column; gap: 14px; }
.cart-page-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-soft); padding: 14px; }
.cart-page-image img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.cart-page-name { font-weight: 700; color: var(--brown); text-decoration: none; }
.cart-page-name:hover { color: var(--rose); }
.cart-page-sku { font-size: 12px; color: var(--muted-text); margin-top: 2px; }
.cart-page-price { font-size: 13px; color: var(--muted-text); margin-top: 6px; }
.cart-page-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input { width: 68px; padding: 8px; border: 1px solid var(--soft-border); border-radius: 8px; text-align: center; }
.cart-page-subtotal { font-weight: 800; color: var(--brown); font-size: 16px; }
.cart-summary-card { background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-soft); padding: 22px; box-shadow: 0 12px 30px rgba(62,47,31,.06); position: sticky; top: 96px; }
.cart-summary-card h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 14px; color: var(--brown); }
.summary-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: #5c5248; }
.summary-list dt { color: var(--muted-text); }
.summary-list dd { font-weight: 600; }
.summary-total { border-top: 1px solid var(--soft-border); padding-top: 12px; font-size: 18px; }
.summary-total dt, .summary-total dd { color: var(--brown); font-weight: 800; }
.cart-summary-card .btn { margin-bottom: 8px; }
.cart-clear-form { text-align: center; margin-top: 6px; }
.cart-secondary-btn { background: #fff; color: var(--rose); border: 1px solid var(--rose); margin-top: 8px; }
.cart-secondary-btn:hover { background: #fdf3f4; }

/* ---------- Checkout ---------- */
.checkout-layout { max-width: 1180px; margin: 32px auto 60px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.checkout-form { background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-soft); padding: 26px; box-shadow: 0 12px 30px rgba(62,47,31,.05); }
.checkout-items { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.checkout-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.checkout-item-image img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.checkout-items strong { display: block; color: var(--brown); font-size: 13px; }
.checkout-items span { color: var(--muted-text); }

/* ---------- Pedidos ---------- */
.order-header { max-width: 1180px; margin: 30px auto 0; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.order-header h1 { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--brown); }
.order-layout { max-width: 1180px; margin: 22px auto 60px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.order-aside { position: sticky; top: 96px; }
.panel { background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-soft); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-family: 'Playfair Display', serif; font-size: 21px; color: var(--brown); margin-bottom: 14px; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #f1e9df; vertical-align: top; }
.data-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-text); background: #fbf8f4; }
.data-table tr:last-child td { border-bottom: none; }
.order-item-cell { display: flex; align-items: center; gap: 12px; }
.order-thumb { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 10px; }
.detail-list { display: grid; gap: 10px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.detail-list dt { color: var(--muted-text); min-width: 110px; }
.detail-list dd { font-weight: 600; color: #4a4038; text-align: right; }
.timeline { list-style: none; position: relative; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: #efe4d8; }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; box-shadow: 0 0 0 2px #f3d6d9; }
.timeline strong { display: block; font-size: 14px; color: var(--brown); }
.timeline p { font-size: 13px; color: var(--muted-text); margin-top: 3px; }
.payment-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.payment-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f1e9df; padding-bottom: 12px; }
.payment-list li:last-child { border-bottom: none; padding-bottom: 0; }
.payment-list strong { display: block; font-size: 13px; color: var(--brown); }
.payment-amount { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-weight: 700; font-size: 13px; }
.orders-page { max-width: 1180px; margin: 30px auto 60px; padding: 0 20px; }
.orders-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.orders-filter a {
    padding: 7px 12px;
    border: 1px solid var(--soft-border);
    border-radius: 999px;
    color: var(--muted-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.orders-filter a.active, .orders-filter a:hover { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---------- Pagos ---------- */
.payment-layout { max-width: 1180px; margin: 30px auto 60px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.payment-layout .panel h2 { font-size: 20px; }
.payment-form { margin-top: 6px; }
.payment-review { border-bottom: 1px solid #f1e9df; padding-bottom: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.payment-review:last-child { border-bottom: none; margin-bottom: 0; }
.inline-review-form { display: flex; gap: 8px; align-items: center; }
.inline-review-form input[type="text"] { flex: 1; padding: 8px 10px; border: 1px solid var(--soft-border); border-radius: 8px; font-size: 13px; }

/* ---------- Datos copiables, tasa y confirmación ---------- */
[hidden] { display: none !important; }
.copy-list dd { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--soft-border);
    border-radius: 7px;
    background: #fff;
    color: var(--brown);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.copy-btn:hover { border-color: var(--rose); color: var(--rose); background: #fff8f8; }
.ves-equivalent {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #f0d9a8;
    border-radius: 10px;
    background: #fffaf0;
    color: #7a5410;
    font-size: 13px;
    line-height: 1.6;
}
.ves-equivalent strong { color: #5f3d00; }
.payment-confirmed-note { color: var(--ok); font-weight: 700; font-size: 13px; margin: 6px 0 12px; }

/* ---------- Referencias de pedido ---------- */
.order-number { font-size: 1.12em; letter-spacing: .02em; }

/* ---------- Precios con descuento ---------- */
.price-old {
    color: var(--muted-text);
    text-decoration: line-through;
    font-size: .85em;
    margin-right: 4px;
}
.price-current { color: var(--danger); font-weight: 800; }
.discount-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fdecea;
    color: #a3261b;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

/* ---------- Estados y avisos ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status-pending { background: #fef3dc; color: #8a5a00; }
.status-paid { background: #e4f5e5; color: #1b5e20; }
.status-preparing { background: #fff0dd; color: #8a5318; }
.status-shipped { background: #e3ecf7; color: #23406b; }
.status-delivered { background: #d9f3ec; color: #0f5c4a; }
.status-cancelled { background: #fdecea; color: #8e1f16; }
.status-refunded { background: #f0e6f5; color: #4a2b5a; }
.status-neutral { background: #f0efec; color: #5c5750; }
.alert { display: flex; gap: 12px; align-items: flex-start; max-width: 1180px; margin: 24px auto 0; padding: 16px 18px; border-radius: var(--radius-soft); font-size: 14px; }
.alert i { font-size: 20px; margin-top: 2px; }
.alert strong { display: block; margin-bottom: 3px; }
.alert-success { background: #e4f5e5; color: #1b5e20; border: 1px solid #c6e6c8; }
.alert-info { background: #e3ecf7; color: #23406b; border: 1px solid #c9d9ee; }
.alert-danger { background: #fdeaea; color: #8f2323; border: 1px solid #efc4c4; }

/* ---------- Paginación y vacío ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px 0 10px; flex-wrap: wrap; }
.page-link { padding: 8px 14px; border: 1px solid var(--soft-border); border-radius: 8px; color: var(--brown); text-decoration: none; background: #fff; font-size: 13px; }
.page-link:hover { border-color: var(--rose); color: var(--rose); }
.page-current { font-size: 13px; color: var(--muted-text); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 46px 20px; background: #fff; border: 1px dashed var(--soft-border); border-radius: var(--radius-soft); }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--brown); margin-bottom: 8px; }
.empty-state p { color: var(--muted-text); margin-bottom: 18px; }

/* ---------- Ubicación ---------- */
.location-section { padding: 44px 20px; background: var(--sand); }
.location-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.location-inner h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--brown); margin-bottom: 8px; }
.location-inner > p { color: var(--muted-text); margin-bottom: 22px; }
.location-data { color: #4a4038; font-size: 15px; line-height: 1.8; margin-top: 18px; }

/* ---------- Ajustes de cabecera ---------- */
button.cart-icon { background: none; border: none; padding: 0; display: inline-flex; align-items: center; }
.cart-badge.is-hidden { display: none; }
.logout-inline { display: inline-flex; align-items: center; }
.user-icon-wrapper { text-decoration: none; }

/* ---------- Cantidad, galería y checkout ampliado ---------- */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.quantity-control input {
    width: 68px;
    text-align: center;
}
.quantity-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    background: #fff;
    color: var(--brown);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.quantity-btn:hover { border-color: var(--rose); color: var(--rose); }
.quantity-btn:disabled { opacity: .45; cursor: not-allowed; }
.product-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.product-thumb img { display: block; width: 76px; height: 76px; object-fit: cover; }
.product-thumb:hover, .product-thumb.is-active { border-color: var(--rose); }

.checkout-layout { grid-template-columns: minmax(0, 1fr) 440px; }
.checkout-table { min-width: 0; width: 100%; font-size: 12px; table-layout: fixed; }
.checkout-table .col-product { width: 48%; }
.checkout-table .col-qty { width: 10%; }
.checkout-table .col-price { width: 21%; }
.checkout-table .col-total { width: 21%; }
.checkout-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.checkout-payment-amount {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 14px 0 4px;
    padding: 14px 16px;
    border: 1px solid var(--soft-border);
    border-left: 4px solid var(--rose);
    border-radius: 10px;
    background: #fdf9f5;
}
.checkout-payment-amount .payment-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted-text);
    font-weight: 700;
}
.checkout-payment-amount strong {
    font-size: 22px;
    line-height: 1.2;
    color: var(--brown);
}
.checkout-payment-amount small {
    font-size: 12px;
    color: var(--muted-text);
}
.checkout-product-cell img {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: cover;
    border-radius: 10px;
}
.checkout-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.checkout-product-info strong {
    color: var(--brown);
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.checkout-product-info small {
    font-size: 10px;
    color: var(--muted-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.checkout-table tbody tr + tr td { border-top: 1px solid #f1e9df; }
.summary-list > div {
    padding: 7px 0;
    border-bottom: 1px solid var(--soft-border);
}
.summary-list > div:last-child { border-bottom: 0; }
.summary-total dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.summary-total-equivalent {
    color: var(--muted-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
}
.checkout-table th, .checkout-table td {
    padding: 8px 4px;
    white-space: nowrap;
    vertical-align: middle;
}
.checkout-table th:first-child,
.checkout-table td:first-child {
    white-space: normal;
}
.checkout-table th:nth-child(2),
.checkout-table td:nth-child(2) { text-align: center; }
.checkout-table-wrap { overflow-x: hidden; margin-bottom: 14px; }
.checkout-price-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}
.checkout-price-cell small { font-size: 10px; }
.checkout-price-cell .price-old { font-size: 10px; text-align: left; }
@media (max-width: 640px) {
    .checkout-table { font-size: 11px; }
    .checkout-table th, .checkout-table td { padding: 7px 3px; }
    .checkout-table .col-product { width: 44%; }
    .checkout-table .col-qty { width: 10%; }
    .checkout-table .col-price { width: 23%; }
    .checkout-table .col-total { width: 23%; }
    .checkout-price-cell small,
    .checkout-price-cell .price-old { font-size: 9px; }
}
.cart-summary-card .table-responsive { margin-bottom: 14px; }
.delivery-estimate {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--soft-border);
}
.delivery-estimate h3 {
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--brown);
}
.delivery-estimate .data-table { font-size: 12px; }
.delivery-estimate .data-table th { width: 38%; }
.alert-warning {
    background: #fff8e6;
    color: #7a5410;
    border: 1px solid #f0d9a8;
}
.payment-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.payment-form-actions .btn { flex: 1 1 160px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .catalog-layout, .product-detail, .cart-page, .checkout-layout, .order-layout, .payment-layout { grid-template-columns: 1fr; }
    .catalog-sidebar, .cart-summary-card, .order-aside { position: static; }
    .product-detail-image { max-height: 420px; }
}
@media (max-width: 640px) {
    .cart-page-item { grid-template-columns: 74px minmax(0, 1fr); }
    .cart-page-image img { width: 74px; height: 74px; }
    .cart-page-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .order-header h1 { font-size: 26px; }
    .radio-grid { grid-template-columns: 1fr; }
    .toast-container { left: 14px; right: 14px; max-width: none; }
}

/* ============================================================
   Accesibilidad, legal, cookies y ajustes responsive
   ============================================================ */
:root {
    --rose: #a84551;
    --rose-dark: #8f3742;
    --muted-text: #6b5f53;
    --focus: #8f3742;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 6000;
    background: #fff;
    color: var(--brown);
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.skip-link:focus { top: 0; }

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Contraste AA en textos pequeños y estados */
.product-meta-line { color: #6f6255; }
.stock-note { color: #8a5a00; }
.filter-link span { color: #6f6255; }
.text-link, .link-button { color: var(--rose); }
.eyebrow { color: var(--rose); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); }

/* Carrusel: imagen completa + fondo desenfocado de la misma fotografía */
.carousel-container {
    width: 100%;
    height: 60vh;
    min-height: 350px;
    max-height: 550px;
    background: #f7f2ea;
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #f1e7dc;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: 0;
    background-image: var(--carousel-image, none);
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(.82) saturate(1.1);
    transform: scale(1.08);
    pointer-events: none;
}

.carousel-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

button.menu-icon {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--brown);
    font-size: 1.4rem;
    padding: 6px;
}

.social-float { background: #3e2f1f; }

/* ------------------------- Pie de página ------------------------- */
.footer {
    background: #2d1b36;
    color: #f4ece5;
    text-align: left;
    padding: 48px 20px 18px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.2fr 1.2fr;
    gap: 32px;
}
.footer-logo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
}
.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}
.footer-nap, .footer-column p {
    color: #e8ded5;
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0;
}
.footer-nap a, .footer-column a {
    color: #f1e6dd;
    text-decoration: none;
}
.footer-nap a:hover, .footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-column h2 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
}
.footer-column a { display: block; padding: 3px 0; }
.footer-whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #7ee2a0 !important;
    font-weight: 700;
    margin-top: 10px !important;
}
.footer-cookie-button {
    color: #f1e6dd;
    font-size: 14px;
    padding: 3px 0;
    text-align: left;
}
.footer-bottom {
    max-width: 1180px;
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #d8cdc4;
    font-size: 12px;
}

/* ------------------------- Aviso de cookies ------------------------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 4000;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}
.cookie-banner[hidden],
html[data-consent="1"] .cookie-banner {
    display: none !important;
}
.cookie-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    color: var(--brown);
    margin-bottom: 4px;
}
.cookie-banner p {
    color: #4a4038;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.cookie-banner a { color: var(--rose); font-weight: 600; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ------------------------- Páginas legales ------------------------- */
.legal-page {
    max-width: 1180px;
    margin: 32px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 280px;
    gap: 30px;
    align-items: start;
}
.legal-toc, .legal-aside {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    padding: 20px;
}
.legal-toc h2, .legal-aside h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--brown);
    margin-bottom: 10px;
}
.legal-toc a {
    display: block;
    padding: 6px 0;
    color: #5f5347;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px dotted #eee3d7;
}
.legal-toc a:hover { color: var(--rose); }
.legal-content {
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    padding: 30px 34px;
}
.legal-content section { margin-bottom: 26px; }
.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--brown);
    margin-bottom: 10px;
}
.legal-content p, .legal-content li {
    color: #4a4038;
    font-size: 15px;
    line-height: 1.75;
}
.legal-content p { margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--rose); font-weight: 600; }
.legal-content code {
    background: #f7efe7;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
}
.legal-aside p { color: #5f5347; font-size: 14px; margin-bottom: 14px; }
.legal-aside .btn, .legal-aside .text-link { margin-bottom: 10px; }

/* ------------------------- Contacto ------------------------- */
.contact-page {
    max-width: 1100px;
    margin: 32px auto 10px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: start;
}
.contact-list { margin-bottom: 18px; }
.contact-list dd { text-align: right; }
.contact-list a { color: var(--rose); font-weight: 600; }
.contact-map img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.contact-map .text-link { display: inline-block; margin-top: 10px; }
.contact-info-band {
    max-width: 900px;
    margin: 30px auto 60px;
    padding: 22px;
    text-align: center;
    background: var(--sand);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
}
.contact-info-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--brown);
    margin-bottom: 8px;
}
.contact-info-band p { color: #5f5347; font-size: 14px; }

/* ------------------------- 404 ------------------------- */
.error-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 20px 90px;
    text-align: center;
}
.error-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 18vw, 150px);
    line-height: .9;
    color: var(--rose);
    margin: 0;
}
.error-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--brown);
    margin: 8px 0 10px;
}
.error-text { color: #5f5347; font-size: 16px; line-height: 1.7; }
.error-search {
    max-width: 520px;
    margin: 26px auto;
    text-align: left;
}
.error-search label { font-weight: 700; color: var(--brown); display: block; margin-bottom: 6px; }
.error-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.error-search-row input {
    flex: 1 1 240px;
    padding: 12px;
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    font-size: 15px;
}
.error-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ------------------------- Carrito y stock ------------------------- */
.cart-stock-alert {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-left: 4px solid var(--danger);
    background: #fdecea;
    color: #8e1f16;
    border-radius: 10px;
}
.cart-stock-alert i { font-size: 20px; margin-top: 2px; }
.cart-stock-alert p { margin: 2px 0 0; font-size: 13px; }
.cart-page-item-error { border-color: var(--danger); background: #fff7f6; }
.btn-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}
.stock-warning {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #f0d9a8;
    border-radius: 9px;
    background: #fffaf0;
    color: #7a5410;
    font-size: 13px;
    font-weight: 600;
}
.out-of-stock-panel {
    padding: 18px;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    background: var(--sand);
}
.out-of-stock-panel p { margin-bottom: 8px; }
.out-of-stock-panel .btn { margin-top: 6px; }
.zelle-amount {
    margin: 12px 0;
    padding: 11px 13px;
    border: 1px solid #c9d9ee;
    border-radius: 9px;
    background: #eef5ff;
    color: #23406b;
    font-size: 14px;
}

/* ------------------------- Ajustes responsivos ------------------------- */
@media (max-width: 980px) {
    .legal-page { grid-template-columns: 1fr; }
    .legal-toc, .legal-aside { position: static; }
    .legal-toc { order: -1; }
    .contact-page { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; }
    .legal-content { padding: 22px 18px; }
    .float-bubbles { bottom: 14px; right: 14px; gap: 10px; }
    .float-bubbles a { width: 50px; height: 50px; font-size: 24px; }
}

/* ------------------------- Impresión ------------------------- */
@media print {
    header, .footer, .float-bubbles, .cookie-banner, .cart-overlay,
    .toast-container, .skip-link, .error-search, .page-banner .btn {
        display: none !important;
    }
    body { background: #fff; }
    .site-main { min-height: 0; }
    .legal-page, .contact-page { display: block; max-width: none; padding: 0; }
    .legal-toc, .legal-aside { display: none; }
    .legal-content { border: 0; padding: 0; }
    .panel, .data-table, .summary-card { box-shadow: none; }
    .data-table { font-size: 10px; }
    a { color: #000; text-decoration: none; }
}

/* Especificidad frente a las reglas heredadas de style.css */
.footer .footer-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}
.footer .footer-nap,
.footer .footer-column p {
    color: #e8ded5;
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0;
}
.footer .footer-bottom p {
    color: #d8cdc4;
    margin: 0;
    letter-spacing: 0;
}
.footer .footer-whatsapp { color: #7ee2a0 !important; }
.footer .footer-cookie-button { color: #f1e6dd; }

/* Los campos de tarjeta y notas no ofrecen el control nativo de ampliar. */
.no-resize {
    resize: none;
}

/* ---------- Estado y reintento de pago ---------- */
.payment-status-panel {
    border-left: 4px solid var(--rose);
}
.payment-status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
}
.payment-status-actions .btn { flex: 0 1 auto; }
.payment-retry {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--soft-border);
}
.payment-retry > summary {
    list-style: none;
    cursor: pointer;
    text-align: center;
}
.payment-retry > summary::-webkit-details-marker { display: none; }
.payment-retry-body {
    margin-top: 16px;
    padding: 16px;
    background: var(--sand);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
}
.payment-duplicate-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    background: #fffaf0;
    border: 1px solid #f0d9a8;
    border-radius: 9px;
}
.payment-duplicate-check input { margin-top: 3px; }
.payment-duplicate-check label { font-weight: 500; font-size: 13px; }

@media (max-width: 640px) {
    .payment-status-actions .btn { flex: 1 1 100%; }
}

/* ---------- Perfil de usuario ---------- */
.profile-page {
    max-width: 1180px;
    margin: 32px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.profile-page > aside { position: sticky; top: 96px; }
.profile-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.profile-pending-alert { margin: 0 0 18px; max-width: none; }
.profile-steps {
    padding-left: 20px;
    color: #4a4038;
    font-size: 14px;
    line-height: 1.65;
}
.profile-steps li { margin-bottom: 9px; }
.profile-form .btn { margin-top: 4px; }

@media (max-width: 980px) {
    .profile-page { grid-template-columns: 1fr; }
    .profile-page > aside { position: static; }
}
.payment-duplicate-check input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
}

/* Desglose del carrito: unitario × cantidad = subtotal */
.cart-line-equation {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    padding: 7px 10px;
    background: var(--sand);
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    color: var(--muted-text);
    font-size: 13px;
}
.cart-line-equation strong { color: var(--brown); }
.cart-summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--soft-border);
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}
.cart-summary-line > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-summary-line-name { color: var(--brown); font-weight: 600; overflow-wrap: anywhere; }
.cart-summary-line-meta { color: var(--muted-text); font-size: 12px; }
.cart-summary-line strong { color: var(--brown); white-space: nowrap; }
@media (max-width: 560px) {
    .cart-line-equation { justify-content: flex-start; }
}

/* Estado de espera tras enviar el pago */
.payment-pending-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    background: #fdf7f8;
    border: 1px solid #f0d9dd;
    border-radius: var(--radius-soft);
    color: var(--brown);
}
.payment-pending-state[hidden] { display: none; }
.payment-pending-state strong { display: block; margin-bottom: 4px; }
.payment-pending-state p { margin: 0; color: var(--muted-text); font-size: 14px; }
.payment-spinner {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    border: 3px solid #edd6da;
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: payment-spin .8s linear infinite;
}
@keyframes payment-spin { to { transform: rotate(360deg); } }
.cart-page-item.is-updating { opacity: .65; transition: opacity .15s ease; }
.payment-form-actions[hidden],
[data-payment-fields][hidden] { display: none !important; }
.product-slider { position: relative; }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    background: rgba(62,47,31,.72);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.slider-arrow:hover { background: rgba(62,47,31,.95); }
.slider-arrow[hidden] { display: none; }
.slider-arrow-prev { left: 14px; }
.slider-arrow-next { right: 14px; }
.slider-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(62,47,31,.72);
    color: #fff;
    font-size: 12px;
    letter-spacing: .03em;
}
.product-slider:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
@media (max-width: 640px) {
    .slider-arrow { width: 36px; height: 36px; }
    .slider-arrow-prev { left: 8px; }
    .slider-arrow-next { right: 8px; }
    .slider-counter { right: 8px; bottom: 8px; }
}
/* Checkout: datos de pago por método */
.payment-method-details {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    background: #f9f6f1;
}
.payment-method-details[hidden] { display: none; }
.payment-method-details h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brown);
    font-family: 'Playfair Display', serif;
    font-size: 19px;
}
.payment-method-details h3 i { color: var(--rose); }
.payment-method-details .detail-list { margin: 0; }
.payment-method-details .copy-btn { margin-left: 6px; }

/* Checkout: comprobante de pago obligatorio */
.payment-proof {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    background: #fffdfa;
}
.payment-proof-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.payment-proof .form-grid { margin-top: 10px; }
.checkout-payment-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e6b8a8;
    border-left: 4px solid var(--rose);
    border-radius: var(--radius-soft);
    background: #fff7f2;
    color: #5c3b32;
}
.checkout-payment-warning i {
    color: var(--rose);
    font-size: 18px;
    margin-top: 2px;
}
.checkout-payment-warning p {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.6;
}
.checkout-ack {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.checkout-ack input { margin-top: 3px; accent-color: var(--rose); }
.btn[data-checkout-submit]:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
.payment-proof [hidden] { display: none; }
@media (max-width: 640px) {
    .checkout-payment-warning { padding: 13px; }
}

/* Soporte técnico */
.support-page {
    max-width: 1050px;
    margin: 28px auto 64px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}
.support-form-card .btn { margin-top: 8px; }
.support-help-card .btn { margin-bottom: 10px; }
.support-modal { max-width: 620px; }
.support-modal textarea { min-height: 170px; }
.support-reports-table { min-width: 960px; }
.support-report-message { max-width: 360px; line-height: 1.55; }
.support-report-new { background: #fffdf5; }
.data-table .table-actions { flex-wrap: wrap; }
@media (max-width: 800px) {
    .support-page { grid-template-columns: 1fr; }
}



/* ============================================================
   Header de referencia: una sola franja blanca y equilibrada
   ============================================================ */
.site-header {
    display: block;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0e8dd;
    box-shadow: 0 3px 16px rgba(62, 47, 31, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    width: 100%;
    max-width: 1500px;
    min-height: 70px;
    margin: 0 auto;
    padding: 2px 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-header .logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.site-header .logo-ring {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px dashed #b9a995;
    border-radius: 50%;
    background: #ffffff;
}
.site-header .logo-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.15);
}
.site-header .menu-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #f8f4ee;
    color: var(--brown);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .18s ease, color .18s ease;
}
.site-header .menu-icon:hover {
    background: #f1e8dc;
    color: var(--rose);
}
.site-header .search-bar-container {
    flex: 1 1 380px;
    max-width: 570px;
    margin: 0 auto;
    min-width: 200px;
}
.site-header .search-bar-container i {
    left: 17px;
    font-size: 17px;
    color: #8b7a6b;
}
.site-header .search-bar {
    height: 46px;
    padding: 10px 20px 10px 46px;
    border: 1px solid #e5ded4;
    border-radius: 999px;
    background: #f8f6f2;
    font-size: 15px;
    color: var(--brown);
}
.site-header .search-bar:focus {
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(168, 69, 81, .1);
}
.site-header .icons {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4b3b2b;
    font-size: 1rem;
}
.site-header .icons a,
.site-header .icons button {
    color: inherit;
}
.site-header .user-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--brown);
    font-size: 15px;
    font-weight: 500;
}
.site-header .user-icon-wrapper i {
    font-size: 18px;
}
.site-header .user-greeting {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    color: #4b3b2b;
}
.site-header .cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--brown);
    font-size: 19px;
    cursor: pointer;
}
.site-header .cart-icon:hover { background: #f8f4ee; color: var(--rose); }
.site-header .cart-badge {
    top: 1px;
    right: 1px;
    width: 17px;
    height: 17px;
    font-size: 10px;
}
.site-header .logout-inline .link-button {
    font-size: 14px;
    color: #6f6255;
}
.site-header .nav-menu {
    top: 100%;
    left: 0;
    width: 100%;
    padding: 16px 28px;
    border-top: 1px solid #f0e8dd;
    background: #fff;
    box-shadow: 0 12px 24px rgba(62, 47, 31, .08);
}
.site-header .nav-menu a {
    font-size: 15px;
    padding: 8px 14px;
}
@media (max-width: 900px) {
    .header-inner {
        min-height: 0;
        padding: 10px 16px;
        gap: 10px 14px;
        flex-wrap: wrap;
    }
    .site-header .logo-ring {
        width: 68px;
        height: 68px;
        padding: 3px;
    }
    .site-header .logo-img { width: 100%; height: auto; max-height: 100%; }
    .site-header .menu-icon { width: 38px; height: 38px; font-size: 16px; }
    .site-header .search-bar-container {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 2px 0 2px;
    }
    .site-header .icons { margin-left: auto; gap: 16px; }
    .site-header .user-greeting { display: none; }
    .site-header .user-icon-wrapper i { font-size: 19px; }
    .site-header .nav-menu { padding: 14px 16px; }
}
@media (max-width: 480px) {
    .header-inner { padding: 8px 12px; }
    .site-header .search-bar { height: 43px; font-size: 14px; }
    .site-header .icons { gap: 12px; }
}

/* Menú lateral off-canvas */
body.menu-open { overflow: hidden; }
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 27, 54, .46);
    backdrop-filter: blur(2px);
    z-index: 1040;
}
.menu-overlay[hidden] { display: none; }
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 86vw);
    background: #fff;
    z-index: 1050;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
    box-shadow: 12px 0 34px rgba(45, 27, 54, .18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.nav-drawer.active { transform: translateX(0); visibility: visible; }
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--soft-border);
}
.nav-drawer-header > span {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--brown);
}
.nav-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--soft-border);
    border-radius: 50%;
    background: #fff;
    color: var(--brown);
    cursor: pointer;
    font-size: 17px;
}
.nav-drawer-close:hover { background: #f7f2ea; }
.nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 2px;
}
.nav-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    color: var(--brown);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease;
}
.nav-drawer-links a:hover { background: #f9f3ed; color: var(--rose); }
.nav-drawer-links a i { width: 20px; text-align: center; color: var(--rose); }
.nav-drawer-divider { height: 1px; background: var(--soft-border); margin: 10px 8px; }
@media (max-width: 480px) {
    .nav-drawer { width: min(300px, 88vw); }
    .nav-drawer-header { padding: 18px 18px 14px; }
}
/* ============================================================
   Responsive final del escaparate: tablet y móvil
   ============================================================ */
@media (max-width: 768px) {
    .page-banner { padding: 30px 16px 24px; }
    .page-banner h1 { font-size: clamp(26px, 7vw, 36px); }
    .hero-message { padding: 24px 16px 8px; }
    .hero-message h1 { font-size: clamp(26px, 7vw, 36px); }
    .product-listing-container { padding: 0 14px 40px; }
    .about-container { padding-left: 14px; padding-right: 14px; }
    .location-inner { padding-left: 14px; padding-right: 14px; }
    .checkout-layout { padding: 0 14px; gap: 20px; }
    .checkout-form { padding: 18px; }
    .cart-summary-card { padding: 16px; }
    .carousel-container { height: clamp(320px, 52vh, 480px); }
    .checkout-form > .btn,
    .checkout-form .page-actions .btn,
    .auth-form .btn,
    .cart-summary-card .btn { width: 100%; }
    .modal, [role="dialog"] { width: 90vw; max-width: 90vw; max-height: 90vh; overflow-y: auto; }
    .btn { min-height: 44px; }
    .btn-block { width: 100%; }
    .table-responsive { overflow-x: auto; max-width: 100%; }
    img { max-width: 100%; }
    input:not([type="checkbox"]):not([type="radio"]),
    select, textarea { font-size: 16px; }
}

@media (max-width: 480px) {
    .page-banner { padding: 24px 12px 20px; }
    .product-listing-container { padding: 0 10px 32px; }
    .checkout-layout { padding: 0 10px; margin-top: 22px; }
    .checkout-form { padding: 14px; }
    .cart-summary-card { padding: 14px; padding-top: 14px; }
    .carousel-container { height: clamp(280px, 46vh, 400px); }
    .hero-message h1 { font-size: clamp(24px, 8vw, 32px); }
    .modal, [role="dialog"] { width: 90vw; max-width: 90vw; }
    .summary-list > div { font-size: 13px; }
}
/* ============================================================
   Foto de perfil (avatar) en la tienda
   ============================================================ */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rose);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 32px;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-soft);
    box-shadow: 0 10px 26px rgba(62, 47, 31, .06);
}
.avatar-profile-trigger {
    position: relative;
    width: 84px;
    height: 84px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    flex: 0 0 84px;
}
.avatar-profile-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(62, 47, 31, .16);
}
.avatar-profile-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rose);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #fff;
}
.avatar-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.avatar-profile-meta strong { font-size: 18px; color: var(--brown); }
.avatar-profile-meta span { font-size: 13px; color: var(--muted-text); }
.avatar-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose);
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 4px 18px rgba(62, 47, 31, .18);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-modal .panel-header { margin-bottom: 12px; }
.avatar-modal input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    background: #fff;
}
.avatar-modal-open { overflow: hidden; }
@media (max-width: 768px) {
    .avatar-profile-head { margin: 16px 14px 0; padding: 14px; gap: 12px; }
}
@media (max-width: 480px) {
    .avatar-profile-head { margin: 12px 10px 0; }
    .avatar-profile-trigger,
    .avatar-profile-circle { width: 68px; height: 68px; flex-basis: 68px; }
    .avatar-profile-circle { font-size: 25px; }
}
/* Modal de foto de perfil en la tienda */
.avatar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(45, 27, 54, .52);
}
.avatar-modal-overlay.show { display: flex; }
.avatar-modal-overlay .modal {
    width: 90vw;
    max-width: 430px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 18px 50px rgba(20, 12, 24, .28);
}
.avatar-modal-overlay .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.avatar-modal-overlay .panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 0;
}
@media (max-width: 480px) {
    .avatar-modal-overlay { padding: 10px; }
    .avatar-modal-overlay .modal { width: 90vw; max-width: 90vw; padding: 16px; }
}
.payment-rejection-reason {
    margin: 8px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fdecea;
    color: #8b2e24;
    font-size: 13px;
    font-weight: 600;
}
.payment-reject-reason {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}
.payment-reject-reason label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}
.payment-reject-reason input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
/* Avisos internos casi en tiempo real */
.live-notify-toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 24px));
}
.live-notify-toast {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--brown, #3e2f1f);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(62, 47, 31, .24);
    text-decoration: none;
}
.live-notify-toast:hover { background: var(--rose, #a84551); color: #fff; }
@media (max-width: 480px) {
    .live-notify-toasts { left: 10px; right: 10px; bottom: 12px; max-width: none; }
}
/* Sección opcional de recuperación y preguntas de seguridad */
.security-optional {
    margin: 20px 0 6px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-border);
}
.security-section-heading h2 {
    margin: 0 0 4px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    color: var(--brown);
}
.security-section-heading p {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-text);
}
.security-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}
.security-method-option {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    background: #fffdfb;
    padding: 11px 12px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.security-method-option:has(input:checked) {
    border-color: var(--rose);
    background: #fff8f8;
    box-shadow: 0 0 0 2px rgba(192, 96, 107, .08);
}
.security-method-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.security-method-option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.security-method-option strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--brown);
    font-size: 13px;
}
.security-method-option strong i { color: var(--rose); }
.security-method-option small {
    color: var(--muted-text);
    font-size: 11px;
    line-height: 1.4;
}
.security-panel {
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    padding: 13px;
    background: #fffdfb;
}
.security-panel[hidden], .security-question-row[hidden] { display: none; }
.security-panel-intro {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-text);
}
.security-question-row {
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    background: #fff;
    padding: 11px;
    margin-bottom: 10px;
}
.security-row-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--brown);
    font-size: 12px;
    font-weight: 700;
}
.security-row-heading small {
    color: var(--muted-text);
    font-weight: 400;
}
.security-remove {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}
.security-remove:hover { text-decoration: underline; }
.security-question-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
}
.security-question-fields .form-field { margin-bottom: 0; }
.security-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed var(--rose);
    border-radius: 8px;
    background: transparent;
    color: var(--rose);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.security-add:hover { background: #fff8f8; }
.security-limit {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--muted-text);
}
.security-limit[hidden] { display: none; }
@media (max-width: 700px) {
    .security-method-tabs,
    .security-question-fields { grid-template-columns: 1fr; }
}
/* Confirmación personalizada del checkout */
body.checkout-confirm-open { overflow: hidden; }
.checkout-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(45, 27, 54, .58);
    backdrop-filter: blur(2px);
}
.checkout-confirm-overlay[hidden] { display: none; }
.checkout-confirm-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 30px 26px 24px;
    border: 1px solid var(--soft-border);
    border-radius: 16px;
    background: #fffdfb;
    box-shadow: 0 24px 70px rgba(45, 27, 54, .28);
    text-align: center;
    animation: checkout-confirm-in .2s ease-out;
}
@keyframes checkout-confirm-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.checkout-confirm-close {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted-text);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.checkout-confirm-close:hover { background: #f4ece7; color: var(--brown); }
.checkout-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff1f1;
    color: var(--rose);
    font-size: 21px;
}
.checkout-confirm-dialog h2 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--brown);
}
.checkout-confirm-dialog p {
    margin: 0 0 12px;
    color: #5c5248;
    font-size: 14px;
    line-height: 1.55;
}
.checkout-confirm-note {
    padding: 9px 11px;
    border-radius: 8px;
    background: #faf7f2;
    color: var(--muted-text) !important;
    font-size: 12px !important;
}
.checkout-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}
.checkout-confirm-actions .btn { width: 100%; }
@media (max-width: 420px) {
    .checkout-confirm-actions { grid-template-columns: 1fr; }
    .checkout-confirm-dialog { padding: 26px 18px 20px; }
}
/* Selector de ubicación de delivery */
.address-with-map {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}
.address-with-map textarea {
    flex: 1 1 auto;
    min-width: 0;
}
.map-picker-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--soft-border);
    border-radius: 9px;
    background: #fffdfb;
    color: var(--rose);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.map-picker-btn:hover,
.map-picker-btn:focus-visible {
    border-color: var(--rose);
    background: #fff8f8;
    color: var(--rose-dark);
}
.map-picker-btn[hidden] { display: none; }
.map-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(45, 27, 54, .62);
}
.map-picker-overlay[hidden] { display: none; }
.map-picker-dialog {
    width: min(900px, 96vw);
    max-height: 94vh;
    overflow: auto;
    padding: 20px;
    border-radius: 16px;
    background: #fffdfb;
    box-shadow: 0 24px 80px rgba(45, 27, 54, .35);
}
.map-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.map-picker-eyebrow {
    color: var(--rose);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.map-picker-header h2 {
    margin: 3px 0 4px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    color: var(--brown);
}
.map-picker-header p {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.45;
}
.map-picker-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.map-picker-close:hover { background: #f4ece7; color: var(--brown); }
.map-picker-canvas {
    width: 100%;
    height: min(58vh, 500px);
    min-height: 280px;
    border: 1px solid var(--soft-border);
    border-radius: 11px;
    background: #eef0e9;
}
.map-picker-status {
    margin: 10px 0;
    min-height: 18px;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.4;
}
.map-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.map-picker-attribution {
    margin: 10px 0 0;
    color: #8d8176;
    font-size: 10px;
    text-align: right;
}
@media (max-width: 560px) {
    .map-picker-dialog { padding: 14px; }
    .map-picker-canvas { height: 52vh; min-height: 240px; }
    .map-picker-btn span { display: none; }
}
body.map-picker-open { overflow: hidden; }

/* Flechas del carrusel: glassmorphism elegante */
.carousel-btn {
    top: 50%;
    left: auto;
    right: auto;
    width: 50px;
    height: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    background: rgba(255, 253, 250, .42);
    color: var(--brown, #3e2f1f);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 8px 24px rgba(45, 27, 54, .20),
        inset 0 1px 0 rgba(255, 255, 255, .65);
    transition: all .3s ease;
    z-index: 10;
}
.carousel-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .55));
}
.prev-btn { left: clamp(12px, 2.5vw, 28px); }
.next-btn { right: clamp(12px, 2.5vw, 28px); }
.carousel-btn:hover {
    background: rgba(255, 253, 250, .74);
    color: var(--rose-dark, #8d3540);
    transform: translateY(-50%) scale(1.07);
    box-shadow:
        0 11px 30px rgba(45, 27, 54, .26),
        inset 0 1px 0 rgba(255, 255, 255, .8);
}
.carousel-btn:active {
    transform: translateY(-50%) scale(.97);
}
.carousel-btn:focus-visible {
    outline: 2px solid #fffdf9;
    outline-offset: 3px;
}
@media (max-width: 560px) {
    .carousel-btn { width: 42px; height: 42px; }
    .carousel-btn svg { width: 16px; height: 16px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* ===== Cuadrícula de productos: 6 columnas máximas ===== */
.product-listing-container {
    max-width: 1500px;
}

.product-listing-container .product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* El catálogo también usa 6 columnas; se amplía su contenedor para que
   las tarjetas conserven un tamaño cómodo junto a la barra lateral. */
@media (min-width: 981px) {
    .catalog-layout {
        max-width: 1680px;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 24px;
    }
}

.catalog-main .product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1500px) {
    .product-listing-container .product-grid,
    .catalog-main .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .product-listing-container .product-grid,
    .catalog-main .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .product-listing-container .product-grid,
    .catalog-main .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .product-listing-container .product-grid,
    .catalog-main .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ===== Navegación horizontal del catálogo ===== */
.header-catalog-nav {
    width: 100%;
    background: #fff;
    border-top: 1px solid #f0e8dd;
    border-bottom: 1px solid #f0e8dd;
}
.catalog-nav-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.catalog-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5f5347;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.catalog-nav-link i {
    color: var(--rose);
    font-size: 13px;
}
.catalog-nav-link:hover,
.catalog-nav-dropdown.is-open > .catalog-nav-link {
    background: #f9f3ed;
    color: var(--brown);
}
.catalog-nav-dropdown {
    position: relative;
}
.catalog-nav-chevron {
    margin-left: 2px;
    font-size: 10px !important;
    transition: transform .2s ease;
}
.catalog-nav-dropdown.is-open .catalog-nav-chevron {
    transform: rotate(180deg);
}
.catalog-nav-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 40;
    min-width: 230px;
    padding: 7px;
    border: 1px solid #e8ddd0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(62, 47, 31, .14);
    display: none;
}
.catalog-nav-dropdown:hover .catalog-nav-menu,
.catalog-nav-dropdown.is-open .catalog-nav-menu {
    display: block;
}
.catalog-nav-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 7px;
    color: #5f5347;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.catalog-nav-menu a i {
    width: 16px;
    color: var(--rose);
    text-align: center;
    font-size: 13px;
}
.catalog-nav-menu a:hover {
    background: #f9f3ed;
    color: var(--brown);
}
@media (min-width: 901px) {
    .site-header .menu-icon,
    .site-header .nav-drawer,
    .site-header .menu-overlay {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .header-catalog-nav { display: none; }
}

/* ===== Registro: sugerencias de correo y coincidencia de contraseña ===== */
.email-suggest-wrap {
    position: relative;
    width: 100%;
}
.email-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 60;
    padding: 5px;
    border: 1px solid #e3d8ca;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(62, 47, 31, .16);
    max-height: 225px;
    overflow-y: auto;
}
.email-suggestions[hidden] {
    display: none !important;
}
.email-suggestion {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5f5347;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.email-suggestion:hover,
.email-suggestion.is-active {
    background: #f9f3ed;
    color: var(--brown);
}
.password-match {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
}
.password-match.is-match {
    color: #2e7d32;
}
.password-match.is-mismatch {
    color: var(--danger);
}

.password-match[hidden] {
    display: none;
}

/* ===== Comprobante de pago: compresión y previsualización ===== */
.receipt-picker {
    display: block;
    width: 100%;
}
.receipt-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
}
.receipt-status[hidden] {
    display: none !important;
}
.receipt-status.is-busy {
    color: #8a6a3f;
}
.receipt-status.is-busy::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #e4d3bd;
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: receipt-spin .8s linear infinite;
}
.receipt-status.is-error {
    color: var(--danger);
}
.receipt-status.is-success {
    color: #2e7d32;
}
.receipt-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 7px;
    border: 1px solid #eadfd2;
    border-radius: 9px;
    background: #fffdfa;
}
.receipt-preview[hidden] {
    display: none !important;
}
.receipt-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee3d6;
}
.receipt-preview span {
    color: #6c5b4b;
    font-size: 12px;
    overflow-wrap: anywhere;
}
@keyframes receipt-spin {
    to { transform: rotate(360deg); }
}

/* ===== Código postal autocompletado ===== */
.postal-autofill-note {
    display: block;
    margin-top: 4px;
    color: #6c5b4b;
    font-size: 12px;
    font-weight: 600;
}
.postal-autofill-note[hidden] {
    display: none !important;
}

/* ===== Total de productos en el alta manual ===== */
.manual-total-row td {
    background: #faf7f2;
    border-top: 1px solid #e9ded1;
    padding-top: 12px;
    padding-bottom: 12px;
}
.manual-total-row td:first-child {
    text-align: right;
    color: var(--muted-text);
}
.manual-total-row strong {
    color: var(--brown);
    font-size: 15px;
}

/* ===== Productos del pedido: miniatura, detalle y cantidad ===== */
.manual-item-product-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
.manual-item-thumb-button {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e7dbcd;
    border-radius: 8px;
    background: #fffdfa;
    overflow: hidden;
    cursor: pointer;
}
.manual-item-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.manual-item-thumb[hidden],
.manual-item-thumb-button[hidden] {
    display: none !important;
}
.manual-item-product-copy {
    min-width: 0;
}
.manual-item-name-button {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.manual-item-name-button:hover strong {
    color: var(--rose);
    text-decoration: underline;
}
.manual-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.manual-item-quantity input[type="number"] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}
.manual-item-quantity input[type="number"]::-webkit-inner-spin-button,
.manual-item-quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    margin: 0;
}
.manual-quantity-btn {
    width: 29px;
    height: 29px;
    padding: 0;
    border: 1px solid #e4d8ca;
    border-radius: 7px;
    background: #fff;
    color: var(--brown);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.manual-quantity-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
    background: #fff8f8;
}
.manual-quantity-control input {
    width: 60px;
    text-align: center;
}
.form-field.cash-round-field {
    grid-column: 1 / -1;
}
.cash-round-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}
.cash-round-label input {
    width: auto;
    accent-color: var(--rose);
}

/* ===== Modal de detalle del producto ===== */
.product-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(44, 32, 22, .48);
}
.product-detail-overlay[hidden] {
    display: none !important;
}
.product-detail-dialog {
    position: relative;
    width: min(460px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 15px;
    background: #fffdfa;
    box-shadow: 0 24px 60px rgba(44, 32, 22, .25);
}
.product-detail-close {
    position: absolute;
    top: 9px;
    right: 13px;
    border: 0;
    background: transparent;
    color: #7b6654;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.product-detail-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f7f1e9;
}
.product-detail-image[hidden] {
    display: none !important;
}
.product-detail-dialog h2 {
    margin: 0 0 4px;
    padding-right: 25px;
    color: var(--brown);
}
.product-detail-description {
    margin: 13px 0;
    color: #5f5347;
    line-height: 1.55;
}
.product-detail-facts {
    margin: 12px 0 18px;
}

/* ===== Notificaciones del header ===== */
.header-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.notification-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.notification-toggle:hover {
    background: #f8f4ee;
    color: var(--rose);
}
.notification-toggle i { font-size: 18px; }
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #b52a2a;
    color: #fff;
    font: 700 10px/17px Arial, sans-serif;
    text-align: center;
}
.notification-badge[hidden] { display: none !important; }
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 300;
    width: min(370px, 92vw);
    overflow: hidden;
    border: 1px solid #e8ddd0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(62, 47, 31, .18);
}
.notification-dropdown[hidden] { display: none !important; }
.notification-dropdown-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px;
    border-bottom: 1px solid #f0e8dd;
}
.notification-dropdown-head strong { color: var(--brown); }
.notification-list {
    max-height: 330px;
    overflow-y: auto;
    padding: 5px;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.notification-item:hover { background: #faf6f0; }
.notification-item.is-unread { background: #fff8f2; }
.notification-item-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5e8e5;
    color: var(--rose);
    font-size: 12px;
}
.notification-item-copy { min-width: 0; flex: 1; }
.notification-item-copy strong {
    display: block;
    color: #4b3b2b;
    font-size: 12px;
    line-height: 1.35;
}
.notification-item-copy small {
    display: block;
    margin-top: 3px;
    color: #8d8176;
    font-size: 10px;
}
.notification-empty { padding: 16px 10px; margin: 0; text-align: center; }
.notification-see-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
    border-top: 1px solid #f0e8dd;
    color: var(--rose);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.notification-see-all:hover { background: #faf6f0; }

/* ===== Página de notificaciones ===== */
.notifications-page { max-width: 760px; margin: 0 auto; }
.notification-page-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f0e8dd;
    color: inherit;
    text-decoration: none;
}
.notification-page-item:last-child { border-bottom: 0; }
.notification-page-item.is-unread { background: #fffaf4; }
.notification-page-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5e8e5;
    color: var(--rose);
}
.notification-page-copy { flex: 1; min-width: 0; }
.notification-page-copy strong { display: block; color: #4b3b2b; }
.notification-page-copy small { display: block; margin-top: 3px; color: #8d8176; }
.notification-page-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose);
}
@media (max-width: 900px) {
    .header-notifications { display: inline-flex; }
    .notification-dropdown { right: -52px; }
}

/* Hilos, respuestas y eliminación en el dropdown */
.notification-item {
    display: block;
    padding: 8px 10px;
}
.notification-item-main {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}
.notification-item-main .notification-item-copy { flex: 1; min-width: 0; }
.notification-item-title-link {
    color: inherit;
    text-decoration: none;
}
.notification-item-actions {
    display: inline-flex;
    gap: 2px;
    margin-left: auto;
    opacity: 0;
    transition: opacity .15s ease;
}
.notification-item:hover .notification-item-actions,
.notification-item:focus-within .notification-item-actions {
    opacity: 1;
}
.notification-action {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8d8176;
    font-size: 11px;
    cursor: pointer;
}
.notification-action:hover { background: #f0e6dc; color: var(--rose); }
.notification-delete-all {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 9px 15px;
    border: 0;
    border-top: 1px solid #f5eee6;
    background: #fff;
    color: #9d3b32;
    font-size: 11px;
    cursor: pointer;
}
.notification-delete-all:hover { background: #fdf4f2; }
@media (max-width: 700px) {
    .notification-item-actions { opacity: 1; }
}

/* ===== Alerta de retiro (3 días) ===== */
.pickup-deadline-alert {
    position: fixed;
    left: 18px;
    bottom: 22px;
    z-index: 250;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: min(460px, calc(100vw - 36px));
    padding: 13px 14px;
    border: 1px solid #d99a42;
    border-left: 4px solid #c97a16;
    border-radius: 11px;
    background: #fff8e9;
    box-shadow: 0 10px 28px rgba(75, 43, 12, .18);
    color: #5a3a13;
}
.pickup-deadline-alert[hidden] { display: none !important; }
.pickup-deadline-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3d39a;
    color: #8d4f0b;
    font-size: 14px;
}
.pickup-deadline-copy { flex: 1; min-width: 0; }
.pickup-deadline-copy strong { display: block; font-size: 12px; }
.pickup-deadline-copy p { margin: 4px 0; font-size: 12px; line-height: 1.4; }
.pickup-deadline-copy small { color: #8a651f; font-size: 10px; }
.pickup-deadline-close {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8d4f0b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.pickup-deadline-close:hover { background: #f3d39a; }
@media (max-width: 600px) {
    .pickup-deadline-alert { left: 10px; right: 10px; bottom: 12px; width: auto; }
}

/* ===== Acciones del banner de pago ===== */
.payment-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.payment-banner-actions[hidden] { display: none !important; }
.payment-banner-actions .btn-success {
    border: 1px solid #2f7d4a;
    background: #fff;
    color: #23663b;
}
.payment-banner-actions .btn-success:hover {
    background: #2f7d4a;
    color: #fff;
}
.payment-banner-actions .btn:disabled {
    opacity: .65;
    cursor: wait;
}
.pickup-confirm-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.payment-banner-actions .pickup-confirm-btn {
    background: #2f7d4a;
    border-color: #2f7d4a;
    color: #fff;
}
.payment-banner-actions .pickup-confirm-btn:hover {
    background: #23663b;
    border-color: #23663b;
    color: #fff;
}
.payment-banner-actions .pickup-confirm-btn:disabled {
    background: #2f7d4a;
    border-color: #2f7d4a;
    color: #fff;
    cursor: default;
}
.pickup-confirm-feedback {
    color: #b91c1c;
    font-size: 11px;
    line-height: 1.3;
}

/* ===== Modal de retiro en tienda ===== */
.store-pickup-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(44, 32, 22, .48);
}
.store-pickup-modal[hidden] { display: none !important; }
.store-pickup-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 22px;
    border-radius: 14px;
    background: #fffdfa;
    box-shadow: 0 20px 50px rgba(44, 32, 22, .24);
}
.store-pickup-dialog h2 { margin: 0 0 6px; color: var(--brown); }
.store-pickup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}
.store-pickup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .payment-banner-actions { justify-content: flex-start; }
}

/* Aviso de plazo dentro del banner de pago */
.payment-pickup-deadline {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 9px 0 2px;
    padding: 8px 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.4;
}
.payment-pickup-deadline i { margin-top: 2px; color: #dc2626; }
.payment-pickup-deadline.is-urgent {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}
.payment-pickup-deadline.is-urgent i { color: #b91c1c; }
.payment-pickup-deadline.is-expired {
    border-color: #f87171;
    background: #fee2e2;
    color: #7f1d1d;
}
.payment-pickup-deadline.is-expired i { color: #991b1b; }

.card-message-counter {
    align-self: flex-end;
    color: var(--muted-text);
    font-size: 11px;
}

textarea.no-resize { resize: none !important; }

.cash-formatted-preview {
    min-height: 14px;
    color: var(--muted-text);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.cash-formatted-preview:empty { display: none; }

/* Acción de la alerta de retiro y énfasis en las últimas 24 horas. */
.pickup-deadline-action {
    display: inline-flex;
    margin-top: 8px;
    color: #8d4f0b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pickup-deadline-action:hover { color: #5a3a13; }
.pickup-deadline-alert.is-urgent {
    border-color: #c0392b;
    border-left-color: #a93226;
    background: #fff5f3;
    animation: pickup-deadline-pulse 2.2s ease-in-out infinite;
}
.pickup-deadline-alert.is-urgent .pickup-deadline-icon {
    background: #f6d3ce;
    color: #a93226;
}
@keyframes pickup-deadline-pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(75, 43, 12, .18); }
    50% { box-shadow: 0 10px 32px rgba(169, 50, 38, .28); }
}
@media (prefers-reduced-motion: reduce) {
    .pickup-deadline-alert.is-urgent { animation: none; }
}

.payment-action-feedback {
    flex: 1 1 100%;
    margin: 2px 0 0;
    color: #23663b;
    font-size: 11px;
    line-height: 1.35;
}
.payment-action-feedback[hidden] { display: none !important; }

/* El aviso de plazo es rojo incluso dentro del banner verde de pago. */
#paymentConfirmedBanner .payment-pickup-deadline {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
#paymentConfirmedBanner .payment-pickup-deadline i {
    color: #dc2626;
}

/* Acción para marcar todas las notificaciones como leídas. */
.notification-head-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.notification-mark-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b5e7e;
    font-size: 10px;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.notification-mark-all:hover { color: #5f3b56; }
.notification-mark-all[hidden] { display: none !important; }


/* Responsive media safety */
img,
video,
iframe,
svg {
    max-width: 100%;
}

img,
video {
    height: auto;
}
