/* =============================================================================
   product-detail.css
   Styles for the product detail page.
   Loaded via @push('styles') in productDetails.blade.php.

   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   Both loaded via <link> tags in @push('styles') — not @import.

   Contents:
     1.  Design tokens
     2.  Base / reset
     3.  Utilities
     4.  Breadcrumb
     5.  Product hero layout (thumbs | image | info)
     6.  Info column (brand, title, rating, price, stock, description)
     7.  Variants
     8.  Actions (qty, cart, buy, wishlist)
     9.  Trust bar
     10. Specs & features tabs
     11. Brand section (banner, split, features grid, stats)
     12. Description slots
     13. Reviews
     14. Related products
     15. Share button & modal
     16. Responsive
============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS
============================================================================= */
:root {
    --green:        #006837;
    --green-dk:     #004f29;
    --green-lt:     #e8f5ee;
    --gold:         #C19A6B;
    --gold-lt:      #faf5ef;
    --dark:         #1a1a1a;
    --mid:          #4a4a4a;
    --muted:        #888;
    --border:       #e8e8e8;
    --bg:           #fafaf8;
    --white:        #fff;
    --radius:       10px;
    --radius-lg:    16px;
    --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md:    0 6px 28px rgba(0, 0, 0, 0.10);
    --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.14);
    --transition:   all 0.22s ease;
}


/* =============================================================================
   2. BASE / RESET
============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--dark);
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =============================================================================
   3. UTILITIES
============================================================================= */

/* Section heading with left accent bar */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.section-label::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--green), var(--gold));
}


/* =============================================================================
   4. BREADCRUMB
============================================================================= */
.pd-bread {
    padding: 14px 0;
    font-size: 13px;
}

.pd-bread a      { color: var(--green); }
.pd-bread .sep   { color: #ccc; margin: 0 6px; }
.pd-bread .cur   { color: var(--muted); }


/* =============================================================================
   5. PRODUCT HERO LAYOUT — thumbs | image | info
============================================================================= */
.pd-hero-grid {
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    grid-template-areas: 'thumbs image info';
    gap: 24px;
    align-items: start;
    padding: 24px 0 40px;
}

/* --- Thumbnail strip (left column) --- */
.pd-thumbs {
    grid-area: thumbs;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
}

.pd-thumbs::-webkit-scrollbar {
    display: none;
}

.pd-thumb {
    width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.pd-thumb:hover  { border-color: var(--gold); }
.pd-thumb.active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

/* --- Main image column --- */
.pd-image-col {
    grid-area: image;
    position: sticky;
    top: 80px;
}

.pd-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
    position: relative;
    cursor: crosshair;
}

.pd-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pd-image-box:hover img {
    transform: scale(1.05);
}

/* "Hover to zoom" tooltip */
.pd-zoom-tip {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 99px;
    pointer-events: none;
}

/* Zoom result box (appears on mousemove) */
#zoomResult {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border: 3px solid #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    background-repeat: no-repeat;
    display: none;
    z-index: 9999;
    border-radius: 12px;
    pointer-events: none;
}


/* =============================================================================
   5b. MOBILE SWIPE GALLERY
   Hidden on md+ (Bootstrap d-md-none on the element).
   Uses CSS scroll-snap — no JS library needed.
   Dot indicators sync on scroll via JS (mobileScrollTo in blade).
============================================================================= */

/* Outer wrapper — full width, no overflow */
.pd-mobile-gallery {
    width: 100%;
    position: relative;
    background: var(--white);
}

/* Horizontal scroll track */
.pd-mobile-track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.pd-mobile-track::-webkit-scrollbar {
    display: none;
}

/* Each slide — full width of the track */
.pd-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    background: var(--white);
    overflow: hidden;
}

.pd-mobile-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dot indicators */
.pd-mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 6px;
}

.pd-mobile-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.pd-mobile-dot.active {
    background: var(--green);
    transform: scale(1.3);
}


/* =============================================================================
   6. INFO COLUMN
============================================================================= */
.pd-info-col { grid-area: info; }

.pd-brand-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
}

.pd-product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Rating row */
.pd-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pd-stars         { color: var(--gold); font-size: 13px; }
.pd-rating-txt    { font-size: 13px; color: var(--muted); }
.pd-rating-txt a  { color: var(--green); font-weight: 500; }

