/* public/assets/css/styles.css */
:root {
    --bg-cream: #F9F8F4;
    --surface-white: #FFFFFF;
    --primary-emerald: #194538;
    --primary-emerald-hover: #123329;
    --topbar-dark: #252724;
    --accent-camel: #C8A98E;
    --pill-active: #ECEAE2;
    --text-main: #1C201E;
    --text-muted: #6E716D;
    --border-soft: #E6E4DD;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Topbar --- */
.topbar {
    background-color: var(--topbar-dark);
    color: #E2E0D8;
    font-size: 12px;
    text-align: center;
    padding: 8px 16px;
}

.topbar strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* --- Header --- */
.site-header {
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo__img {
    width: 42px;
    height: auto;
    object-fit: contain;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-logo__sub {
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-logo__main {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-main);
}

.brand-dot {
    color: var(--accent-camel);
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 340px;
}

.header-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.header-search__input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background-color: var(--bg-cream);
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.header-search__input:focus {
    border-color: var(--primary-emerald);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.header-nav__link:hover {
    color: var(--text-main);
}

.header-nav__link.is-active {
    background-color: var(--pill-active);
    color: var(--text-main);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
}

.icon-btn:hover {
    background-color: var(--pill-active);
}

.cart-trigger-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-emerald);
    color: #FFFFFF;
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-trigger-btn:hover {
    background-color: var(--primary-emerald-hover);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-camel);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- Hero Home (Imagen 1) --- */
.hero-wrapper {
    padding: 32px 0 24px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 440px;
    background-color: #0F2922;
    background-image: linear-gradient(90deg, rgba(11, 32, 26, 0.92) 0%, rgba(11, 32, 26, 0.55) 50%, rgba(11, 32, 26, 0.15) 100%), url('/assets/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 56px;
}

.hero-content {
    max-width: 480px;
    color: #FFFFFF;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-camel);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-emerald {
    background-color: var(--primary-emerald);
    color: #FFFFFF;
}

.btn-emerald:hover {
    background-color: var(--primary-emerald-hover);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* --- Carrusel Categorías Redondas --- */
.section-categories {
    padding: 0;
    text-align: center;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-main);
}

.categories-strip {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scrollbar-width: none;
}

.categories-strip::-webkit-scrollbar {
    display: none;
}

.category-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 96px;
}

.category-bubble__img-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-soft);
    background-color: #19382F;
    transition: transform 0.2s, border-color 0.2s;
}

.category-bubble:hover .category-bubble__img-wrap {
    transform: translateY(-3px);
    border-color: var(--primary-emerald);
}

.category-bubble__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-bubble__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

/* --- Sección Catálogo y Tarjetas de Producto --- */
.section-catalog {
    padding: 24px 0 72px;
}

.catalog-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.catalog-filters-inline {
    display: flex;
    gap: 12px;
}

.select-pill {
    height: 40px;
    padding: 0 34px 0 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background-color: var(--surface-white);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.catalog-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.products-grid--3cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #E8E5DC;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card:hover .product-card__img {
    transform: scale(1.03);
}

.product-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
}

.product-card__brand {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin: 3px 0 6px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.product-card__price small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.product-card__btn {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-pill);
    border: none;
    background-color: var(--primary-emerald);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-card__btn:hover {
    background-color: var(--primary-emerald-hover);
}

#auth-modal-title,
.auth-modal-heading {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main) !important;
    margin: 0 0 6px 0;
    padding-right: 28px;
    display: block !important;
}

body.dark-mode #auth-modal-title,
body.dark-mode .auth-modal-heading {
    color: #F3F2EE !important;
}

body.dark-mode #auth-modal-subtitle {
    color: #B4BBB8 !important;
}

/* --- Página Productos con Sidebar (Imagen 2) --- */
.page-header {
    padding: 28px 0 20px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding-bottom: 72px;
    align-items: start;
}

.filter-sidebar {
    background-color: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 20px;
}

.filter-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-sidebar__title {
    font-weight: 600;
    font-size: 14px;
}

.filter-sidebar__clear {
    font-size: 12px;
    color: var(--primary-emerald);
    font-weight: 500;
}

.filter-group {
    border-top: 1px solid var(--border-soft);
    padding-top: 16px;
    margin-top: 16px;
}

.filter-group__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 8px;
    cursor: pointer;
}

