/* =========================================================
   SOUTHWARD PRODUCT PAGE
========================================================= */

.pd-page,
.pd-old-page {
    width: 100%;
    background: #f4f4f2;
    color: #050505;
}

.pd-shell,
.pd-old-layout {
    width: 100%;
    min-height: 760px;
    display: grid;
    align-items: stretch;
}

/* =========================================================
   MODERN PRODUCT LAYOUT
========================================================= */

.pd-shell {
    grid-template-columns: minmax(0, 1.55fr) minmax(420px, 0.75fr);
    border-bottom: 1px solid #d9d9d5;
}

.pd-gallery {
    min-width: 0;
    background: #ececea;
    border-right: 1px solid #d9d9d5;
}

.pd-main-image {
    position: sticky;
    top: 0;
    width: 100%;
    height: min(84vh, 860px);
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ececea;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.pd-panel {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 760px;
    padding: 46px 42px;
    box-sizing: border-box;
    background: #fff;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 44px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #777;
}

.pd-breadcrumb a {
    color: #111;
    text-decoration: none;
}

.pd-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    padding-bottom: 30px;
    border-bottom: 1px solid #deded9;
}

.pd-category {
    margin: 0 0 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    color: #777;
}

.pd-heading h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(40px, 4vw, 68px);
    line-height: .94;
    font-weight: 900;
    letter-spacing: -.055em;
    color: #000;
}

.pd-price {
    flex: 0 0 auto;
    margin-top: 4px;
    font-size: 20px;
    line-height: 1;
    color: #111;
}

.pd-description {
    padding: 28px 0;
    border-bottom: 1px solid #deded9;
    font-size: 14px;
    line-height: 1.7;
    color: #424242;
}

.pd-description p {
    margin: 0;
}

.pd-stock {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #333;
}

.pd-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
}

.pd-stock-dot.is-sold {
    background: #aaa;
}

.pd-buy {
    margin: 0;
}

.pd-qty-label {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #555;
}

.pd-qty-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
}

.pd-qty-row input {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    border: 1px solid #cfcfca;
    background: #fff;
    padding: 0 15px;
    color: #111;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.pd-qty-row input:focus {
    border-color: #111;
}

.pd-add-btn {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
    transition: background .18s ease;
}

.pd-add-btn:hover {
    background: #242424;
}

.pd-add-btn.is-disabled {
    justify-content: center;
    border-color: #d3d3ce;
    background: #e7e7e3;
    color: #888;
    cursor: not-allowed;
}

.pd-secondary-actions {
    margin-top: 12px;
}

.pd-wishlist-form {
    width: 100%;
    margin: 0;
}

.pd-secondary-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    text-decoration: none;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.pd-secondary-btn:hover,
.pd-secondary-btn.is-active {
    background: #111;
    color: #fff;
}

.pd-heart {
    font-size: 18px;
    line-height: 1;
}

.pd-notes {
    margin-top: 26px;
    border-top: 1px solid #deded9;
}

.pd-notes > div {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #ecece8;
    font-size: 10px;
    line-height: 1.4;
}

.pd-notes strong {
    font-size: 9px;
    letter-spacing: .08em;
}

.pd-notes span {
    color: #666;
}

/* =========================================================
   LEGACY / CURRENT PRODUCT PAGE
========================================================= */

.pd-old-layout {
    grid-template-columns: minmax(0, 1fr) minmax(540px, 46%);
}

.pd-old-gallery {
    width: 100%;
    min-width: 0;
    background: #eceeef;
    border-right: 1px solid #d4d5d2;
    box-sizing: border-box;
}

.pd-main-gallery-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 30px);
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eceeef;
}

.pd-old-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 50px;
    box-sizing: border-box;
    transition: opacity .20s ease, transform .25s ease;
}

.pd-old-main-image.is-changing {
    opacity: .25;
    transform: scale(.99);
}

