/* =========================
   BASE / PALETA SAMIR'S
   AQUÍ PUEDES CAMBIAR:
   - colores principales
   - tonos del sitio
   ========================= */
:root {
    --primary: #d4aa2a;
    --primary-strong: #b4881f;
    --accent: #8f5526;
    --dark: #0f0d0b;
    --dark-soft: #1b1713;
    --light: #ffffff;
    --white: #ffffff;
    --soft: #f5f5f5;
    --border: #e8e8e8;
    --text: #1c1814;
    --muted: #6b6157;
    --radius: 22px;
    --shadow: 0 12px 32px rgba(17, 12, 7, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    color: var(--text);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

/* =========================
   HEADER
   ========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.topbar-inner {
    width: min(1450px, 95%);
    margin: 0 auto;
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.logo-img,
.logo-fallback {
    width: 116px;
    height: 58px;
    object-fit: contain;
    border-radius: 14px;
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    border: none;
    background: transparent;
    padding: 12px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
    transition: 0.22s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--dark);
    background: rgba(212, 170, 42, 0.18);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--soft);
    border-radius: 999px;
    overflow: hidden;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 16px;
    color: var(--text);
}

.search-box input::placeholder {
    color: #8b7f72;
}

.search-box button {
    border: none;
    background: var(--dark);
    color: var(--primary);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
}

.tool-btn {
    border: none;
    background: var(--soft);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.22s ease;
}

.tool-btn:hover {
    transform: translateY(-1px);
    background: #ececec;
}

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

#cart-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    margin-left: 4px;
}

/* =========================
   ESTRUCTURA GENERAL
   ========================= */
.page-wrapper {
    width: min(1450px, 95%);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--dark);
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

/* =========================
   HERO INICIO
   AQUÍ PUEDES CAMBIAR:
   - altura
   - overlay
   - tamaño del texto
   ========================= */
.hero {
    position: relative;
    min-height: 620px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    background: #000;
}

.hero-video-bg {
    background: #000;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(7, 6, 5, 0.78) 0%,
        rgba(7, 6, 5, 0.58) 35%,
        rgba(7, 6, 5, 0.22) 70%,
        rgba(7, 6, 5, 0.08) 100%
    );
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.badge {
    display: inline-block;
    width: fit-content;
    background: rgba(212, 170, 42, 0.16);
    color: #fff;
    border: 1px solid rgba(212, 170, 42, 0.32);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    line-height: 1.01;
    color: #fff;
    font-weight: 900;
}

.hero-content p {
    color: rgba(255, 250, 243, 0.94);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    background: var(--primary);
    color: var(--dark);
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-strong);
    color: #fff;
}

.btn-secondary {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* =========================
   BOTONES GRANDES DE INICIO
   ========================= */
.home-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.home-big-action {
    min-width: 0;
    min-height: 110px;
    border-radius: 28px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.home-big-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 12, 7, 0.16);
}

.home-action-title {
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 900;
}

.home-action-subtitle {
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1.4;
    opacity: 0.95;
}

.action-dark {
    background: var(--dark);
    color: var(--primary);
    border-color: rgba(212, 170, 42, 0.15);
}

.action-light {
    background: #fafafa;
    color: var(--dark);
    border-color: var(--border);
}

/* =========================
   PUBLICIDADES
   ========================= */
.home-ads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 30px;
    align-items: stretch;
}

.home-ad-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 260px;
    border-radius: 26px;
    overflow: hidden;
    background: #d8d0c6;
    box-shadow: var(--shadow);
}

.home-ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-button {
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.left-ad,
.right-ad {
    width: 100%;
}

/* =========================
   BLOQUE CAMPAÑA
   ========================= */
.campaign-block {
    background: var(--white);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.campaign-text h3 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--dark);
}

.campaign-text p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.campaign-gallery {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.campaign-photo {
    position: relative;
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background: #d8d0c6;
}

.campaign-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   TARJETAS GENERALES
   ========================= */
.cards-3,
.cards-2 {
    display: grid;
    gap: 18px;
}

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

.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.info-card h3,
.info-card h4 {
    margin-top: 0;
    color: var(--dark);
}

.info-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--dark) 0%, #1f1812 100%);
    color: var(--primary);
}

.info-card.highlight h3,
.info-card.highlight h4 {
    color: var(--primary);
}

.info-card.highlight p {
    color: rgba(255, 250, 243, 0.9);
}

/* =========================
   MENÚ CATEGORÍAS
   ========================= */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.category-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s ease;
}

.category-btn.active,
.category-btn:hover {
    background: var(--dark);
    color: var(--primary);
    border-color: var(--dark);
}

