/* =========================================
   JYNN Single Product — "The Specimen Dossier"
   New .jynn-piece* namespace (no collision with the old .jynn-pdp-* rules in
   woocommerce-pages-v3.css). Loaded only on is_product(), after that file.
   Structure is bespoke; the inner WooCommerce elements (gallery, price, form,
   variation selects, buttons, tabs) are styled here so gallery/zoom/variation
   JS all keep working. Tokens: void #030407, cream #F5E6DA, dim #A88160,
   gold #D4AF37, Fraunces (display) + Satoshi (body).
   ========================================= */

/* Top padding clears the fixed .jynn-nav (~2rem vertical padding + 44px
   buttons, present on every page — see jynn-nav.css). Every other WooCommerce
   page template (the shop archive's .jynn-shop, and .content-hero shared by
   cart/checkout/account/content pages) already reserves 8-10rem of top space
   for this; the product page previously had none, so the breadcrumb/title
   sat directly under (or behind) the bar. Values match .jynn-shop's
   clearance for consistency across pages, stepping down at the same
   breakpoints (1024px, 768px). */
.jynn-piece {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10rem clamp(1.25rem, 4vw, 3rem) 3rem;
    color: var(--text-bright);
}

/* ---------- Breadcrumb ---------- */
.jynn-piece__breadcrumb {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 2.5rem;
}
.jynn-piece__breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.jynn-piece__breadcrumb a:hover { color: var(--accent-glow); }
.jynn-piece__crumb-sep { margin: 0 0.6rem; color: rgba(212, 175, 55, 0.4); }

/* ---------- Hero grid ---------- */
.jynn-piece__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

/* ---------- Vitrine (signature) ---------- */
.jynn-piece__vitrine {
    position: sticky;
    top: 100px;
    padding-left: 2.25rem; /* room for the vertical spine */
}
.jynn-piece__spine {
    position: absolute;
    left: 0;
    top: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.8;
}
.jynn-piece__vitrine-inner {
    position: relative;
    border: 1px solid var(--border-light);
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.10), rgba(3, 4, 7, 0) 55%),
        rgba(255, 255, 255, 0.015);
}
.jynn-piece__vitrine-inner::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 7%;
    height: 42px;
    background: radial-gradient(60% 100% at 50% 100%, rgba(212, 175, 55, 0.14), rgba(3, 4, 7, 0));
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

/* Gallery (WooCommerce) */
.jynn-piece .woocommerce-product-gallery {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}
.jynn-piece .woocommerce-product-gallery__wrapper { margin: 0; }
/* Square vitrine: the piece sits 1:1. Set aspect-ratio on the image slide /
   placeholder / flexslider viewport (not opacity or display — WC's flexslider
   toggles opacity itself), and let the <img> cover it. */
.jynn-piece .woocommerce-product-gallery__image,
.jynn-piece .woocommerce-product-gallery__image--placeholder,
.jynn-piece .flex-viewport {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0;
}
.jynn-piece .flex-viewport .woocommerce-product-gallery__image {
    aspect-ratio: auto;
    height: 100%;
}
.jynn-piece .woocommerce-product-gallery__image > a {
    display: block;
    width: 100%;
    height: 100%;
}
.jynn-piece .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jynn-piece .woocommerce-product-gallery__trigger {
    top: 1rem;
    right: 1rem;
    z-index: 3;
}
.jynn-piece .flex-control-thumbs {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.jynn-piece .flex-control-thumbs li { width: 68px; margin: 0; }
.jynn-piece .flex-control-thumbs img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid var(--border-light);
    opacity: 0.55;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}
.jynn-piece .flex-control-thumbs img.flex-active,
.jynn-piece .flex-control-thumbs img:hover {
    opacity: 1;
    border-color: var(--accent-glow);
}
.jynn-piece .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    margin: 0;
    min-height: 0;
    line-height: 1;
    background: transparent;
    color: var(--accent-glow);
    border: 1px solid var(--accent-glow);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
}