.pd-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #080808;
    font: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    opacity: .84;
    transition: opacity .18s ease, background .18s ease, transform .18s ease;
}

.pd-gallery-arrow:hover {
    opacity: 1;
    background: #fff;
}

.pd-gallery-arrow-left {
    left: 14px;
}

.pd-gallery-arrow-right {
    right: 14px;
}

.pd-product-thumbnails {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 10px 12px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    box-sizing: border-box;
    background: #eceeef;
    border-top: 1px solid #d4d5d2;
}

.pd-product-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.pd-product-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.pd-product-thumbnails::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 20px;
}

.pd-product-thumb {
    appearance: none;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d1d2cf;
    border-radius: 0;
    background: #f4f4f2;
    cursor: pointer;
    opacity: .58;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.pd-product-thumb:hover {
    opacity: 1;
    border-color: #777;
    transform: translateY(-1px);
}

.pd-product-thumb.is-active {
    opacity: 1;
    border-color: #050505;
}

.pd-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pd-old-info {
    width: 100%;
    padding: 30px 36px 42px;
    box-sizing: border-box;
    background: #f7f7f5;
}

.pd-old-category,
.pd-old-label {
    display: block;
    margin: 0 0 13px;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    color: #232323;
}

.pd-old-title {
    margin: 0;
    font-size: clamp(38px, 4vw, 52px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #050505;
}

.pd-old-description {
    max-width: 520px;
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 1.55;
    color: #505050;
}

.pd-old-price {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    color: #050505;
}

.pd-old-section {
    margin-top: 26px;
    padding: 24px 0 25px;
    border-top: 1px solid #d6d6d1;
    border-bottom: 1px solid #d6d6d1;
}

.pd-old-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pd-old-stock-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pd-old-stock-left strong {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.pd-old-stock-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #050505;
}

.pd-old-stock-dot.is-sold {
    background: #aaa;
}

.pd-old-stock-count {
    font-size: 7px;
    color: #777;
}

.pd-old-buy-form {
    margin: 25px 0 0;
}

.pd-old-buy-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
}

.pd-old-buy-row input {
    width: 100%;
    height: 53px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #111;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
}

.pd-old-add-cart {
    width: 100%;
    height: 53px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid #111;
    background: #0b0b0b;
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    cursor: pointer;
}

.pd-old-add-cart:hover {
    background: #222;
}

.pd-old-add-cart.is-disabled {
    background: #d9d9d5;
    border-color: #d9d9d5;
    color: #777;
    cursor: not-allowed;
}

.pd-old-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d6d6d1;
}

.pd-old-wishlist-form {
    width: 100%;
    margin: 0;
}

.pd-old-secondary-btn {
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #050505;
    text-decoration: none;
    font: inherit;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
}

.pd-old-buy-now {
    justify-content: space-between;
}

.pd-old-secondary-btn:hover,
.pd-old-secondary-btn.is-active {
    background: #0b0b0b;
    color: #fff;
}

.pd-old-secondary-btn.is-disabled {
    border-color: #d0d0cc;
    background: #e6e6e2;
    color: #999;
    cursor: not-allowed;
}

.pd-old-secondary-btn.is-active {
    border-color: #080808;
}

.pd-old-secondary-btn.is-active .pd-old-heart {
    color: inherit;
}

.pd-old-heart {
    font-size: 18px;
    line-height: 1;
}

.pd-old-quality {
    margin-top: 22px;
    min-height: 70px;
    padding: 18px 25px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid #d7d7d2;
    background: #fff;
}

.pd-old-quality-icon {
    font-size: 16px;
    line-height: 1;
}

.pd-old-quality strong {
    display: block;
    margin-bottom: 5px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .11em;
}

.pd-old-quality p {
    margin: 0;
    font-size: 7px;
    line-height: 1.5;
    color: #666;
}

.pd-old-accordions {
    margin-top: 22px;
    border-top: 1px solid #d4d4cf;
}