/* =========================
   MENÚ CON IMÁGENES
   AQUÍ PUEDES CAMBIAR:
   - tamaño de foto
   - forma de tarjeta
   - botón agregar
   ========================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.product-card-kfc {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 18px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 240px;
}

.product-image-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 20px;
    overflow: hidden;
    background: #f2eee8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-image-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #2b2b2b, #4a4a4a);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.08;
    color: var(--dark);
}

.product-info p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.02rem;
    min-height: unset;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-card button {
    width: 100%;
}

.btn-add-cart {
    width: fit-content !important;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    background: #26222a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    background: #1d1920;
}

/* =========================
   CONTACTOS
   ========================= */
.panel-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

.side-menu {
    background: var(--white);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
}

.side-btn {
    border: none;
    background: var(--soft);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
}

.side-btn.active,
.side-btn:hover {
    background: var(--dark);
    color: var(--primary);
}

.panel-content {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel-item {
    display: none;
}

.panel-item.active-panel {
    display: block;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-item {
    background: var(--soft);
    padding: 16px;
    border-radius: 16px;
    color: var(--text);
}

.stack-item a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   LEGAL
   ========================= */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    margin-top: 18px;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-btn {
    border: none;
    background: var(--soft);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
}

.legal-btn.active,
.legal-btn:hover {
    background: var(--dark);
    color: var(--primary);
}

.legal-box {
    background: #f7f1e8;
    border-radius: 20px;
    padding: 20px;
    min-height: 280px;
}

.legal-item {
    display: none;
}

.legal-item.active-legal {
    display: block;
}

.legal-item h4 {
    margin-top: 0;
    color: var(--dark);
}

.legal-item p {
    line-height: 1.7;
    color: #423b35;
}

/* =========================
   FORMULARIOS / TABLAS
   ========================= */
.auth-box,
.table-box,
.cart-summary {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 700px;
}

.form-box input,
.form-box select {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    background: #fffdf9;
    color: var(--text);
}

.form-box input:focus,
.form-box select:focus {
    border-color: var(--accent);
}

.error {
    color: #b32121;
    min-height: 18px;
    font-size: 0.88rem;
}

.tabla-usuarios {
    width: 100%;
    border-collapse: collapse;
}

.tabla-usuarios th,
.tabla-usuarios td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tabla-usuarios th {
    background: #f3ebdf;
    color: var(--dark);
}

.cart-summary {
    margin-top: 18px;
}

/* =========================
   BÚSQUEDA RESALTADO
   ========================= */
.search-hit {
    outline: 2px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(212, 170, 42, 0.18);
}

/* =========================
   NOSOTROS / HISTORIA
   IMÁGENES CON TAMAÑO CONTROLADO
   ========================= */
.about-story {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.story-banner {
    position: relative;
    height: 540px;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow);
}

.story-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.story-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.48) 0%,
        rgba(0, 0, 0, 0.28) 40%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

.story-banner-card {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: min(480px, calc(100% - 80px));
    background: rgba(255, 250, 243, 0.97);
    color: #111;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.story-banner-card h3 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.02;
    font-weight: 900;
    color: var(--dark);
}

.story-banner-card p {
    margin: 0;
    color: #5a5a5a;
    font-size: 1.08rem;
    line-height: 1.7;
}

.story-deco {
    width: 58px;
    height: 14px;
    margin-bottom: 18px;
    background: linear-gradient(
        90deg,
        var(--primary) 0 18%,
        transparent 18% 28%,
        var(--primary) 28% 46%,
        transparent 46% 56%,
        var(--primary) 56% 74%
    );
}

.story-grid-two {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: start;
}

.story-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-photo-box {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #d8d0c6;
    box-shadow: var(--shadow);
}

.story-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.small-top {
    height: 280px;
}

.small-bottom {
    height: 340px;
}

.large-photo {
    height: 460px;
}

.story-copy {
    padding-top: 8px;
}

.story-big-title {
    margin: 0 0 34px;
    font-size: clamp(2.6rem, 4.4vw, 4.8rem);
    line-height: 0.98;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
}

.story-subtitle {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark);
}

.story-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.14rem;
    line-height: 1.85;
}

.story-grid-three {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 42px;
    align-items: center;
}

.left-copy {
    padding-right: 12px;
}

.story-quote {
    font-size: 1.24rem;
    line-height: 1.9;
    color: var(--muted);
}

.final-banner {
    height: 620px;
}

.final-overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.26) 50%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

