/* ==========================================================================
   HAPPYPIP Product Page (PDP) — All section styles
   ==========================================================================
   Prefix: .hp-pdp-
   Dependencies: global.css (tokens), product-card.css (flip cards)
   ========================================================================== */

/* ── Prevent horizontal scroll from full-width breakout sections ── */
body.single-product,
body.single-product #page,
body.single-product #content {
    overflow-x: clip !important;
}

/* ── Layout ── */
.hp-pdp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-pdp-section {
    padding: var(--space-2xl) 0;
}

.hp-pdp-section + .hp-pdp-section {
    border-top: 1px solid var(--border-default);
}

.hp-pdp-section__eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: var(--space-sm);
}

.hp-pdp-section__title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--space-lg);
}

/* ══ SECTION 1 — Hero ══ */
.hp-pdp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0 var(--space-2xl);
    align-items: start;
}

.hp-pdp-hero__gallery {
    position: relative;
}

.hp-pdp-hero__img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-img-placeholder);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hp-pdp-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-pdp-hero__img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-muted);
    opacity: .5;
}

.hp-pdp-hero__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.hp-pdp-hero__badge span {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.hp-pdp-hero__badge .badge--tier {
    color: #fff;
}

.hp-pdp-hero__info {
    padding-top: var(--space-sm);
}

.hp-pdp-hero__name {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.hp-pdp-hero__strain {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hp-pdp-hero__strain span {
    background: #F0E8DC;
    color: var(--text-pill);
    border: 1px solid #E6DCCB;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.hp-pdp-hero__reviews {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-muted);
}

.hp-pdp-hero__stars {
    color: var(--sunset-mid);
    font-size: 16px;
    letter-spacing: 1px;
}

.hp-pdp-hero__price {
    font-family: var(--font-heading);
    margin-bottom: var(--space-lg);
}

.hp-pdp-hero__price strong {
    font-size: 36px;
    font-weight: 700;
    color: var(--price-color);
}

.hp-pdp-hero__price .per-gram {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

.hp-pdp-hero__sizes {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.hp-pdp-size-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-input);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .25s;
}

.hp-pdp-size-btn:hover {
    border-color: var(--sunset-mid) !important;
    color: var(--sunset-text) !important;
    background: transparent !important;
}

.hp-pdp-size-btn.active {
    background: var(--gradient-sunset) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-button) !important;
}

.hp-pdp-size-btn.active:hover {
    background: var(--gradient-sunset-hover) !important;
    color: #fff !important;
}

.hp-pdp-hero__atc {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-sunset);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-button);
    cursor: pointer;
    transition: all .3s;
    margin-bottom: var(--space-md);
}

.hp-pdp-hero__atc:hover {
    background: var(--gradient-sunset-hover);
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-1px);
}

.hp-pdp-hero__loyalty {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--green-mid);
    background: #F2F8F5;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hp-pdp-hero__loyalty strong {
    color: var(--green-dark);
}

/* ══ SECTION — At a Glance (unified) ══ */
/* ── Decorative product image (desktop only) ── */
.hp-pdp-glance {
    position: relative;
}

.hp-pdp-glance::after {
    content: '';
    position: absolute;
    top: 15%;
    right: calc(-1 * ((100vw - 100%) / 2));
    width: calc(((100vw - 100%) / 2) + 320px);
    height: 100%;
    background: url('../images/product-page-image.png') no-repeat center right / contain;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) {
    .hp-pdp-glance::after {
        display: none;
    }
}

.hp-pdp-glance__sub {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-top: 24px;
    margin-bottom: 8px;
}
.hp-pdp-glance__sub:first-of-type { margin-top: 0; }

