/* =========================================================
   TCG — SINGLE PRODUCT PAGE
   Styles for templates/single-product.php
========================================================= */

/* html and body both carry overflow rules site-wide, which turns the
   body into a scroll container and silently disables position:sticky.
   clip keeps the horizontal guard without creating a scroll container. */
html body.tcg-pdp-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: #f6f4ef;
}

.tcg-pdp {
    --tcg-ink: #111111;
    --tcg-paper: #f6f4ef;
    --tcg-tile: #e9e6df;
    --tcg-line: rgba(17, 17, 17, .13);
    --tcg-muted: #6f6d66;
    --tcg-gutter: clamp(12px, 1.3vw, 22px);
    --tcg-top: calc(84px + var(--wp-admin--admin-bar--height, 0px));

    position: relative;
    z-index: 1;
    padding: 84px var(--tcg-gutter) 0;
    background: var(--tcg-paper);
    color: var(--tcg-ink);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.tcg-pdp *,
.tcg-pdp *::before,
.tcg-pdp *::after {
    box-sizing: border-box;
}

.tcg-pdp a {
    color: inherit;
}


/* ---------------------------------------------------------
   LAYOUT
--------------------------------------------------------- */

.tcg-pdp__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 470px);
    gap: clamp(28px, 3.6vw, 68px);
    align-items: start;
    max-width: 1800px;
    margin: 0 auto;
    padding-right: clamp(0px, 2vw, 40px);
}


/* ---------------------------------------------------------
   GALLERY
--------------------------------------------------------- */

.tcg-pdp__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    min-width: 0;
}

.tcg-pdp__tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background: var(--tcg-tile);
    cursor: zoom-in;
}

.tcg-pdp .tcg-pdp__tile img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform .7s cubic-bezier(.16, .8, .24, 1);
}

.tcg-pdp__tile:hover img {
    transform: scale(1.035);
}

/* Cutouts and packshots on white are shown whole, whatever the shape of
   the file; photographs keep their own colours.
   Classes: tcg_custom_image_fit_class(). */

#tcg-pdp .tcg-pdp__tile img.tcg-fit {
    object-fit: contain;
}

#tcg-pdp .tcg-pdp__tile img.tcg-photo {
    mix-blend-mode: normal;
}

.tcg-pdp__tile--empty {
    cursor: default;
}

/* one image: a single wide tile instead of a towering 4:5 */
.tcg-pdp__gallery[data-count="0"],
.tcg-pdp__gallery[data-count="1"] {
    grid-template-columns: 1fr;
}

.tcg-pdp__gallery[data-count="0"] .tcg-pdp__tile,
.tcg-pdp__gallery[data-count="1"] .tcg-pdp__tile,
.tcg-pdp__gallery--odd .tcg-pdp__tile:last-child {
    aspect-ratio: 8 / 5;
}

.tcg-pdp .tcg-pdp__gallery[data-count="0"] .tcg-pdp__tile img,
.tcg-pdp .tcg-pdp__gallery[data-count="1"] .tcg-pdp__tile img,
.tcg-pdp .tcg-pdp__gallery--odd .tcg-pdp__tile:last-child img {
    object-fit: contain;
}

/* odd count: pairs first, the remaining image closes the grid full-width */
.tcg-pdp__gallery--odd .tcg-pdp__tile:last-child {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   INFO COLUMN
--------------------------------------------------------- */

.tcg-pdp__info {
    position: sticky;
    top: var(--tcg-top);
    align-self: start;
    min-width: 0;
    max-height: calc(100vh - var(--tcg-top));
    padding: 26px 2px 32px;
    overflow-y: auto;
    scrollbar-width: none;
}

.tcg-pdp__info::-webkit-scrollbar {
    display: none;
}

.tcg-pdp .tcg-pdp__title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--tcg-ink);
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(19px, 1.35vw, 23px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: .025em;
    text-transform: uppercase;
}

/* a collection's piece: its garment and its collection, in the
   listing's breadcrumb style */
