/**
 * Studio Moncada — Product Detail Page
 * Premium editorial feel — clean, airy, serif-led
 */

/* ── Page background ── */
body.page-studio-shop {
    background: #F5F0EB;
}

body.page-studio-shop .breadcrumb-area {
    display: none !important;
}

body.page-studio-shop .sm-pdp {
    background: #F5F0EB;
    padding: 48px 0 96px;
}

body.page-studio-shop .sm-pdp-main {
    align-items: flex-start;
    row-gap: 0;
}

/* ── Breadcrumb nav ── */
body.page-studio-shop .sm-pdp-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 36px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.page-studio-shop .sm-pdp-back {
    color: #8A8278 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.page-studio-shop .sm-pdp-back::before {
    content: '←';
    font-size: 13px;
    transition: transform 0.2s ease;
}

body.page-studio-shop .sm-pdp-back:hover {
    color: #3C3530 !important;
}

body.page-studio-shop .sm-pdp-back:hover::before {
    transform: translateX(-3px);
}

body.page-studio-shop .sm-pdp-nav-sep {
    color: #D8CFC4;
}

body.page-studio-shop .sm-pdp-nav-cat {
    color: #6B635C;
}

/* ── Gallery column — sticky on desktop ── */
body.page-studio-shop .sm-pdp-gallery-col {
    position: relative;
}

@media (min-width: 992px) {
    body.page-studio-shop .sm-pdp-gallery-col {
        position: sticky;
        top: 104px;
    }

    body.page-studio-shop .sm-pdp-info-col {
        padding-left: clamp(32px, 4vw, 64px);
    }
}

/* ── Gallery wrap ── */
body.page-studio-shop .sm-pdp-gallery {
    background: #EDE6DE;
    border: 1px solid #C9BFB4;
    box-shadow: 0 24px 64px rgba(60, 53, 48, 0.08), 0 2px 8px rgba(60, 53, 48, 0.04);
    position: relative;
    overflow: hidden;
}

body.page-studio-shop .sm-pdp-frame {
    padding: clamp(18px, 2.5vw, 28px);
    background: linear-gradient(180deg, #F5F0EB 0%, #EAE3DA 100%);
}

body.page-studio-shop .sm-pdp-frame-inner {
    border: 1px solid #C9BFB4;
    background: #F5F0EB;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        inset 0 0 0 12px #F5F0EB,
        inset 0 0 0 13px #D8CFC4;
    overflow: hidden;
}

body.page-studio-shop .sm-pdp-gallery .sm-pdp-main-image {
    margin-bottom: 0;
}

/* ── Main image — single fixed frame ── */
body.page-studio-shop .sm-pdp-main-image {
    background: #F5F0EB;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 320px;
    max-height: min(560px, 72vw);
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body.page-studio-shop .sm-pdp-main-image .sm-pdp-main-img,
body.page-studio-shop .sm-pdp-main-image .attribute_img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(14px, 2.2vw, 28px);
    box-sizing: border-box;
    transition: opacity 0.25s ease;
    display: block;
}

body.page-studio-shop .sm-pdp-main-image.is-switching .sm-pdp-main-img {
    opacity: 0.72;
}

/* Badge */
body.page-studio-shop .sm-pdp-main-image .sale {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F5F0EB;
    background: #3C3530;
    padding: 7px 14px;
}

/* ── Thumbnails — small row below main frame ── */
body.page-studio-shop .sm-pdp-thumbs {
    padding: 14px 16px 16px;
    border-top: 1px solid #D8CFC4;
    background: #F0EAE2;
}

body.page-studio-shop .sm-pdp-thumb-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.page-studio-shop .sm-pdp-thumb-item {
    margin: 0;
    padding: 0;
}

body.page-studio-shop .sm-pdp-thumb-btn {
    display: block;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid #D8CFC4;
    background: #F5F0EB;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-studio-shop .sm-pdp-thumb-btn:hover {
    border-color: #8A8278;
    transform: translateY(-1px);
}

body.page-studio-shop .sm-pdp-thumb-btn.is-active {
    border-color: #3C3530;
    box-shadow: 0 0 0 1px #3C3530;
}

body.page-studio-shop .sm-pdp-thumb-btn .sm-pdp-thumb-img,
body.page-studio-shop .sm-pdp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Product info column ── */
body.page-studio-shop .sm-pdp-info {
    padding-top: 8px;
    max-width: 560px;
}

/* Kicker — "Handmade in Studio" */
body.page-studio-shop .sm-pdp-kicker {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A89F96;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-studio-shop .sm-pdp-kicker::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #C4BAB0;
    flex-shrink: 0;
}

/* Product title */
body.page-studio-shop .sm-pdp-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #3C3530;
    line-height: 1.18;
    margin: 0 0 16px;
}