.hp-pdp-glance__tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hp-pdp-glance__tiles--4col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.hp-pdp-glance__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 80px;
}
.hp-pdp-glance__tile--info {
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.hp-pdp-glance__tile--info:hover {
    border-color: var(--sunset-mid);
}

.hp-pdp-glance__label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.hp-pdp-glance__value {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
}
.hp-pdp-glance__value--mild   { color: var(--green-mid); }
.hp-pdp-glance__value--medium { color: var(--sunset-deep); }
.hp-pdp-glance__value--strong { color: #C0392B; }

/* ── Nose subsection ── */
.hp-pdp-nose {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-pdp-nose__value--mild      { color: var(--green-mid); }
.hp-pdp-nose__value--loud      { color: var(--sunset-deep); }
.hp-pdp-nose__value--very-loud { color: #C0392B; }

.hp-pdp-nose__aromas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-pdp-nose__label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hp-pdp-nose__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Aroma pills use global .hp-aroma-pill classes (global.css) */

/* ── Lab Report Tiles ── */
.hp-pdp-lab__tile {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.hp-pdp-lab__tile:hover {
    border-color: rgba(88, 173, 114, 0.4);
}

.hp-pdp-lab__pass {
    color: var(--color-success) !important;
    font-weight: 700;
}

/* Astra override for lab tile links */
.hp-pdp-glance a.hp-pdp-lab__tile,
.hp-pdp-glance a.hp-pdp-lab__tile:hover,
.hp-pdp-glance a.hp-pdp-lab__tile:visited,
.entry-content a.hp-pdp-lab__tile,
.entry-content a.hp-pdp-lab__tile:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.hp-pdp-meta-card {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.hp-pdp-meta-card__label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hp-pdp-meta-card__value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
}

.hp-pdp-meta-card__value--high {
    color: var(--sunset-deep);
}

/* ══ SECTION 3 — What You'll Feel ══ */
.hp-pdp-feelings__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hp-pdp-feeling {
    padding: 28px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Unique tier+preroll color gradients per feeling card — 80% opacity, accent bar matches */
.hp-pdp-feeling:nth-child(6n+1) { background: linear-gradient(135deg, rgba(91,154,107,0.9), #FFFDF8 85%); }
.hp-pdp-feeling:nth-child(6n+2) { background: linear-gradient(135deg, rgba(212,113,42,0.9), #FFFDF8 85%); }
.hp-pdp-feeling:nth-child(6n+3) { background: linear-gradient(135deg, rgba(123,107,164,0.9), #FFFDF8 85%); }
.hp-pdp-feeling:nth-child(6n+4) { background: linear-gradient(135deg, rgba(192,57,43,0.9), #FFFDF8 85%); }
.hp-pdp-feeling:nth-child(6n+5) { background: linear-gradient(135deg, rgba(90,159,212,0.9), #FFFDF8 85%); }
.hp-pdp-feeling:nth-child(6n+6) { background: linear-gradient(135deg, rgba(168,168,168,0.9), #FFFDF8 85%); }

/* Shared accent bar positioning for all PDP card types */
.hp-pdp-feeling::before,
.hp-pdp-terpene::before,
.hp-pdp-ritual-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.hp-pdp-feeling:nth-child(6n+1)::before { background: #5B9A6B; }
.hp-pdp-feeling:nth-child(6n+2)::before { background: #D4712A; }
.hp-pdp-feeling:nth-child(6n+3)::before { background: #7B6BA4; }
.hp-pdp-feeling:nth-child(6n+4)::before { background: #C0392B; }
.hp-pdp-feeling:nth-child(6n+5)::before { background: #5A9FD4; }
.hp-pdp-feeling:nth-child(6n+6)::before { background: #A8A8A8; }

/* Feeling icons use .hp-icon from global.css */
.hp-pdp-feeling__icon {
    margin-bottom: 12px;
}

.hp-pdp-feeling__label {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.hp-pdp-feeling__text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
}

/* ══ SECTION 4 — Terpene Science ══ */
.hp-pdp-terpenes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.hp-pdp-terpene {
    padding: 20px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

/* Unique tier+preroll color gradients per terpene card — 80% opacity, offset order */
.hp-pdp-terpene:nth-child(6n+1) { background: linear-gradient(145deg, rgba(212,113,42,0.9), #FFFDF8 85%); }
.hp-pdp-terpene:nth-child(6n+2) { background: linear-gradient(145deg, rgba(90,159,212,0.9), #FFFDF8 85%); }
.hp-pdp-terpene:nth-child(6n+3) { background: linear-gradient(145deg, rgba(91,154,107,0.9), #FFFDF8 85%); }
.hp-pdp-terpene:nth-child(6n+4) { background: linear-gradient(145deg, rgba(168,168,168,0.9), #FFFDF8 85%); }
.hp-pdp-terpene:nth-child(6n+5) { background: linear-gradient(145deg, rgba(123,107,164,0.9), #FFFDF8 85%); }
.hp-pdp-terpene:nth-child(6n+6) { background: linear-gradient(145deg, rgba(192,57,43,0.9), #FFFDF8 85%); }

/* Top accent bar per terpene card — matches background color */
.hp-pdp-terpene:nth-child(6n+1)::before { background: #D4712A; }
.hp-pdp-terpene:nth-child(6n+2)::before { background: #5A9FD4; }
.hp-pdp-terpene:nth-child(6n+3)::before { background: #5B9A6B; }
.hp-pdp-terpene:nth-child(6n+4)::before { background: #A8A8A8; }
.hp-pdp-terpene:nth-child(6n+5)::before { background: #7B6BA4; }
.hp-pdp-terpene:nth-child(6n+6)::before { background: #C0392B; }

.hp-pdp-terpene:hover {
    border-color: var(--sunset-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.hp-pdp-terpene__emoji {
    font-size: 28px;
    margin-bottom: 10px;
}

.hp-pdp-terpene__name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.hp-pdp-terpene__flavor {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hp-pdp-terpene__feeling {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.4;
}

.hp-pdp-terpene__cta {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--sunset-text);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ══ SECTION 5 — Quote ══ */
.hp-pdp-quote {
    text-align: center;
    padding: var(--space-3xl) 40px;
    position: relative;
}

.hp-pdp-quote::before {
    content: '\201C';
    font-family: var(--font-body);
    font-size: 120px;
    color: var(--sunset-light);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.hp-pdp-quote__text {
    font-family: var(--font-body);
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 400;
    font-style: italic;
    color: var(--green-dark);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.hp-pdp-quote__author {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ══ SECTION 6 — The Ritual ══ */
.hp-pdp-ritual__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.hp-pdp-ritual-step {
    padding: var(--space-lg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

/* Unique tier+preroll color gradients per ritual card — 80% opacity, offset order */
.hp-pdp-ritual-step:nth-child(6n+1) { background: linear-gradient(155deg, rgba(90,159,212,0.9), #FFFDF8 85%); }
.hp-pdp-ritual-step:nth-child(6n+2) { background: linear-gradient(155deg, rgba(91,154,107,0.9), #FFFDF8 85%); }
.hp-pdp-ritual-step:nth-child(6n+3) { background: linear-gradient(155deg, rgba(192,57,43,0.9), #FFFDF8 85%); }
.hp-pdp-ritual-step:nth-child(6n+4) { background: linear-gradient(155deg, rgba(123,107,164,0.9), #FFFDF8 85%); }
.hp-pdp-ritual-step:nth-child(6n+5) { background: linear-gradient(155deg, rgba(212,113,42,0.9), #FFFDF8 85%); }
.hp-pdp-ritual-step:nth-child(6n+6) { background: linear-gradient(155deg, rgba(168,168,168,0.9), #FFFDF8 85%); }

/* Top accent bar per ritual card — matches background color */
.hp-pdp-ritual-step:nth-child(6n+1)::before { background: #5A9FD4; }
.hp-pdp-ritual-step:nth-child(6n+2)::before { background: #5B9A6B; }
.hp-pdp-ritual-step:nth-child(6n+3)::before { background: #C0392B; }
.hp-pdp-ritual-step:nth-child(6n+4)::before { background: #7B6BA4; }
.hp-pdp-ritual-step:nth-child(6n+5)::before { background: #D4712A; }
.hp-pdp-ritual-step:nth-child(6n+6)::before { background: #A8A8A8; }

.hp-pdp-ritual-step:hover {
    border-color: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.hp-pdp-ritual-step__num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--green-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hp-pdp-ritual-step__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--space-sm);
}

.hp-pdp-ritual-step__teaser {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.hp-pdp-ritual-step__cta {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--sunset-text);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* CTA icon color baked into SVG file */

/* ══ SECTION 7 — Image Closeups ══ */
.hp-pdp-closeups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hp-pdp-closeup {
    aspect-ratio: 1;
    background: var(--bg-img-placeholder);
    overflow: hidden;
    position: relative;
}

.hp-pdp-closeup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-pdp-closeup__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    opacity: .4;
}

/* ══ SECTION 8 — Reviews ══ */
.hp-pdp-reviews__list {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
}

.hp-pdp-reviews__list::-webkit-scrollbar {
    display: none;
}

.hp-pdp-review {
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.hp-pdp-review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hp-pdp-review__name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
}

.hp-pdp-review__date {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
}

.hp-pdp-review__stars {
    color: var(--sunset-mid);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hp-pdp-review__text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.hp-pdp-review__verified {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    color: var(--color-success);
    margin-top: var(--space-sm);
}

/* ══ SECTION 9 — Trust Bar ══ */
.hp-pdp-trust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
}

.hp-pdp-trust + .hp-pdp-section {
    border-top: 1px solid var(--border-default);
}

.hp-pdp-trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    justify-content: center;
}

/* Trust icons use .hp-icon from global.css — no emoji container needed */
.hp-pdp-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-pdp-trust__text {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.hp-pdp-trust__text a {
    color: var(--sunset-text);
    text-decoration: underline;
}

/* ══ SECTION 10 — Comparison ══ */
.hp-pdp-compare__sub {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--green-mid);
    margin-bottom: var(--space-md);
}

.hp-pdp-compare__top {
    padding: var(--space-lg);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Card grids (product page) ── */
.hp-pdp-card-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: var(--space-xl);
}

.hp-pdp-card-grid::-webkit-scrollbar {
    display: none;
}

.hp-pdp-card-grid > .hp-pc-flip {
    width: 260px;
    min-width: 260px;
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ══ Modals ══ */
.hp-pdp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 37, 32, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hp-pdp-modal-overlay.active {
    display: flex;
}

.hp-pdp-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-modal);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

button.hp-pdp-modal__close,
.hp-pdp-modal__close {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: var(--bg-input) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    border: none !important;
    outline: none;
    transition: all .2s;
}

button.hp-pdp-modal__close:hover,
.hp-pdp-modal__close:hover {
    background: var(--border-default) !important;
    color: var(--green-dark);
}

.hp-pdp-modal__img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-img-placeholder);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-pdp-modal__img span {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.4;
}

.hp-pdp-modal__emoji {
    font-size: 40px;
    margin-bottom: var(--space-md);
}

.hp-pdp-modal__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.hp-pdp-modal__subtitle {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hp-pdp-modal__body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ══ Sticky ATC ══ */
.hp-pdp-sticky {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-default);
    padding: 12px 20px;
    z-index: 100;
    transition: bottom .3s ease;
}

.hp-pdp-sticky.visible {
    bottom: 0;
}

.hp-pdp-sticky__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.hp-pdp-sticky__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-pdp-sticky__name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
}

.hp-pdp-sticky__sep {
    width: 1px;
    height: 24px;
    background: var(--border-default);
}

.hp-pdp-sticky__price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--price-color);
}

.hp-pdp-sticky__btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-sunset);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-button);
    flex-shrink: 0;
    cursor: pointer;
    transition: all .25s;
}

.hp-pdp-sticky__btn:hover {
    background: var(--gradient-sunset-hover);
    box-shadow: var(--shadow-button-hover);
}

/* ══ Responsive ══ */
@media (max-width: 900px) {
    .hp-pdp-hero {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .hp-pdp-specs {
        grid-template-columns: 1fr;
    }
    .hp-pdp-feelings__grid {
        grid-template-columns: 1fr;
    }
    .hp-pdp-ritual__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-pdp-card-grid > .hp-pc-flip {
        width: 220px;
        min-width: 220px;
        flex: 0 0 220px;
    }
    .hp-pdp-reviews__list {
        gap: 12px;
    }
    .hp-pdp-review {
        min-width: 260px;
    }
}

@media (max-width: 540px) {
    .hp-pdp {
        padding: 0 var(--space-md);
    }
    .hp-pdp-section {
        padding: 36px 0;
    }
    .hp-pdp-hero {
        gap: 20px;
        padding: 20px 0 36px;
    }
    .hp-pdp-hero__name {
        font-size: 26px;
    }
    .hp-pdp-hero__price strong {
        font-size: 30px;
    }
    .hp-pdp-hero__sizes {
        flex-wrap: wrap;
    }
    .hp-pdp-glance__tiles--4col {
        grid-template-columns: 1fr 1fr;
    }
    .hp-pdp-glance__tile--info {
        padding-top: 22px;
    }
    .hp-pdp-trust {
        gap: 4px;
    }
    .hp-pdp-trust__text {
        font-size: 10px;
    }
    .hp-pdp-trust__icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .hp-pdp-terpenes__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-pdp-ritual__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-pdp-card-grid > .hp-pc-flip {
        width: 170px;
        min-width: 170px;
        flex: 0 0 170px;
    }
    .hp-pdp-quote {
        padding: var(--space-2xl) 20px;
    }
    .hp-pdp-quote__text {
        font-size: 18px;
    }
    .hp-pdp-modal {
        padding: 28px;
    }
}

/* ── Full-width sections inside .hp-pdp ── */
.hp-pdp .hp-tb,
.hp-pdp .hp-faq-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: none;
}