.pd-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* Price block */
.pd-price-block { margin-bottom: 10px; }

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.pd-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.pd-mrp {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.pd-save {
    background: linear-gradient(135deg, var(--green), var(--gold));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}

.pd-tax { font-size: 12px; color: var(--muted); }

/* Stock pill */
.pd-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.pd-stock-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-stock-pill.in         { background: var(--green-lt); color: var(--green); }
.pd-stock-pill.in::before { background: var(--green); }

.pd-stock-pill.low         { background: #fff3e0; color: #e65100; }
.pd-stock-pill.low::before { background: #e65100; }

.pd-stock-pill.out         { background: #ffebee; color: #c62828; }
.pd-stock-pill.out::before { background: #c62828; }

/* Short description */
.pd-short-desc {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.75;
    margin-bottom: 16px;
}


/* =============================================================================
   7. VARIANTS
============================================================================= */
.pd-variant-group { margin-bottom: 12px; }

.pd-variant-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mid);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-variant-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-option {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.variant-option:hover   { border-color: var(--gold); }

.variant-option.active  {
    border-color: var(--green);
    background: var(--green-lt);
    color: var(--green);
    font-weight: 600;
}

.variant-option:disabled,
.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =============================================================================
   8. ACTIONS — qty / add to cart / buy now / wishlist
============================================================================= */
.pd-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

/* Wrapper divs for each action group — pass through flex sizing */
.pd-action-cart,
.pd-action-buy,
.pd-action-wish {
    display: contents; /* transparent to flex layout — children act as direct flex items */
}

/* Quantity stepper */
.pd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    flex-shrink: 0;
}

.pd-qty button {
    width: 38px;
    height: 44px;
    border: none;
    background: none;
    font-size: 19px;
    cursor: pointer;
    color: var(--mid);
    transition: background 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-qty button:hover { background: var(--bg); }

.pd-qty span {
    width: 38px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

/* Add to Cart + Buy Now shared base */
.btn-cart,
.btn-buy {
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--transition);
    white-space: nowrap;
    padding: 0 20px;
    flex: 1;
    min-width: 130px;
}

.btn-cart {
    background: var(--green);
    color: #fff !important;
    border: none;
}

.btn-cart:hover {
    background: var(--green-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 104, 55, 0.28);
}

.btn-buy {
    background: var(--white);
    color: var(--gold);
    border: 1.5px solid var(--gold);
}

.btn-buy:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-1px);
}

/* Wishlist button */
.btn-wish {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--muted);
    transition: var(--transition);
}

.btn-wish:hover {
    border-color: #e53935;
    color: #e53935;
    background: #fff5f5;
}


/* =============================================================================
   9. TRUST BAR — Free Delivery / Secure Pay / Easy Returns
============================================================================= */
.pd-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 14px;
    background: var(--white);
}

.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mid);
    text-align: center;
    border-right: 1px solid var(--border);
}

.pd-trust-item:last-child { border-right: none; }

.pd-trust-item i {
    font-size: 16px;
    color: var(--green);
    margin-bottom: 3px;
}


/* =============================================================================
   10. SPECS & FEATURES TABS
============================================================================= */
.pd-tabs-wrap {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.pd-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
}

.pd-tab-btn {
    padding: 8px 18px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.pd-tab-btn.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.pd-tab-pane        { display: none; }
.pd-tab-pane.active { display: block; }

/* Specs table */
.pd-spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 13.5px;
}

.pd-spec-table thead tr {
    background: linear-gradient(90deg, #009688, #00bfa5);
}

.pd-spec-table thead th {
    padding: 10px 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pd-spec-table thead th:first-child {
    width: 38%;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.pd-spec-table tbody tr            { border-bottom: 1px solid var(--border); }
.pd-spec-table tbody tr:last-child { border-bottom: none; }
.pd-spec-table tbody tr:hover      { background: #f0faf9; }

.pd-spec-table td { padding: 10px 16px; vertical-align: middle; }

.pd-spec-table td.spec-k {
    font-weight: 600;
    color: #2e6b5e;
    background: #f5fbfa;
    border-right: 1px solid var(--border);
}

.pd-spec-table td.spec-v { color: var(--dark); }

/* Specs grid (alternative layout for raw HTML specs) */
.pd-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.pd-spec-row { display: contents; }

.pd-spec-row > div {
    padding: 10px 13px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.pd-spec-row > div:nth-child(even) { border-right: none; }
.pd-spec-row:last-child > div      { border-bottom: none; }

.pd-spec-k { font-weight: 600; color: var(--mid); background: var(--bg); }
.pd-spec-v { color: var(--dark); }

/* Features list */
.pd-feat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pd-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px;
    font-size: 13px;
    color: var(--mid);
}

.pd-feat-item i {
    color: var(--green);
    margin-top: 1px;
    flex-shrink: 0;
}


/* =============================================================================
   11. BRAND SECTION
       — hero banner | split panels | features grid | stats banner
============================================================================= */
.pd-brand-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 56px;
}

.pd-brand-hdr {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 24px 0;
}

/* Full-width hero banner */
.pd-hero-banner {
    width: 100%;
    aspect-ratio: 8 / 3;
    position: relative;
    overflow: hidden;
    background: #0a2e1c;
}

.pd-hero-banner picture,
.pd-hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pd-hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
        rgba(10, 46, 28, 0.55) 0%,
        rgba(10, 46, 28, 0.20) 60%,
        transparent 100%
    );
}

/* Split panel (image | text) */
.pd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.pd-split-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--green-lt);
    min-height: 0;
}

