/* Product page */
.product-page {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}
.product-crumbs {
    padding-block: 1.6rem 1.4rem;
}
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.product-gallery {
    position: sticky;
    top: calc(var(--hh) + 1.2rem);
}
.product-main {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--paper-2), var(--paper));
    box-shadow: var(--sh-2);
}
.product-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rise 0.5s var(--ease);
}
.product-main img.slide-left {
    animation: slideLeft 0.3s var(--ease);
}
.product-main img.slide-right {
    animation: slideRight 0.3s var(--ease);
}
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.product-carousel-prev,
.product-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(42, 26, 22, 0.15);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        opacity 0.2s,
        background-color 0.2s;
    z-index: 2;
}
.product-carousel-prev {
    left: 1rem;
}
.product-carousel-next {
    right: 1rem;
}
.product-carousel-prev:disabled,
.product-carousel-next:disabled {
    cursor: not-allowed;
}
/* Desktop: buttons appear while the pointer is over the image */
@media (hover: hover) and (min-width: 701px) {
    .product-main:hover .product-carousel-prev:not(:disabled),
    .product-main:hover .product-carousel-next:not(:disabled) {
        opacity: 1;
        pointer-events: auto;
    }
    .product-main:hover .product-carousel-prev:disabled,
    .product-main:hover .product-carousel-next:disabled {
        opacity: 0.3;
    }
    .product-carousel-prev:hover:not(:disabled),
    .product-carousel-next:hover:not(:disabled) {
        background: #fff;
    }
}
/* Mobile / touch: always visible, no hover state, simple tap feedback */
@media (hover: none), (max-width: 700px) {
    .product-carousel-prev:not(:disabled),
    .product-carousel-next:not(:disabled) {
        opacity: 1;
        pointer-events: auto;
    }
    .product-carousel-prev:disabled,
    .product-carousel-next:disabled {
        opacity: 0.3;
    }
    .product-carousel-prev:not(:disabled):active,
    .product-carousel-next:not(:disabled):active {
        background: #fff;
    }
}
.product-gallery-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-inline: 0.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.product-thumbs button {
    width: 4.6rem;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--paper-2);
    opacity: 0.7;
    transition:
        opacity 0.2s,
        border-color 0.2s,
        transform 0.2s var(--ease);
}
@media (hover: hover) and (min-width: 701px) {
.product-thumbs button:hover {
    opacity: 1;
    transform: translateY(-2px);
}
}

.product-thumbs button.is-selected {
    border-color: var(--red);
    opacity: 1;
}
.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding-top: 0.6rem;
}
.product-info .eyebrow {
    gap: 0.5rem;
}
.product-info .eyebrow::before {
    display: none;
}
.product-mark {
    font-size: 0.55rem;
    color: var(--gold);
}
.product-info h1 {
    margin-top: 1.1rem;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.04;
    font-weight: 350;
}
.product-copy {
    max-width: 32rem;
    margin-top: 1.2rem;
    color: var(--ink-soft);
    font-size: 1.04rem;
}
.product-cta {
    margin-top: 0;
    width: 100%;
    padding-block: 1.05rem;
    background: var(--green);
    border-color: var(--green);
}
@media (hover: hover) and (min-width: 701px) {
.product-cta:hover {
    background: #12623b;
    border-color: #12623b;
    box-shadow: 0 12px 24px -12px rgba(23, 121, 74, 0.8);
}
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.8rem;
}
.product-video-btn {
    margin-top: 0;
    width: 100%;
    padding-block: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.product-response {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
@media (max-width: 700px) {
    .product-actions {
        grid-template-columns: 1fr;
    }
}
.product-details {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}
.product-details > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
}
.product-details dt {
    font: 700 0.72rem/1.8 var(--sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.product-details dd {
    font-weight: 600;
    text-align: right;
}
.product-help {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.8rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--r);
    background: var(--paper);
    font-size: 0.92rem;
}
.product-help-icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--card);
    color: var(--red);
}
.product-help strong {
    display: block;
    font: 400 1.15rem var(--serif);
}
.product-help span {
    color: var(--ink-soft);
}
.product-help a {
    color: var(--red);
    font-weight: 600;
}
.product-missing {
    padding-block: 4rem;
}
.product-missing h1 {
    font-size: 2.6rem;
}
.product-missing p {
    margin: 0.8rem 0 1.6rem;
    color: var(--ink-soft);
}
.related {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}
.related h2 {
    margin-bottom: 1.8rem;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 350;
}
.related .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
}
@media (max-width: 700px) {
    .related .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
