/* ======================================================================
   Product (PDP) — Cohort 1 (Professional Charcoal)
   Bootstrap-first: breadcrumb / row+col / badge / btn / card / form-control
   come from Bootstrap. This file only carries premium polish + the
   gallery thumb-position mechanics LightSlider doesn't ship.
   ====================================================================== */

/* ---------- Gallery thumb positions ---------- */
.product-1-gallery .lSGallery,
.product-1-gallery .lSPager.lSGallery {
    margin: 12px 0 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-1-gallery-thumb-off .lSGallery,
.product-1-gallery-thumb-off .lSPager.lSGallery { display: none !important; }

/* TOP — thumb strip sits ABOVE main image. Same flex-flip trick;
   force gallery position:relative so column-reverse can reorder. */
.product-1-gallery-thumb-top .lSSlideOuter {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}
.product-1-gallery-thumb-top .lSSlideOuter .lSGallery {
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
}

/* BOTTOM — explicit so admin's default value renders correctly when
   another position was previously set + cleared. */
.product-1-gallery-thumb-bottom .lSSlideOuter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-1-gallery-thumb-bottom .lSSlideOuter .lSGallery {
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
}

/* LEFT / RIGHT — lightSlider creates `.lSSlideOuter` with
   `.lSSlideWrapper` (main) + `.lSPager.lSGallery` (thumbs).
   .lSGallery is position:absolute by default (taken out of flow);
   force position:relative so flex-direction can reorder children. */
.product-1-gallery-thumb-left .lSSlideOuter,
.product-1-gallery-thumb-right .lSSlideOuter {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.product-1-gallery-thumb-left .lSSlideOuter { flex-direction: row-reverse; }
.product-1-gallery-thumb-right .lSSlideOuter { flex-direction: row; }
.product-1-gallery-thumb-left .lSSlideOuter .lSGallery,
.product-1-gallery-thumb-right .lSSlideOuter .lSGallery {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    flex-shrink: 0;
    margin: 0 !important;
    width: 90px;
}
.product-1-gallery-thumb-left .lSSlideOuter .lSSlideWrapper,
.product-1-gallery-thumb-right .lSSlideOuter .lSSlideWrapper {
    flex-grow: 1;
}

.product-1-gallery .lslide img,
.product-1-gallery .lSGallery img {
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.product-1-gallery .lSGallery li.active img {
    outline: 2px solid var(--bs-primary, var(--bs-body-color));
    outline-offset: -2px;
}

/* ---------- Price-cover — cohort cream block, gold left accent ---------- */
.product-1-price-cover {
    background: linear-gradient(135deg,
        rgba(var(--bs-warning-rgb), 0.08),
        var(--bs-secondary-bg, var(--bs-secondary-bg)) 60%);
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--bs-primary);
    box-shadow: 0 2px 6px rgba(var(--bs-primary-rgb), 0.04);
}

/* ---------- Tab anchor links — animated underline ---------- */
.product-1-tab {
    color: var(--bs-secondary-color, var(--bs-secondary-color)) !important;
    border-radius: 0;
    border-bottom: 2px solid transparent !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.product-1-tab:hover,
.product-1-tab:focus {
    color: var(--bs-primary, var(--bs-body-color)) !important;
    border-bottom-color: var(--bs-primary, var(--bs-body-color)) !important;
}

/* ---------- Section heading underline ---------- */
.product-1-section-heading {
    position: relative;
    padding-bottom: 8px;
}
.product-1-section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--bs-primary, var(--bs-body-color));
    border-radius: 999px;
}

/* ---------- Description body — typographic rhythm ---------- */
.product-1-description-body p { margin-bottom: 1rem; }
.product-1-description-body h2,
.product-1-description-body h3,
.product-1-description-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.product-1-description-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }

/* ---------- Tags hover ---------- */
.product-1-tag { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.product-1-tag:hover {
    background: var(--bs-primary, var(--bs-body-color)) !important;
    color: var(--bs-body-bg) !important;
    border-color: var(--bs-primary, var(--bs-body-color)) !important;
}

/* ---------- Related rail — single column items keep card hover lift ---------- */
.product-1-related-list .productlayouts-1-card { box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04); }

/* Sticky only on lg+ — on mobile/tablet the related rail flows naturally so it
   never overlaps the sticky header. z-index 1 keeps it BELOW the header
   (which uses .sticky-top z-index 1020). */
@media (min-width: 992px) {
    .product-1-related {
        position: sticky;
        top: 90px;
        z-index: 1;
    }
}
