/*
 * Page — Single Product (woocommerce/single-product.php)
 * Loaded when is_product() === true.
 *
 * Sections:
 *   1. Breadcrumb      — .breadcrumb (same pattern as info/legal pages)
 *   2. Product main    — .product-main (gallery + summary)
 *   3. Why MAN's SET   — .product-why
 *   4. Reviews         — .product-reviews
 *   5. Recently viewed — .recently-viewed
 *   6. Instagram       — .instagram (shared site section)
 *
 * The features strip below recently-viewed is .site-features (global,
 * partials/site-features.php, styled in css/main.css).
 */

/* ── Breadcrumb bar ───────────────────────────────────────────────────────── */
.breadcrumb {
    background: var(--color-white);
}

.breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.breadcrumb__item {
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb__item:hover {
    color: var(--color-dark);
}

.breadcrumb__item--current {
    color: var(--color-dark);
}

.breadcrumb__sep {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* ── 2. Product main (gallery + summary) ──────────────────────────────────── */
.product-main {
    padding: 20px 0 0;
}

.product-main__inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* ── Gallery: 2 photos per row ────────────────────────────────────────────── */
.product-gallery {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: flex-start;
}

.product-gallery__item {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}

.product-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox[hidden] {
    display: none;
}

/* ── Size chart popup (side panel) ─────────────────────────────────────────── */
.size-chart-popup {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.4s;
}

.size-chart-popup.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.size-chart-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.size-chart-popup.is-open .size-chart-popup__backdrop {
    opacity: 1;
}

.size-chart-popup__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    overflow-y: auto;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.size-chart-popup.is-open .size-chart-popup__panel {
    transform: translateX(0);
}

/* Header */
.size-chart-popup__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background: var(--color-bg-menu);
    border-bottom: 1px solid var(--color-border);
}

.size-chart-popup__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-black);
}

.size-chart-popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: background var(--transition);
}

.size-chart-popup__close:hover {
    background: var(--color-border);
}

.size-chart-popup__close svg {
    width: 21px;
    height: 21px;
}

/* Content (WYSIWYG) */
.size-chart-popup__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 30px 60px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-black);
}

.size-chart-popup__content h2,
.size-chart-popup__content h3 {
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.size-chart-popup__content h4 {
    font-size: 18px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
    text-transform: uppercase;
}

.size-chart-popup__content p strong,
.size-chart-popup__content p b {
    font-weight: var(--fw-semibold);
}

.size-chart-popup__content img {
    display: block;
    width: 100%;
    border: 1px solid var(--color-border);
}

.size-chart-popup__content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: disc;
    padding-left: 24px;
}

.size-chart-popup__content ul li:last-child {
    font-weight: var(--fw-semibold);
}

.size-chart-popup__content hr {
    border: none;
    border-top: 1px solid var(--color-border);
}

.size-chart-popup__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.size-chart-popup__content th,
.size-chart-popup__content td {
    border: 1px solid var(--color-border);
    padding: 16px 15px;
    font-weight: var(--fw-regular);
    text-align: center;
    white-space: nowrap;
}

.size-chart-popup__content th,
.size-chart-popup__content td:first-child {
    background: var(--color-bg-menu);
    font-weight: var(--fw-medium);
    text-align: left;
    white-space: nowrap;
}

.size-chart-popup__content td > span:last-child,
.size-chart-popup__content td small {
    color: var(--color-red);
}

.size-chart-popup__note {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 11px;
    text-align: center;
}

.size-chart-popup__note strong,
.size-chart-popup__note b {
    font-weight: var(--fw-semibold);
}

.product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.product-lightbox__img {
    position: relative;
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    background: #fff;
}

.product-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-lightbox__close:hover {
    opacity: 0.8;
}

.product-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-lightbox__nav:hover {
    opacity: 0.8;
}

.product-lightbox__nav--prev { left: 24px; }
.product-lightbox__nav--next { right: 24px; }