/* ---------- Dossier ---------- */
/* Neutralise WooCommerce core layout: it carries `summary entry-summary`, and
   core CSS sets `div.summary{float:right;width:48%}` + margins. Inside the
   .jynn-piece__hero grid that squeezes the column to ~half its track, so undo
   it and let the dossier own its full grid column. */
.jynn-piece__dossier {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0.25rem 0 0 !important;
}
.jynn-piece__dossier > * { max-width: 100%; }
.jynn-piece__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 1rem;
}
.jynn-piece__eyebrow-sub { color: var(--text-dim); }

.jynn-piece .product_title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin: 0 0 1.25rem;
}
.jynn-piece .product_title::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    background: var(--border-light);
    margin-top: 1.5rem;
}

.jynn-piece .woocommerce-product-rating {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.jynn-piece .price {
    font-family: var(--font-display) !important;
    font-size: 1.9rem !important;
    color: var(--text-bright) !important;
    margin: 0 0 1.5rem !important;
    display: block;
}
.jynn-piece .price .woocommerce-Price-amount { font-family: var(--font-display); }
.jynn-piece .price del { color: var(--text-dim); opacity: 0.7; font-size: 0.7em; margin-right: 0.5rem; }
.jynn-piece .price ins { text-decoration: none; }

.jynn-piece .woocommerce-product-details__short-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dim);
    max-width: 52ch;
    margin: 0 0 2rem;
}
.jynn-piece .woocommerce-product-details__short-description p { margin: 0 0 0.75rem; }

/* Add-to-cart form */
.jynn-piece form.cart {
    margin: 0 0 2rem;
    max-width: 460px;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-light);
}
.jynn-piece form.cart:not(.variations_form),
.jynn-piece .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
/* Kill WooCommerce's clearfix ::before/::after on form.cart — as a flex
   container those pseudo-elements become phantom flex items that pushed the
   quantity picker ~10px off the left edge. */
.jynn-piece form.cart::before,
.jynn-piece form.cart::after { content: none !important; display: none !important; }

/* Quantity as a real - [n] + stepper (buttons injected by single-product.js),
   flush-left and matching the button height. */
.jynn-piece form.cart .quantity {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    height: 52px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}
.jynn-piece form.cart .quantity > label,
.jynn-piece form.cart .quantity .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.jynn-piece form.cart .quantity .jynn-qty-btn {
    width: 42px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.jynn-piece form.cart .quantity .jynn-qty-btn:hover {
    color: var(--accent-glow);
    background: rgba(212, 175, 55, 0.06);
}
.jynn-piece form.cart .quantity .qty {
    width: 48px !important;
    min-width: 0 !important;
    height: 52px !important;
    text-align: center;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid var(--border-light) !important;
    border-right: 1px solid var(--border-light) !important;
    border-radius: 0 !important;
    color: var(--text-bright) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    padding: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.jynn-piece form.cart .quantity .qty::-webkit-outer-spin-button,
.jynn-piece form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.jynn-piece form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 180px;
    height: 52px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    margin: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
}
.jynn-piece .jynn-pdp-buy-now {
    flex: 1 1 100%;
    height: 50px;
    margin: 0;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.jynn-piece .jynn-pdp-buy-now:hover { border-color: var(--accent-glow); color: var(--accent-glow); }

/* Variations */
.jynn-piece .variations {
    width: 100%;
    margin: 0 0 1rem;
    border: none;
}
.jynn-piece .variations tr,
.jynn-piece .variations td,
.jynn-piece .variations th {
    display: block;
    width: 100%;
    padding: 0 0 0.5rem;
    border: none;
    text-align: left;
    background: none;
}
.jynn-piece .variations th.label label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.jynn-piece .variations select { width: 100%; }
.jynn-piece .woocommerce-variation-price { margin: 0 0 1rem; width: 100%; }
.jynn-piece .reset_variations { color: var(--text-dim); font-size: 0.8rem; }

/* Meta */
.jynn-piece .product_meta {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    line-height: 1.9;
}
.jynn-piece .product_meta > span { display: block; }
.jynn-piece .product_meta a { color: var(--text-dim); text-decoration: none; }
.jynn-piece .product_meta a:hover { color: var(--accent-glow); }

/* Assurances */
.jynn-piece__assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin: 1.75rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--border-light);
    list-style: none;
}
.jynn-piece__assurances li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.jynn-piece__assurances svg { width: 22px; height: 22px; color: var(--accent-glow); flex: 0 0 auto; }