/* --- Página Envíos (Imagen 3) y Nosotros (Imagen 4) --- */
.info-section {
    padding: 64px 0 88px;
    text-align: center;
}

.info-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.step-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 28px;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-emerald);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-photo-wrap {
    max-width: 880px;
    margin: 0 auto 36px;
    display: flex;
    justify-content: center;
}

.about-photo {
    height: 520px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .about-photo {
        height: auto;
        max-height: 420px;
    }
}

.about-copy {
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.milestone-number {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 6px;
}

/* --- Detalle de Producto (Imagen 7 corregida) --- */
.detail-section {
    padding: 32px 0 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   PUNTO 9: DETALLE DE PRODUCTO (65% FOTO / 35% TEXTO Y FOTO 20% MÁS COMPACTA)
   ========================================================================== */
.detail-grid {
    display: grid;
    grid-template-columns: 62% 38%;
    gap: 40px;
    align-items: start;
    margin-bottom: 64px;
}

.detail-media-layout {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.detail-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    max-height: 420px;
    overflow-y: auto;
}

.detail-thumb-btn {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-soft);
    cursor: pointer;
    background: var(--surface-white);
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.detail-thumb-btn:hover,
.detail-thumb-btn.is-active {
    border-color: var(--primary-emerald);
}

.detail-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 420px;
    /* 20% más baja que antes */
}

.detail-gallery img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 420px !important;
    object-fit: contain !important;
    /* Muestra la foto completa en su proporción original sin cortarla */
    border-radius: var(--radius-lg);
}

/* Barra superior de carga instantánea al navegar (Punto 7) */
#top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-camel), var(--primary-emerald));
    z-index: 99999;
    transition: width 0.25s ease;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    margin: 6px 0 12px;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-white);
    border-radius: var(--radius-pill);
    height: 46px;
    padding: 0 8px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.qty-control input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-emerald);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 24px;
}

.brand-logo--footer .brand-logo__sub {
    color: rgba(255, 255, 255, 0.65);
}

.brand-logo--footer .brand-logo__main {
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-tagline {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
}

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #FFFFFF;
    transition: background-color 0.2s;
}

.social-circle:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content:center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

/* --- Modo Oscuro (Dark Mode) --- */
body.dark-mode {
    --bg-cream: #121715;
    --surface-white: #1A221F;
    --pill-active: #26332E;
    --text-main: #F3F2EE;
    --text-muted: #9BA19E;
    --border-soft: #2A3531;
}

body.dark-mode .product-card__media,
body.dark-mode .detail-gallery {
    background-color: #222B28;
}

body.dark-mode .header-search__input,
body.dark-mode .select-pill {
    background-color: #151C19;
    color: var(--text-main);
}

/* Punto 4: Ícono de brillos por defecto cuando una categoría no tiene foto */
.category-bubble__sparkle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #245E4E, #14352B);
    color: var(--accent-camel);
}

.category-bubble__sparkle svg {
    width: 36px;
    height: 36px;
}

/* Punto 5: Botón "Agregar" / "Seleccionar tono" superpuesto sobre la parte inferior de la imagen */
.product-card__action-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
}

.product-card__overlay-btn {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: none;
    background-color: rgba(242, 229, 218, 0.95);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.product-card__overlay-btn:hover {
    background-color: var(--primary-emerald);
    color: #FFFFFF;
}

/* Popover de selección rápida de tono sobre la tarjeta */
.shade-quick-picker {
    display: none;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    gap: 8px;
}

.shade-quick-picker.is-open {
    display: flex;
}

/* Corrección de contraste en el Drawer del Carrito (Imagen 7) */
#cart-drawer,
#cart-items-container,
#checkout-form {
    color: var(--text-main) !important;
}

