/* ==========================================================================
   Shop Page — Product showcase
   ========================================================================== */

.shop-page {
    background-color: #f7f9fa;
}

.shop-page .landing-page__main {
    padding-bottom: 8.5rem;
}

@media (min-width: 769px) {
    .shop-page .landing-page__main {
        padding-bottom: 0;
    }
}

/* Product section */
.shop-product {
    padding-block: 2rem 1rem;
    background: linear-gradient(180deg, #f7f9fa 0%, #e8f6fc 45%, #f7f9fa 100%);
}

@media (min-width: 769px) {
    .shop-product {
        padding-block: 3rem 2rem;
    }
}

.shop-product__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Mobile header — title, rating, price at top */
.shop-product__mobile-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-product__desktop-header {
    display: none;
}

.shop-product__title {
    color: #1c1c1c;
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.shop-product__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.shop-product__stars {
    display: flex;
    gap: 0.125rem;
}

.shop-product__star-img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.shop-product__reviews-link {
    color: #00aeef;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.shop-product__reviews-link:hover,
.shop-product__reviews-link:focus-visible {
    color: #1a365d;
    outline: none;
}

.shop-product__reviews-link:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
    border-radius: 2px;
}

.shop-product__price {
    color: #1c1c1c;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.shop-product__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
}

.shop-product__stock-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1c1c1c;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
}

.shop-product__meta--desktop {
    display: none;
}

.shop-product__trust-reviews--desktop {
    display: none;
}

.shop-product__trust-reviews {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.shop-product__price-currency {
    font-size: 0.85em;
}

/* Layout grid */
.shop-product__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Gallery */
.shop-product__gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-product__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
}

.shop-product__hero-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #f7f9fa 0%, #e0f4fc 50%, #f7f9fa 100%);
    z-index: 0;
}

.shop-product__main-figure {
    position: relative;
    z-index: 1;
    display: none;
    margin: 0;
    padding: 2rem 1.5rem;
}

.shop-product__main-image {
    max-height: 420px;
    margin-inline: auto;
    object-fit: contain;
    transition: opacity 0.35s ease;
}

.shop-product__main-image.is-fading {
    opacity: 0;
}

/* Trust badges */
.shop-product__badge {
    position: absolute;
    z-index: 2;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.12);
    color: #1a365d;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.shop-product__badge--gi {
    top: auto;
    bottom: 3rem;
    left: 1rem;
}

.shop-product__badge--gmo {
    top: auto;
    bottom: 3rem;
    right: 1rem;
    max-width: 7rem;
    text-align: center;
}

/* Mobile slider */
.shop-product__mobile-slider {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shop-product__mobile-slider::-webkit-scrollbar {
    display: none;
}

.shop-product__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 2.5rem;
}

.shop-product__slide img {
    max-height: 320px;
    object-fit: contain;
}

.shop-product__dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.shop-product__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(26, 54, 93, 0.25);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.shop-product__dot.is-active {
    background-color: #00aeef;
    transform: scale(1.2);
}

.shop-product__dot:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
}

/* Desktop thumbnails */
.shop-product__thumbs {
    display: none;
    gap: 0.75rem;
    justify-content: center;
}

.shop-product__thumb {
    flex-shrink: 0;
    padding: 0.25rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-product__thumb img {
    width: 72px;
    height: auto;
    border-radius: 4px;
}

.shop-product__thumb:hover,
.shop-product__thumb:focus-visible {
    border-color: #00aeef;
    outline: none;
}

.shop-product__thumb.is-active {
    border-color: #1a365d;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.15);
}

/* Details column */
.shop-product__details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shop-product__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.shop-product__meta-item {
    color: #1c1c1c;
    font-size: 0.9375rem;
}

.shop-product__meta-item--stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-medium);
}

.shop-product__meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00aeef;
    flex-shrink: 0;
}