.pd-split-img picture,
.pd-split-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pd-split-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.pd-split-body.dk                   { background: #0a2e1c; }
.pd-split-body.dk .pd-split-tag     { color: var(--gold); }
.pd-split-body.dk .pd-split-title   { color: #fff; }
.pd-split-body.dk .pd-split-text    { color: rgba(255, 255, 255, 0.65); }

.pd-split-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}

.pd-split-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 12px;
}

.pd-split-text {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.75;
    margin-bottom: 18px;
}

.pd-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--mid);
}

.pd-check i  { color: var(--green); font-size: 12px; flex-shrink: 0; }
.pd-check.lt { color: rgba(255, 255, 255, 0.75); }
.pd-check.lt i { color: var(--gold); }

/* Features zone */
.pd-feats-zone {
    background: #f3f7f3;
    padding: 52px 0;
    border-top: 1px solid var(--border);
}

.pd-feats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.pd-feats-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.pd-feats-sub {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

.pd-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pd-feat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.pd-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pd-feat-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--green-lt), var(--gold-lt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    overflow: hidden;
    position: relative;
}

.pd-feat-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-feat-card-body { padding: 12px 10px; }
.pd-feat-card-ttl  { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.pd-feat-card-dsc  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Stats banner */
.pd-stats-banner {
    background: linear-gradient(135deg, #0a2e1c 0%, #1a5c38 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 52px 0;
}

.pd-stats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pd-stats-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.pd-stats-text h3 span { color: var(--gold); }

.pd-stats-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.pd-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pd-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.pd-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.pd-stat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}




/* -------------------------------- */
.pd-desc-section {
  padding: 80px 20px;
  background: #ffffff;
}

.pd-feats-inner {
  max-width: 1100px;
  margin: auto;
}

.pd-feats-header {
  text-align: center;
  margin-bottom: 50px;
}

.pd-feats-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pd-feats-sub {
  color: #6b7280;
  font-size: 16px;
}

/* GRID */
.pd-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD */
.pd-feat-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: #f9fafb;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* subtle hover lift */
.pd-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* micro glow effect */
.pd-feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,0,0,0.03), transparent);
  opacity: 0;
  transition: 0.3s;
}

.pd-feat-card:hover::after {
  opacity: 1;
}

/* ICON */
.pd-feat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: 0.3s ease;
}

.pd-feat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* ICON COLORS */
.bg-green {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}

.bg-blue {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}

.bg-pink {
  background: rgba(236,72,153,0.12);
  color: #ec4899;
}

.bg-orange {
  background: rgba(249,115,22,0.12);
  color: #f97316;
}

/* ICON HOVER MICRO ANIMATION */
.pd-feat-card:hover .pd-feat-icon {
  transform: scale(1.1) rotate(3deg);
}

/* TEXT */
.pd-feat-card-ttl {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

.pd-feat-card-dsc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .pd-feat-grid {
    grid-template-columns: 1fr;
  }
}


















/* =============================================================================
   12. DESCRIPTION SLOTS
============================================================================= */
.pd-desc-section {
    max-width: 1320px;
    margin: 52px auto 0;
    padding: 0 24px;
}



.pd-desc-slot {
    width: 100%;
    padding: 10px;
    aspect-ratio: 8 / 3;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--green-lt), var(--gold-lt));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.pd-desc-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pd-desc-slot picture,
.pd-desc-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =============================================================================
   13. REVIEWS