/* Tagline / summary */
body.page-studio-shop .sm-pdp-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.65;
    color: #8A8278;
    margin: 0 0 28px;
    max-width: 46ch;
}

/* ── Price ── */
body.page-studio-shop .sm-pdp-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 400;
    color: #3C3530;
    letter-spacing: 0.02em;
}

body.page-studio-shop .sm-pdp-price-old {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #A89F96;
    text-decoration: line-through;
}

/* ── Attributes ── */
body.page-studio-shop .sm-pdp-attributes {
    margin-bottom: 32px;
}

body.page-studio-shop .sm-pdp-attribute {
    margin-bottom: 24px;
}

body.page-studio-shop .sm-pdp-attribute .name {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B635C;
    margin-bottom: 14px;
}

body.page-studio-shop .sm-pdp-attributes .checkbox-color {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap {
    display: inline-block;
    position: relative;
    margin: 0 !important;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap label {
    margin: 0;
    cursor: pointer;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap input.checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    visibility: hidden;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap input.checkbox::after,
body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap input.checkbox::before {
    display: none !important;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap .size-code {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: capitalize;
    color: #3C3530;
    line-height: 1.2;
    padding: 12px 22px;
    min-width: 76px;
    text-align: center;
    background: transparent;
    border: 1px solid #D8CFC4;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap label:hover .size-code {
    border-color: #3C3530;
    background: rgba(60, 53, 48, 0.04);
}

body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap input.checkbox:checked ~ .size-code {
    background: #3C3530 !important;
    color: #F5F0EB !important;
    border-color: #3C3530 !important;
}

body.page-studio-shop .sm-pdp-clear-row {
    margin-top: 8px;
}

body.page-studio-shop .sm-pdp-clear-attrs {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A89F96;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

body.page-studio-shop .sm-pdp-clear-attrs:hover {
    color: #3C3530;
}

/* ── Action buttons ── */
body.page-studio-shop .sm-pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 44px;
}

body.page-studio-shop .sm-pdp-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 20px 28px;
    border: 1px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    cursor: pointer;
    line-height: 1;
}

body.page-studio-shop .sm-pdp-btn-primary,
body.page-studio-shop a.sm-pdp-btn-primary.add_to_cart {
    background: #3C3530 !important;
    color: #F5F0EB !important;
    border-color: #3C3530 !important;
}

body.page-studio-shop .sm-pdp-btn-primary:hover,
body.page-studio-shop a.sm-pdp-btn-primary.add_to_cart:hover {
    background: #2E2824 !important;
    border-color: #2E2824 !important;
    color: #F5F0EB !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(60, 53, 48, 0.18);
}

body.page-studio-shop .sm-pdp-btn-outline {
    background: transparent !important;
    color: #3C3530 !important;
    border-color: #D8CFC4 !important;
}

body.page-studio-shop .sm-pdp-btn-outline:hover {
    background: #3C3530 !important;
    color: #F5F0EB !important;
    border-color: #3C3530 !important;
}

body.page-studio-shop .sm-pdp-stock-note {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: #8A8278;
    margin-bottom: 16px;
}

/* ── Divider before specs ── */
body.page-studio-shop .sm-pdp-specs {
    margin-bottom: 36px;
    padding-top: 16px;
    border-top: 1px solid #D8CFC4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    body.page-studio-shop .sm-pdp-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 40px;
    }
}

body.page-studio-shop .sm-pdp-spec-block {
    margin-bottom: 0;
}

body.page-studio-shop .sm-pdp-spec-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A89F96;
    margin: 0 0 12px;
}

body.page-studio-shop .sm-pdp-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.page-studio-shop .sm-pdp-spec-list li {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #6B635C;
    margin-bottom: 5px;
    padding-left: 16px;
    position: relative;
}

body.page-studio-shop .sm-pdp-spec-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 1px;
    background: #C4BAB0;
}