/* ==========================================================================
   PUNTO 6: DISEÑO RESPONSIVO COMPLETO PARA VALU-ECOMMERCE (MÓVIL Y TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .detail-grid {
        grid-template-columns: 58% 42%;
        gap: 24px;
    }

    .detail-gallery {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
        width: 100%;
    }

    .header-inner {
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-logo__main {
        font-size: 20px;
    }

    .brand-logo__img {
        width: 34px;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-nav {
        order: 4;
        width: 100%;
        justify-content: center;
        gap: 4px;
    }

    .products-grid,
    .products-grid--3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card__title {
        font-size: 13px;
        min-height: 2.6em;
    }

    .product-card__price {
        font-size: 14px;
    }

    .product-card__action-overlay {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }

    .product-card__overlay-btn {
        height: 34px;
        font-size: 11.5px;
        border-radius: 8px;
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .detail-media-layout {
        flex-direction: row;
        gap: 10px;
    }

    .detail-thumb-btn {
        width: 52px;
        height: 52px;
    }

    .detail-gallery,
    .detail-gallery img {
        max-height: 340px !important;
    }

    .brand-logo {
        order: 1;
    }

    .header-nav__link {
        font-size: 13px;
        padding: 6px 12px;
        white-space: nowrap;
    }

    /* Hero en móvil */
    .hero-wrapper {
        padding: 16px 0;
    }

    .hero-card {
        min-height: 320px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Burbujas de categorías más compactas en móvil */
    .categories-strip {
        gap: 14px;
    }

    .category-bubble {
        min-width: 76px;
    }

    .category-bubble__img-wrap {
        width: 72px;
        height: 72px;
    }

    .detail-title {
        font-size: 28px;
    }

    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-top: 10px;
    }
}

@media (max-width: 420px) {

    .products-grid,
    .products-grid--3cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================================================
   PUNTO 1: HEADER MÓVIL (LOGO IZQ, ACCIONES + HAMBURGUESA DER)
   ========================================================================== */
.mobile-hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        gap: 10px;
        position: relative;
    }

    .brand-logo {
        order: 1;
        margin-right: auto;
    }

    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: 0;
    }

    .mobile-hamburger-btn {
        display: inline-flex;
        font-size: 24px;
        margin-left: 2px;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Menú oculto por defecto en móvil; se despliega al tocar la hamburguesa */
    .header-nav {
        order: 4;
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--surface-white);
        border: 1px solid var(--border-soft);
        border-radius: 14px;
        padding: 8px;
    }

    .header-nav.is-open {
        display: flex;
    }
}

/* Skeleton Screen de valu-ecommerce */
@keyframes valuShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-cream);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.skeleton-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sk-box {
    background: linear-gradient(90deg, #EAE8E1 25%, #F4F2EC 50%, #EAE8E1 75%);
    background-size: 200% 100%;
    animation: valuShimmer 1.3s infinite linear;
    border-radius: 12px;
}

.sk-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sk-img {
    aspect-ratio: 4 / 5;
    margin-bottom: 10px;
}

.sk-line-sm {
    height: 12px;
    width: 45%;
    margin-bottom: 8px;
}

.sk-line {
    height: 16px;
    width: 80%;
}

/* ==========================================================================
   HEADER MÓVIL Y MENÚ HAMBURGUESA DESPLEGABLE (Punto 2)
   ========================================================================== */
.mobile-hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        gap: 10px;
        position: relative;
    }

    .brand-logo {
        order: 1;
        margin-right: auto;
    }

    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: 0;
    }

    .mobile-hamburger-btn {
        display: inline-flex;
        font-size: 24px;
        margin-left: 2px;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-nav {
        order: 4;
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--surface-white);
        border: 1px solid var(--border-soft);
        border-radius: 14px;
        padding: 8px;
        gap: 4px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .header-nav.is-open {
        display: flex;
    }

    .header-nav__link {
        width: 100%;
        text-align: left;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   REDISEÑO UX/UI DE FILTROS Y PÍLDORAS ACTIVAS ARRIBA DEL TOTAL (Punto 2)
   ========================================================================== */
.filter-mobile-trigger {
    display: none;
}

.ux-filter-section {
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
    margin-top: 14px;
}

.ux-filter-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px 0;
}

.ux-filter-header i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.ux-filter-header.is-open i {
    transform: rotate(180deg);
}

.ux-count {
    background: var(--primary-emerald);
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 10px;
    margin-left: 4px;
}

.ux-filter-body {
    display: none;
    padding-top: 12px;
}

.ux-filter-body.is-open {
    display: block;
}

.ux-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ux-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--bg-cream);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.ux-filter-chip:hover {
    border-color: var(--primary-emerald);
}

.ux-filter-chip.is-selected {
    background: var(--primary-emerald);
    border-color: var(--primary-emerald);
    color: #FFFFFF;
    font-weight: 600;
}