============================================================================= */
.pd-reviews-section {
    max-width: 1320px;
    margin: 52px auto 0;
    padding: 0 24px;
}

.pd-reviews-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

/* Summary panel */
.pd-rv-summary {
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 24px;
}

.pd-rv-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.pd-rv-stars { color: var(--gold); font-size: 1.3rem; margin: 4px 0; }
.pd-rv-meta  { font-size: 13px; color: var(--muted); }

/* Rating bars */
.pd-bars-wrap { margin-top: 18px; }

.pd-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 12px;
}

.pd-bar-lbl {
    width: 64px;
    text-align: right;
    color: var(--mid);
    white-space: nowrap;
}

.pd-bar-track {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 99px;
    overflow: hidden;
}

.pd-bar-fill {
    height: 100%;
    border-radius: 99px;
}

.pd-bar-cnt {
    width: 32px;
    color: var(--muted);
    font-size: 11px;
}

/* Review cards */
.pd-rv-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.pd-rv-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.pd-rv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pd-rv-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--gold));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-rv-nm  { font-size: 13px; font-weight: 600; color: var(--dark); }
.pd-rv-dt  { font-size: 11px; color: var(--muted); }
.pd-rv-st  { margin-left: auto; color: var(--gold); font-size: 11px; }
.pd-rv-txt { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 8px; }

.pd-rv-img {
    width: 88px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}


/* =============================================================================
   14. RELATED PRODUCTS
============================================================================= */
.pd-related-section {
    background: var(--bg);
    padding: 48px 0;
    margin-top: 52px;
}

.pd-related-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Product card image wrapper (used by product-card.blade.php) */
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =============================================================================
   15. SHARE BUTTON & MODAL
============================================================================= */
.pd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    background: var(--white);
    color: var(--mid);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    margin-left: auto;
    flex-shrink: 0;
}

.pd-share-btn i { font-size: 13px; transition: var(--transition); }

.pd-share-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-lt);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 104, 55, 0.12);
}

.pd-share-btn:hover i { transform: rotate(-10deg) scale(1.15); }
.pd-share-btn:active  { transform: translateY(0); }

/* Overlay backdrop */
.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.share-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Modal card */
.share-modal {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    transform: translateY(16px) scale(0.97);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.22s ease;
    opacity: 0;
    position: relative;
}

.share-overlay.open .share-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.share-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.share-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.share-modal-close:hover {
    background: #ebebeb;
    color: var(--dark);
}

/* Copy URL row */
.share-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 4px 4px 4px 12px;
    margin-bottom: 22px;
    transition: border-color 0.18s;
}

.share-copy-row:focus-within { border-color: var(--green); }

.share-copy-url {
    flex: 1;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    border: none;
    outline: none;
    cursor: default;
    user-select: all;
    min-width: 0;
}

.share-copy-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
}

.share-copy-btn:hover  { background: var(--green-dk); }
.share-copy-btn.copied { background: #2e7d32; pointer-events: none; }

/* Divider */
.share-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.share-divider::before,
.share-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Platform buttons */
.share-platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: var(--transition);
}

.share-platform-btn:hover  { transform: translateY(-4px); }
.share-platform-btn:active { transform: translateY(-1px); }

