/**
 * Loop & Luxe — Dedicated Product Details Page Styles (pdp.css)
 *
 * Scoped styles for /product/:slug showcasing:
 * 1-of-1 archival hero gallery, rich specs, wearing guide, pincode delivery estimator,
 * policy accordions, related pieces grid, and full-screen lightbox zoom.
 */

/* ==========================================================================
   DEDICATED PRODUCT DETAILS PAGE (PDP)
   ========================================================================== */
.pdp-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: auto;
    padding: 0 5%;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.pdp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease, transform 0.2s ease;
}

.pdp-back-btn:hover {
    color: var(--gold);
    transform: translateX(-3px);
}

.pdp-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pdp-main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pdp-breadcrumb {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 5%;
}

.pdp-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8c8273;
}

.pdp-breadcrumb a {
    color: #8c8273;
    transition: color 0.2s ease;
}

.pdp-breadcrumb a:hover {
    color: #d4af37;
}

.pdp-breadcrumb li[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.pdp-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 5% 80px;
}

.pdp-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-top: 16px;
}

.pdp-gallery {
    position: relative;
}

@media (min-width: 900px) and (min-height: 850px) {
    .pdp-gallery {
        position: sticky;
        top: 24px;
    }
}

.pdp-media-box {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(28, 27, 24, 0.04);
}

.pdp-craft-pill {
    display: none !important;
}

.pdp-sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: #1c1b18;
    color: #f8f4ec;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pdp-image-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    max-height: 72vh;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.pdp-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.pdp-image-viewport:hover .pdp-main-img {
    transform: scale(1.02);
}

.pdp-loupe {
    display: none !important;
}

.pdp-zoom-trigger {
    display: none !important;
}

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pdp-category-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin: 0 0 8px;
}

.pdp-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.18;
    margin: 0 0 16px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.pdp-price-bar {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.pdp-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.pdp-shipping-badge {
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
    background: #eef7f0;
    border: 1px solid #cce8d3;
    border-radius: 999px;
    padding: 4px 10px;
    letter-spacing: 0.04em;
}

.pdp-narrative {
    font-size: 15px;
    line-height: 1.7;
    color: #44403c;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.pdp-narrative p {
    margin: 0;
}

.pdp-seal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    background: rgba(170, 135, 84, 0.07);
    border: 1px solid rgba(170, 135, 84, 0.25);
    border-radius: 10px;
}

.pdp-seal__icon {
    font-size: 18px;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.pdp-seal__text strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 4px;
}

.pdp-seal__text p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b6357;
}

.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.pdp-btn--buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #1c1b18;
    color: #f8f4ec;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(28, 27, 24, 0.15);
}

.pdp-btn--buy:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(212, 175, 55, 0.4);
}

.pdp-btn--whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: #128c7e;
    border: 1px solid #128c7e;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-btn--whatsapp:hover {
    background: #128c7e;
    color: #ffffff;
}

.pdp-btn--share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-btn--share:hover {
    border-color: #d4af37;
    color: #ffffff;
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.pdp-archival-box {
    background: #f4ede2;
    border: 1px solid #dfd3c3;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
}

.pdp-archival-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8c8273;
    margin-bottom: 4px;
}

.pdp-archival-message h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    margin: 4px 0 8px;
    color: var(--ink);
    font-weight: 500;
}

.pdp-archival-message p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #5a5349;
    margin: 0;
}

.pdp-btn--custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #128c7e;
    color: #ffffff;
    border: 1px solid #128c7e;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
    margin-top: 16px;
}

.pdp-btn--custom:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.pdp-accordions {
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

.pdp-accordion {
    border-bottom: 1px solid var(--line);
}

.pdp-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    list-style: none;
    user-select: none;
}

.pdp-accordion__summary::-webkit-details-marker {
    display: none;
}

.pdp-accordion__summary svg {
    transition: transform 0.25s ease;
    color: #8c8273;
}

.pdp-accordion[open] .pdp-accordion__summary svg {
    transform: rotate(180deg);
}

.pdp-accordion__content {
    padding: 0 0 16px 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #555048;
}

.pdp-accordion__content p {
    margin: 0;
}

/* Pincode Delivery Estimator (Amazon Style) */
.pdp-pincode-card {
    background: #fbf8f3;
    border: 1px solid #e7dfd3;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 14px;
    margin-bottom: 12px;
}