.final-card {
    right: 70px;
    width: min(520px, calc(100% - 100px));
}

.story-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2c2c, #474747);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* =========================
   MODAL DE CAMPAÑA
   ========================= */
.campaign-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.campaign-modal.active {
    display: block;
}

.campaign-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(4px);
}

.campaign-modal-content {
    position: relative;
    width: min(1100px, 92%);
    max-height: 88vh;
    overflow-y: auto;
    margin: 4vh auto;
    background: var(--white);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.campaign-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: var(--dark);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    margin-top: 54px;
    background: #f7f3eb;
    border-top: 1px solid var(--border);
    padding: 42px 0 18px;
}

.footer-grid {
    width: min(1450px, 95%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.footer-brand-col {
    max-width: 360px;
}

.footer-col h3,
.footer-col h4 {
    margin: 0 0 14px;
    color: var(--dark);
}

.footer-col p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-col a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: var(--primary);
    transition: 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-1px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    width: min(1450px, 95%);
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
}

/* =========================
   LOCAL EN MENÚ
   ========================= */
.menu-local-picker {
    margin-bottom: 24px;
}

.menu-local-card {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.menu-local-card h3 {
    margin: 0 0 16px;
    color: var(--dark);
}

.menu-local-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: end;
}

.menu-local-field label,
.cart-config-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--dark);
}

.menu-local-field select,
.cart-config-field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    background: #fffdf9;
    color: var(--text);
}

.menu-local-info {
    background: var(--soft);
    border-radius: 16px;
    padding: 16px;
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   CONFIGURACIÓN DEL CARRITO
   ========================= */
.cart-config-box {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.cart-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cart-config-field {
    min-width: 0;
}

/* =========================
   BOTÓN ELIMINAR PRODUCTO
   ========================= */
.btn-delete-item {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #f5ecec;
    color: #9e1f1f;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-delete-item:hover {
    background: #ebdada;
    transform: translateY(-1px);
}

/* =========================
   RESUMEN DEL CARRITO
   ========================= */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.total-row {
    font-size: 1.12rem;
    font-weight: 900;
}

.cart-actions-row {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-cart-clear {
    background: #ececec;
    color: var(--dark);
}

.btn-cart-order {
    min-width: 190px;
}

.cart-item-name {
    font-weight: 800;
    color: var(--dark);
}

.cart-item-detail {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.88rem;
}

/* =========================================================
   MODAL DE PRODUCTO / PERSONALIZACIÓN
   CORREGIDO:
   - barra superior dorada
   - precios de extras en negro
   - lado izquierdo con scroll para que se vea completo
   ========================================================= */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
}

.product-modal.active {
    display: block;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.58);
    backdrop-filter: blur(3px);
}

.product-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1180px, 94%);
    max-width: 1180px;

    height: 92dvh;
    max-height: 92dvh;

    margin: 2dvh auto;

    background: #fff;
    border-radius: 26px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #1b1b1b;
    z-index: 4;
}

.product-modal-header {
    padding: 20px 40px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.product-modal-header h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark);
}

.product-modal-alert {
    background: var(--primary);
    color: var(--dark);
    font-weight: 900;
    padding: 14px 40px;
    text-align: center;
}

.product-modal-body {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;
}

.product-modal-left {
    padding: 34px 34px 36px 40px;
    border-right: 1px solid var(--border);
    background: #fff;
    height: 100%;
    overflow-y: auto;
    align-self: stretch;
}

.product-modal-image-box {
    width: 100%;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    background: #f6f1eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.product-modal-image-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2c2c, #474747);
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.product-modal-main-info {
    padding-bottom: 20px;
}

.product-modal-main-info h4 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: var(--dark);
}

.product-modal-main-info p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.04rem;
}

.product-modal-main-info p:last-child {
    margin-bottom: 0;
}

.product-modal-price {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-modal-right {
    padding: 28px 34px 28px 28px;

    overflow-y: auto;
    overflow-x: hidden;

    min-height: 0;

    -webkit-overflow-scrolling: touch;
}

.modal-block {
    margin-bottom: 24px;
}

.modal-block h4 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    color: var(--dark);
}

.modal-block p {
    margin: 0 0 14px;
    color: var(--muted);
}

.modal-note-presas {
    background: #fff4f4;
    color: #c42c2c;
    border-radius: 18px;
    padding: 18px;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
    font-weight: 700;
}

.modal-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-radio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f6f6f6;
    padding: 18px 20px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
}

.modal-radio-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

.modal-radio-item input {
    accent-color: var(--primary-strong);
    width: 22px;
    height: 22px;
}

