/* =====================================================
   Pure Habit — Product Page Extras
   • Sticky Add-to-Cart bar
   • What's Inside (Ingredients)
   • FAQ Accordion
   • Purpose / Mission banner
   • Reviews auto-scroll marquee
   ===================================================== */

/* =========================================================
   1. STICKY ADD-TO-CART BAR
   ========================================================= */
#ph-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #151515;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

#ph-sticky-cart.is-visible {
    transform: translateY(0);
}

.ph-sticky-product {
    flex: 1;
    min-width: 0;
}

.ph-sticky-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.ph-sticky-meta {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 2px;
}

.ph-sticky-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.ph-sticky-cta {
    flex-shrink: 0;
    background: #e8460e;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}

.ph-sticky-cta:hover,
.ph-sticky-cta:focus {
    background: #c93800;
    transform: scale(1.03);
    outline: none;
}

@media (max-width: 480px) {
    #ph-sticky-cart {
        padding: 10px 14px;
        gap: 10px;
    }
    .ph-sticky-price {
        font-size: 1rem;
    }
    .ph-sticky-cta {
        padding: 10px 18px;
        font-size: 0.82rem;
    }
}

/* =========================================================
   2. WHAT'S INSIDE — INGREDIENTS SECTION
   ========================================================= */
.ph-ingredients-section {
    padding: 40px 0;
    border-top: 2px solid #f2f2f2;
}

.ph-ingredients-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.ph-ingredients-section .ph-trust-section-title {
    margin-bottom: 12px;
}

.ph-ingredients-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 32px;
}

/* Ingredient pills / cards */
.ph-ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ph-ingredient-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8f5;
    border: 1px solid #f0d9d0;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    color: #333;
    transition: background 0.18s, border-color 0.18s;
}

.ph-ingredient-pill:hover {
    background: #ffe8db;
    border-color: #e8460e;
}

.ph-ingredient-pill::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8460e;
    flex-shrink: 0;
}

/* Full ingredients text block */
.ph-ingredients-content {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px 24px;
}

.ph-ingredients-content p,
.ph-ingredients-content ul,
.ph-ingredients-content li {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 8px;
}

.ph-ingredients-content ul {
    padding-left: 20px;
}

.ph-ingredients-clean-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7ea;
    color: #1a9a30;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-top: 12px;
}

/* =========================================================
   3. FAQ ACCORDION
   ========================================================= */
.ph-faq-section {
    padding: 40px 0;
    border-top: 2px solid #f2f2f2;
}

.ph-faq-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.ph-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ph-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.ph-faq-item[open],
.ph-faq-item:focus-within {
    border-color: #e8460e;
}

.ph-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #151515;
    user-select: none;
    list-style: none;
    gap: 12px;
}

/* Remove default disclosure triangle */
.ph-faq-question::-webkit-details-marker,
.ph-faq-question::marker {
    display: none;
}

.ph-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #e8460e;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.25s;
}

.ph-faq-item[open] .ph-faq-question::after {
    transform: rotate(45deg);
}

.ph-faq-answer {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
}

.ph-faq-answer p {
    margin: 0;
}

/* =========================================================
   4. PURPOSE / MISSION BANNER
   ========================================================= */
.ph-mission-section {
    padding: 36px 0;
    border-top: 2px solid #f2f2f2;
}

.ph-mission-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.ph-mission-banner {
    background: linear-gradient(135deg, #0a5c1e 0%, #1a9a30 100%);
    border-radius: 14px;
    padding: 32px 36px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: left;
}

@media (max-width: 640px) {
    .ph-mission-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
}

.ph-mission-icon-wrap {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.ph-mission-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-mission-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-mission-body {
    flex: 1;
}

.ph-mission-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ph-mission-text {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.ph-mission-points {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ph-mission-point {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* =========================================================
   5. REVIEWS AUTO-SCROLL MARQUEE
   ========================================================= */

/* Override the static grid from product-trust.css */
.ph-reviews-section .ph-reviews-grid {
    display: none; /* hide static grid; replaced by marquee */
}

.ph-reviews-marquee-wrap {
    overflow: hidden;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ph-reviews-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: ph-marquee-scroll 28s linear infinite;
}

.ph-reviews-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes ph-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Each card in marquee — same design as static grid */
.ph-reviews-marquee-track .ph-review-card {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: default;
}

@media (max-width: 640px) {
    .ph-reviews-marquee-track .ph-review-card {
        width: 240px;
    }
    .ph-reviews-marquee-track {
        animation-duration: 22s;
    }
}