.shop-product__purchase--desktop {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Coupon */
.shop-product__coupon {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid rgba(26, 54, 93, 0.12);
}

.shop-product__coupon-label {
    color: #1a365d;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

.shop-product__coupon-form {
    display: flex;
    gap: 0.5rem;
}

.shop-product__coupon-form[hidden],
.shop-product__coupon-applied[hidden],
.shop-product__coupon-message[hidden],
.shop-product__coupon-summary[hidden] {
    display: none;
}

.shop-product__coupon-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(26, 54, 93, 0.2);
    border-radius: 6px;
    background-color: #f7f9fa;
    color: #1c1c1c;
    font-size: 0.9375rem;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-product__coupon-input::placeholder {
    text-transform: none;
    color: rgba(28, 28, 28, 0.45);
}

.shop-product__coupon-input:focus {
    border-color: #00aeef;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}

.shop-product__coupon-input.is-invalid {
    border-color: #e53e3e;
}

.shop-product__coupon-btn {
    flex-shrink: 0;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #1a365d;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shop-product__coupon-btn:hover,
.shop-product__coupon-btn:focus-visible {
    background-color: #00aeef;
    outline: none;
}

.shop-product__coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-product__coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: rgba(0, 174, 239, 0.08);
    color: #1a365d;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.shop-product__coupon-applied-text [data-coupon-label] {
    color: #00aeef;
    font-weight: var(--font-weight-bold);
}

.shop-product__coupon-remove {
    border: none;
    background: transparent;
    color: #1a365d;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.shop-product__coupon-remove:hover,
.shop-product__coupon-remove:focus-visible {
    color: #00aeef;
    outline: none;
}

.shop-product__coupon-message {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.shop-product__coupon-message--error {
    color: #e53e3e;
}

.shop-product__coupon-message--success {
    color: #1a365d;
}

.shop-product__coupon-summary {
    margin: 0;
    padding-top: 0.25rem;
}

.shop-product__coupon-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.25rem;
    font-size: 0.875rem;
}

.shop-product__coupon-summary-row dt {
    color: #1c1c1c;
}

.shop-product__coupon-summary-row dd {
    margin: 0;
    color: #1c1c1c;
    font-weight: var(--font-weight-semibold);
}

.shop-product__coupon-summary-row--discount dd {
    color: #00aeef;
}

.shop-product__coupon-summary-row--total {
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(26, 54, 93, 0.12);
    font-size: 0.9375rem;
}

.shop-product__coupon-summary-row--total dt,
.shop-product__coupon-summary-row--total dd {
    font-weight: var(--font-weight-bold);
    color: #1a365d;
}

.shop-product__price.is-discounted [data-price-amount] {
    color: #00aeef;
}

.shop-product__price-original {
    margin-left: 0.5rem;
    color: rgba(28, 28, 28, 0.45);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    text-decoration: line-through;
}

.shop-product__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(26, 54, 93, 0.2);
    border-radius: 6px;
    background-color: #ffffff;
    overflow: hidden;
}

.shop-product__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #1a365d;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-product__qty-btn:hover,
.shop-product__qty-btn:focus-visible {
    background-color: #f7f9fa;
    color: #00aeef;
    outline: none;
}

.shop-product__qty-input {
    width: 2.5rem;
    padding: 0.5rem 0;
    border: none;
    border-inline: 1px solid rgba(26, 54, 93, 0.12);
    background: transparent;
    color: #1c1c1c;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    -moz-appearance: textfield;
}

.shop-product__qty-input::-webkit-outer-spin-button,
.shop-product__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-product__btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.shop-product__btn--primary {
    background-color: #ffcc00;
    color: #1a365d;
}

.shop-product__btn--primary:hover,
.shop-product__btn--primary:focus-visible {
    background-color: #1a365d;
    color: #ffffff;
    outline: none;
}

.shop-product__btn--primary:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
}

.shop-product__btn--secondary {
    background-color: transparent;
    border: 2px solid #1a365d;
    color: #1a365d;
}

.shop-product__btn--secondary:hover,
.shop-product__btn--secondary:focus-visible {
    background-color: #1a365d;
    color: #ffffff;
    outline: none;
}

.shop-product__trust-banner {
    padding: 0.875rem 1rem;
    border-radius: 6px;
    background-color: #1a365d;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

/* Mobile accordions */
.shop-product__accordions {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(26, 54, 93, 0.12);
}

.shop-product__accordion-item {
    border-bottom: 1px solid rgba(26, 54, 93, 0.12);
}

.shop-product__accordion-heading {
    margin: 0;
}

.shop-product__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    border: none;
    background: transparent;
    color: #1a365d;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.shop-product__accordion-trigger::after {
    content: "+";
    color: #00aeef;
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    transition: transform 0.2s ease;
}

.shop-product__accordion-item.is-open .shop-product__accordion-trigger {
    color: #00aeef;
}

.shop-product__accordion-item.is-open .shop-product__accordion-trigger::after {
    content: "−";
}

.shop-product__accordion-trigger:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
    border-radius: 4px;
}

.shop-product__accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.shop-product__accordion-item.is-open .shop-product__accordion-panel {
    grid-template-rows: 1fr;
}

.shop-product__accordion-panel > .shop-product__accordion-inner {
    overflow: hidden;
}

.shop-product__accordion-inner p,
.shop-product__accordion-inner ul {
    padding-bottom: 1rem;
    color: #1c1c1c;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.shop-product__accordion-inner ul {
    padding-left: 1.25rem;
}

/* Desktop expanded blocks */
.shop-product__expanded {
    display: none;
}

.shop-product__expanded-title {
    margin-bottom: 0.75rem;
    color: #1a365d;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
}

.shop-product__expanded-block {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #ffffff;
}

.shop-product__expanded-block p,
.shop-product__expanded-block ul {
    color: #1c1c1c;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.shop-product__expanded-block ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.shop-product__nutrition-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-product__nutrition-table th,
.shop-product__nutrition-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
    text-align: left;
    font-size: 0.9375rem;
}

.shop-product__nutrition-table th {
    color: #1a365d;
    font-weight: var(--font-weight-semibold);
}

/* Sticky mobile bar */
.shop-product__sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(26, 54, 93, 0.12);
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(26, 54, 93, 0.1);
}