.modal-radio-text {
    flex: 1;
    font-weight: 800;
    color: var(--dark);
    font-size: 1.08rem;
}

.modal-radio-text small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.modal-extras-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.modal-extra-counter {
    min-width: 76px;
    text-align: center;
    padding: 10px 14px;
    background: #f2f2f2;
    border-radius: 999px;
    font-weight: 800;
    color: var(--dark);
}

.modal-extras-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-extra-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: #f7f7f7;
    border-radius: 22px;
    padding: 20px;
}

.modal-extra-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal-extra-price {
    color: var(--dark);
    font-weight: 800;
    font-size: 1rem;
}

.modal-extra-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-extra-actions button {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid #8e8e8e;
    background: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.modal-extra-actions span {
    min-width: 26px;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark);
}

.modal-comment-label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

.modal-comment-box {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    border: none;
    outline: none;
    border-radius: 18px;
    background: #f3f3f3;
    padding: 16px;
    color: var(--text);
}

.product-modal-footer {
    border-top: 1px solid var(--border);
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    background: #fff;
}

.modal-main-qty {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-main-qty button {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid #8e8e8e;
    background: #fff;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.modal-main-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 900;
    font-size: 1.4rem;
}

.modal-confirm-btn {
    min-width: 220px;
    font-size: 1.1rem;
}

/* =========================
   RESPONSIVE GENERAL
   ========================= */
@media (max-width: 1200px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 16px 0;
    }

    .main-nav,
    .header-tools {
        justify-content: center;
    }

    .cards-3,
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .campaign-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-layout,
    .legal-layout,
    .story-grid-two,
    .story-grid-three {
        grid-template-columns: 1fr;
    }

    .story-copy,
    .left-copy {
        padding: 0;
    }

    .story-banner-card,
    .final-card {
        right: 28px;
        left: 28px;
        width: auto;
    }

    .product-card-kfc {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 900px) {
    .menu-local-grid,
    .cart-config-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-dialog {
        width: 96%;
        height: 92vh;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-left {
	    padding: 34px 34px 36px 40px;
	    border-right: 1px solid var(--border);
	    background: #fff;
	
	    overflow-y: auto;
	    overflow-x: hidden;
	
	    min-height: 0;
	
	    -webkit-overflow-scrolling: touch;
	}

    .product-modal-right {
        padding: 22px 20px;
    }

    .product-modal-image-box {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .search-box {
        min-width: 100%;
    }

    .main-nav,
    .header-tools,
    .category-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cards-3,
    .cards-2,
    .menu-grid,
    .home-order-actions,
    .home-ads-grid,
    .campaign-gallery,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        max-width: 100%;
        padding: 28px 20px;
        justify-content: flex-end;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.08;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.82) 100%
        );
    }

    .hero-actions,
    .hero-actions button {
        width: 100%;
    }

    .home-big-action {
        min-height: 92px;
        padding: 18px 16px;
    }

    .home-action-title {
        font-size: 1.2rem;
    }

    .home-action-subtitle {
        font-size: 0.88rem;
    }

    .home-ad-card {
        min-height: 220px;
    }

    .campaign-modal-content {
        width: 94%;
        padding: 20px;
    }

    .story-banner,
    .final-banner {
        min-height: 420px;
        height: auto;
    }

    .story-banner-card,
    .final-card {
        right: 18px;
        left: 18px;
        top: auto;
        bottom: 18px;
        transform: none;
        padding: 22px;
    }

    .story-banner-card h3 {
        font-size: 1.8rem;
    }

    .story-big-title {
        font-size: 2.4rem;
        line-height: 1.02;
    }

    .story-subtitle {
        font-size: 1.35rem;
    }

    .story-copy p,
    .story-quote,
    .story-banner-card p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .small-top {
        height: 220px;
    }

    .small-bottom {
        height: 240px;
    }

    .large-photo {
        height: 260px;
    }

    .footer-brand-col {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card-kfc {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-image-wrap {
        height: 210px;
    }

    .product-info {
        align-items: center;
    }

    .btn-add-cart {
        width: 100% !important;
    }

    .cart-actions-row {
        flex-direction: column;
    }

    .btn-cart-clear,
    .btn-cart-order {
        width: 100%;
    }

    .product-modal-header {
        padding: 18px 20px 14px;
    }

    .product-modal-header h3 {
        font-size: 1.55rem;
        padding-right: 32px;
    }

    .product-modal-alert {
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .modal-block h4 {
        font-size: 1.25rem;
    }

    .modal-extra-row {
        grid-template-columns: 1fr;
    }

    .product-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-confirm-btn {
        width: 100%;
        min-width: 0;
    }

    .modal-main-qty {
        justify-content: center;
    }
}
/* =========================
   CUPONES / PROMOCIONES
   ========================= */
.coupon-panel {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.coupon-panel-top h3 {
    margin: 0 0 8px;
    color: var(--dark);
}

.coupon-panel-top p {
    margin: 0 0 16px;
    color: var(--muted);
}

.coupon-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.coupon-form input {
    flex: 1;
    min-width: 260px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    background: #fffdf9;
    color: var(--text);
}

.coupon-message {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 700;
}

.coupon-message.ok {
    color: #1d7a32;
}

.coupon-message.warn {
    color: #8f5526;
}

.coupon-message.error {
    color: #b32121;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.coupon-card {
    border: none;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
    outline: 2px solid transparent;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 12, 7, 0.16);
}

.coupon-card.active {
    outline: 2px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(212, 170, 42, 0.18);
}

.coupon-card-image {
    width: 100%;
    height: 220px;
    background: #ede7df;
    overflow: hidden;
    position: relative;
}

.coupon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coupon-card-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2c2c, #474747);
    color: #fff;
    font-weight: 700;
}

.coupon-card-body {
    padding: 18px;
}

.coupon-card-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(212, 170, 42, 0.18);
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.coupon-card-body h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.2rem;
}

.coupon-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   RESUMEN DE CARRITO
   ========================= */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.total-row {
    font-size: 1.08rem;
    font-weight: 900;
}

.cart-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-cart-clear {
    background: #ececec;
    color: var(--dark);
}

.btn-cart-order {
    min-width: 190px;
}

@media (max-width: 900px) {
    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .coupon-form {
        flex-direction: column;
    }

    .coupon-form input,
    .coupon-form button {
        width: 100%;
    }

    .cart-actions-row {
        flex-direction: column;
    }

    .btn-cart-clear,
    .btn-cart-order {
        width: 100%;
    }
}
/* =========================
   AUTH LOGIN / REGISTRO
   ========================= */
.auth-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.auth-tab {
    border: none;
    background: var(--soft);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s ease;
}

.auth-tab.active {
    background: var(--dark);
    color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active-auth-form {
    display: flex;
}

.auth-session-box {
    background: #f8f5ef;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.auth-session-box h3 {
    margin-top: 0;
    color: var(--dark);
}

.auth-session-box p {
    color: var(--muted);
    margin-bottom: 16px;
}
.tool-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-btn-cart-icon {
    font-size: 1rem;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-drawer.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.cart-drawer.active .cart-drawer-panel {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    color: var(--dark);
}

.cart-drawer-header p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.cart-drawer-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
}

.cart-drawer-empty {
    flex: 1;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px 24px;
}

.cart-drawer-empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cart-drawer-empty h4 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.cart-drawer-empty p {
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 280px;
}

.cart-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.cart-drawer-config {
    padding: 18px 22px 8px;
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
    display: grid;
    gap: 14px;
}

.drawer-cart-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.drawer-cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.drawer-cart-item-name {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
}

.drawer-cart-item-detail {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.drawer-cart-item-price {
    font-weight: 800;
    white-space: nowrap;
}

.drawer-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.drawer-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.drawer-cart-qty button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d7d7d7;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
}

.drawer-cart-qty span {
    min-width: 18px;
    text-align: center;
    font-weight: 800;
}

.drawer-cart-remove {
    border: none;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
}

.cart-drawer-summary {
    border-top: 1px solid var(--border);
    padding: 18px 22px 10px;
    background: #fff;
}

.cart-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 22px 22px;
    background: #fff;
}

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3500;
    display: grid;
    gap: 10px;
}

