/* =====================================================================
   PRODUCT PAGE REDESIGN — append to the bottom of assets/css/single.css
   Uses the same CSS variables already defined in head.php
   (--primary-color, --brand-yellow, --brand-black, --text-color, etc.)
   ===================================================================== */

/* ---------- Breadcrumb ---------- */
.pdp-breadcrumb{
    background: #f4f4f4;
    padding: 10px 0;
    font-size: 13px;
}
.pdp-breadcrumb .container-xl{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pdp-breadcrumb a{
    color: #555;
    text-decoration: none;
}
.pdp-breadcrumb a:hover{ color: var(--brand-black); }
.pdp-breadcrumb .sep{ color:#9a9a9a; }
.pdp-breadcrumb .current{
    color: var(--brand-black);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
}

/* ---------- Top grid layout ---------- */
.pdp-top{ padding-top: 18px; }
.pdp-col-gallery{ position: relative; }
.pdp-col-info{ padding-top: 4px; }
.pdp-col-buy{ padding-top: 4px; }

/* Floating share/wishlist icons over the main image */
.pdp-media-actions{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdp-media-actions button{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-black);
    cursor: pointer;
}
.pdp-media-actions button:hover{ background: var(--brand-yellow); }
.pdp-media-actions button.active{ color: #e0245e; }

/* ---------- Middle info column ---------- */
.pdp-brand-badge{
    display: inline-block;
    background: #f1f1f1;
    color: var(--brand-black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.pdp-title{
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--brand-black);
}
.pdp-meta-row{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* Price + review-count pill */
.pdp-price-row{
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.pdp-price-row .price-current{
    font-size: 24px;
    font-weight: 800;
    color: var(--regular_price_color, var(--brand-black));
}
.pdp-price-row .price-old{
    font-size: 16px;
    color: var(--discount_price_color, #9a9a9a);
    text-decoration: line-through;
}
.pdp-rating-pill{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e7f8ec;
    color: #1c8a44;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}
.pdp-rating-pill i{ font-size: 11px; }

/* Size / variant chip (non-interactive echo of selected value, matches image's "100ML" pill) */
.pdp-size-chip{
    display: inline-block;
    background: #f1f1f1;
    color: var(--brand-black);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

/* Micro-label box: GENDER / SILLAGE / SEASON style small attribute grid */
.pdp-microlabels{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #fff;
}
.pdp-microlabels .ml-item{
    text-align: center;
    padding: 10px 6px;
    border-right: 1px solid #e4e4e4;
}
.pdp-microlabels .ml-item:last-child{ border-right: none; }
.pdp-microlabels .ml-item .ml-label{
    display: block;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #9a9a9a;
    margin-bottom: 6px;
}
.pdp-microlabels .ml-item .ml-value{
    font-size: 15px;
    color: var(--brand-black);
}
.pdp-microlabels .ml-item .ml-value i{ font-size: 15px; }

/* Trust / service strip (reuses your existing home_footers service data) */
.pdp-trust-strip{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.pdp-trust-strip .trust-chip{
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #faf7ec;
    border: 1px solid #eee0ad;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--brand-black);
}
.pdp-trust-strip .trust-chip img{
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ---------- Buy box (right sidebar card) ---------- */
.pdp-buybox{
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    background: #fff;
}
.pdp-buybox .buybox-price{
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 12px;
}
.pdp-buybox .buybox-actions{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.pdp-buybox .btn-buy-now{
    flex: 1;
    background: var(--brand-black);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 10px;
    font-weight: 700;
    font-size: 14px;
}
.pdp-buybox .btn-buy-now:hover{ background: #000; color: var(--brand-yellow); }
.pdp-buybox .btn-add-outline{
    flex: 1;
    background: #fff;
    color: var(--brand-black);
    border: 1.5px solid var(--brand-black);
    border-radius: 8px;
    padding: 11px 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pdp-buybox .btn-add-outline:hover{ background: var(--brand-yellow); border-color: var(--brand-yellow); }
.pdp-sold-by{
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    margin-top: 14px;
    padding-top: 14px;
    font-size: 13px;
}
.pdp-sold-by .sold-by-badge{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--brand-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.pdp-sold-by strong{ color: var(--brand-black); }

/* ---------- Pill / underline tabs (Key Specifications style) ---------- */
.pdp-tabs.nav-tabs{
    border: none !important;
    border-bottom: 1px solid #e6e6e6 !important;
    border-radius: 0 !important;
    gap: 26px;
    padding: 0 !important;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.pdp-tabs.nav-tabs .nav-link{
    border: none !important;
    background: transparent !important;
    color: #8a8a8a !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 12px 0 !important;
    position: relative;
    white-space: nowrap;
}
.pdp-tabs.nav-tabs .nav-link.active{
    color: var(--brand-black) !important;
}
.pdp-tabs.nav-tabs .nav-link.active::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--brand-black);
}

/* ---------- Related / carousel product cards ---------- */
.pdp-section-title{
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 14px;
}
.pdp-carousel-row{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.pdp-carousel-row::-webkit-scrollbar{ height: 6px; }
.pdp-carousel-row::-webkit-scrollbar-thumb{ background: #ddd; border-radius: 4px; }
.pdp-carousel-row > *{
    flex: 0 0 200px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px){
    .pdp-buybox{
        position: sticky;
        bottom: 0;
        z-index: 40;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    }
    .pdp-title{ font-size: 19px; }
    .pdp-microlabels .ml-item .ml-label{ font-size: 9px; }
}

@media (max-width: 575.98px){
    .pdp-trust-strip .trust-chip{ flex: 1 1 100%; }
    .pdp-carousel-row > *{ flex-basis: 160px; }
}
/* ===================== FIX: thumbnail strip rendering as dots ===================== */
/* Kill Bootstrap's default carousel-indicators look (buttons/bars/::before content) */
.carousel-indicators.nav_images{
    position: static !important;
    margin: 0 !important;
    padding: 8px 34px !important;   /* room for the arrow buttons on each side */
    justify-content: flex-start !important;
}
.carousel-indicators.nav_images [data-bs-target]{
    box-sizing: border-box;
    text-indent: 0 !important;      /* Bootstrap hides text via huge negative indent — was hiding your <img> too in some browsers */
    opacity: 1 !important;
    border: none !important;
}
.nav_images img{
    display: block !important;
    height: 85px;
    width: 70px;
    min-width: 70px;
    object-fit: cover;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    opacity: 1 !important;
}
.nav_images img.active{
    border-color: var(--brand-yellow, #F7C600);
}

/* ===================== FIX: thumbnail left/right scroll arrows ===================== */
.slider-wrapper{
    position: relative;
    padding: 0 !important;
}
.slider-wrapper .arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    border: none;
    background: var(--brand-black, #0d0d0d);
    color: var(--brand-yellow, #F7C600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    cursor: pointer;
}
.slider-wrapper .arrow:hover{
    background: var(--brand-yellow, #F7C600);
    color: var(--brand-black, #0d0d0d);
}
.slider-wrapper .left-arrow{ left: 0; }
.slider-wrapper .right-arrow{ right: 0; }

/* ===================== FIX: main image prev/next contrast ===================== */
#product .carousel-control-prev,
#product .carousel-control-next{
    width: 40px;
    height: 40px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(13,13,13,.55);
    border-radius: 50%;
    opacity: 1;
}
#product .carousel-control-prev{ left: 12px; }
#product .carousel-control-next{ right: 12px; }
#product .carousel-control-prev-icon,
#product .carousel-control-next-icon{
    width: 1.1rem;
    height: 1.1rem;
    background-color: transparent;
}
.carousel-indicators [data-bs-target]{
    width: 60px;
    height: 60px;
}