.active-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--primary-emerald);
    background: rgba(25, 69, 56, 0.08);
    color: var(--primary-emerald);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.active-filter-pill:hover {
    background: var(--primary-emerald);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .desktop-only-title {
        display: none;
    }

    .filter-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        background: none;
        border: none;
        font-family: var(--font-sans);
        font-size: 14px;
        font-weight: 600;
        color: var(--text-main);
        cursor: pointer;
    }

    .filter-sidebar {
        padding: 14px 16px;
    }

    .filter-sidebar__head {
        margin-bottom: 0;
        gap: 12px;
    }

    .filter-Groups-Wrap {
        display: none;
        padding-top: 8px;
    }

    .filter-Groups-Wrap.is-open-mobile {
        display: block;
    }
}

/* Skeleton Screen */
.skeleton-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-cream);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.skeleton-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   PUNTO 1: DETALLE DE PRODUCTO (MENOS ESPACIO CENTRAL, MÁS MARGEN DERECHO, STOCK Y LIGHTBOX OCULTO)
   ========================================================================== */
.detail-grid {
    display: grid;
    grid-template-columns: 54% 46%;
    gap: 24px;
    /* 20% menos separación entre foto e información */
    align-items: start;
    margin-bottom: 64px;
}

.detail-info-panel {
    padding-right: 48px;
    /* Mayor margen derecho para que no quede pegado al borde */
}

.detail-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.detail-stock-badge--ok {
    background-color: #DCFCE7;
    color: #15803D;
}

.detail-stock-badge--low {
    background-color: #FEF3C7;
    color: #B45309;
}

/* Lightbox oculto por defecto (Corrige las fotos gigantes al final de product-detail.php) */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 19, 17, 0.92);
    backdrop-filter: blur(6px);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-modal.is-open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #FFF;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.lightbox-arrow--prev {
    left: 24px;
}

.lightbox-arrow--next {
    right: 24px;
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 76vh;
    width: 100%;
    overflow: hidden;
}

.lightbox-stage img {
    max-height: 74vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.22s ease;
}

.lightbox-stage img.is-zoomed {
    cursor: zoom-out;
}

.lightbox-footer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lightbox-dots {
    display: flex;
    gap: 8px;
}

.lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.lb-dot.is-active {
    background: #FFFFFF;
    transform: scale(1.25);
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
}

.lb-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
}

.lb-thumb.is-active {
    border-color: var(--accent-camel);
    opacity: 1;
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   PUNTO 4: FLECHAS EN CARRUSEL DE CATEGORÍAS E ÍCONO MATERIAL DESIGN PLANO (SIN DEGRADADO)
   ========================================================================== */
.categories-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.categories-carousel-wrap .categories-strip {
    margin-top: 0;
    flex: 1;
    scroll-behavior: smooth;
}

.cat-scroll-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-white);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.cat-scroll-arrow:hover {
    background-color: var(--primary-emerald);
    border-color: var(--primary-emerald);
    color: #FFFFFF;
}

/* Ícono de brillos 100% plano (sin radial-gradient ni dimensión) */
.category-bubble__sparkle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-emerald) !important;
    color: var(--accent-camel);
}

.category-bubble__sparkle svg {
    width: 34px;
    height: 34px;
}

/* ==========================================================================
   PUNTO 5: BOTÓN FLOTANTE DE WHATSAPP (DISCRETO EN MÓVIL)
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
    z-index: 990;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-info-panel {
        padding-right: 0;
    }

    .whatsapp-float-btn {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 14px;
        font-size: 22px;
        opacity: 0.92;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    }
}

/* ==========================================================================
   PUNTO 6: CONTRASTE DE BOTONES Y MODAL DE CUENTA EN MODO CLARO Y MODO OSCURO
   ========================================================================== */

/* En modo claro y oscuro, el botón sobre la imagen mantiene texto oscuro legible sobre crema, y blanco en hover */
.product-card__overlay-btn {
    background-color: rgba(242, 229, 218, 0.96) !important;
    color: #1C201E !important;
    font-weight: 700 !important;
}

.product-card__overlay-btn:hover {
    background-color: var(--primary-emerald) !important;
    color: #FFFFFF !important;
}

/* En modo oscuro, opción elegante de alto contraste para los botones de tarjeta y favoritos */
body.dark-mode .product-card__overlay-btn {
    background-color: rgba(26, 34, 31, 0.94) !important;
    color: #F3F2EE !important;
    border: 1px solid rgba(200, 169, 142, 0.35) !important;
}

body.dark-mode .product-card__overlay-btn:hover {
    background-color: var(--primary-emerald) !important;
    border-color: var(--primary-emerald) !important;
    color: #FFFFFF !important;
}