.toast-item {
    min-width: 260px;
    max-width: 360px;
    background: var(--dark);
    color: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.25s ease;
    font-weight: 600;
}

@keyframes toastIn {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.perfil-empty-panel,
.perfil-orders-panel {
    margin-top: 24px;
}

.perfil-empty-panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.perfil-empty-panel h3 {
    margin: 0 0 8px;
}

.perfil-empty-panel p {
    margin: 0 0 16px;
    color: var(--muted);
}

.perfil-orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.perfil-orders-toolbar h3 {
    margin: 0;
    font-size: 1.5rem;
}

.perfil-orders-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.perfil-orders-filters select {
    min-width: 180px;
}

.perfil-orders-list {
    display: grid;
    gap: 14px;
}

.perfil-order-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.perfil-order-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.perfil-order-code {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
}

.perfil-order-date {
    color: var(--muted);
    font-size: 0.92rem;
}

.perfil-order-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.perfil-order-chip {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f4f4;
    font-size: 0.9rem;
    font-weight: 700;
}

.perfil-order-detail {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
}

.perfil-order-detail h4 {
    margin: 0 0 12px;
}

.perfil-order-detail-list {
    display: grid;
    gap: 10px;
}

.perfil-order-detail-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #fafafa;
}

@media (max-width: 768px) {
    .cart-drawer-panel {
        width: 100%;
    }

    .cart-drawer-actions {
        grid-template-columns: 1fr;
    }

    .perfil-orders-toolbar {
        align-items: stretch;
    }

    .perfil-orders-filters {
        width: 100%;
    }

    .perfil-orders-filters select {
        width: 100%;
    }
}
/* =========================
   AUTH MÁS PRO
   ========================= */