/* ── Accordions ── */
body.page-studio-shop .sm-pdp-accordions {
    border-top: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-accordion {
    border-bottom: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-accordion-head {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3C3530;
    padding: 22px 36px 22px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
    user-select: none;
}

body.page-studio-shop .sm-pdp-accordion-head:hover {
    color: #6B635C;
}

body.page-studio-shop .sm-pdp-accordion-head::-webkit-details-marker {
    display: none;
}

body.page-studio-shop .sm-pdp-accordion-head::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 200;
    color: #C4BAB0;
    line-height: 1;
    transition: transform 0.3s ease, color 0.2s ease;
}

body.page-studio-shop .sm-pdp-accordion[open] .sm-pdp-accordion-head::after {
    content: '−';
    color: #8A8278;
}

body.page-studio-shop .sm-pdp-accordion-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #6B635C;
    padding: 4px 0 26px;
    max-width: 52ch;
}

body.page-studio-shop .sm-pdp-accordion-body em,
body.page-studio-shop .sm-pdp-accordion-body i {
    font-style: italic;
    color: #8A8278;
}

/* ── Lifestyle section ── */
body.page-studio-shop .sm-pdp-lifestyle {
    background: #EDE6DE;
    padding: 72px 0 80px;
    border-top: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-lifestyle-kicker {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A89F96;
    text-align: center;
    margin: 0 0 10px;
}

body.page-studio-shop .sm-pdp-lifestyle-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    color: #3C3530;
    line-height: 1.18;
    margin: 0 0 44px;
}

body.page-studio-shop .sm-pdp-lifestyle-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: #D8CFC4;
}

body.page-studio-shop .sm-pdp-lifestyle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-studio-shop .sm-pdp-lifestyle-item:hover .sm-pdp-lifestyle-img {
    transform: scale(1.05);
}

/* ── Related products section ── */
body.page-studio-shop .sm-pdp-related {
    background: #F5F0EB;
    padding: 72px 0 96px;
    border-top: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8CFC4;
}

body.page-studio-shop .sm-pdp-related-kicker {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A89F96;
    margin: 0 0 8px;
}

body.page-studio-shop .sm-pdp-related-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #3C3530;
    margin: 0;
    line-height: 1.18;
}

body.page-studio-shop .sm-pdp-related-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A8278 !important;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 1px solid #D8CFC4;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.page-studio-shop .sm-pdp-related-link:hover {
    color: #3C3530 !important;
    border-bottom-color: #3C3530;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    body.page-studio-shop .sm-pdp-info {
        padding-top: 40px;
        max-width: none;
    }
}

@media (max-width: 575px) {
    body.page-studio-shop .sm-pdp-thumb-btn {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 575px) {
    body.page-studio-shop .sm-pdp {
        padding-top: 28px;
        padding-bottom: 64px;
    }

    body.page-studio-shop .sm-pdp-nav {
        margin-bottom: 24px;
    }

    body.page-studio-shop .sm-pdp-specs {
        grid-template-columns: 1fr;
    }

    body.page-studio-shop .sm-pdp-related-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    body.page-studio-shop .sm-pdp-attributes .single-checkbox-wrap .size-code {
        padding: 11px 16px;
        min-width: 64px;
    }

    body.page-studio-shop .sm-pdp-btn {
        padding: 18px 20px;
    }
}