.pd-old-accordions details {
    border-bottom: 1px solid #d4d4cf;
}

.pd-old-accordions summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.pd-old-accordions summary::-webkit-details-marker {
    display: none;
}

.pd-old-plus {
    font-size: 16px;
    font-weight: 500;
}

.pd-old-accordions details[open] .pd-old-plus {
    transform: rotate(45deg);
}

.pd-old-accordion-content {
    padding: 0 0 20px;
    max-width: 510px;
    font-size: 10px;
    line-height: 1.65;
    color: #666;
}

.pd-old-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    border: 1px solid #d7d7d2;
    background: #fff;
}

.pd-old-feature-strip > div {
    min-height: 70px;
    padding: 12px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pd-old-feature-strip > div + div {
    border-left: 1px solid #d7d7d2;
}

.pd-old-feature-strip span {
    font-size: 6px;
    color: #777;
}

.pd-old-feature-strip strong {
    font-size: 8px;
    letter-spacing: .08em;
}

.pd-variant-section {
    padding-top: 26px;
    padding-bottom: 30px;
}

.pd-variant-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.pd-selected-variant {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .45;
}

.pd-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 8px;
}

.pd-variant-option {
    position: relative;
    min-height: 54px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d3;
    background: #fff;
    color: #080808;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.pd-variant-option:hover:not(:disabled) {
    border-color: #080808;
    transform: translateY(-1px);
}

.pd-variant-option.is-selected {
    background: #080808;
    border-color: #080808;
    color: #fff;
}

.pd-variant-option.is-disabled,
.pd-variant-option:disabled {
    opacity: .28;
    cursor: not-allowed;
    text-decoration: line-through;
}

.pd-variant-name {
    line-height: 1.35;
    text-align: center;
}

.pd-variant-status {
    position: absolute;
    right: 5px;
    bottom: 4px;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .6;
}

.pd-printify-message {
    min-height: 18px;
    margin: 12px 0 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .pd-shell {
        grid-template-columns: 1fr 420px;
    }

    .pd-panel {
        padding: 34px 28px;
    }

    .pd-main-image,
    .pd-main-gallery-wrap {
        min-height: 620px;
    }

    .pd-old-layout {
        grid-template-columns: minmax(0, 1fr) minmax(500px, 50%);
    }

    .pd-old-info {
        padding: 28px;
    }
}

@media (max-width: 820px) {
    .pd-shell,
    .pd-old-layout {
        display: block;
        min-height: 0;
    }

    .pd-gallery,
    .pd-old-gallery {
        border-right: 0;
        border-bottom: 1px solid #d4d5d2;
    }

    .pd-main-image,
    .pd-main-gallery-wrap {
        position: relative;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .pd-panel {
        position: relative;
        min-height: 0;
        padding: 30px 20px 42px;
    }

    .pd-old-info {
        padding: 28px 20px 42px;
    }

    .pd-breadcrumb {
        margin-bottom: 28px;
    }

    .pd-heading h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .pd-old-main-image {
        padding: 24px;
    }
}

@media (max-width: 700px) {
    .pd-gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .pd-gallery-arrow-left {
        left: 8px;
    }

    .pd-gallery-arrow-right {
        right: 8px;
    }

    .pd-product-thumbnails {
        gap: 6px;
        padding: 8px 8px 10px;
    }

    .pd-product-thumb {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .pd-variant-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pd-variant-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-variant-option {
        min-height: 48px;
        padding: 10px;
    }
}

@media (max-width: 520px) {
    .pd-heading {
        display: block;
    }

    .pd-price {
        display: block;
        margin-top: 18px;
    }

    .pd-qty-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .pd-notes > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pd-old-title {
        font-size: 40px;
    }

    .pd-old-buy-row {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .pd-old-secondary-row {
        grid-template-columns: 1fr;
    }
}