.auth-box {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth-switch {
    margin-bottom: 24px;
    justify-content: flex-start;
}

.auth-tab {
    min-width: 140px;
    padding: 13px 20px;
    font-size: 1rem;
}

.auth-form {
    gap: 10px;
}

.auth-form label {
    font-weight: 800;
    color: var(--dark);
    margin-top: 4px;
}

.auth-form input {
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfaf7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 170, 42, 0.12);
}

.auth-form .btn-primary {
    margin-top: 12px;
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
}

#mensaje-login,
#mensaje-final {
    min-height: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.auth-session-box {
    background: #f8f5ef;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
}

.auth-session-box h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.auth-session-box p {
    margin: 0 0 16px;
    line-height: 1.7;
}
.auth-entry-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-methods-view,
.auth-email-view {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-methods-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-methods-card h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
}

.auth-provider-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 18px 22px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: 0.2s ease;
}

.auth-provider-btn:hover {
    transform: translateY(-1px);
}

.auth-google-btn {
    background: #f3f3f3;
    color: #1d1d1d;
}

.auth-facebook-btn {
    background: #1877f2;
    color: #fff;
}

.auth-email-btn {
    background: #f3f3f3;
    color: #1d1d1d;
}

.auth-back-btn {
    border: none;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
    margin-left: auto;
    padding: 8px 0;
}
/* =========================
   AUTH REGISTRO MÁS PRO
   ========================= */
.auth-entry-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-methods-view,
.auth-email-view {
    width: 100%;
}

.auth-box {
    width: min(920px, 100%);
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.form-box {
    max-width: none;
    width: 100%;
}

.auth-form {
    width: 100%;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
}

#formRegistro {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
}

#formRegistro.active-auth-form {
    display: grid;
}

#formRegistro label {
    margin-bottom: 4px;
    font-weight: 800;
    color: var(--dark);
}

#formRegistro input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfaf7;
}

#formRegistro .error {
    min-height: 18px;
    font-size: 0.86rem;
}

#formRegistro > .btn-primary,
#formRegistro > #mensaje-final,
#formRegistro > .register-legal-box {
    grid-column: 1 / -1;
}

.register-legal-box {
    margin-top: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #faf7f2;
}

.register-legal-box h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--dark);
}

.register-legal-text {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.96rem;
}

.register-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--text);
    line-height: 1.5;
}

.register-check input {
    width: 18px !important;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-strong);
    flex: 0 0 auto;
}

.auth-back-btn {
    border: none;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 18px;
    padding: 0;
}

.auth-methods-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-methods-card h3 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
}

.auth-provider-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 18px 22px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s ease;
}

.auth-provider-btn:hover {
    transform: translateY(-1px);
}

.auth-google-btn,
.auth-email-btn {
    background: #f1efeb;
    color: var(--dark);
}

@media (max-width: 768px) {
    .auth-box {
        padding: 22px 18px;
    }

    #formRegistro {
        grid-template-columns: 1fr;
    }

    .auth-methods-card {
        padding: 24px 18px;
    }
}
/* =========================================
   PERFIL PRO ESTILO APP
========================================= */
.perfil-app-shell {
    display: block;
}

.perfil-app-header {
    margin-bottom: 26px;
}

.perfil-app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.perfil-app-header h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    color: var(--dark);
    font-weight: 900;
}

.perfil-app-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
}

.perfil-app-sidebar {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 120px;
}

.perfil-side-btn {
    border: none;
    background: transparent;
    border-radius: 18px;
    padding: 14px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    color: var(--dark);
    transition: 0.2s ease;
    text-align: left;
    position: relative;
}

.perfil-side-btn:hover {
    background: #f7f4ee;
}