.shop-product__sticky-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-product__sticky-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.shop-product__sticky-price {
    flex-shrink: 0;
    color: #1c1c1c;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.shop-product__qty--sticky {
    flex-shrink: 0;
}

.shop-product__qty--sticky .shop-product__qty-btn {
    width: 36px;
    height: 36px;
}

.shop-product__btn--sticky {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
}

/* Reviews section */
.shop-reviews {
    padding-block: 3rem 4rem;
    background-color: #ffffff;
}

.shop-reviews__title {
    margin-bottom: 1rem;
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.shop-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.shop-reviews__count {
    color: #1c1c1c;
    font-size: 0.9375rem;
}

.shop-reviews__list {
    display: grid;
    gap: 1rem;
}

.shop-reviews__marquee {
    position: relative;
    margin-inline: calc(-1 * var(--container-padding));
    overflow: hidden;
}

.shop-reviews__marquee::before,
.shop-reviews__marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 2.5rem;
    pointer-events: none;
}

.shop-reviews__marquee::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.shop-reviews__marquee::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.shop-reviews__viewport {
    overflow: hidden;
    padding-block: 0.25rem;
}

.shop-reviews__viewport:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 4px;
    border-radius: 8px;
}

.shop-reviews__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: shop-reviews-scroll 55s linear infinite;
}

.shop-reviews__marquee:hover .shop-reviews__track,
.shop-reviews__marquee.is-paused .shop-reviews__track,
.shop-reviews__marquee:focus-within .shop-reviews__track {
    animation-play-state: paused;
}

.shop-reviews__marquee.is-static .shop-reviews__track {
    flex-wrap: wrap;
    width: 100%;
    animation: none;
}

@keyframes shop-reviews-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.shop-reviews__card {
    flex: 0 0 min(88vw, 320px);
    min-height: 9.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background-color: #f7f9fa;
    border: 1px solid rgba(26, 54, 93, 0.08);
}

.shop-reviews__marquee.is-static .shop-reviews__card {
    flex: 1 1 min(100%, 320px);
}

.shop-reviews__card-stars {
    margin-bottom: 0.5rem;
}

.shop-reviews__summary .shop-product__star-img {
    width: 22px;
    height: 22px;
}

.shop-reviews__card-stars .shop-product__star-img {
    width: 16px;
    height: 16px;
}

.shop-reviews__card-text {
    margin-bottom: 0.5rem;
    color: #1c1c1c;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.shop-reviews__card-author {
    color: #1a365d;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
}

@media (prefers-reduced-motion: reduce) {
    .shop-reviews__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 769px) {
    .shop-product__mobile-header {
        display: none;
    }

    .shop-product__desktop-header {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .shop-product__title--desktop {
        font-size: 1.75rem;
    }

    .shop-product__price--desktop {
        font-size: 2.25rem;
    }

    .shop-product__layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .shop-product__hero {
        min-height: 480px;
    }

    .shop-product__main-figure {
        display: block;
    }

    .shop-product__mobile-slider,
    .shop-product__dots {
        display: none;
    }

    .shop-product__badge--gi {
        top: 1.5rem;
        bottom: auto;
        left: 1.5rem;
    }

    .shop-product__badge--gmo {
        top: 1.5rem;
        bottom: auto;
        right: 1.5rem;
        max-width: none;
    }

    .shop-product__thumbs {
        display: flex;
    }

    .shop-product__purchase--desktop {
        display: flex;
    }

    .shop-product__meta--mobile {
        display: none;
    }

    .shop-product__meta--desktop {
        display: flex;
    }

    .shop-product__trust-reviews--desktop {
        display: flex;
    }

    .shop-product__trust-banner {
        text-align: left;
    }

    .shop-product__accordions {
        display: none;
    }

    .shop-product__expanded {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .shop-product__sticky-bar {
        display: none;
    }
}
