/* ================================================================
   IGNITE DELIGHTS — Custom Product Page CSS
   File: assets/css/product-page.css
   ================================================================ */

/* ── VARIABLES ── */
:root {
    --ipp-gold:     #c8a96e;
    --ipp-dark:     #111111;
    --ipp-text:     #1a1a1a;
    --ipp-muted:    #666666;
    --ipp-border:   #e0e0e0;
    --ipp-cream:    #f5ede0;
    --ipp-white:    #ffffff;
    --ipp-radius:   8px;
    --ipp-ease:     .22s ease;
    --ipp-max:      1200px;
}

/* ── BASE ── */
#ignite-product-page { font-family: inherit; }

body {
    background-color: var(--ipp-cream) !important;
}

.ipp-container {
    max-width: var(--ipp-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Menu */

/* Product Page Header Menu Color */
.single-product .custom-header .hfe-nav-menu a{
    color:#000 !important;
}

.single-product .custom-header .hfe-nav-menu a:hover,
.single-product .custom-header .hfe-nav-menu .current-menu-item > a,
.single-product .custom-header .hfe-nav-menu .current_page_item > a{
    color:#e7b68c !important;
}

/* Header Icons */
.single-product .custom-header .elementor-icon svg{
    fill:#000 !important;
}

.single-product .custom-header .elementor-icon:hover svg{
    fill:#e7b68c !important;
}

/* Cart Icon */
.single-product .custom-header .hfe-cart-container{
    color:#000 !important;
}

.single-product .custom-header .hfe-cart-container:hover{
    color:#e7b68c !important;
}

/* Cart Count */
.single-product .custom-header .hfe-cart-count{
    color:#000 !important;
    border-color: #000 !important;
}

.single-product .custom-header .hfe-cart-count::after{
    color:#000 !important;
    border-color: #000 !important;
}

/* Mobile Menu Icon */
.single-product .custom-header .hfe-nav-menu-icon svg{
    fill:#000 !important;
}

.single-product .custom-header .hfe-nav-menu-icon:hover svg{
    fill:#e7b68c !important;
}

.single-product .custom-header .hfe-nav-menu .current-menu-item > a{
    color:#e7b68c !important;
}

/* ================================================================
   SECTION 1 — HERO
   ================================================================ */
.ipp-hero {
    background: var(--ipp-cream) !important;
    padding: 40px 0 60px;
}

.ipp-hero .ipp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .ipp-hero .ipp-container { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Gallery ── */
.ipp-gallery {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

/* Left column — vertical thumbnails */
.ipp-gallery .ipp-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    flex-shrink: 0;
    width: 80px;
    max-height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--ipp-gold) transparent;
    order: 0;
}
.ipp-gallery .ipp-thumbs::-webkit-scrollbar { width: 3px; }
.ipp-gallery .ipp-thumbs::-webkit-scrollbar-thumb { background: var(--ipp-gold); border-radius: 99px; }

.ipp-gallery .ipp-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f5f5f5;
    transition: border-color var(--ipp-ease);
    flex-shrink: 0;
    display: block;
}
.ipp-gallery .ipp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ipp-gallery .ipp-thumb:hover,
.ipp-gallery .ipp-thumb.active { border-color: var(--ipp-gold); }

/* Right — main image */
.ipp-gallery-main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    order: 1;
}