.perfil-side-btn.active {
    background: #f8f5ef;
    color: var(--dark);
}

.perfil-side-btn.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: #e9002d;
}

.perfil-side-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f1eb;
    font-size: 1rem;
}

.perfil-side-btn-logout {
    margin-top: 10px;
}

.perfil-app-content {
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow);
    min-height: 650px;
    padding: 28px;
}

.perfil-panel {
    display: none;
}

.perfil-panel.active-panel {
    display: block;
}

.perfil-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.perfil-block-header h3 {
    margin: 0 0 6px;
    font-size: 2rem;
    color: var(--dark);
}

.perfil-block-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.perfil-form-pro {
    max-width: 760px;
    gap: 10px;
}

.perfil-form-pro label {
    font-weight: 800;
    color: var(--dark);
    margin-top: 6px;
}

.perfil-form-pro input,
.perfil-form-pro select {
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfaf7;
    color: var(--text);
    outline: none;
}

.perfil-form-pro input:focus,
.perfil-form-pro select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 170, 42, 0.10);
}

.perfil-check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-weight: 700;
    color: var(--dark);
}

.perfil-check-line input {
    width: 18px;
    height: 18px;
}

.perfil-subsection {
    margin-top: 30px;
}

.perfil-subsection h4 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    color: var(--dark);
}

.perfil-direcciones-list {
    display: grid;
    gap: 14px;
}

.perfil-direccion-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
}

.perfil-direccion-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.perfil-direccion-nombre {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--dark);
}

.perfil-direccion-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(212, 170, 42, 0.18);
    color: var(--dark);
    font-weight: 800;
    font-size: 0.84rem;
}

.perfil-direccion-detalle {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.perfil-direccion-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.perfil-mini-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 800;
    background: #f3f3f3;
    color: var(--dark);
}

.perfil-mini-btn:hover {
    transform: translateY(-1px);
}

.perfil-mini-btn.danger {
    background: #fceaea;
    color: #b42318;
}

.perfil-empty-module {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
}

.perfil-empty-module h3 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--dark);
}

.perfil-empty-module p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
}

#facturacion-message,
#direccion-message {
    min-height: 24px;
    margin-top: 10px;
    font-weight: 700;
}

#perfil-panel-pedidos .table-box {
    margin-bottom: 22px;
}

@media (max-width: 1100px) {
    .perfil-app-layout {
        grid-template-columns: 1fr;
    }

    .perfil-app-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .perfil-app-content {
        padding: 20px;
        min-height: auto;
    }

    .perfil-block-header h3 {
        font-size: 1.55rem;
    }

    .perfil-side-btn {
        padding: 12px;
    }

    .perfil-side-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .perfil-direccion-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
.perfil-side-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 999px;
    background: #f4f0ea;
    color: #8a8175;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.perfil-side-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.perfil-side-btn.active .perfil-side-icon {
    background: #ede7df;
    color: #1a1a1a;
}

.perfil-side-btn:hover .perfil-side-icon {
    color: #1a1a1a;
}
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-icon-link {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 68px;
    color: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-icon-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.header-icon-link__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f5f3ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171411;
}

.header-icon-link__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.header-icon-link__text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dark);
}

.header-cart-btn {
    border: none;
    background: #f5f3ef;
    border-radius: 999px;
    min-height: 52px;
    padding: 0 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-cart-btn:hover {
    transform: translateY(-1px);
    background: #efebe5;
}

.header-cart-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171411;
}

.header-cart-btn__icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.header-cart-btn__text {
    font-size: 0.95rem;
    font-weight: 800;
}

.header-cart-btn__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #a66a2b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .header-tools {
        justify-content: center;
        gap: 10px;
    }

    .header-cart-btn {
        padding: 0 14px;
    }

    .header-cart-btn__text {
        font-size: 0.9rem;
    }

    .header-icon-link__text {
        font-size: 0.82rem;
    }
}
/* =========================================
   PERFIL PRO - CUENTA / CONTACTOS / LEGAL
========================================= */
.perfil-module-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 14px 34px rgba(17, 12, 7, 0.08);
    border: 1px solid #f0ebe4;
}

.perfil-module-top {
    margin-bottom: 10px;
}

.perfil-back-mini {
    border: none;
    background: transparent;
    color: #2a241e;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.perfil-module-title {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    color: var(--dark);
    line-height: 1.05;
    text-transform: none;
}

