/* =====================================================================
   Product detail redesign — modern reference layout.
   Lavender info card, intro line, prepaid box, pack/flavour swatches,
   purple CTA, and a feature grid below it. Scoped to the product page.
   Accent colour via --pd-accent so it can be re-branded in one place.
   ===================================================================== */

.saffron-product-premium {
    --pd-accent: #8b6fc4;
    --pd-accent-dark: #6a4fa3;
    --pd-card-bg: #ece9fb;
    --pd-ink: #2a2740;
}

/* ── Right info card: lavender background ── */
.saffron-product-premium .tp-product-details-wrapper.has-sticky,
.saffron-product-premium .tp-product-details-wrapper {
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 22px !important;
    padding: 30px 32px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06) !important;
}

/* ── Intro line ── */
.saffron-pd-redesign .saffron-pd-intro {
    color: #807d99;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 6px;
}

.saffron-pd-redesign .saffron-product-title-premium {
    font-size: 30px !important;
    color: var(--pd-ink) !important;
    margin-bottom: 14px !important;
}

/* ── Price ── */
.saffron-pd-redesign .saffron-tax-note {
    font-style: normal !important;
    color: #908da6 !important;
}

.saffron-pd-redesign .saffron-price-label {
    display: none;
}

.saffron-pd-redesign .saffron-price-amount {
    color: var(--pd-ink) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
}

.saffron-pd-redesign .saffron-price-old {
    color: #aaa7bd !important;
    text-decoration: line-through !important;
    font-size: 18px !important;
    margin-left: 8px;
}

/* ── Net Quantity: pill/box like the Pack selector ── */
.saffron-pd-redesign .saffron-net-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 16px;
    background: #ffffff;
    border: 2.5px solid #040404;
    border-radius: 11px !important;
    color: #000000;
    font-size: 13.5px;
    font-weight: 700;
}

.saffron-pd-redesign .saffron-net-qty i {
    font-size: 14px;
    color: #000;
}

/* ── Direct Buy Now button (below ADD TO CART) ── */
.saffron-pd-redesign .saffron-btn-direct-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 16px 0;
    background: linear-gradient(180deg, #a48fd4 0%, #9079c6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(139, 111, 196, 0.32);
    transition: filter 0.2s ease, transform 0.15s ease;
}

.saffron-pd-redesign .saffron-btn-direct-buy:hover,
.saffron-pd-redesign .saffron-btn-direct-buy:focus {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-1px);
}

.saffron-pd-redesign .saffron-btn-direct-buy.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Prepaid / offer highlight box (yellow) ── */
.saffron-pd-redesign .saffron-pd-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f6c63c;
    border-radius: 14px;
    padding: 15px 18px;
    margin: 18px 0 22px;
}

.saffron-pd-redesign .saffron-pd-highlight .ic {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #1f2430;
    color: #f6c63c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.saffron-pd-redesign .saffron-pd-highlight strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #2a2335;
    line-height: 1.3;
}

.saffron-pd-redesign .saffron-pd-highlight small {
    color: #5b5340;
    font-size: 12.5px;
}

/* ── Variant swatches: "Choose your Pack" pills + "Flavours" image tiles ── */
.saffron-attribute-swatches .bb-product-attribute-swatch {
    margin-bottom: 18px;
}

.saffron-attribute-swatches .bb-product-attribute-swatch-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--pd-ink) !important;
    margin: 0 0 10px !important;
}

.saffron-attribute-swatches .bb-product-attribute-swatch-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.saffron-attribute-swatches .bb-product-attribute-swatch-item {
    margin: 0 !important;
}

.saffron-attribute-swatches .bb-product-attribute-swatch-item label {
    cursor: pointer;
    margin: 0;
}

.saffron-attribute-swatches .bb-product-attribute-swatch-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Text/pill swatches (e.g. Pack: Box / Sachet) */
.saffron-attribute-swatches .text-swatch .bb-product-attribute-swatch-item label,
.saffron-attribute-swatches .text-swatches-wrapper .bb-product-attribute-swatch-item label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 96px;
    justify-content: center;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid #ddd6f3;
    border-radius: 12px;
    font-weight: 700;
    color: var(--pd-ink);
    transition: all 0.2s ease;
}

