/* ==========================================================================
   Pizzas Watson — Cuadrícula de productos
   ========================================================================== */

.pw-menu .pw-container {
    width: min(100% - 48px, 1380px);
}

.pw-products-grid {
    width: 100%;
    max-width: 1380px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin-inline: auto;
}

/* ==========================================================================
   Tarjeta del producto
   ========================================================================== */

.pw-product-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(92, 0, 41, 0.12);
    border-radius: 24px;
    color: #d82f73;
    background: var(--pw-white);
    box-shadow:
        0 14px 34px
        rgba(92, 0, 41, 0.1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.pw-product-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 22px 46px
        rgba(92, 0, 41, 0.16);
}

/* ==========================================================================
   Imagen del producto
   ========================================================================== */

.pw-product-card__media {
    position: relative;
    width: calc(100% - 20px);
    height: 300px;
    flex: 0 0 300px;
    display: grid;
    place-items: center;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    isolation: isolate;
}

.pw-product-card__media > img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.pw-product-card:hover
.pw-product-card__media > img {
    transform: scale(1.035);
}

.pw-product-card__media > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    color: #c81755;
    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #ffffff
        );
    font-size: 5rem;
}

/* ==========================================================================
   Categoría
   ========================================================================== */

.pw-product-card__media figcaption,
.pw-product-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 8px 16px;
    overflow: hidden;
    border-radius: 999px;
    color: #fffbd9;
    background: #cf1760;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Contenido de la tarjeta
   ========================================================================== */

.pw-product-card__body,
.pw-product-card__content {
    min-width: 0;
    min-height: 370px;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 28px;
}

