/* =======================================================================
   Product Detail Page
   Reuses the --pcl-* design tokens and .pcl-product-card styles already
   defined in product-category.css (loaded before this file) so both
   pages share one visual language. This file only adds page-specific
   pieces: gallery/thumbnails, lightbox, info panel, sliders.
   ======================================================================= */

/* =======================================================================
   The theme wraps every page in body .page { overflow:hidden; } (main.css)
   to clip decorative shapes elsewhere on the site. Any ancestor with a
   non-visible overflow (on either axis) blocks position:sticky on its
   descendants, which breaks the sticky gallery below. This page has no
   decorative bleed elements that rely on that clipping, so open it up
   fully here - scoped to this page only via this stylesheet.
   ======================================================================= */

body .page{
    overflow:visible !important;
}

body .site-main{
    overflow:visible;
}

/* =======================================================================
   Section shell
   ======================================================================= */

.pdp-section{
    padding:50px 0 70px;
    background:#fff;
    font-family:var(--pcl-font-body);
}

/* =======================================================================
   Gallery - sticks in place while the info column scrolls past it
   ======================================================================= */

.pdp-gallery{
    position:sticky;
    top:50px;
}

@media(max-width:991px){
    .pdp-gallery{
        position:static;
    }
}

.pdp-main-image{
    position:relative;
    overflow:hidden;
    border-radius:var(--pcl-radius);
    border:1px solid var(--pcl-border);
    box-shadow:var(--pcl-shadow);
    aspect-ratio:4/3.4;
    cursor:zoom-in;
    background:var(--pcl-surface);
}

.pdp-main-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.pdp-main-image:hover img{
    transform:scale(1.08);
}

.pdp-zoom-hint{
    position:absolute;
    right:16px;
    bottom:16px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(20,18,14,.75);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    backdrop-filter:blur(2px);
    transition:.3s;
}

.pdp-main-image:hover .pdp-zoom-hint{
    background:var(--pcl-gold);
}

.pdp-thumbs{
    margin-top:16px;
}

.pdp-thumbs .slick-list{
    margin:0 -7px;
}

.pdp-thumb-item{
    padding:0 7px;
}

.pdp-thumb-item img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:10px;
    border:2px solid var(--pcl-border);
    cursor:pointer;
    transition:.25s;
}

.pdp-thumb-item:hover img{
    border-color:var(--pcl-gold);
}

.pdp-thumb-item.active img{
    border-color:var(--pcl-gold);
    box-shadow:0 0 0 1px var(--pcl-gold);
}

.pdp-thumbs .slick-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:1px solid var(--pcl-border);
    border-radius:50%;
    background:#fff;
    color:var(--pcl-ink);
    z-index:2;
    cursor:pointer;
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:0;
}

.pdp-thumbs .slick-prev{ left:-14px; }
.pdp-thumbs .slick-next{ right:-14px; }

.pdp-thumbs .slick-prev:before,
.pdp-thumbs .slick-next:before{
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:12px;
    color:var(--pcl-ink);
}

.pdp-thumbs .slick-prev:before{ content:"\f104"; }
.pdp-thumbs .slick-next:before{ content:"\f105"; }

.pdp-thumbs .slick-arrow:hover{
    background:var(--pcl-gold);
    border-color:var(--pcl-gold);
}

.pdp-thumbs .slick-arrow:hover:before{
    color:#fff;
}

.pdp-thumbs .slick-disabled{
    opacity:.35;
    pointer-events:none;
}

/* =======================================================================
   Info panel
   ======================================================================= */

.pdp-info{
    font-family:var(--pcl-font-body);
}

.pdp-category-tag{
    display:inline-block;
    color:var(--pcl-gold);
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    text-decoration:none;
    margin-bottom:12px;
}

.pdp-category-tag:hover{
    color:var(--pcl-gold-dark);
}

.pdp-title{
    font-family:var(--pcl-font-heading);
    font-size:38px;
    font-weight:600;
    color:var(--pcl-ink);
    line-height:1.2;
    margin:0 0 14px;
}

.pdp-availability{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#f2f8f0;
    color:#3f8a3f;
    font-size:13px;
    font-weight:600;
    padding:6px 14px;
    border-radius:50px;
    margin-bottom:20px;
}

.pdp-desc p{
    font-size:15.5px;
    line-height:1.85;
    color:#555;
    margin-bottom:16px;
}