.tcg-pdp__path {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 12px;
    color: var(--tcg-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tcg-pdp .tcg-pdp__path a {
    color: inherit;
    text-decoration: none;
}

.tcg-pdp .tcg-pdp__path a:hover,
.tcg-pdp .tcg-pdp__path a.tcg-pdp__path-collection {
    color: var(--tcg-ink);
}

.tcg-pdp__price {
    margin: 0 0 24px;
    color: var(--tcg-muted);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.tcg-pdp__price del {
    margin-right: 8px;
    font-weight: 400;
    opacity: .6;
}

.tcg-pdp__price ins {
    color: #7a1f2b;
    text-decoration: none;
}


/* colourways — the same garment in its other colours */

.tcg-pdp__colours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.tcg-pdp__colour {
    display: block;
    width: 62px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--tcg-tile);
    transition: border-color .2s ease;
}

.tcg-pdp .tcg-pdp__colour img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.tcg-pdp .tcg-pdp__colour img.tcg-fit {
    object-fit: contain;
    transform: scale(var(--tcg-zoom, 1)) translate(var(--tcg-x, 0), var(--tcg-y, 0));
}

.tcg-pdp .tcg-pdp__colour img.tcg-photo {
    mix-blend-mode: normal;
}

.tcg-pdp__colour:hover,
.tcg-pdp__colour.is-current {
    border-color: var(--tcg-ink);
}


/* ---------------------------------------------------------
   BUY — native WooCommerce form, our skin
   (#tcg-pdp keeps these above WooCommerce/theme button rules)
--------------------------------------------------------- */

#tcg-pdp form.cart {
    margin: 0;
    padding: 0;
}

#tcg-pdp table.variations,
#tcg-pdp table.variations tbody,
#tcg-pdp table.variations tr,
#tcg-pdp table.variations th,
#tcg-pdp table.variations td {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

#tcg-pdp table.variations tr + tr {
    margin-top: 18px;
}

#tcg-pdp table.variations label {
    display: block;
    margin: 0 0 10px;
    color: var(--tcg-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#tcg-pdp .reset_variations {
    display: none !important;
}

#tcg-pdp select.tcg-pdp-select--enhanced,
#tcg-pdp table.variations select.tcg-pdp-select--enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

#tcg-pdp table.variations select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d9d6cf;
    border-radius: 8px;
    background: #fff;
    color: var(--tcg-ink);
    font: inherit;
}

.tcg-pdp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#tcg-pdp .tcg-pdp-option {
    position: relative;
    min-width: 52px;
    height: 52px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d9d6cf;
    border-radius: 8px;
    background: #fff;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

#tcg-pdp .tcg-pdp-option:hover {
    border-color: var(--tcg-ink);
}

#tcg-pdp .tcg-pdp-option.is-selected {
    border-color: var(--tcg-ink);
    background: var(--tcg-ink);
    color: #fff;
}

#tcg-pdp .tcg-pdp-option.is-soldout {
    color: rgba(17, 17, 17, .38);
    background:
        linear-gradient(to top right, transparent calc(50% - .5px), rgba(17, 17, 17, .22) calc(50% - .5px), rgba(17, 17, 17, .22) calc(50% + .5px), transparent calc(50% + .5px)),
        #fff;
}

#tcg-pdp .tcg-pdp-option.is-soldout.is-selected {
    border-color: rgba(17, 17, 17, .5);
    background: rgba(17, 17, 17, .5);
    color: #fff;
}

#tcg-pdp .tcg-pdp-option.is-unavailable {
    display: none;
}

.tcg-pdp-options.is-nudge {
    animation: tcg-pdp-nudge .45s ease;
}

@keyframes tcg-pdp-nudge {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

#tcg-pdp .single_variation_wrap {
    display: block;
    margin: 0;
    padding: 0;
}

/* add to cart + wishlist side by side */
#tcg-pdp .woocommerce-variation-add-to-cart,
#tcg-pdp form.cart:not(.variations_form) {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}