body.is-pdp-sold-out #pdpPincodeCard,
body.is-pdp-sold-out .pdp-pincode-card {
    display: none !important;
}

.pdp-pincode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-pincode-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.pdp-pincode-title svg {
    color: var(--gold);
    flex-shrink: 0;
}

.pdp-pincode-origin {
    font-size: 11px;
    color: #8c8273;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pdp-pincode-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 1px solid #dcd3c5;
    border-radius: 999px;
    padding: 3px 4px 3px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-pincode-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(170, 135, 84, 0.12);
}

.pdp-pincode-pin-icon {
    color: #a89f91;
    margin-right: 8px;
    flex-shrink: 0;
}

.pdp-pincode-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    padding: 8px 0;
    min-width: 0;
    letter-spacing: 0.05em;
}

.pdp-pincode-input::placeholder {
    color: #a89f91;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

.pdp-pincode-btn {
    border: none;
    background: var(--ink);
    color: #f8f4ec;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pdp-pincode-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.pdp-pincode-result {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2d9cb;
}

.pdp-pin-err {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #c62828;
    background: #fdf2f2;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f9d6d6;
}

.pdp-pin-success-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.pdp-pin-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #128c7e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.pdp-pin-success-header strong {
    font-size: 13.5px;
    color: #128c7e;
    display: block;
    line-height: 1.3;
}

.pdp-pin-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #4b665c;
    background: #e8f5f1;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.pdp-pin-region {
    font-size: 12px;
    color: #6e675b;
    margin: 4px 0 10px 0;
}

.pdp-pin-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdp-pin-features li {
    font-size: 11.5px;
    line-height: 1.4;
    color: #555048;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-pin-features li span {
    color: var(--gold);
    font-size: 10px;
}

/* Rich Specifications Accordions */
.pdp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: #ffffff;
    border: 1px solid #eadecf;
    border-radius: 10px;
    padding: 14px;
}

.pdp-spec-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 2px;
}

.pdp-spec-item span {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4e483e;
}

/* Wearing Guide Card */
.pdp-wearing-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-guide-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #eadecf;
    border-radius: 10px;
    padding: 14px;
}

.pdp-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pdp-guide-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pdp-guide-step strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
    margin-bottom: 2px;
}

.pdp-guide-step p {
    font-size: 12px;
    line-height: 1.45;
    color: #655e53;
    margin: 0;
}

.pdp-custom-fit-note {
    font-size: 11.5px;
    line-height: 1.45;
    color: #7d7363;
    margin: 2px 0 0;
}

/* Care List */
.pdp-care-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #eadecf;
    border-radius: 10px;
    padding: 14px;
}

.pdp-care-list li {
    font-size: 12.5px;
    line-height: 1.5;
    color: #555048;
    position: relative;
    padding-left: 18px;
}

.pdp-care-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--gold);
    font-size: 10px;
}

.pdp-care-list strong {
    color: var(--ink);
}

/* Policy Block */
.pdp-policy-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-policy-item {
    background: #ffffff;
    border: 1px solid #eadecf;
    border-radius: 10px;
    padding: 12px 14px;
}

.pdp-policy-item strong {
    display: block;
    font-size: 12px;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.pdp-policy-item p {
    font-size: 12px;
    line-height: 1.5;
    color: #60594f;
    margin: 0;
}

/* Related Products Discovery */
.pdp-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.pdp-sticky-bar {
    display: none !important;
}

/* Full-Screen Lightbox Zoom Modal */
.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(28, 27, 24, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pdp-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.pdp-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #f8f4ec;
    font-size: 38px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    z-index: 1210;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pdp-lightbox__close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.pdp-lightbox__viewport {
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.pdp-lightbox__hint {
    color: #d7cdbd;
    font-size: 12px;
    margin-top: 16px;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Responsive PDP Mobile Adjustments */
@media (max-width: 760px) {
    .pdp-header {
        height: 68px;
    }
    .pdp-main-nav {
        display: none;
    }
    .pdp-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pdp-gallery {
        position: static;
    }
    .pdp-title {
        font-size: 26px;
    }
    .pdp-price {
        font-size: 22px;
    }
    .pdp-loupe {
        display: none !important;
    }
    .pdp-image-viewport {
        cursor: pointer;
    }
}
