.product-modal__image-wrap {
    width: min(100%, 320px);
    aspect-ratio: 4 / 3;
    min-height: 0;
    justify-self: center;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e4b2, #f4bf47);
    box-shadow: var(--shadow);
}

.product-modal__image-wrap img,
.product-modal__image-fallback {
    width: 100%;
    height: 100%;
}

.product-modal__image-wrap img {
    object-fit: cover;
}

.product-modal__image-fallback {
    display: grid;
    place-items: center;
    color: #7b4600;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    overflow: hidden;
}

.product-modal__image-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal__summary {
    padding: 8px 0 18px;
}

.product-modal__category {
    margin: 0 0 10px;
    color: #9a6c08;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-modal__summary h2 {
    margin: 0 0 10px;
    color: var(--brand-green);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.03;
}

.product-modal__description {
    margin: 0 0 14px;
    color: #545454;
    line-height: 1.5;
}

.product-modal__price {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: #fff5d8;
    color: #7a5000;
    font-size: 1.1rem;
}

.product-modal__progress {
    display: grid;
    gap: 8px;
    padding: 0 24px 18px;
}

.product-modal__progress span {
    color: #8b650f;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-modal__progress strong {
    color: var(--brand-green);
    font-size: 1.15rem;
}

.product-modal__progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(199, 154, 24, 0.16);
}

.product-modal__progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-red);
    transition: width 0.2s ease;
}

.product-modal__scroll-cue {
    position: sticky;
    top: calc(50% - 24px);
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: -46px 14px 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 14px 26px rgba(196, 35, 45, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-modal__scroll-cue.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.product-modal__scroll-cue strong {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 1.35rem;
    line-height: 1;
    animation: productModalScrollCueNudge 1.25s ease-in-out infinite;
}

.product-modal__content {
    display: grid;
    gap: 18px;
    padding: 20px 24px 24px;
}

.product-modal__section {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(199, 154, 24, 0.14);
}

.product-modal__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.product-modal__section-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.product-modal__section-head span {
    color: var(--muted);
    font-size: 0.9rem;
}

.choice-list,
.product-modal__groups {
    display: grid;
    gap: 12px;
}

.toggle-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(199, 154, 24, 0.18);
    font-weight: 700;
}

.toggle-choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
}

.choice-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(199, 154, 24, 0.18);
    background: #fff;
}

.choice-card.is-selected {
    border-color: rgba(196, 35, 45, 0.5);
    background: #fff8ee;
    box-shadow: 0 12px 24px rgba(77, 46, 10, 0.08);
}

.choice-card.is-disabled {
    opacity: 0.55;
}

.choice-card__control {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.choice-card__control input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
}

.choice-card__title {
    font-weight: 800;
}

.choice-card__price {
    color: #7a5000;
    font-weight: 800;
}

.choice-card__description {
    margin-left: 30px;
    color: var(--muted);
    font-size: 0.92rem;
}

.group-card {
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(199, 154, 24, 0.16);
}

.group-card__head {
    margin-bottom: 12px;
}

.group-card__head h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.group-card__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.group-card__options {
    display: grid;
    gap: 10px;
}

.product-modal__notes {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(199, 154, 24, 0.18);
    border-radius: 18px;
    background: #fff;
    outline: 0;
    color: var(--text);
}

.product-modal__review-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.product-modal__review-list div {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(199, 154, 24, 0.14);
}

.product-modal__review-list div:last-child {
    border-bottom: 0;
}

.product-modal__review-list dt {
    color: #8b650f;
    font-size: 0.86rem;
    font-weight: 800;
}

.product-modal__review-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.product-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: grid;
    gap: 12px;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.92), #fbf9f4);
    border-top: 1px solid rgba(199, 154, 24, 0.18);
}

.product-modal__footer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 10px;
}

.product-modal__step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
}

.product-modal__step-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.product-modal__step-button--secondary {
    background: #fff;
    color: #7a5000;
    border: 1px solid rgba(199, 154, 24, 0.24);
}

.product-modal__step-button--primary {
    background: var(--brand-green);
    color: #fff;
}

.product-modal__step-button--nudge {
    animation: productModalContinueNudge 3s ease-in-out infinite;
}

.product-modal__step-button:disabled,
.product-modal__submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.product-modal__final-actions {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.qty-stepper {
    display: inline-grid;
    grid-template-columns: 44px 56px 44px;
    align-items: center;
    justify-items: center;
    justify-self: stretch;
    min-height: 52px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(199, 154, 24, 0.18);
}

.qty-stepper button {
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--brand-red);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
}

.qty-stepper span {
    font-weight: 800;
}

.product-modal__submit {
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    background: var(--brand-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

@keyframes productModalContinueNudge {
    0%,
    86%,
    100% {
        transform: translateX(0);
    }

    89% {
        transform: translateX(-3px);
    }

    92% {
        transform: translateX(3px);
    }

    95% {
        transform: translateX(-2px);
    }

    98% {
        transform: translateX(2px);
    }
}

@keyframes productModalScrollCueNudge {
    0%,
    100% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal__step-button--nudge,
    .product-modal__scroll-cue strong {
        animation: none;
    }
}