.ipp-gallery-slide {
    display: none;
    border-radius: var(--ipp-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}
.ipp-gallery-slide.active { display: block; }
.ipp-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile — thumbs go below the main image */
@media (max-width: 600px) {
    
    .ipp-gallery .ipp-thumbs {
        flex-direction: column !important;   /* vertical hi rahe */
        max-height: calc(100vw - 124px);     /* main image ke barabar height */
        overflow-y: auto;                    /* vertical scroll */
        overflow-x: hidden;
        width: 64px;
        order: 0;                            /* LEFT side */
    }
    .ipp-gallery-main { order: 1; }          /* main image right */
    .ipp-gallery .ipp-thumb { width: 64px !important; height: 64px !important; }
}

/* ── Product Details ── */
.ipp-details { display: flex; flex-direction: column; gap: 16px; }

/* Rating bar */
.ipp-rating-bar { display: flex; align-items: center; gap: 8px; }
.ipp-stars { display: inline-flex; gap: 2px; }
.ipp-rating-link {
    font-size: 13px;
    color: var(--ipp-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ipp-rating-link:hover { color: var(--ipp-dark); }

/* Title */
.ipp-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--ipp-text);
    margin: 0;
    line-height: 1.2;
}

/* Short desc */
.ipp-short-desc { font-size: 14px; color: var(--ipp-muted); line-height: 1.6; }
.ipp-short-desc p { margin: 0 0 6px; }

/* ── Bundle Grid ── */
.ipp-bundles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 480px) { .ipp-bundles { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.ipp-bundle-option {
    position: relative;
    border: 2px solid var(--ipp-border);
    border-radius: var(--ipp-radius);
    padding: 12px 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--ipp-ease), box-shadow var(--ipp-ease);
    background: var(--ipp-white);
    user-select: none;
}
.ipp-bundle-option:hover { border-color: var(--ipp-gold); }
.ipp-bundle-option.selected {
    border-color: var(--ipp-dark);
    box-shadow: 0 0 0 1px var(--ipp-dark);
}
.ipp-bundle-option.popular.selected,
.ipp-bundle-option.popular:hover {
    border-color: var(--ipp-gold);
    box-shadow: 0 0 0 1px var(--ipp-gold);
}

.ipp-bundle-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ipp-dark);
    color: var(--ipp-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
.ipp-bundle-option.popular .ipp-bundle-badge {
    background: var(--ipp-gold);
    color: var(--ipp-dark);
}

.ipp-bundle-label   { font-size: 11px; font-weight: 700; color: var(--ipp-text); margin-bottom: 6px; letter-spacing: .04em; }
.ipp-bundle-at      { font-size: 10px; color: var(--ipp-muted); display: block; }
.ipp-bundle-amount  { font-size: 17px; font-weight: 800; color: var(--ipp-text); display: block; line-height: 1.1; }
.ipp-bundle-was     { font-size: 11px; color: var(--ipp-muted); text-decoration: line-through; margin-top: 2px; }
.ipp-bundle-sessions{ font-size: 10px; color: var(--ipp-muted); margin-top: 3px; letter-spacing: .03em; }

/* ── ATC Button ── */
.ipp-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 24px;
    background: var(--ipp-dark);
    color: var(--ipp-white);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .1em;
    border: none;
    border-radius: var(--ipp-radius);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--ipp-ease), transform var(--ipp-ease);
}
.ipp-atc-btn:hover   { background: #333; }
.ipp-atc-btn:active  { transform: scale(.98); }

/* hide WC quantity */
.ipp-wc-form .quantity { display: none !important; }

/* Guarantee */
.ipp-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ipp-text);
    letter-spacing: .06em;
}

/* ── Accordion ── */
.ipp-accordions { margin: 50px; border-top: 1px solid var(--ipp-border); }
@media (max-width: 480px) { .ipp-accordions { margin: 10px; } }
.ipp-accordion { border-bottom: 4px solid #e7b68c; }

.ipp-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ipp-text);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    gap: 12px;
}
.ipp-accordion-toggle:hover { background-color: transparent; color: var(--ipp-dark); }
.ipp-accordion-toggle:focus { background-color: transparent; color: var(--ipp-dark); }
.ipp-acc-icon { flex-shrink: 0; transition: transform var(--ipp-ease); }
.ipp-accordion-toggle[aria-expanded="true"] .ipp-acc-icon { transform: rotate(180deg); }