/* ---------- Below: tabs + related ---------- */
.jynn-piece__below { margin-top: clamp(3rem, 7vw, 6rem); }

.jynn-piece .woocommerce-tabs { margin: 0; }
.jynn-piece .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--border-light);
}
.jynn-piece .woocommerce-tabs ul.tabs::before { display: none; }
.jynn-piece .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.jynn-piece .woocommerce-tabs ul.tabs li::before,
.jynn-piece .woocommerce-tabs ul.tabs li::after { display: none; }
.jynn-piece .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0 0 1rem;
    margin-bottom: -1px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.jynn-piece .woocommerce-tabs ul.tabs li.active a,
.jynn-piece .woocommerce-tabs ul.tabs li a:hover {
    color: var(--accent-glow);
    border-bottom-color: var(--accent-glow);
}
.jynn-piece .woocommerce-tabs .panel {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin: 0;
    padding: 0;
}
.jynn-piece .woocommerce-tabs .panel h2 {
    font-family: var(--font-display);
    color: var(--text-bright);
    font-weight: 400;
    font-size: 1.6rem;
    margin: 0 0 1rem;
}
/* ---------- Additional Information (Details) tab table ----------
   Uses a dedicated .jynn-details-table class (see the
   woocommerce/single-product/product-attributes.php override) instead of
   WooCommerce's default `shop_attributes` class, which a legacy
   !important-laden rule set in woocommerce-pages-v3.css (built for the
   pre-redesign PDP) kept overriding regardless of specificity/!important
   here. No !important needed below — nothing else in the theme or any
   plugin targets this class, so there is no cascade fight to win. */
.jynn-details-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.jynn-details-table__row {
    border-bottom: 1px solid var(--border-light);
}
.jynn-details-table__row:first-child {
    border-top: 1px solid var(--border-light);
}
.jynn-details-table__label,
.jynn-details-table__value {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    background: transparent;
    border: none;
}
.jynn-details-table__label {
    width: 38%;
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: normal;
}
.jynn-details-table__value {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: normal;
}
.jynn-details-table__value p {
    margin: 0;
    color: var(--text-dim);
    font-style: normal;
}
/* Zebra stripe on alternate rows */
.jynn-details-table__row:nth-child(even) .jynn-details-table__label,
.jynn-details-table__row:nth-child(even) .jynn-details-table__value {
    background: rgba(255, 255, 255, 0.018);
}