#tcg-pdp .shopengine-wishlist {
    order: 2;
    position: static;
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 1px solid #d9d6cf;
    border-radius: 8px;
    background: #fff;
    color: var(--tcg-ink);
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

#tcg-pdp .shopengine-wishlist i {
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

#tcg-pdp .shopengine-wishlist:hover {
    border-color: var(--tcg-ink);
}

#tcg-pdp .shopengine-wishlist.active {
    border-color: var(--tcg-ink);
    background: var(--tcg-ink);
    color: #fff;
}

#tcg-pdp .shopengine-comparison {
    display: none !important;
}

#tcg-pdp .woocommerce-variation {
    margin: 0;
}

/* shown once in the accordion instead ("Composition & care") */
#tcg-pdp .woocommerce-variation-description {
    display: none;
}

#tcg-pdp .woocommerce-variation-price,
#tcg-pdp .woocommerce-variation-availability {
    margin: 14px 0 0;
    font-size: 13px;
}

#tcg-pdp .woocommerce-variation-price .price {
    color: var(--tcg-ink);
    font-size: 15px;
    font-weight: 700;
}

#tcg-pdp .stock {
    margin: 14px 0 0;
    color: var(--tcg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#tcg-pdp .stock.out-of-stock {
    color: #7a1f2b;
}

/* quantity defaults to 1 and stays editable in the cart */
#tcg-pdp form.cart .quantity {
    display: none !important;
}

#tcg-pdp .single_add_to_cart_button {
    order: 1;
    display: block;
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid var(--tcg-ink);
    border-radius: 8px;
    background: var(--tcg-ink);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 1;
    box-shadow: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

#tcg-pdp .single_add_to_cart_button:hover {
    background: #2b2a27;
    color: #fff;
}

#tcg-pdp .single_add_to_cart_button.wc-variation-is-unavailable,
#tcg-pdp .single_add_to_cart_button:disabled {
    border-color: #cfccc5;
    background: #cfccc5;
    color: #fff;
    cursor: not-allowed;
}


/* notices (e.g. "added to your cart") */

#tcg-pdp .woocommerce-notices-wrapper:empty {
    display: none;
}

#tcg-pdp .woocommerce-message,
#tcg-pdp .woocommerce-info,
#tcg-pdp .woocommerce-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
    margin: 0 0 22px;
    padding: 13px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--tcg-ink);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.45;
    list-style: none;
}

#tcg-pdp .woocommerce-error {
    background: #7a1f2b;
}

#tcg-pdp .woocommerce-message::before,
#tcg-pdp .woocommerce-info::before,
#tcg-pdp .woocommerce-error::before {
    display: none;
}

#tcg-pdp .woocommerce-message .button,
#tcg-pdp .woocommerce-info .button {
    order: 2;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   FIT LINE + ACCORDION
--------------------------------------------------------- */

.tcg-pdp__fit {
    margin: 22px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.tcg-pdp__fit strong {
    font-weight: 900;
}

.tcg-pdp__acc {
    margin-top: 30px;
    border-top: 1px solid var(--tcg-line);
}

.tcg-pdp__acc details {
    border-bottom: 1px solid var(--tcg-line);
}

.tcg-pdp__acc summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 2px;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .07em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.tcg-pdp__acc summary::-webkit-details-marker {
    display: none;
}

.tcg-pdp__acc-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.tcg-pdp__acc-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tcg-pdp__acc-label {
    flex: 1 1 auto;
}

.tcg-pdp__acc-plus {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
}

.tcg-pdp__acc-plus::before,
.tcg-pdp__acc-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s ease;
}

.tcg-pdp__acc-plus::after {
    transform: rotate(90deg);
}

.tcg-pdp__acc details[open] .tcg-pdp__acc-plus::after {
    transform: rotate(0deg);
}

.tcg-pdp__acc-body {
    padding: 0 2px 22px 36px;
    color: #3d3c38;
    font-size: 13.5px;
    line-height: 1.65;
}

.tcg-pdp .tcg-pdp__acc-body p {
    margin: 0 0 10px;
}