.perfil-module-text {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.perfil-account-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.perfil-data-field {
    background: #faf7f2;
    border: 1px solid #eee6db;
    border-radius: 18px;
    padding: 16px 18px;
}

.perfil-data-field span {
    display: block;
    margin-bottom: 8px;
    color: #7a6e61;
    font-size: 0.9rem;
    font-weight: 700;
}

.perfil-data-field strong {
    display: block;
    color: var(--dark);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
}

.perfil-contact-stack,
.perfil-legal-stack {
    display: grid;
    gap: 16px;
}

.perfil-contact-item,
.perfil-legal-item-card {
    background: #faf7f2;
    border: 1px solid #eee6db;
    border-radius: 20px;
    padding: 18px 20px;
}

.perfil-contact-item strong,
.perfil-legal-item-card h4 {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.04rem;
    font-weight: 900;
}

.perfil-contact-item span,
.perfil-contact-item a,
.perfil-legal-item-card p {
    color: #4f463d;
    font-size: 1rem;
    line-height: 1.75;
    text-decoration: none;
}

.perfil-contact-item a {
    font-weight: 800;
    color: var(--accent);
}

.perfil-contact-item a:hover {
    text-decoration: underline;
}

/* que el panel derecho se vea más fino */
.perfil-app-content {
    min-width: 0;
}

.perfil-panel {
    width: 100%;
}

/* mejora visual del panel izquierdo */
.perfil-side-btn {
    border-radius: 20px;
    min-height: 72px;
    padding: 16px 18px;
    gap: 14px;
}

.perfil-side-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4efe8;
    color: #7a6e61;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.perfil-side-btn.active .perfil-side-icon {
    background: #efe6d0;
    color: #1d1813;
}

.perfil-side-btn span:last-child {
    font-size: 1.05rem;
    font-weight: 800;
}

/* responsive */
@media (max-width: 900px) {
    .perfil-account-grid-pro {
        grid-template-columns: 1fr;
    }

    .perfil-module-card {
        padding: 22px;
        border-radius: 24px;
    }

    .perfil-module-title {
        font-size: 1.75rem;
    }
}
.home-promos-panel {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #ece7de;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.home-promos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.home-promos-header h3 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    color: #111;
}

.home-promos-header p {
    margin: 0;
    color: #6b6257;
    font-size: 15px;
}

.home-promos-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f3efe8;
    color: #111;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.home-promos-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
}

.home-promos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ece7de;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: 0.2s ease;
}

.home-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.home-promo-card.active {
    border-color: #d8ad26;
    background: #fffaf0;
}

.home-promo-thumb {
    width: 96px;
    min-width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-promo-thumb img,
.home-promo-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-promo-thumb-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 8px;
}

.home-promo-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-promo-card-body strong {
    font-size: 18px;
    color: #111;
}

.home-promo-card-body span {
    font-size: 14px;
    color: #7a7065;
}

.home-promos-detail {
    border: 1px solid #ece7de;
    border-radius: 24px;
    background: #fcfaf7;
    overflow: hidden;
}

.home-promo-detail-image {
    width: 100%;
    height: 320px;
    background: #f5f2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-promo-detail-content {
    padding: 24px;
}

.home-promo-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111;
    color: #d8ad26;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.home-promo-detail-content h4 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.1;
    color: #111;
}

.home-promo-detail-content p {
    margin: 0 0 18px;
    color: #5f564d;
    font-size: 16px;
    line-height: 1.7;
}

.home-promo-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 18px;
    background: #f3eee6;
}

.home-promo-meta div {
    color: #2a2622;
    font-size: 15px;
}

.home-promo-conditions h5 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #111;
}

.home-promo-conditions ul {
    margin: 0;
    padding-left: 20px;
}

.home-promo-conditions li {
    margin-bottom: 8px;
    color: #5f564d;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .home-promos-layout {
        grid-template-columns: 1fr;
    }

    .home-promo-detail-image {
        height: 240px;
    }

    .home-promos-header h3 {
        font-size: 24px;
    }

    .home-promo-detail-content h4 {
        font-size: 26px;
    }
}

/* =====================================
   FIX DEFINITIVO IOS / ANDROID MODAL
===================================== */

.product-modal,
.product-modal * {
    touch-action: pan-y;
}

.product-modal-body,
.product-modal-left,
.product-modal-right {
    min-height: 0;
}

@supports (-webkit-touch-callout: none) {

    .product-modal-dialog {
        height: 92svh;
        max-height: 92svh;
    }

    .product-modal-left,
    .product-modal-right {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

@media (max-width: 900px) {

    .product-modal-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .product-modal-body {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .product-modal-left {
        overflow: visible;
    }

    .product-modal-right {
        overflow: visible;
    }

    .product-modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 50;
        background: #fff;
    }
}