/* Related products */
.jynn-related-products { margin-top: clamp(3rem, 7vw, 6rem); }
.jynn-related-header { text-align: center; margin-bottom: 2.5rem; }
.jynn-related-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.jynn-related-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-bright);
    margin: 0;
}
.jynn-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.jynn-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.jynn-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.32);
}
.jynn-related-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}
.jynn-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.jynn-related-card:hover .jynn-related-card__img { transform: scale(1.05); }
.jynn-related-card__sale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: var(--accent-glow);
    border: 1px solid var(--accent-glow);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
}
.jynn-related-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem 1.35rem;
}
.jynn-related-card__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}
.jynn-related-card__name a {
    color: var(--text-bright);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.jynn-related-card:hover .jynn-related-card__name a,
.jynn-related-card__name a:hover { color: var(--accent-glow); }
.jynn-related-card__price {
    font-family: var(--font-body);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}
.jynn-related-card__price .amount { color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* Slightly less top clearance is needed once the two-column hero
       collapses to one column below — matches .jynn-shop's 1024px step. */
    .jynn-piece { padding-top: 8.5rem; }
    .jynn-piece__hero { grid-template-columns: 1fr; gap: 2.5rem; }
    .jynn-piece__vitrine { position: static; padding-left: 0; }
    .jynn-piece__spine { display: none; }
    .jynn-related-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 600px) {
    /* Matches .jynn-shop's 768px clearance step — the nav itself is also
       shorter on phones (1.5rem padding vs 2rem), so less top space is
       needed to clear it. */
    .jynn-piece { padding-top: 7.5rem; padding-bottom: 2.5rem; }
    .jynn-piece__below { margin-top: 2.5rem; }
    .jynn-piece form.cart { max-width: none; }
    .jynn-piece form.cart .single_add_to_cart_button { min-width: 0; flex: 1 1 100%; }
    .jynn-piece__assurances { gap: 1rem 1.5rem; }
    .jynn-piece .woocommerce-tabs ul.tabs { gap: 1.25rem; }

    /* Related products: single column on phones. */
    .jynn-related-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Single-column review form on phones. */
    .jynn-piece .comment-form { grid-template-columns: 1fr; }
    .jynn-piece .comment-form .comment-form-author,
    .jynn-piece .comment-form .comment-form-email { grid-column: 1 / -1; }
}

/* ---------- Motion (fail-safe, reduced-motion aware) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Vitrine fades only (no transform) so its position:sticky is unaffected. */
    .jynn-piece__vitrine { animation: jynn-piece-fade 0.7s ease both; }
    .jynn-piece__dossier { animation: jynn-piece-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }

    @keyframes jynn-piece-fade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes jynn-piece-rise {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
}



/* ---------- Reviews + review form ----------
   The review form is output by WooCommerce inside the Reviews tab but was
   previously unstyled — near-invisible (faint empty inputs) on the dark
   background. These rules make the "add a review" form clearly visible and
   on-brand. Scoped under .jynn-piece with !important to beat v3's global
   .woocommerce input rules. */
.jynn-piece #reviews #comments { margin: 0 0 2.5rem; }
.jynn-piece .woocommerce-Reviews-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--text-bright);
    margin: 0 0 1.25rem;
}
.jynn-piece .woocommerce-noreviews {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: 0;
}
.jynn-piece .commentlist { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.jynn-piece .commentlist li.review,
.jynn-piece .commentlist li.comment { border-top: 1px solid var(--border-light); padding: 1.5rem 0; }
.jynn-piece .commentlist .comment-text { color: var(--text-dim); }
.jynn-piece .commentlist .woocommerce-review__author { color: var(--text-bright); font-weight: 600; }

.jynn-piece #review_form_wrapper {
    margin-top: 2.5rem;
    padding: 2.25rem clamp(1.5rem, 4vw, 2.75rem) 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.015);
}
.jynn-piece .comment-reply-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--text-bright);
    margin: 0 0 1.5rem;
}
.jynn-piece .comment-reply-title small { font-size: 0.8rem; }
.jynn-piece .comment-reply-title small a { color: var(--text-dim); }