.tcg-pdp .tcg-pdp__acc-body p:last-child {
    margin-bottom: 0;
}

.tcg-pdp .tcg-pdp__acc-body h2,
.tcg-pdp .tcg-pdp__acc-body h3,
.tcg-pdp .tcg-pdp__acc-body h4 {
    margin: 16px 0 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tcg-pdp .tcg-pdp__acc-body ul,
.tcg-pdp .tcg-pdp__acc-body ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcg-pdp .tcg-pdp__acc-body li {
    position: relative;
    margin: 0;
    padding: 6px 0 6px 16px;
}

.tcg-pdp .tcg-pdp__acc-body li::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    width: 7px;
    height: 1px;
    background: currentColor;
}

.tcg-pdp .tcg-pdp__acc-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcg-pdp .tcg-pdp__acc-body table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.tcg-pdp .tcg-pdp__acc-body th,
.tcg-pdp .tcg-pdp__acc-body td {
    padding: 8px 0;
    border: 0;
    border-top: 1px solid var(--tcg-line);
    background: none;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
}

.tcg-pdp .tcg-pdp__acc-body tr:first-child th,
.tcg-pdp .tcg-pdp__acc-body tr:first-child td {
    border-top: 0;
}

.tcg-pdp .tcg-pdp__acc-body th {
    width: 38%;
    font-weight: 900;
}