.saffron-attribute-swatches .text-swatch .bb-product-attribute-swatch-item:has(input:checked) label,
.saffron-attribute-swatches .text-swatch .bb-product-attribute-swatch-item.active label,
.saffron-attribute-swatches .text-swatches-wrapper .bb-product-attribute-swatch-item:has(input:checked) label {
    border-color: var(--pd-accent);
    background: #efeafb;
    color: var(--pd-accent-dark);
    box-shadow: 0 4px 12px rgba(139, 111, 196, 0.18);
}

/* Visual/image swatches (e.g. Flavours) */
.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item label,
.saffron-attribute-swatches .visual-swatches-wrapper .bb-product-attribute-swatch-item label {
    display: block;
    width: 96px;
    padding: 8px;
    background: #fff;
    border: 1.5px solid #e2dcf4;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item label .image,
.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item label > span:first-child {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-size: cover !important;
    background-position: center !important;
    margin-bottom: 6px;
}

.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item label img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 6px;
}

.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item:has(input:checked) label,
.saffron-attribute-swatches .visual-swatch .bb-product-attribute-swatch-item.active label {
    border-color: var(--pd-accent);
    box-shadow: 0 6px 16px rgba(139, 111, 196, 0.22);
}

/* ── CTA button (purple, full width) ── */
.saffron-pd-redesign .saffron-action-buttons-premium {
    display: block !important;
    margin-top: 6px;
}

.saffron-pd-redesign .saffron-btn-buy-now,
.saffron-pd-redesign .saffron-btn-bucket {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 6px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.saffron-pd-redesign .saffron-btn-buy-now:hover,
.saffron-pd-redesign .saffron-btn-bucket:hover,
.saffron-pd-redesign .saffron-btn-buy-now:focus,
.saffron-pd-redesign .saffron-btn-bucket:focus {
    background: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Feature grid below the CTA (purple icons + labels) ── */
.saffron-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 14px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid #ddd6f0;
}

.saffron-feature-grid .saffron-feature-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
}

.saffron-feature-grid .saffron-feature-cell .ic {
    font-size: 24px;
    line-height: 1;
    color: var(--pd-accent-dark);
}

.saffron-feature-grid .saffron-feature-cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.saffron-feature-grid .saffron-feature-cell .lbl {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #514a72;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .saffron-product-premium .tp-product-details-wrapper.has-sticky,
    .saffron-product-premium .tp-product-details-wrapper {
        padding: 24px !important;
    }
    .saffron-pd-redesign .saffron-product-title-premium {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .saffron-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 10px;
    }
}

/* ── Left gallery: single big image + rating badge, no bottom thumbnails ── */
.saffron-product-premium .bb-product-gallery-thumbnails {
    display: none !important;
}

/* Top-align both columns and keep their sticky offsets identical so the
   gallery and the info card line up at the top. */
.saffron-product-premium .tp-product-details-top .row {
    align-items: flex-start !important;
}

.saffron-product-premium .tp-product-details-top .col-lg-7 {
    align-self: flex-start;
}

.saffron-product-premium .tp-product-details-thumb-wrapper {
    position: sticky !important;
    top: 24px !important;
    margin-top: 0 !important;
}

.saffron-product-premium .tp-product-details-wrapper.has-sticky {
    top: 24px !important;
}

@media (max-width: 991px) {
    .saffron-product-premium .tp-product-details-thumb-wrapper {
        position: static !important;
    }
}

.saffron-product-premium .saffron-rating-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #1f2430;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.saffron-product-premium .saffron-rating-badge .star {
    color: #1f2430;
}

/* ── Flavours: product images as scrollable selectable tiles ── */
.saffron-flavours {
    margin: 18px 0 4px;
}

.saffron-flavours-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-ink);
    margin: 0 0 10px;
}