body.dark-mode .product-card__fav {
    background-color: rgba(26, 34, 31, 0.88) !important;
    color: #F3F2EE !important;
}

body.dark-mode .shade-quick-picker {
    background: rgba(26, 34, 31, 0.97) !important;
    border: 1px solid var(--border-soft);
}

body.dark-mode .shade-quick-picker span {
    color: #F3F2EE !important;
}

/* Controles de cantidad (+ / -) e inputs del carrito en Modo Oscuro */
body.dark-mode .qty-control button,
body.dark-mode .qty-control input {
    color: #F3F2EE !important;
}

body.dark-mode #checkout-form .header-search__input {
    background-color: #151C19 !important;
    color: #F3F2EE !important;
    border-color: var(--border-soft) !important;
}

body.dark-mode #btn-locate-me,
body.dark-mode .js-cart-qty {
    background-color: #222B28 !important;
    color: #F3F2EE !important;
    border-color: var(--border-soft) !important;
}

/* Modal Iniciar Sesión / Crear Cuenta con texto claro en Modo Oscuro */
.auth-modal-card {
    background: var(--surface-white);
    color: var(--text-main);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 28px 24px;
    border: 1px solid var(--border-soft);
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.auth-modal-heading {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main) !important;
    margin: 0 0 6px 0;
    padding-right: 28px;
}

.auth-modal-sub {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin-bottom: 18px;
}

.auth-toggle-link {
    background: none;
    border: none;
    color: var(--primary-emerald);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

body.dark-mode .auth-toggle-link {
    color: var(--accent-camel) !important;
}

/* ==========================================================================
   PUNTO 1: EFECTO HOVER SUAVE EN TARJETAS (ZOOM FLUIDO Y BOTÓN APARECE AL PASAR EL CURSOR)
   ========================================================================== */
.product-card__img {
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

.product-card:hover .product-card__img {
    transform: scale(1.045) !important;
}

/* En escritorio el botón "Agregar / Seleccionar tono" permanece oculto y aparece con un deslizamiento suave en hover */
@media (hover: hover) and (pointer: fine) {
    .product-card__action-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.32s;
    }

    .product-card:hover .product-card__action-overlay,
    .product-card:focus-within .product-card__action-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PUNTO 3: SALUDO "HOLA, <NOMBRE>" EN HEADER Y PESTAÑAS DE PERFIL DE CLIENTA
   ========================================================================== */
.user-greeting-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-greeting-btn.is-logged {
    background-color: var(--pill-active);
    border-color: var(--border-soft);
}

.user-greeting-btn:hover {
    border-color: var(--primary-emerald);
}

.user-greeting-btn i {
    font-size: 19px;
}

.profile-menu-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.profile-tab-btn {
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.profile-tab-btn.is-active {
    background: var(--primary-emerald);
    border-color: var(--primary-emerald);
    color: #FFFFFF;
}

.profile-tab-btn--danger {
    color: #B91C1C;
}

.profile-tab-btn--danger:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
}

.customer-order-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
}

.customer-order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(25, 69, 56, 0.12);
    color: var(--primary-emerald);
}

body.dark-mode .customer-order-status {
    background: rgba(200, 169, 142, 0.2);
    color: var(--accent-camel);
}

/* ==========================================================================
   PUNTO 4: BOTÓN FLOTANTE EXPANDIBLE "TASA" (BCV)
   ========================================================================== */
.bcv-float-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 990;
}

.bcv-float-btn {
    height: 46px;
    padding: 0 16px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(200, 169, 142, 0.45);
    background-color: var(--primary-emerald);
    color: #FFFFFF;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(18, 43, 35, 0.28);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.bcv-float-btn:hover {
    transform: translateY(-2px);
    background-color: var(--primary-emerald-hover);
}

.bcv-float-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent-camel);
    color: #1C201E;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bcv-float-btn__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bcv-float-btn__details {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        margin-left 0.25s ease;
}

.bcv-float-widget.is-expanded .bcv-float-btn__details {
    max-width: 200px;
    opacity: 1;
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.bcv-float-btn__details strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-camel);
}

.bcv-float-btn__details small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .user-greeting-text {
        font-size: 12px;
        max-width: 95px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bcv-float-widget {
        bottom: 16px;
        left: 14px;
    }

    .bcv-float-btn {
        height: 40px;
        padding: 0 12px 0 8px;
    }

    .bcv-float-btn__icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .bcv-float-btn__label {
        font-size: 12px;
    }
}