.jynn-piece .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
}
.jynn-piece .comment-form > p { grid-column: 1 / -1; margin: 0 0 1.25rem; }
.jynn-piece .comment-form .comment-form-author { grid-column: 1 / 2; }
.jynn-piece .comment-form .comment-form-email { grid-column: 2 / 3; }
.jynn-piece .comment-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.jynn-piece .comment-form .required { color: var(--accent-glow); }
.jynn-piece .comment-form input[type="text"],
.jynn-piece .comment-form input[type="email"],
.jynn-piece .comment-form textarea,
.jynn-piece .comment-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 2px !important;
    color: var(--text-bright) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1rem !important;
}
.jynn-piece .comment-form textarea { min-height: 140px; resize: vertical; }
.jynn-piece .comment-form input:focus,
.jynn-piece .comment-form textarea:focus,
.jynn-piece .comment-form select:focus {
    outline: none;
    border-color: var(--accent-glow) !important;
}
.jynn-piece .comment-form-rating { display: flex; flex-direction: column; gap: 0.5rem; }
.jynn-piece .comment-form-rating .stars { font-size: 1.2rem; letter-spacing: 0.15em; }
.jynn-piece .comment-form-rating .stars a { color: var(--text-dim); transition: color var(--transition-fast); }
.jynn-piece .comment-form-rating .stars a:hover,
.jynn-piece .comment-form-rating .stars a.active,
.jynn-piece .comment-form-rating .stars.selected a.active { color: var(--accent-glow); }
.jynn-piece .comment-form .form-submit { margin: 0.5rem 0 0; }
.jynn-piece .comment-form input#submit,
.jynn-piece .comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 2rem;
    background: var(--accent-glow) !important;
    color: var(--bg-void) !important;
    border: none !important;
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.jynn-piece .comment-form input#submit:hover,
.jynn-piece .comment-form .submit:hover { background: #fff !important; }



/* ---------- Tab panels: always visible when active ----------
   WooCommerce tab panels carry the class `entry-content`, which on
   single-product pages was being caught by a reveal (opacity:0 + animation)
   intended for the OLD .jynn-pdp layout — leaving the description and review
   content stuck invisible. Neutralize any inherited reveal on the panels so
   the active tab's content (description text, review form) always shows. */
.jynn-piece .woocommerce-tabs .panel,
.jynn-piece .woocommerce-Tabs-panel,
.jynn-piece .woocommerce-tabs .entry-content {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
}


/* ---------- Wrapper padding ----------
   woocommerce-pages-v3.css gives .single-product .entry-content a hard
   `padding-bottom: 120px !important` (sized for the OLD PDP, which had no
   padding of its own). The new .jynn-piece provides its own spacing, so that
   120px stacked on top produced a large dead band below the related products.
   Trim it (single-product.css loads after v3). */
.single-product .entry-content {
    padding-bottom: clamp(2rem, 5vh, 3.5rem) !important;
}


/* ---------- Shipping timeline (subtle, above the cart form) ---------- */
.jynn-piece__ship {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}
.jynn-piece__ship svg { width: 16px; height: 16px; color: var(--accent-glow); flex: 0 0 auto; }
.jynn-piece__ship strong { color: var(--text-bright); font-weight: 600; }


/* ---------- Gallery trigger: hide default, show custom fullscreen ----------
   Hide the WooCommerce default zoom trigger. A custom fullscreen button is
   injected by single-product.js as a direct child of .flex-viewport — the
   actual square image box (aspect-ratio 1:1) that flexslider creates around
   the gallery images. It is NOT a child of .woocommerce-product-gallery
   (that container also includes the thumbnail strip below, which is why an
   earlier version positioned the button too far down using calc(100%) — that
   100% referred to the taller outer container's height, not the image's). */
.jynn-piece .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Anchor point for the button — .flex-viewport already gets
   aspect-ratio + overflow:hidden from the shared rule above; we only need
   to add position:relative here so the button's absolute position resolves
   against the image box itself. */
.jynn-piece .flex-viewport {
    position: relative;
}

.jynn-piece .jynn-gallery-fullscreen {
    position: absolute;
    opacity: 0; /* GSAP entrance animation fades/scales this to 1; JS sets a
                   fallback of opacity:1 immediately if GSAP fails to load,
                   so the button never gets stuck invisible. */
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 4, 7, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.22s ease, background 0.22s ease;
    color: var(--text-bright);
    padding: 0;
}
.jynn-piece .jynn-gallery-fullscreen:hover {
    border-color: var(--accent-glow);
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-glow);
}
.jynn-piece .jynn-gallery-fullscreen svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Variation attribute swatches (buttons instead of the native dropdown).
   The <select> stays in the DOM (WooCommerce's variation form needs it) but is
   visually hidden once buttons are built (.jynn-has-swatches). Buttons mirror
   the options; active = gold fill, disabled/unavailable = dimmed + struck out.
   ------------------------------------------------------------------------- */
.jynn-piece .variations td.value.jynn-has-swatches select,
.jynn-piece .variations .value.jynn-has-swatches select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.jynn-piece .variations .jynn-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.15rem 0 0.25rem;
}
.jynn-piece .variations .jynn-swatch {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    padding: 0.7rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}
.jynn-piece .variations .jynn-swatch:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
}
.jynn-piece .variations .jynn-swatch--active,
.jynn-piece .variations .jynn-swatch--active:hover {
    border-color: var(--accent-glow);
    background: var(--accent-glow);
    color: #0a0a0a;
}
.jynn-piece .variations .jynn-swatch--disabled {
    opacity: 0.32;
    cursor: not-allowed;
    text-decoration: line-through;
}