.saffron-flavours-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.saffron-flavour-tile {
    flex: 0 0 auto;
    width: 86px;
    padding: 6px;
    background: #fff;
    border: 1.5px solid #e2dcf4;
    border-radius: 14px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.saffron-flavour-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.saffron-flavour-tile.is-active {
    border-color: var(--pd-accent);
    box-shadow: 0 6px 16px rgba(139, 111, 196, 0.22);
}

.saffron-flavours-list::-webkit-scrollbar {
    height: 6px;
}

.saffron-flavours-list::-webkit-scrollbar-thumb {
    background: #cfc6ec;
    border-radius: 3px;
}

/* Remove the tabs-container background */
.saffron-detail-tabs-container {
    background: transparent !important;
}

/* ── Customer Reviews redesign (clean card + purple accents) ── */
.product-review-container,
.review-list-container {
    --rv-accent: #6a4fa3;
}

.product-review-summary-value {
    font-size: 40px !important;
    font-weight: 800 !important;
    color: #2a2740 !important;
    line-height: 1.1;
}

.product-review-summary-rating .product-review-number,
.product-review-number-title {
    color: #8a879c !important;
    font-size: 13.5px;
}

/* Star breakdown bars → blue fill */
.product-review-progress-bar-value.progress,
.progress.product-review-progress-bar-value {
    height: 9px !important;
    border-radius: 6px !important;
    background: #e8edf6 !important;
}

.product-review-progress-bar-value .progress-bar {
    background-color: #2f6bd6 !important;
    border-radius: 6px !important;
}

.product-review-progress-bar-title,
.product-review-progress-bar-percent {
    color: #6b7280 !important;
    font-size: 13px !important;
}

/* Write-a-review / control buttons → blue pill */
.review-control-btn,
.btn.review-control-btn {
    background: #111111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 10px 26px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.review-control-btn:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

/* Verified badge */
.review-list .verified,
.product-review-container .verified {
    background: #e8edf6 !important;
    color: #2f6bd6 !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

/* Review list spacing */
.product-review-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
    padding: 28px 30px;
}

/* ── FAQ accordion redesign (clean rounded items + dark circular +/× toggle) ── */
.product-faqs-accordion {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.product-faqs-accordion .accordion-item {
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.product-faqs-accordion .accordion-header {
    margin: 0;
}

.product-faqs-accordion .accordion-button {
    background: #fff !important;
    color: #2a2740 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 18px 22px !important;
    box-shadow: none !important;
    border: none !important;
}

.product-faqs-accordion .accordion-button:focus {
    box-shadow: none !important;
}

.product-faqs-accordion .accordion-button::after {
    content: "+";
    background-image: none !important;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #1f2430;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transform: none !important;
    transition: background-color 0.2s ease;
}

.product-faqs-accordion .accordion-button:not(.collapsed)::after {
    content: "\00d7"; /* × */
    background-color: #8b6fc4;
}

.product-faqs-accordion .accordion-body {
    padding: 2px 22px 20px !important;
    color: #6b7280 !important;
    line-height: 1.7;
    font-size: 14.5px;
}

/* ── Animated gift-box + coin CTA (Uiverse "reward-button") ── */
.saffron-reward-cta {
    gap: 8px;
}

.saffron-reward-cta .sfx-icon-container {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.saffron-reward-cta .sfx-icon-container svg {
    width: 18px;
    z-index: 3;
}

.saffron-reward-cta .sfx-box-top {
    transition: transform 0.3s ease;
}

.saffron-reward-cta .sfx-coin {
    width: 10px;
    height: 10px;
    background-color: #e4d61a;
    border: 2px solid #ffe956;
    border-radius: 50%;
    position: absolute;
    margin-top: 4px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.saffron-reward-cta .sfx-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}

.saffron-reward-cta:hover .sfx-box-top {
    transform: translateY(-5px);
}

.saffron-reward-cta:hover .sfx-coin {
    transform: translateY(-5px);
    transition-delay: 0.2s;
}

/* ── Custom overrides: product content / color-panel inside description ── */
.saffron-detail-section { padding: 0 !important; background: none !important; box-shadow: none !important; border: none !important; }
.saffron-detail-section .ck-content h2 { font-size: 55px !important; color: #fff !important; }
.saffron-detail-section .ck-content h3 { color: #fff !important; font-size: 44px !important; }
.saffron-detail-section .ck-content p { font-size: 26px !important; }
.saffron-detail-section .ck-content img { box-shadow: none !important; height: 314px !important; }
.pcp { padding: 0 !important; }
.pcp-panel { max-width: 1298px !important; }

/* Let the Product Color Panel image keep its own height inside product content */
.saffron-detail-section .ck-content .pcp-image img { height: 461px !important; }

/* ── Per-product Certifications / Trust Badges (bottom of info section) ── */
.saffron-cert-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #ececec;
}
.saffron-cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.saffron-cert-badge img {
    height: 62px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.78;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.saffron-cert-badge:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}
@media (max-width: 575px) {
    .saffron-cert-badges { gap: 14px 18px; }
    .saffron-cert-badge img { height: 48px; max-width: 90px; }
}