.pw-product-card h3,
.pw-product-card__title {
    margin: 0;
    color: #e43c83;
    font-family: var(--pw-font-heading);
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pw-product-card__description {
    margin: 20px 0 0;
    color: #df3d7e;
    font-family: var(--pw-font-body);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.42;
}

/* ==========================================================================
   Opciones informativas para productos sin selector
   ========================================================================== */

.pw-product-card__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.pw-product-card__options span,
.pw-product-card__option {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--pw-white);
    background: #cf1760;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

/* ==========================================================================
   Selector compacto de sabores
   ========================================================================== */

.pw-product-card .pw-product-card__flavor-picker {
    min-width: 0;
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.pw-product-card .pw-product-card__flavor-label {
    display: block;
    color: #b7247c;
    font-family: var(--pw-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.pw-product-card .pw-product-card__flavor-open {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid rgba(190, 40, 127, 0.24);
    border-radius: 14px;
    color: #b7247c;
    background: #fff8fc;
    font-family: var(--pw-font-body);
    font-size: 0.92rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pw-product-card .pw-product-card__flavor-open:hover {
    border-color: #bd2780;
    background: #fff1f8;
    box-shadow:
        0 7px 18px
        rgba(189, 39, 128, 0.08);
}

.pw-product-card .pw-product-card__flavor-open:focus-visible {
    outline: 3px solid rgba(190, 40, 127, 0.24);
    outline-offset: 3px;
}

.pw-product-card .pw-product-card__flavor-open-text {
    min-width: 0;
    flex: 1;
}

.pw-product-card .pw-product-card__flavor-open-count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding-inline: 6px;
    border-radius: 999px;
    color: #ffffff;
    background: #bd2780;
    font-size: 0.74rem;
    font-weight: 800;
}

.pw-product-card .pw-product-card__flavor-open-arrow {
    flex: 0 0 auto;
    color: #bd2780;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1;
}

/* ==========================================================================
   Resumen compacto de sabores seleccionados
   ========================================================================== */

.pw-product-card .pw-product-card__flavor-summary {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding-inline: 2px;
}

.pw-product-card .pw-product-card__flavor-summary-names {
    color: #237755;
    font-family: var(--pw-font-body);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pw-product-card .pw-product-card__flavor-summary-extra {
    color: #a96b10;
    font-family: var(--pw-font-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

/*
 * Los elementos ocultos por JavaScript deben conservarse
 * realmente ocultos, aunque tengan display definido.
 */

.pw-product-card .pw-product-card__flavor-summary[hidden],
.pw-product-card .pw-product-card__flavor-summary-extra[hidden],
.pw-product-card .pw-product-card__flavor-open-count[hidden] {
    display: none !important;
}

/* ==========================================================================
   Número de pedidos
   ========================================================================== */

.pw-product-card__orders {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #d63b79;
}

.pw-product-card__orders img {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: block;
    object-fit: contain;
}

.pw-product-card__orders span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ==========================================================================
   Precio y botón de agregar
   ========================================================================== */

.pw-product-card__footer {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 26px;
}

.pw-product-card__footer > strong,
.pw-product-card__price {
    color: #c81755;
    font-family: var(--pw-font-heading);
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.pw-product-card .pw-product-card__price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.pw-product-card .pw-product-card__price > small {
    color: var(--pw-muted);
    font-family: var(--pw-font-body);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.pw-product-card .pw-product-card__price > strong {
    display: block;
    color: #b9247d;
    font-size: inherit;
    line-height: 1.05;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.pw-product-card .pw-product-card__price > strong.has-extra {
    color: #a9156b;
}

.pw-product-card__btn,
.pw-product-card__add {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--pw-white);
    background: #c81755;
    cursor: pointer;
    box-shadow:
        0 10px 24px
        rgba(200, 23, 85, 0.22);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.pw-product-card__btn:hover,
.pw-product-card__add:hover {
    background: #a70047;
    box-shadow:
        0 14px 28px
        rgba(167, 0, 71, 0.3);
    transform: translateY(-3px) scale(1.04);
}

.pw-product-card__btn:focus-visible,
.pw-product-card__add:focus-visible {
    outline: 3px solid #fff4a8;
    outline-offset: 4px;
}

.pw-product-card__btn img,
.pw-product-card__add img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.pw-product-card .pw-product-card__btn:disabled,
.pw-product-card .pw-product-card__btn[aria-disabled="true"] {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.pw-product-card .pw-product-card__btn:disabled:hover,
.pw-product-card .pw-product-card__btn[aria-disabled="true"]:hover {
    background: #c81755;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   Evitar desplazamiento del fondo cuando el selector está abierto
   ========================================================================== */

body.pw-flavor-dialog-open {
    overflow: hidden;
}

/* ==========================================================================
   Ventana emergente para seleccionar sabores
   ========================================================================== */

.pw-product-card .pw-flavor-dialog {
    position: fixed;
    inset: 0;
    width: min(calc(100% - 32px), 590px);
    max-width: 590px;
    max-height: min(86dvh, 780px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(115, 0, 46, 0.12);
    border-radius: 24px;
    color: var(--pw-text);
    background: #ffffff;
    box-shadow:
        0 34px 100px
        rgba(40, 13, 26, 0.28);
}

.pw-product-card .pw-flavor-dialog:not([open]) {
    display: none;
}

.pw-product-card .pw-flavor-dialog[open] {
    display: block;
    animation:
        pw-flavor-dialog-enter
        0.22s ease-out;
}

.pw-product-card .pw-flavor-dialog::backdrop {
    background: rgba(29, 18, 16, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

@keyframes pw-flavor-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Estructura interior de la ventana
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__panel {
    max-height: min(86dvh, 780px);
    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;
    overflow: hidden;
}

/* ==========================================================================
   Encabezado de la ventana
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 20px;
    border-bottom:
        1px solid
        rgba(29, 18, 16, 0.09);
    background: #ffffff;
}

.pw-product-card .pw-flavor-dialog__heading {
    min-width: 0;
    flex: 1;
}

.pw-product-card .pw-flavor-dialog__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #bd2780;
    font-family: var(--pw-font-body);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pw-product-card .pw-flavor-dialog__heading h3 {
    margin: 0;
    color: var(--pw-dark);
    font-family: var(--pw-font-heading);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.pw-product-card .pw-flavor-dialog__heading p {
    margin: 8px 0 0;
    color: var(--pw-muted);
    font-family: var(--pw-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   Botón para cerrar la ventana
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(29, 18, 16, 0.1);
    border-radius: 13px;
    color: var(--pw-dark);
    background: #fffafc;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.pw-product-card .pw-flavor-dialog__close > span {
    display: block;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
}

.pw-product-card .pw-flavor-dialog__close:hover {
    border-color: rgba(189, 39, 128, 0.26);
    color: #bd2780;
    background: #fff0f8;
}

.pw-product-card .pw-flavor-dialog__close:focus-visible {
    outline: 3px solid rgba(190, 40, 127, 0.25);
    outline-offset: 3px;
}

/* ==========================================================================
   Área desplazable de sabores
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 24px;
    padding: 22px 26px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(189, 39, 128, 0.5)
        transparent;
}

.pw-product-card .pw-flavor-dialog__body::-webkit-scrollbar {
    width: 8px;
}

.pw-product-card .pw-flavor-dialog__body::-webkit-scrollbar-track {
    background: transparent;
}

.pw-product-card .pw-flavor-dialog__body::-webkit-scrollbar-thumb {
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: rgba(189, 39, 128, 0.58);
}

/* ==========================================================================
   Grupos: tradicionales y especiales
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pw-product-card .pw-flavor-dialog__group legend {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--pw-dark);
    font-family: var(--pw-font-heading);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pw-product-card .pw-flavor-dialog__group.is-special legend {
    color: #a96b10;
}

.pw-product-card .pw-flavor-dialog__group-description {
    margin: 6px 0 13px;
    color: var(--pw-muted);
    font-family: var(--pw-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
}

.pw-product-card .pw-flavor-dialog__options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;
}

/* ==========================================================================
   Botón individual de sabor
   ========================================================================== */

.pw-product-card .pw-product-flavor {
    position: relative;
    max-width: 100%;
    display: inline-flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pw-product-card .pw-product-flavor > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.pw-product-card .pw-product-flavor__content {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid rgba(190, 40, 127, 0.2);
    border-radius: 999px;
    color: #aa2875;
    background: rgba(201, 45, 135, 0.075);
    font-family: var(--pw-font-body);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.pw-product-card .pw-product-flavor__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pw-product-card .pw-product-flavor__content small {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
}

/* ==========================================================================
   Interacción de sabores
   ========================================================================== */

.pw-product-card .pw-product-flavor:hover
.pw-product-flavor__content {
    border-color: rgba(190, 40, 127, 0.42);
    background: rgba(201, 45, 135, 0.12);
    transform: translateY(-1px);
}

.pw-product-card .pw-product-flavor > input:focus-visible
+ .pw-product-flavor__content {
    outline: 3px solid rgba(190, 40, 127, 0.25);
    outline-offset: 2px;
}

/* ==========================================================================
   Sabor tradicional seleccionado
   ========================================================================== */

.pw-product-card .pw-product-flavor > input:checked
+ .pw-product-flavor__content,
.pw-product-card .pw-product-flavor.is-selected
.pw-product-flavor__content {
    border-color: #bd2780;
    color: #ffffff;
    background: #bd2780;
    box-shadow:
        0 7px 16px
        rgba(189, 39, 128, 0.17);
}

.pw-product-card .pw-product-flavor > input:checked
+ .pw-product-flavor__content small,
.pw-product-card .pw-product-flavor.is-selected
.pw-product-flavor__content small {
    color: #fff4dc;
}

/* ==========================================================================
   Sabores especiales
   ========================================================================== */

.pw-product-card .pw-product-flavor.is-special
.pw-product-flavor__content {
    border-color: rgba(222, 159, 33, 0.36);
    color: #8d6218;
    background: #fff6dd;
}

.pw-product-card .pw-product-flavor.is-special
.pw-product-flavor__content small {
    color: #b0710b;
}

.pw-product-card .pw-product-flavor.is-special:hover
.pw-product-flavor__content {
    border-color: rgba(222, 159, 33, 0.65);
    background: #ffefc5;
}

.pw-product-card .pw-product-flavor.is-special > input:checked
+ .pw-product-flavor__content,
.pw-product-card .pw-product-flavor.is-special.is-selected
.pw-product-flavor__content {
    border-color: #bd2780;
    color: #ffffff;
    background: #bd2780;
    box-shadow:
        0 7px 16px
        rgba(189, 39, 128, 0.17);
}

.pw-product-card .pw-product-flavor.is-special > input:checked
+ .pw-product-flavor__content small,
.pw-product-card .pw-product-flavor.is-special.is-selected
.pw-product-flavor__content small {
    color: #fff4dc;
}

/* ==========================================================================
   Sabores bloqueados al alcanzar la cantidad permitida
   ========================================================================== */

.pw-product-card .pw-product-flavor > input:disabled
+ .pw-product-flavor__content,
.pw-product-card .pw-product-flavor.is-disabled
.pw-product-flavor__content {
    opacity: 0.46;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.pw-product-card .pw-product-flavor.is-disabled {
    cursor: not-allowed;
}

/* ==========================================================================
   Pie fijo de la ventana
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__footer {
    display: grid;
    gap: 14px;
    padding: 17px 26px 22px;
    border-top:
        1px solid
        rgba(29, 18, 16, 0.09);
    background: #fffafc;
}

.pw-product-card .pw-flavor-dialog__status {
    min-height: 20px;
    margin: 0;
    color: var(--pw-muted);
    font-family: var(--pw-font-body);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.pw-product-card .pw-flavor-dialog__status.is-valid {
    color: #16835b;
}

.pw-product-card .pw-flavor-dialog__status.is-error {
    color: #c5161d;
}

.pw-product-card .pw-flavor-dialog__footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pw-product-card .pw-flavor-dialog__total {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pw-product-card .pw-flavor-dialog__total > span {
    color: var(--pw-muted);
    font-family: var(--pw-font-body);
    font-size: 0.77rem;
    font-weight: 650;
    line-height: 1.2;
}

.pw-product-card .pw-flavor-dialog__total > strong {
    color: #b9247d;
    font-family: var(--pw-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* ==========================================================================
   Botón de confirmar sabores
   ========================================================================== */

.pw-product-card .pw-flavor-dialog__confirm {
    min-width: 174px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #bd2780;
    font-family: var(--pw-font-body);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 10px 22px
        rgba(189, 39, 128, 0.18);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.pw-product-card .pw-flavor-dialog__confirm:hover {
    background: #a9156b;
    box-shadow:
        0 13px 26px
        rgba(169, 21, 107, 0.24);
    transform: translateY(-1px);
}

.pw-product-card .pw-flavor-dialog__confirm:focus-visible {
    outline: 3px solid rgba(190, 40, 127, 0.27);
    outline-offset: 3px;
}

.pw-product-card .pw-flavor-dialog__confirm:disabled,
.pw-product-card .pw-flavor-dialog__confirm[aria-disabled="true"] {
    opacity: 0.46;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Pantallas medianas
   ========================================================================== */

@media (max-width: 1100px) {
    .pw-menu .pw-container {
        width: min(100% - 40px, 920px);
    }

    .pw-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* ==========================================================================
   Tabletas verticales
   ========================================================================== */

@media (max-width: 760px) {
    .pw-menu .pw-container {
        width: min(100% - 28px, 560px);
    }

    .pw-products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pw-product-card__media {
        height: 320px;
        flex-basis: 320px;
    }

    .pw-product-card__body,
    .pw-product-card__content {
        min-height: 350px;
    }
}

/* ==========================================================================
   Móviles
   ========================================================================== */

@media (max-width: 580px) {
    .pw-menu .pw-container {
        width: calc(100% - 24px);
    }

    .pw-products-grid {
        gap: 18px;
    }

    .pw-product-card {
        border-radius: 20px;
    }

    .pw-product-card__media {
        width: calc(100% - 16px);
        height: 270px;
        flex-basis: 270px;
        margin: 8px 8px 0;
        border-radius: 15px;
    }

    .pw-product-card__media > img {
        padding: 0;
        border-radius: inherit;
    }

    .pw-product-card__media figcaption,
    .pw-product-card__category {
        top: 10px;
        left: 10px;
        padding: 7px 14px;
        font-size: 0.86rem;
    }

    .pw-product-card__body,
    .pw-product-card__content {
        min-height: 330px;
        padding: 22px 20px;
    }

    .pw-product-card h3,
    .pw-product-card__title {
        font-size: 1.8rem;
    }

    .pw-product-card__description {
        margin-top: 16px;
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .pw-product-card .pw-product-card__flavor-picker {
        gap: 8px;
        margin-top: 16px;
    }

    .pw-product-card .pw-product-card__flavor-label {
        font-size: 0.91rem;
    }

    .pw-product-card .pw-product-card__flavor-open {
        min-height: 46px;
        padding-inline: 13px;
        font-size: 0.88rem;
    }

    .pw-product-card__orders span {
        font-size: 0.92rem;
    }

    .pw-product-card__footer > strong,
    .pw-product-card__price {
        font-size: 2rem;
    }

    .pw-product-card__btn,
    .pw-product-card__add {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .pw-product-card__btn img,
    .pw-product-card__add img {
        width: 31px;
        height: 31px;
    }

    /*
     * En móviles, la ventana aparece desde la parte inferior.
     */

    .pw-product-card .pw-flavor-dialog {
        inset: auto 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 88dvh;
        margin: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .pw-product-card .pw-flavor-dialog__panel {
        max-height: 88dvh;
    }

    .pw-product-card .pw-flavor-dialog__header {
        gap: 12px;
        padding: 20px 18px 16px;
    }

    .pw-product-card .pw-flavor-dialog__heading h3 {
        font-size: 1.42rem;
    }

    .pw-product-card .pw-flavor-dialog__heading p {
        font-size: 0.84rem;
    }

    .pw-product-card .pw-flavor-dialog__close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .pw-product-card .pw-flavor-dialog__body {
        gap: 21px;
        padding: 19px 18px 22px;
    }

    .pw-product-card .pw-flavor-dialog__group legend {
        font-size: 1rem;
    }

    .pw-product-card .pw-flavor-dialog__group-description {
        font-size: 0.81rem;
    }

    .pw-product-card .pw-flavor-dialog__options {
        gap: 8px;
    }

    .pw-product-card .pw-product-flavor__content {
        min-height: 38px;
        padding: 7px 11px;
        font-size: 0.79rem;
    }

    .pw-product-card .pw-product-flavor__content small {
        font-size: 0.71rem;
    }

    .pw-product-card .pw-flavor-dialog__footer {
        gap: 12px;
        padding:
            15px
            18px
            calc(
                18px
                + env(safe-area-inset-bottom, 0px)
            );
    }

    .pw-product-card .pw-flavor-dialog__status {
        font-size: 0.79rem;
    }

    .pw-product-card .pw-flavor-dialog__total > strong {
        font-size: 1.42rem;
    }

    .pw-product-card .pw-flavor-dialog__confirm {
        min-width: 154px;
        min-height: 45px;
        padding-inline: 15px;
        font-size: 0.84rem;
    }
}

/* ==========================================================================
   Teléfonos pequeños
   ========================================================================== */

@media (max-width: 390px) {
    .pw-menu .pw-container {
        width: calc(100% - 18px);
    }

    .pw-product-card__media {
        height: 240px;
        flex-basis: 240px;
        border-radius: 14px;
    }

    .pw-product-card__body,
    .pw-product-card__content {
        min-height: 320px;
        padding-inline: 18px;
    }

    .pw-product-card h3,
    .pw-product-card__title {
        font-size: 1.65rem;
    }

    .pw-product-card__description {
        font-size: 1.2rem;
    }

    .pw-product-card__footer > strong,
    .pw-product-card__price {
        font-size: 1.8rem;
    }

    .pw-product-card .pw-flavor-dialog__header {
        padding-inline: 15px;
    }

    .pw-product-card .pw-flavor-dialog__heading h3 {
        font-size: 1.3rem;
    }

    .pw-product-card .pw-flavor-dialog__body {
        padding-inline: 15px;
    }

    .pw-product-card .pw-product-flavor__content {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .pw-product-card .pw-product-flavor__content small {
        font-size: 0.68rem;
    }

    .pw-product-card .pw-flavor-dialog__footer {
        padding-inline: 15px;
    }

    .pw-product-card .pw-flavor-dialog__footer-bottom {
        gap: 10px;
    }

    .pw-product-card .pw-flavor-dialog__total > strong {
        font-size: 1.25rem;
    }

    .pw-product-card .pw-flavor-dialog__confirm {
        min-width: 138px;
        min-height: 43px;
        padding-inline: 11px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Accesibilidad: reducir movimiento cuando el usuario lo solicita
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .pw-product-card,
    .pw-product-card__media > img,
    .pw-product-card__btn,
    .pw-product-card__add,
    .pw-product-card .pw-product-card__flavor-open,
    .pw-product-card .pw-product-card__price > strong,
    .pw-product-card .pw-product-flavor__content,
    .pw-product-card .pw-flavor-dialog__close,
    .pw-product-card .pw-flavor-dialog__confirm {
        transition: none;
    }

    .pw-product-card .pw-flavor-dialog[open] {
        animation: none;
    }

    .pw-product-card .pw-product-flavor:hover
    .pw-product-flavor__content {
        transform: none;
    }
}

/* ==========================================================================
   Productos ocultos por búsqueda o filtros de categoría
   ========================================================================== */

.pw-products-grid > .pw-product-card.is-hidden {
    display: none !important;
}