/* ==========================================================================
   FIX BOTÓN "PEDIR POR WHATSAPP" EN DELIVERY (Evita que se aplaste en flex)
   ========================================================================== */
#checkout-form > * {
    flex-shrink: 0;
}

#btn-submit-order {
    min-height: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* ==========================================================================
   CARRUSELES DE PRODUCTOS EN HOME (Destacados, Nuevos, Ofertas)
   ========================================================================== */
.section-home-carousel {
    padding: 0;
}

.home-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.home-carousel-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.products-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.products-carousel-track::-webkit-scrollbar {
    display: none;
}

.product-card--carousel {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 240px;
    scroll-snap-align: start;
}

.product-card__price-old {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.product-card__price-offer {
    color: #B91C1C;
    font-weight: 700;
}

body.dark-mode .product-card__price-offer {
    color: #F87171;
}

@media (max-width: 1024px) {
    .product-card--carousel {
        flex: 0 0 calc((100% - 36px) / 3);
        min-width: 210px;
    }
}

@media (max-width: 768px) {
    .products-carousel-track {
        gap: 12px;
    }

    .product-card--carousel {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: 155px;
    }
}

/* Centrar burbujas cuando son pocas y permitir scroll normal cuando desbordan */
.categories-strip .category-bubble:first-child {
    margin-left: auto;
}

.categories-strip .category-bubble:last-child {
    margin-right: auto;
}

.mobile-menu-actions {
    display: none;
}

.mobile-user-pill {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
}

.mobile-menu-quick-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.menu-quick-btn {
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.menu-quick-btn i {
    font-size: 18px;
}

.menu-quick-btn:hover {
    border-color: var(--primary-emerald);
    color: var(--primary-emerald);
}

.menu-quick-btn--danger {
    color: #B91C1C;
}

.menu-quick-btn--danger:hover {
    background-color: #FEE2E2;
    border-color: #FCA5A5;
    color: #B91C1C;
}

@media (max-width: 768px) {
    .desktop-only-action {
        display: none !important;
    }
    .mobile-menu-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 4px 4px 10px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border-soft);
    }
    .mobile-user-pill .user-greeting-text {
        max-width: none;
    }
    .menu-quick-btn {
        width: 36px;
        padding: 0;
    }
    .menu-quick-label {
        display: none;
    }
}

.category-bubble__img-wrap--has-img {
    background-color: #FFFFFF !important;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 0 24px;
    }
}

.products-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-carousel-wrap .products-carousel-track {
    flex: 1;
    min-width: 0;
}

.product-card__fav.is-favorited,
body.dark-mode .product-card__fav.is-favorited {
    color: #194538 !important;
}

/* Hero full-width, pegado al header y 20% menos altura */
.hero-wrapper {
    padding: 0 0 16px;
    margin-top: 0;
}
.hero-card {
    width: 100%;
    border-radius: 0;
    min-height: 350px;
    padding: 40px 0;
}

/* Reducción de ~30% en espaciado vertical entre secciones */
.section-categories {
    padding: 26px 0;
}
.categories-carousel-wrap {
    margin-top: 18px;
}
.home-carousel-head {
    margin-bottom: 14px;
}
.section-catalog {
    padding: 16px 0 48px;
}
.info-section {
    padding: 44px 0 60px;
}
.detail-section {
    padding: 22px 0 44px;
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 0 0 12px;
    }
    .hero-card {
        min-height: 256px;
        padding: 24px 0;
        border-radius: 0;
    }
    .section-categories {
        padding: 20px 0;
    }
    .section-home-carousel {
        padding: 0;
    }
}

.bx-log-out {
    display: inline-block;
    transform: scaleX(-1);
}

.section-home-carousel:last-of-type {
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .section-home-carousel:last-of-type {
        margin-bottom: 40px;
    }
}

/* Logo alargado (solo imagen) y cambio automático en modo oscuro */
.brand-logo__img {
    height: 38px;
    width: auto !important;
    max-width: 195px;
    object-fit: contain;
}

.brand-logo__img--dark {
    display: none;
}

body.dark-mode .brand-logo__img--light {
    display: none;
}

body.dark-mode .brand-logo__img--dark {
    display: block;
}

@media (max-width: 768px) {
    .brand-logo__img {
        height: 32px;
        max-width: 155px;
    }
}