/* display:flex above would otherwise defeat the hidden attribute the JS sets
   when there's only one photo to show */
.product-lightbox__nav[hidden] { display: none; }

/* ── Summary ──────────────────────────────────────────────────────────────── */
.product-summary {
    flex: 0 0 40%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-summary__title {
    font-size: 24px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.product-summary__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-summary__prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-summary__price {
    font-size: 24px;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    color: #000;
}

.product-summary__price--sale {
    color: #a82c46;
}

.product-summary__price--old {
    font-size: 16px;
    font-weight: var(--fw-regular);
    color: #62666f;
    text-decoration: line-through;
}

.product-summary__stock-note {
    font-size: 14px;
    line-height: 1.4;
    color: #62666f;
    text-align: right;
    margin: 0;
}

.product-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-summary__meta p {
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.product-summary__meta-label {
    color: #62666f;
}

.product-summary__meta a {
    color: #000;
    text-decoration: none;
}

.product-summary__meta a:hover {
    text-decoration: underline;
}

/* ── Colors (current + upsell products) ───────────────────────────────────── */
.product-colors {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-colors__label {
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.product-colors__list {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-colors__swatch {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    transition: box-shadow var(--transition);
}

.product-colors__swatch:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #62666f;
}

.product-colors__swatch.is-active {
    box-shadow: 0 0 0 3px #fff inset, 0 0 0 1px #000;
    border-color: #000;
}

/* ── Sizes (variations) ───────────────────────────────────────────────────── */
.product-cart-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-sizes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-sizes__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-sizes__label {
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.product-sizes__chart-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-dark);
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.product-sizes__chart-link svg {
    flex-shrink: 0;
}

.product-sizes__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-sizes__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 67px;
    height: 46px;
    padding: 8px 12px;
    font-size: 18px;
    letter-spacing: 1.08px;
    color: #62666f;
    background: #f7f7f7;
    border: 1px solid #62666f;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.product-sizes__btn:hover {
    border-color: #0b1220;
    color: #0b1220;
}

.product-sizes__btn.is-active {
    background: #0b1220;
    border-color: #000;
    color: #fff;
}

.product-sizes__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ── Sale banner ──────────────────────────────────────────────────────────── */
.product-sale-banner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-sale-banner__text {
    font-size: 16px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #0b1220;
    margin: 0;
}

.product-sale-banner__badge {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 46px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.4;
    color: #0b1220;
    background: #fff;
    border: 1px solid #0b1220;
    white-space: nowrap;
}

.product-sale-banner__badge strong {
    font-weight: var(--fw-semibold);
}

/* ── Buy row: qty + add to cart + wishlist ────────────────────────────────── */
.product-buy {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.product-buy__qty {
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.product-buy__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    border: none;
    background: none;
    color: #000;
    cursor: pointer;
}

.product-buy__qty-input {
    width: 32px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: #000;
    background: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.product-buy__submit {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 10px 24px;
    font-size: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: #0b1220;
    border: 1px solid #000;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-buy__submit:hover {
    opacity: 0.85;
}

.product-buy__submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-buy__fav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: none;
    color: #000;
    cursor: pointer;
    transition: color var(--transition);
}

.product-buy__fav:hover,
.product-buy__fav.is-active {
    color: #a82c46;
}

/* ── Accordions (Popis / Špecifikácie) ────────────────────────────────────── */
.product-accordions {
    display: flex;
    flex-direction: column;
}

.product-accordion {
    border-bottom: 1px solid var(--color-border);
}

.product-accordion:first-child {
    border-top: 1px solid var(--color-border);
}

.product-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 30px 0;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    color: #000;
    text-align: left;
    cursor: pointer;
}

.product-accordion__icon {
    display: flex;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.product-accordion.is-open .product-accordion__icon {
    transform: rotate(45deg);
}

.product-accordion__content {
    padding: 0 0 30px;
}

.product-accordion__content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    margin: 0 0 12px;
}

.product-accordion__content p:last-child {
    margin: 0;
}

.product-accordion__content ul,
.product-accordion__content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.product-accordion__content li {
    display: list-item;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
}

.product-accordion__content table {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
}

.product-accordion__content table:last-child {
    margin: 0;
}

.product-accordion__content th,
.product-accordion__content td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    text-align: left;
}

.product-accordion__content th {
    background: var(--color-bg-menu);
    font-weight: var(--fw-medium);
}

.product-accordion__content tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

/* ── Info items (shipping / since 2016 / quality) ─────────────────────────── */
.product-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-info-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-info-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #000;
}

.product-info-list__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-list__item p {
    font-size: 18px;
    font-weight: var(--fw-light);
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.product-info-list__item strong {
    font-weight: var(--fw-medium);
}

/* ── 3. Banners (marquee) ─────────────────────────────────────────────────── */
.product-banners {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

.product-banners__track {
    display: flex;
    width: max-content;
    animation: product-banners-scroll 60s linear infinite;
}

.product-banners__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 46px;
    padding-inline: 23px;
}

.product-banners__item {
    font-size: 16px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
    letter-spacing: 0.8px;
    color: var(--color-white);
    white-space: nowrap;
}

@keyframes product-banners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .product-banners__track {
        animation: none;
    }
}

/* ── 4. Why MAN's SET ─────────────────────────────────────────────────────── */
.product-why {
    padding: 90px 0;
    background: #f5f6f5;
}

.product-why .container {
    max-width: 1320px;
}

.product-why__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto 50px;
    text-align: center;
}

.product-why__title {
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.product-why__text {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

.product-why__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.product-why__image {
    flex: 1 1 0;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    background: var(--color-white);
    border: 1px solid var(--color-black);
    overflow: hidden;
}

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

.product-why__features {
    display: flex;
    flex: 1 1 0;
    max-width: 600px;
    flex-direction: column;
    gap: 40px;
}

.product-why__feature {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-why__feature-title {
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    text-transform: uppercase;
}

.product-why__feature-text {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

/* ── 5. Reviews ───────────────────────────────────────────────────────────── */
.product-reviews {
    padding: 50px 0 90px;
}

.product-reviews .container {
    max-width: 860px;
}

.product-reviews__top {
    margin-bottom: 50px;
}

.product-reviews__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.product-reviews__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.product-reviews__title,
.product-review-form__title {
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
}

.product-reviews__rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-reviews__stars,
.product-review__stars,
.product-review-form__rating {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.product-reviews__star,
.product-review__star {
    color: var(--color-border);
}

.product-reviews__star.is-filled,
.product-review__star.is-filled {
    color: var(--color-black);
}

.product-reviews__count {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
}

/* ── Review list ──────────────────────────────────────────────────────────── */
.product-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.product-review {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
}

.product-review__image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--color-white);
    overflow: hidden;
}

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

/* Customer-supplied photos: stack up to 3 in the same 100px column */
.product-review__image--customer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: auto;
    background: none;
}

.product-review__photo-link {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: var(--color-white);
    transition: opacity var(--transition);
}

.product-review__photo-link:hover { opacity: 0.85; }

.product-review__body {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-inline: 16px;
}

.product-review__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-review__text {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-light);
    line-height: 1.4;
}

.product-review__date {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-light);
    line-height: 1.4;
    color: var(--color-gray);
}

.product-review__author {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-medium);
    line-height: 1.4;
}