.ipp-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.ipp-accordion-body.open { max-height: 600px; }
.ipp-accordion-body > * { padding-bottom: 14px; font-size: 13px; color: var(--ipp-muted); line-height: 1.65; }

/* Ingredients list in accordion */
.ipp-ing-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ipp-ing-list li { display: flex; gap: 12px; align-items: flex-start; }
.ipp-ing-list img { border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.ipp-ing-list strong { font-size: 13px; color: var(--ipp-text); }
.ipp-ing-list .ipp-ing-pct { font-size: 12px; color: var(--ipp-gold); margin-left: 4px; }
.ipp-ing-list p { margin: 2px 0 0; font-size: 12px; color: var(--ipp-muted); }

/* ── Trust Badges ── */
.ipp-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 4px;
}
.ipp-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex: 1;
    min-width: 70px;
}
.ipp-trust-badge img { width: 36px; height: 36px; object-fit: contain; }
.ipp-trust-badge span { font-size: 11px; color: var(--ipp-muted); line-height: 1.4; }

/* ================================================================
   SECTION 2 — FOR YOU / FOR YOUR PARTNER
   ================================================================ */
.ipp-for-you { padding: 60px 0; overflow: hidden; }

.ipp-for-you-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
@media (max-width: 700px) {
    .ipp-for-you-inner { grid-template-columns: 1fr; text-align: center; }
}

.ipp-for-you-text p {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--ipp-text);
    line-height: 1.55;
    margin: 0;
}

.ipp-for-you-image img {
    max-width: 280px;
    width: 100%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
}

.ipp-for-you-labels {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: right;
}
@media (max-width: 700px) { .ipp-for-you-labels { text-align: center; gap: 16px; } }

.ipp-for-you-label {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
    color: var(--ipp-text);
    font-style: italic;
    position: relative;
    display: inline-block;
}
.ipp-for-you-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 3px;
    background: var(--ipp-gold);
    border-radius: 2px;
}

/* ================================================================
   SECTION 3 — INGREDIENTS GRID
   ================================================================ */
.ipp-ingredients { position: relative; padding: 0; }

.ipp-ingredients-overlay {
    background: rgba(0,0,0,.72);
    padding: 60px 0;
}

.ipp-ingredients-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    color: var(--ipp-white);
    text-align: center;
    margin: 0 0 36px;
}

.ipp-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .ipp-ingredients-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .ipp-ingredients-grid { grid-template-columns: 1fr; } }

.ipp-ing-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--ipp-ease), background var(--ipp-ease);
}
.ipp-ing-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.13); }

.ipp-ing-card-img {
    height: 160px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
}
.ipp-ing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ipp-ing-placeholder { background: rgba(255,255,255,.08); }

.ipp-ing-card-body { padding: 14px; }
.ipp-ing-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ipp-white);
    margin: 0 0 4px;
}
.ipp-ing-pct-badge {
    display: inline-block;
    background: var(--ipp-gold);
    color: var(--ipp-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.ipp-ing-card-body p { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; margin: 0; }

.ipp-ingredients-footer {
    text-align: center;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* CTA button (reused in ingredients + videos) */
.ipp-ing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--ipp-gold);
    color: var(--ipp-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--ipp-ease), transform var(--ipp-ease);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.ipp-ing-cta-btn:hover   { background: #b8954f; color: var(--ipp-white); }
.ipp-ing-cta-btn:active  { transform: scale(.97); }

.ipp-ing-review-text { color: rgba(255,255,255,.7); font-size: 13px; }

.ignite-reviews-section h2.irs-section-title {
    color: var(--ipp-text) !important;
}

.ignite-reviews-section .irs-header span.irs-count-text{
    color: var(--ipp-text) !important;
}
/* ================================================================
   SECTION 4 — VIDEO GALLERY
   ================================================================ */
.ipp-videos {background-color: var(--ipp-cream); padding: 60px 0; }

.ipp-videos-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--ipp-text);
    text-align: center;
    margin: 0 0 28px;
}

.ipp-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) { .ipp-videos-grid { grid-template-columns: 1fr; } }