.share-platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.share-platform-btn:hover .share-platform-icon {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.share-platform-icon.wa { background: linear-gradient(135deg, #25D366, #1DA851); }
.share-platform-icon.fb { background: linear-gradient(135deg, #1877F2, #0d5fd4); }
.share-platform-icon.tw { background: linear-gradient(135deg, #1a1a1a, #333); }
.share-platform-icon.tg { background: linear-gradient(135deg, #229ED9, #1a86c0); }

.share-platform-lbl {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}


/* =============================================================================
   16. RESPONSIVE
   Breakpoints:
     ≤1199px  Large desktop  — 3-col related grid → 3-col
     ≤1023px  Tablet         — hero switches to 2-col (image|info), thumbs go below
     ≤767px   Mobile         — hero stacks fully, actions reorganise
     ≤480px   Small mobile   — further font + spacing reduction
============================================================================= */


/* -----------------------------------------------------------------------------
   Large desktop (≤1199px)
   Minor adjustments — still fully 3-col hero layout
----------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .pd-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pd-stats-inner {
        gap: 36px;
    }
}


/* -----------------------------------------------------------------------------
   Tablet (≤1023px)
   Hero switches from 3-col [thumbs|image|info] to 2-col [image+thumbs | info].
   Thumbs move below the image in a horizontal scrollable row.
   Info column now has enough width to breathe.
----------------------------------------------------------------------------- */
@media (max-width: 1023px) {

    /* Hero: image+thumbs left half, info right half */
    .pd-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'image info'
            'thumbs info';
        grid-template-rows: auto 1fr;
        gap: 20px;
        align-items: start;
        padding: 20px 0 32px;
    }

    /* Thumbs: horizontal scroll row below image */
    .pd-thumbs {
        grid-area: thumbs;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        gap: 8px;
        padding: 0;
        margin-top: 8px;
    }

    .pd-thumb {
        width: 56px;
        flex-shrink: 0;
    }

    /* Image: no longer sticky, takes its grid cell */
    .pd-image-col {
        position: static;
    }

    /* Spec & feature grid adjustments */
    .pd-feat-grid    { grid-template-columns: repeat(2, 1fr); }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }

    /* Stats: stack text above numbers */
    .pd-stats-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Reviews: summary above cards */
    .pd-reviews-body {
        grid-template-columns: 1fr;
    }

    .pd-rv-summary {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 18px;
    }

    /* Brand split: stack image above text */
    .pd-split {
        grid-template-columns: 1fr;
    }

    .pd-split-img  { aspect-ratio: 16 / 7; }
    .pd-split-body { padding: 36px 32px; }

    /* Hero banner: wider aspect ratio */
    .pd-hero-banner { aspect-ratio: 16 / 7; }
}


/* -----------------------------------------------------------------------------
   Mobile (≤767px)
   Full vertical stack. Mobile swipe gallery replaces desktop image+thumbs.
   Actions: 2×2 grid — [qty][cart] / [buy][wish] — all equal width.
   Image stays 1:1 aspect ratio same as desktop.
----------------------------------------------------------------------------- */
@media (max-width: 767px) {

    /* Hero: full vertical stack */
    .pd-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* Order: 1=image col (has swipe gallery), 2=thumbs (hidden — swipe gallery replaces them), 3=info */
    .pd-image-col { order: 1; position: static; }
    .pd-thumbs    { display: none; } /* hidden — mobile gallery has its own dots */
    .pd-info-col  { order: 3; padding: 20px 16px 28px; background: var(--white); }

    /* Desktop image box hidden on mobile (swipe gallery shows instead) */
    /* d-none d-md-flex handles this via Bootstrap */

    /* Typography scale-down */
    .pd-product-title { font-size: 1.3rem; }
    .pd-price         { font-size: 1.6rem; }

    /* ── Actions: 2×2 equal grid ─────────────────────────────
       [qty       ] [Add to Cart]
       [Buy Now   ] [♥ Wishlist ]
    ─────────────────────────────────────────────────────── */
    .pd-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Reset wrapper divs — they become grid items (not display:contents on mobile) */
    .pd-action-cart,
    .pd-action-buy,
    .pd-action-wish {
        display: flex;
    }

    /* Qty: col 1, row 1 */
    .pd-qty {
        width: 100%;
        justify-content: center;
    }

    /* Cart: col 2, row 1 */
    .pd-action-cart { grid-column: 2; grid-row: 1; }
    .btn-cart       { width: 100%; flex: unset; min-width: 0; }

    /* Buy Now: col 1, row 2 */
    .pd-action-buy  { grid-column: 1; grid-row: 2; }
    .btn-buy        { width: 100%; flex: 1; min-width: 0; }

    /* Wishlist: col 2, row 2 */
    .pd-action-wish { grid-column: 2; grid-row: 2; justify-content: center; }
    .btn-wish       { width: 100%; border-radius: 8px; }

    /* Trust bar */
    .pd-trust-item { font-size: 10px; padding: 8px 4px; }

    /* Specs */
    .pd-feat-list              { grid-template-columns: 1fr; }
    .pd-spec-grid              { grid-template-columns: 1fr; }
    .pd-spec-row > div         { border-right: none !important; }
    .pd-spec-table thead th:first-child { width: auto; }

    /* Brand section */
    .pd-hero-banner { aspect-ratio: 4 / 5; }
    .pd-split       { grid-template-columns: 1fr; }
    .pd-split-img   { aspect-ratio: 1 / 1; }
    .pd-split-body  { padding: 28px 20px; }
    .pd-split-title { font-size: 1.3rem; }
    .pd-feat-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Stats */
    .pd-stats-banner { padding: 36px 0; }
    .pd-stat-grid    { grid-template-columns: repeat(2, 1fr); }

    /* Description + reviews + related */
    .pd-desc-slot    { aspect-ratio: 4 / 5; }
    .pd-rv-cards     { max-height: none; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Section padding on mobile */
    .pd-brand-hdr       { padding: 24px 16px 0; }
    .pd-desc-section    { padding: 0; margin-top: 36px; }
    .pd-desc-section .section-label { padding: 0 16px; }
    .pd-reviews-section { padding: 0 16px; margin-top: 36px; }
    .pd-related-inner   { padding: 0 16px; }
    .pd-feats-inner     { padding: 0 16px; }
    .pd-stats-inner     { padding: 0 16px; }

    /* Share modal: bottom sheet */
    .share-overlay                   { align-items: flex-end; }
    .share-modal                     { border-radius: 20px 20px 0 0; max-width: 100%; padding: 20px 18px 36px; transform: translateY(100%); }
    .share-overlay.open .share-modal { transform: translateY(0); }
    .share-modal::before             { content: ''; display: block; width: 36px; height: 4px; background: #ddd; border-radius: 99px; margin: 0 auto 18px; }
    .pd-share-btn                    { padding: 5px 11px; font-size: 11px; }
}


/* -----------------------------------------------------------------------------
   Small mobile (≤480px)
   Minor font + spacing reduction.
----------------------------------------------------------------------------- */
@media (max-width: 480px) {

    .pd-product-title { font-size: 1.2rem; }
    .pd-price         { font-size: 1.5rem; }

    /* Brand section */
    .pd-hero-banner   { aspect-ratio: 3 / 4; }
    .pd-feat-grid     { grid-template-columns: 1fr 1fr; }
    .pd-related-grid  { grid-template-columns: 1fr 1fr; }
    .pd-stats-text h3 { font-size: 1.2rem; }
    .pd-trust         { grid-template-columns: repeat(3, 1fr); }

    /* Variant options: bigger touch targets */
    .variant-option {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Spec table: smaller font */
    .pd-spec-table    { font-size: 12px; }
    .pd-spec-table td { padding: 8px 10px; }
}








.pd-add-review-wrap {
    margin-top: 20px;
}

.pd-add-review-btn {
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.pd-review-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.pd-review-overlay.active {
    display: flex;
}

.pd-review-modal {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
}

.pd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-review-stars i {
    cursor: pointer;
    color: #ccc;
    font-size: 20px;
}

.pd-review-stars i.active {
    color: gold;
}

/* OVERLAY */
.pd-review-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.pd-review-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL */
.pd-review-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);

    transform: translateY(30px) scale(0.95);
    transition: 0.3s ease;
}

.pd-review-overlay.active .pd-review-modal {
    transform: translateY(0) scale(1);
}

/* HEADER */
.pd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pd-review-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.pd-review-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* GROUP */
.pd-review-group {
    margin-bottom: 18px;
}

.pd-review-group.center {
    text-align: center;
}

/* LABEL */
.pd-review-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

/* STARS */
.pd-review-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 26px;
    cursor: pointer;
}

.pd-review-stars i {
    color: #ddd;
    transition: 0.2s;
}

.pd-review-stars i.active,
.pd-review-stars i:hover,
.pd-review-stars i:hover ~ i {
    color: #f5a623;
}

/* Rating text */
.pd-rating-text {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

/* TEXTAREA */
.pd-review-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    transition: 0.2s;
}

.pd-review-group textarea:focus {
    border-color: #000;
    outline: none;
}

/* BUTTON */
.pd-review-submit {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.pd-review-submit:hover {
    background: #333;
}

/* ── Review empty state ──────────────────────────────── */
.pd-rv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--muted);
}
.pd-rv-empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: .5; }
.pd-rv-empty-txt  { font-size: 15px; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.pd-rv-empty-sub  { font-size: 13px; }

/* ── Write Review button — centered ─────────────────── */
.pd-add-review-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ── Review modal input fixes ───────────────────────── */
.pd-review-group input[type="text"]:focus,
.pd-review-group textarea:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(var(--green-rgb, 0,128,96), .12);
}
.pd-review-stars i {
    cursor: pointer;
    transition: color .15s, transform .15s;
}
.pd-review-stars i:hover,
.pd-review-stars i.active {
    color: var(--gold);
    transform: scale(1.15);
}