.product-reviews__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 10px 24px;
    background: var(--color-dark);
    border: 1px solid var(--color-black);
    color: var(--color-white);
    font-size: 16px;
    font-weight: var(--fw-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-reviews__more:hover {
    opacity: 0.85;
}

.product-reviews__more[hidden] {
    display: none;
}

.product-reviews__more-icon {
    transform: rotate(90deg);
}

.product-reviews__divider {
    width: 100%;
    margin: 50px 0;
    border-top: 1px solid var(--color-border);
}

/* ── Review form ──────────────────────────────────────────────────────────── */
.product-review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.product-review-form__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.product-review-form__rating-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.product-review-form__rating-label {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

.product-review-form__rating {
    flex-direction: row-reverse;
}

.product-review-form__rating-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-review-form__rating-star {
    display: flex;
    cursor: pointer;
    color: var(--color-border);
    transition: color var(--transition);
}

.product-review-form__rating-input:checked ~ .product-review-form__rating-star,
.product-review-form__rating-star:hover,
.product-review-form__rating-star:hover ~ .product-review-form__rating-star {
    color: var(--color-black);
}

.product-review-form__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.product-review-form__row {
    display: flex;
    gap: 24px;
}

.product-review-form__field {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 10px;
}

.product-review-form__field--message {
    width: 100%;
}

.product-review-form__label {
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

.product-review-form__input,
.product-review-form__textarea {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 10px 24px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-black);
}

.product-review-form__input {
    height: 50px;
}

.product-review-form__textarea {
    height: 181px;
    resize: vertical;
}

.product-review-form__input:focus,
.product-review-form__textarea:focus {
    outline: 1px solid var(--color-black);
    outline-offset: -1px;
}

.product-review-form__consent {
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

/* ── Required marks + validation errors ───────────────────────────────── */
.product-review-form__required {
    color: var(--color-red);
}

.product-review-form__note {
    margin: 0;
    font-size: 14px;
    color: var(--color-gray);
}

.product-review-form__error {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-red);
}

.product-review-form__error[hidden] { display: none; }

.product-review-form__input.has-error,
.product-review-form__textarea.has-error {
    border-color: var(--color-red);
}

.product-review-form__input.has-error:focus,
.product-review-form__textarea.has-error:focus {
    outline-color: var(--color-red);
}

/* The rating control is a wrapper, not a field — tint its stars instead */
.product-review-form__rating.has-error .product-review-form__rating-star {
    color: var(--color-red);
}

/* ── Review photo upload ──────────────────────────────────────────────── */
.product-review-form__field--photos {
    width: 100%;
}

.review-photos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Visually hidden — the styled .review-photos__trigger label opens it */
.review-photos__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.review-photos__trigger {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    height: 50px;
    padding: 0 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    font-size: 16px;
    color: var(--color-black);
    cursor: pointer;
    transition: border-color var(--transition);
}

.review-photos__trigger:hover { border-color: var(--color-black); }

.review-photos__input:focus-visible + .review-photos__trigger {
    outline: 1px solid var(--color-black);
    outline-offset: -1px;
}

.review-photos__hint {
    margin: 0;
    font-size: 14px;
    color: var(--color-gray);
}

.review-photos__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-photos__preview[hidden] { display: none; }

.review-photos__item {
    position: relative;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.review-photos__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photos__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.review-photos__remove:hover { background: rgba(0, 0, 0, 0.85); }

.review-photos__error {
    margin: 0;
    font-size: 14px;
    color: var(--color-red);
}

.review-photos__error[hidden] { display: none; }

.product-review-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 10px 24px;
    background: var(--color-dark);
    border: 1px solid var(--color-black);
    color: var(--color-white);
    font-size: 16px;
    font-weight: var(--fw-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-review-form__submit:hover {
    opacity: 0.85;
}

/* ── 6. Recently viewed ───────────────────────────────────────────────────── */
.recently-viewed {
    padding: 90px 0;
    background: #f5f6f5;
}

.recently-viewed .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.recently-viewed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recently-viewed__title {
    margin: 0;
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.recently-viewed__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recently-viewed__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    transition: opacity var(--transition);
}

.recently-viewed__arrow:hover { opacity: 0.5; }
.recently-viewed__arrow.slick-disabled { opacity: 0.25; cursor: default; pointer-events: none; }

/* Slick — gap 10px between cards, left-aligned */
.recently-viewed__track .slick-list  { margin: 0 -5px; overflow: hidden; }
.recently-viewed__track .slick-slide { margin: 0 5px; height: auto; }
.recently-viewed__track .slick-track { display: flex; margin-left: 0; margin-right: auto; }

/* ── 8. Instagram ─────────────────────────────────────────────────────────── */
.instagram {
    background: var(--color-white);
}

.instagram__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px 40px;
    text-decoration: none;
    color: var(--color-dark);
    transition: opacity var(--transition);
}

.instagram__header:hover { opacity: 0.75; }

.instagram__icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.instagram__title {
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
}

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

.instagram__post {
    display: block;
    position: relative;
    height: 553px;
    overflow: hidden;
    background: #f0f0f0;
}

.instagram__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.instagram__post:hover .instagram__img {
    transform: scale(1.04);
}

/* ── Adaptive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1399px) {
    .product-main__inner {
        gap: 40px;
    }

    .product-summary {
        flex-basis: 44%;
    }
}

@media (max-width: 1199px) {
    .product-sizes__list {
        gap: 14px;
    }

    .instagram__post {
        height: 380px;
    }
}

@media (max-width: 1023px) {
    .product-main__inner {
        gap: 30px;
    }

    .product-summary {
        flex-basis: 50%;
    }

    .product-summary__price-row {
        flex-wrap: wrap;
    }

    .product-colors__swatch {
        width: 28px;
        height: 28px;
    }

    .product-sizes__list {
        gap: 10px;
    }

    .product-sizes__btn {
        min-width: 45px;
        height: 38px;
        font-size: 16px;
    }

    .size-chart-popup__panel {
        width: 60%;
    }

    .product-buy {
        flex-wrap: wrap;
    }

    .product-buy__qty-btn {
        width: 36px;
    }

    .product-buy__qty-input {
        width: 28px;
        font-size: 14px;
    }

    .product-buy__submit {
        min-width: 160px;
    }

    .product-accordion__toggle {
        padding: 20px 0;
    }

    .product-sale-banner__badge {
        height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .product-banners {
        margin-top: 36px;
        height: 50px;
    }

    .product-banners__group {
        gap: 32px;
        padding-inline: 16px;
    }

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

    .product-reviews {
        padding-top: 40px;
    }

    .recently-viewed {
        padding: 60px 0;
    }

    .recently-viewed__title {
        font-size: 20px;
    }

    .product-why {
        padding: 60px 0;
    }

    .product-why__title,
    .product-why__feature-title {
        font-size: 20px;
    }

    .product-why__row {
        flex-direction: row;
        gap: 40px;
    }

    .product-reviews__top {
        margin-bottom: 40px;
    }

    .product-reviews__title,
    .product-review-form__title {
        font-size: 20px;
    }

    .product-review-form__row {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .breadcrumb__inner {
        flex-wrap: wrap;
    }

    .product-main__inner {
        flex-direction: column;
    }

    .product-summary {
        flex: 1 1 auto;
        width: 100%;
        gap: 20px;
    }

    .product-banners {
        margin-top: 24px;
        height: 42px;
    }

    .product-banners__group {
        gap: 20px;
        padding-inline: 10px;
    }

    .product-banners__item {
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .size-chart-popup__panel {
        width: 100%;
    }

    .size-chart-popup__header {
        padding: 20px;
    }

    .size-chart-popup__heading {
        gap: 8px;
        font-size: 18px;
    }

    .size-chart-popup__content {
        gap: 16px;
        padding: 20px 20px 40px;
        font-size: 14px;
    }

    .size-chart-popup__content h2,
    .size-chart-popup__content h3 {
        font-size: 18px;
    }

    .size-chart-popup__content h4 {
        font-size: 16px;
    }

    .size-chart-popup__content th,
    .size-chart-popup__content td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .product-gallery {
        width: 100%;
        gap: 12px;
        position: static;
    }

    .product-summary__title {
        font-size: 20px;
    }

    .product-summary__price-row {
        gap: 16px;
    }

    .product-summary__stock-note {
        text-align: left;
    }

    .product-summary__price {
        font-size: 20px;
    }

    .product-sizes__list {
        gap: 12px;
    }

    .product-sizes__btn {
        min-width: 48px;
        height: 36px;
        font-size: 16px;
    }

    .product-sale-banner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-sale-banner__badge {
        height: 28px;
        padding: 4px 10px;
    }

    .product-buy {
        flex-wrap: wrap;
    }

    .product-buy__qty,
    .product-buy__fav,
    .product-buy__submit {
        height: 48px;
    }

    .product-buy__qty-btn {
        width: 32px;
    }

    .product-buy__qty-input {
        width: 26px;
        font-size: 13px;
    }

    .product-buy__qty {
        order: 1;
    }

    .product-buy__fav {
        order: 2;
        width: 48px;
    }

    .product-buy__submit {
        order: 3;
        flex: 1 1 100%;
    }

    .product-accordion__toggle {
        padding: 20px 0;
    }

    .product-accordion__content {
        padding-bottom: 20px;
    }

    .product-info-list {
        gap: 16px;
    }

    .product-info-list__item p {
        font-size: 15px;
    }

    .product-why {
        padding: 40px 0;
    }

    .product-why__intro {
        gap: 12px;
        margin-bottom: 32px;
    }

    .product-why__title {
        font-size: 18px;
        letter-spacing: 0.9px;
    }

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

    .product-why__row {
        flex-direction: column;
        gap: 32px;
    }

    .product-why__features {
        gap: 24px;
    }

    .product-why__image,
    .product-why__features {
        max-width: 100%;
    }

    .product-why__image {
        flex: none;
        width: 100%;
    }

    .product-why__feature-title {
        font-size: 18px;
    }

    .product-why__feature-text {
        font-size: 14px;
    }

    .product-lightbox__img {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 140px);
    }

    .product-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .product-lightbox__nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .product-lightbox__nav--prev { left: 16px; }
    .product-lightbox__nav--next { right: 16px; }

    .product-reviews {
        padding-bottom: 60px;
    }

    .product-reviews__top {
        margin-bottom: 32px;
    }

    .product-reviews__inner {
        gap: 24px;
    }

    .product-reviews__intro {
        gap: 20px;
    }

    .product-reviews__title,
    .product-review-form__title {
        font-size: 18px;
        letter-spacing: 0.9px;
    }

    .product-review {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .product-review__image {
        width: 64px;
        height: 64px;
    }

    /* Parent is a column on mobile — lay the photos out in a row instead */
    .product-review__image--customer {
        flex-direction: row;
        width: 100%;
        height: auto;
    }

    .product-review__photo-link {
        width: 64px;
        height: 64px;
    }

    .product-review__body {
        padding-inline: 0;
        gap: 12px;
    }

    .product-review__content {
        gap: 8px;
    }

    .product-reviews__divider {
        margin: 32px 0;
    }

    .product-review-form {
        gap: 32px;
    }

    .product-review-form__intro {
        gap: 24px;
    }

    .product-review-form__row {
        flex-direction: column;
        gap: 16px;
    }

    .product-review-form__fields {
        gap: 16px;
    }

    .recently-viewed {
        padding: 40px 0;
    }

    .recently-viewed .container {
        gap: 24px;
    }

    .recently-viewed__title {
        font-size: 18px;
        letter-spacing: 0.9px;
    }

    .instagram__header {
        flex-direction: column;
        gap: 8px;
        padding: 40px 24px 24px;
        text-align: center;
    }

    .instagram__icon svg {
        width: 36px;
        height: 36px;
    }

    .instagram__title {
        font-size: 20px;
    }

    .instagram__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .instagram__post {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