.ipp-video-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}
.ipp-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ipp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--ipp-ease), opacity var(--ipp-ease);
}
.ipp-video-wrap.playing .ipp-video-play { opacity: 0; pointer-events: none; }
.ipp-video-wrap:hover .ipp-video-play   { transform: translate(-50%,-50%) scale(1.1); }

.ipp-videos-cta { text-align: center; margin-top: 32px; }
.ipp-shop-btn { background: var(--ipp-dark); color: var(--ipp-white); }
.ipp-shop-btn:hover { background: #333; color: var(--ipp-white); }

/* ================================================================
   SECTION 5 — FAQ
   ================================================================ */

.ipp-faq { background: var(--ipp-cream); padding: 60px 0 40px; border-top: 1px solid var(--ipp-border); }

.ipp-faq-toggle:hover,
.ipp-faq-toggle:focus,
.ipp-faq-toggle:active{
    background: transparent !important;
    box-shadow: none;
    outline: none;
}

.ipp-faq-toggle{
    background: transparent;
}

.ipp-faq-inner { max-width: 720px; }

.ipp-faq-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--ipp-text);
    margin: 0 0 24px;
    text-align: center;
}

.ipp-faq-list { display: flex; flex-direction: column; }

.ipp-faq-item { border-bottom: 1px solid var(--ipp-border); }

.ipp-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ipp-text);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    gap: 12px;
}
.ipp-faq-toggle:hover { color: var(--ipp-gold); }

.ipp-faq-icon { flex-shrink: 0; transition: transform var(--ipp-ease); }
.ipp-faq-toggle[aria-expanded="true"] .ipp-faq-icon { transform: rotate(180deg); }

.ipp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.ipp-faq-answer.open { max-height: 400px; }
.ipp-faq-answer p { padding-bottom: 16px; font-size: 14px; color: var(--ipp-muted); line-height: 1.65; margin: 0; }

/* ================================================================
   STICKY ATC BAR
   ================================================================ */
.ipp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ipp-white);
    border-top: 1px solid var(--ipp-border);
    z-index: 9999;
    padding: 12px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    transform: translateY(100%);
    transition: transform .3s ease;
}
.ipp-sticky-bar.visible {
    transform: translateY(0);
}

.ipp-sticky-inner {
    max-width: var(--ipp-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ipp-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.ipp-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.ipp-sticky-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ipp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ipp-sticky-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ipp-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.ipp-sticky-btn {
    background: var(--ipp-dark);
    color: var(--ipp-white);
    border: none;
    border-radius: var(--ipp-radius);
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--ipp-ease);
}
.ipp-sticky-btn:hover { background: #333; }

@media (max-width: 480px) {
    .ipp-sticky-title { display: none; }
    .ipp-sticky-btn   { padding: 12px 20px; }
}

.ipp-youtube-shorts .ipp-container h1{
    text-align: center;
    font-family: "Hussar";
    font-size: 29px;
    margin-bottom: 20px;
    font-weight: 900;
}

@media (max-width:768px){
    .ipp-youtube-shorts.ipp-container h1{
        font-size: 22px;
        margin-top: 0;
    }
}

/* YouTube Shorts Layout */
.ipp-shorts-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ipp-short-video {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* 9:16 ratio for shorts */
    border-radius: 12px;
    overflow: hidden;
}

.ipp-short-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ipp-wc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ipp-atc-btn {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px !important;
    font-size: 18px !important;
    font-weight: 700;
    border-radius: 20px !important;
    background-color: var(--ipp-dark) !important;
}

/* Quantity below button */
.ipp-wc-form .quantity {
    order: 2;
}

/* Button first */
.ipp-atc-btn {
    order: 1;
}