.pdp-specs{
    border-top:1px solid var(--pcl-border);
    margin:24px 0;
}

.pdp-spec-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:12px 0;
    border-bottom:1px solid var(--pcl-border);
    font-size:14.5px;
}

.pdp-spec-label{
    color:var(--pcl-muted);
    font-weight:500;
}

.pdp-spec-value{
    color:var(--pcl-ink);
    font-weight:600;
    text-align:right;
}

.pdp-order-box{
    background:var(--pcl-surface);
    border:1px solid var(--pcl-border);
    border-radius:var(--pcl-radius);
    padding:22px;
    margin-bottom:24px;
}

.pdp-qty-row{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.pdp-order-note{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:12.5px;
    line-height:1.6;
    color:var(--pcl-muted);
    margin:16px 0 0;
}

.pdp-order-note i{
    color:var(--pcl-gold);
    margin-top:2px;
    flex-shrink:0;
}

.pdp-qty-stepper{
    display:inline-flex;
    align-items:center;
    border:1px solid var(--pcl-border);
    border-radius:50px;
    overflow:hidden;
    flex-shrink:0;
}

.pdp-qty-btn{
    width:44px;
    height:50px;
    border:none;
    background:#fff;
    color:var(--pcl-ink);
    cursor:pointer;
    transition:.25s;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
}

.pdp-qty-btn:hover{
    background:var(--pcl-gold);
    color:#fff;
}

.pdp-qty-input{
    width:50px;
    height:50px;
    border:none;
    border-left:1px solid var(--pcl-border);
    border-right:1px solid var(--pcl-border);
    text-align:center;
    font-size:15px;
    font-weight:600;
    color:var(--pcl-ink);
    -moz-appearance:textfield;
}

.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.pdp-cta-btn{
    flex:1;
    min-width:220px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    height:50px;
    padding:0 30px;
    border:none;
    border-radius:50px;
    background:var(--pcl-gold);
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 8px 20px rgba(178,144,20,.25);
}

.pdp-cta-btn:hover{
    background:var(--pcl-gold-dark);
}

.pdp-cta-btn.pdp-added{
    background:#3f8a3f;
}

.pdp-trust-row{
    display:flex;
    flex-wrap:wrap;
    gap:18px 28px;
    padding:20px 0;
    border-top:1px solid var(--pcl-border);
    margin-bottom:20px;
}

.pdp-trust-item{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13.5px;
    font-weight:500;
    color:#444;
}

.pdp-trust-item i{
    color:var(--pcl-gold);
    font-size:17px;
}

.pdp-share-row{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    font-size:13.5px;
    color:var(--pcl-muted);
    font-weight:600;
}

.pdp-share-row a{
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid var(--pcl-border);
    color:var(--pcl-ink);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    transition:.25s;
}

.pdp-share-row a:hover{
    background:var(--pcl-gold);
    border-color:var(--pcl-gold);
    color:#fff;
}

.pdp-contact-note{
    font-size:13.5px;
    color:var(--pcl-muted);
}

.pdp-contact-note i{
    color:var(--pcl-gold);
    margin-right:8px;
}

.pdp-contact-note a{
    color:var(--pcl-ink);
    font-weight:600;
    text-decoration:none;
}

.pdp-contact-note a:hover{
    color:var(--pcl-gold);
}

/* =======================================================================
   Lightbox
   ======================================================================= */

.pdp-lightbox .modal-content{
    background:transparent;
    border:none;
    box-shadow:none;
}

.pdp-lightbox img{
    width:100%;
    border-radius:var(--pcl-radius);
}

.pdp-lightbox .btn-close{
    position:absolute;
    top:-42px;
    right:0;
    background-color:#fff;
    border-radius:50%;
    opacity:1;
    padding:10px;
    z-index:2;
}

/* =======================================================================
   Related / Recently viewed sliders
   ======================================================================= */

.pdp-related-section{
    padding:50px 0;
    background:var(--pcl-surface);
    font-family:var(--pcl-font-body);
}

.pdp-recent-section{
    background:#fff;
}

.pdp-section-heading{
    text-align:center;
    margin-bottom:40px;
}

.pdp-section-heading span{
    display:inline-block;
    color:var(--pcl-gold);
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.pdp-section-heading h2{
    font-family:var(--pcl-font-heading);
    font-size:36px;
    font-weight:600;
    color:var(--pcl-ink);
    margin:0;
}

.pdp-card-slider .slick-list{
    margin:0 -14px;
    padding:6px 0 10px;
}

.pdp-card-slider .slick-track{
    display:flex !important;
}

.pdp-card-slider .slick-slide{
    box-sizing:border-box;
    padding:0 14px;
    height:auto;
}

.pdp-card-slider .slick-slide > div{
    height:100%;
}

.pdp-card-slider .slick-slide .pcl-product-card{
    margin:0;
    height:100%;
}

.pdp-card-slider .slick-arrow{
    position:absolute;
    top:-64px;
    width:42px;
    height:42px;
    border:1px solid var(--pcl-border);
    border-radius:50%;
    background:#fff;
    color:var(--pcl-ink);
    z-index:2;
    cursor:pointer;
    display:flex !important;
    align-items:center;
    justify-content:center;
    transition:.25s;
}

.pdp-card-slider .slick-prev{ right:56px; }
.pdp-card-slider .slick-next{ right:0; }

.pdp-card-slider .slick-prev:before,
.pdp-card-slider .slick-next:before{
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:14px;
    color:inherit;
}

.pdp-card-slider .slick-prev:before{ content:"\f104"; }
.pdp-card-slider .slick-next:before{ content:"\f105"; }

.pdp-card-slider .slick-arrow:hover{
    background:var(--pcl-gold);
    border-color:var(--pcl-gold);
    color:#fff;
}

.pdp-card-slider .slick-disabled{
    opacity:.35;
    pointer-events:none;
}

/* =======================================================================
   Responsive
   ======================================================================= */

@media(max-width:991px){

    .pdp-title{
        font-size:32px;
    }

    .pdp-section-heading h2{
        font-size:30px;
    }

    .pdp-card-slider .slick-arrow{
        top:-56px;
    }

}

@media(max-width:767px){

    .pdp-section{
        padding:24px 0 36px;
    }

    .pdp-main-image{
        aspect-ratio:4/3;
    }

    .pdp-thumbs{
        max-width:none;
    }

    .pdp-category-tag{
        font-size:12px;
    }

    .pdp-title{
        font-size:24px;
        margin-bottom:10px;
    }

    .pdp-desc p{
        font-size:14.5px;
    }

    .pdp-spec-row{
        font-size:13.5px;
        padding:10px 0;
    }

    .pdp-order-box{
        padding:16px;
    }

    .pdp-qty-row{
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .pdp-qty-stepper{
        align-self:flex-start;
    }

    .pdp-cta-btn{
        width:100%;
    }

    .pdp-trust-row{
        flex-direction:column;
        gap:12px;
        padding:16px 0;
    }

    .pdp-share-row{
        flex-wrap:wrap;
    }

    .pdp-related-section{
        padding:32px 0;
    }

    .pdp-section-heading{
        margin-bottom:26px;
    }

    .pdp-section-heading h2{
        font-size:24px;
    }

    .pdp-card-slider .slick-arrow{
        display:none !important;
    }

}



/* =========================================
   Product Detail - Quote Success Modal
   ========================================= */

.pdp-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdp-quote-modal.is-open {
    display: flex;
}

.pdp-quote-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.pdp-quote-modal__content {
    position: relative;
    z-index: 1;
    width: min(505px, calc(100% - 40px));
    background: #ffffff;
    padding: 46px 44px 44px;
    box-sizing: border-box;
}

.pdp-quote-modal__content h2 {
    margin: 0 0 40px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    color: #111111;
}

.pdp-quote-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222222;
    font-size: 30px;
    line-height: 28px;
    font-weight: 300;
    cursor: pointer;
}

.pdp-quote-modal__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pdp-quote-modal__continue,
.pdp-quote-modal__view {
    min-height: 63px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;

    text-decoration: none;
    cursor: pointer;
}

.pdp-quote-modal__continue {
    border: 0;
    background: #f4e4bf;
    color: #222222;
}

.pdp-quote-modal__view {
    border: 1px solid #222222;
    background: #ffffff;
    color: #222222;
}

.pdp-quote-modal__continue:hover,
.pdp-quote-modal__view:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .pdp-quote-modal__content {
        width: calc(100% - 30px);
        padding: 40px 25px 30px;
    }

    .pdp-quote-modal__content h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .pdp-quote-modal__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pdp-quote-modal__continue,
    .pdp-quote-modal__view {
        width: 100%;
    }
}
body.pdp-quote-modal-open {
    overflow: hidden;
}