/* the size guide: one row for each size the piece is sold in */
.tcg-pdp .tcg-pdp__acc-body .tcg-size__lead {
    margin-bottom: 6px;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size th,
.tcg-pdp .tcg-pdp__acc-body .tcg-size td {
    width: auto;
    padding: 10px 12px 10px 0;
    font-variant-numeric: tabular-nums;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size thead th {
    padding-top: 6px;
    padding-bottom: 8px;
    border-top: 0;
    color: #6f6d66;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size tbody tr:first-child th,
.tcg-pdp .tcg-pdp__acc-body .tcg-size tbody tr:first-child td {
    border-top: 1px solid var(--tcg-line);
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size tbody th {
    width: 22%;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size--item tbody th {
    width: 46%;
    font-weight: 400;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size--item tbody tr:first-child th,
.tcg-pdp .tcg-pdp__acc-body .tcg-size--item tbody tr:first-child td {
    border-top: 0;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size__how {
    margin-top: 14px;
    color: #6f6d66;
    font-size: 12.5px;
}

.tcg-pdp .tcg-pdp__acc-body .tcg-size__tip {
    margin-top: 10px;
    font-size: 12.5px;
}


/* ---------------------------------------------------------
   RELATED
--------------------------------------------------------- */

.tcg-pdp__related {
    max-width: 1800px;
    margin: clamp(64px, 7vw, 120px) auto 0;
    padding-bottom: clamp(56px, 6vw, 104px);
}

.tcg-pdp__related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 0 2px;
}

.tcg-pdp .tcg-pdp__related-head h2 {
    margin: 0;
    color: var(--tcg-ink);
    font-family: inherit;
    font-size: clamp(19px, 1.35vw, 23px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.tcg-pdp__related-head a {
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.tcg-pdp__related-head a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tcg-pdp__related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

/* ---------------------------------------------------------
   ZOOM
--------------------------------------------------------- */

.tcg-pdp-zoom {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: none;
    overflow: auto;
    background: #e9e6df;
    cursor: zoom-out;
    overscroll-behavior: contain;
}

.tcg-pdp-zoom.is-open {
    display: block;
}

.tcg-pdp-zoom img {
    display: block;
    width: min(100%, 1280px);
    height: auto;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.tcg-pdp-zoom__close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111111;
    color: #fff;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-pdp {
        padding-top: 76px;
    }

    .tcg-pdp__main {
        display: block;
        padding-right: 0;
    }

    /* swipeable strip instead of a mile-long stack */
    .tcg-pdp__gallery,
    .tcg-pdp__gallery[data-count="1"] {
        display: flex;
        gap: 6px;
        margin: 0 calc(var(--tcg-gutter) * -1);
        padding: 0 var(--tcg-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--tcg-gutter);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tcg-pdp__gallery::-webkit-scrollbar {
        display: none;
    }

    .tcg-pdp__gallery .tcg-pdp__tile,
    .tcg-pdp__gallery--odd .tcg-pdp__tile:last-child {
        flex: 0 0 84%;
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
    }

    .tcg-pdp .tcg-pdp__gallery--odd .tcg-pdp__tile:last-child img {
        object-fit: cover;
    }

    .tcg-pdp__gallery[data-count="0"] .tcg-pdp__tile,
    .tcg-pdp__gallery[data-count="1"] .tcg-pdp__tile {
        flex-basis: 100%;
    }

    .tcg-pdp .tcg-pdp__gallery[data-count="1"] .tcg-pdp__tile img {
        object-fit: cover;
    }

    .tcg-pdp__tile:hover img {
        transform: none;
    }

    .tcg-pdp__info {
        position: static;
        max-height: none;
        padding: 24px 4px 8px;
        overflow: visible;
    }

    .tcg-pdp__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 6px;
        row-gap: 26px;
    }
}


/* ---------------------------------------------------------
   TOUCH — phones and tablets
   Text links keep the size they are drawn at and get an
   area a fingertip can hit (a transparent ::after reaching
   past the text); the small controls grow to 40px.
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-pdp__related-head a {
        position: relative;
    }

    .tcg-pdp__related-head a::after {
        content: "";
        position: absolute;
        inset: -14px -8px;
    }

    .tcg-pdp .tcg-pdp__path a {
        position: relative;
    }

    .tcg-pdp .tcg-pdp__path a::after {
        content: "";
        position: absolute;
        inset: -14px -4px;
    }
}

/* ---------------------------------------------------------
   COMING SOON — shown, not sold: the sizes it will come in,
   then "Notify me" (includes/product-soon.php)
--------------------------------------------------------- */

.tcg-pdp-soon__label {
    margin: 0 0 10px;
    color: var(--tcg-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#tcg-pdp .tcg-pdp-option--static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

#tcg-pdp .tcg-pdp-option--static:hover {
    border-color: #d9d6cf;
}

.tcg-pdp-soon__state {
    margin: 24px 0 0;
    color: var(--tcg-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tcg-pdp-soon__text {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.tcg-pdp-soon__form {
    position: relative;
    display: flex;
    gap: 10px;
    margin: 16px 0 0;
}

.tcg-pdp-soon__form[hidden] {
    display: none;
}

#tcg-pdp .tcg-pdp-soon__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d9d6cf;
    border-radius: 8px;
    background: #fff;
    color: var(--tcg-ink);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

#tcg-pdp .tcg-pdp-soon__input:focus {
    border-color: var(--tcg-ink);
    outline: none;
}

#tcg-pdp .tcg-pdp-soon__form .single_add_to_cart_button {
    flex: 0 0 auto;
}

.tcg-pdp-soon__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tcg-pdp-soon__message {
    margin: 16px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.tcg-pdp-soon__legal {
    margin: 12px 0 0;
    color: var(--tcg-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

#tcg-pdp .tcg-pdp-soon__legal a {
    text-decoration: underline;
}

/* pre-order: the state line above the sizes, "Notify me" quieter below */
.tcg-pdp-soon--pre .tcg-pdp-soon__state {
    margin-top: 0;
}

.tcg-pdp-soon--pre {
    margin: 0 0 18px;
}

.tcg-pdp-soon--notify {
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e4e1da;
}

.tcg-pdp-soon--notify .tcg-pdp-soon__text {
    margin-top: 0;
}

#tcg-pdp .tcg-pdp-soon__form .single_add_to_cart_button.tcg-pdp-soon__second {
    background: transparent;
    color: var(--tcg-ink);
    border: 1px solid var(--tcg-ink);
}

#tcg-pdp .tcg-pdp-soon__form .single_add_to_cart_button.tcg-pdp-soon__second:hover {
    background: var(--tcg-ink);
    color: #fff;
}
