/* ===== Bundle Builder Page =====
   Built on the tokens in css/style.css. Base surfaces are black + silver,
   mirroring the actual H&R packaging (matte black box, silver foil
   monogram); --warm-gold is the single price/accent color used sparingly
   on top of that (hero price, savings text, progress fill). */

.bundle-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-arabic, 'Tajawal', sans-serif);
}

/* Local tokens for the dark surfaces */
.bundle-page {
    --box-black: #0d0e10;
    --box-black-soft: #17191d;
    --box-line: rgba(255, 255, 255, 0.12);
    --silver: #BFC5CC;
    --silver-dim: rgba(191, 197, 204, 0.55);
    --warm-gold: #8B6914;
}

/* ===== Header ===== */
.bundle-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.bundle-nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.bundle-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-family: var(--font-arabic, 'Tajawal', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bundle-back-link:hover {
    background: #ffffff;
    color: #0d0e10 !important;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.bundle-back-link i {
    color: #ffffff !important;
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.bundle-back-link:hover i {
    color: #0d0e10 !important;
}

/* ===== Buttons ===== */
.bundle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.bundle-btn-light {
    background: #fff;
    color: var(--box-black);
}

.bundle-btn-light:hover {
    background: var(--silver);
}

.bundle-btn-dark {
    background: var(--box-black);
    color: #fff;
}

.bundle-btn-dark:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
}

.bundle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Hero: warm box scene (right) + HTML text (left) =====
   Local warm palette; the page cream matches the photo's own background so the
   photo's left edge fades into it seamlessly. */
.bundle-hero {
    --cream: #d3d2d1;
    --warm-ink: #14161a;
    --warm-muted: #4a4d52;
    position: relative;
    background: var(--cream);
    min-height: 66vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* The full photograph fills the hero; a light scrim on the left keeps the text
   legible without cropping any of the image. */
.bundle-hero-photo {
    position: absolute;
    inset: 0;
    background: url('../assets/img/bundle-hero-box.webp') center / cover no-repeat;
}

.bundle-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right,
            rgba(226, 226, 227, 0.92) 0%,
            rgba(226, 226, 227, 0.7) 26%,
            rgba(226, 226, 227, 0.28) 44%,
            transparent 58%);
    pointer-events: none;
}

.bundle-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 56px clamp(20px, 4vw, 44px);
    display: flex;
    justify-content: flex-end;
}

/* Text block on the left (justify-content:flex-end pushes the flex item to the
   inline-end, which is the physical left in RTL). Shifted slightly further left on desktop for optimal balance. */
.bundle-hero-text {
    max-width: 27rem;
}

@media (min-width: 769px) {
    .bundle-hero-text {
        transform: translateX(-40px);
    }
}

.bundle-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--warm-gold);
    margin-bottom: 18px;
}

.bundle-hero-text h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.22;
    font-weight: 800;
    color: var(--warm-ink);
}

.bundle-rule {
    width: 54px;
    height: 2px;
    background: var(--warm-gold);
    margin: 20px 0;
}

.bundle-hero-sub {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--warm-muted);
    max-width: 36ch;
}

.bundle-hero-brand {
    font-weight: 700;
    color: var(--warm-ink);
}

.bundle-hero-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 22px 0 28px;
}

.bundle-hero-price .now {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--warm-gold);
    line-height: 1;
}

.bundle-hero-price .now .cur {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--warm-muted);
    margin-inline-start: 5px;
}

.bundle-hero-price .was {
    font-size: 0.95rem;
    color: #d1362f;
    text-decoration: line-through;
}

.bundle-hero-price .save {
    flex-basis: 100%;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--warm-gold);
    letter-spacing: 0.3px;
}

/* Dark button, echoing the packaging. */
.bundle-hero-cta {
    background: var(--box-black);
    color: #fff;
    padding: 17px 40px;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(20, 22, 26, 0.28);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-fast);
}

.bundle-hero-cta:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(20, 22, 26, 0.34);
}

/* ===== Perks ===== */
.bundle-perks-section {
    background: var(--bg-secondary);
    padding: 30px 0 6px;
}

.bundle-perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.bundle-perk {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bundle-perk i {
    font-size: 2rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.bundle-perk h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.bundle-perk p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ===== How it works ===== */
/* Shares the perks' light background so the two read as one connected band
   rather than a stranded section floating in white. */
.bundle-how {
    padding: 34px 0 36px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.bundle-how-title {
    text-align: center;
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.bundle-how-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bundle-how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: 180px;
    flex: 1 1 140px;
}

.bundle-how-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--box-black);
    color: #fff;
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    font-weight: 700;
}

.bundle-how-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bundle-how-arrow {
    display: flex;
    align-items: center;
    color: var(--border-hover);
    font-size: 1rem;
    padding-top: 12px;
}

/* ===== Builder layout ===== */
.bundle-builder-section {
    padding: 54px 0 96px;
    background: var(--bg-primary);
}

.bundle-layout {
    display: grid;
    grid-template-columns: 1.5fr 1.08fr;
    gap: 30px;
    align-items: start;
}

/* ===== Picker ===== */
.bundle-picker-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.bundle-picker-top h2 {
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.bundle-picker-top p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Progress replaces the numbered-step strip: you pick any three in any
   order, so a sequence of steps would misrepresent the interaction. */
.bundle-progress {
    min-width: 168px;
}

.bundle-progress-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-align: left;
}

.bundle-progress-track {
    height: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.bundle-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--warm-gold);
    transition: width var(--transition-base);
}

.bundle-controls {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    margin-bottom: 22px;
}

.bundle-search {
    position: relative;
    display: flex;
    align-items: center;
}

.bundle-search i {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.bundle-search input,
.bundle-select-wrap select {
    width: 100%;
    padding: 15px 48px 15px 18px;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.bundle-search input:focus,
.bundle-select-wrap select:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--box-black);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.bundle-select-wrap {
    position: relative;
}

.bundle-select-wrap select {
    appearance: none;
    padding-right: 16px;
    padding-left: 40px;
    cursor: pointer;
}

.bundle-select-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

/* ===== Perfume grid ===== */
.bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 16px;
}

.bundle-loading,
.bundle-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 52px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.bundle-loading i,
.bundle-empty i {
    font-size: 1.6rem;
    color: var(--accent-primary);
}

/* No per-card button: the whole card is the control, so a button would be
   a second affordance for the same action. */
.bundle-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 0 0 1px rgba(20, 22, 26, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bundle-pick:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 34px rgba(20, 22, 26, 0.14), 0 0 0 1px rgba(20, 22, 26, 0.08);
}

.bundle-pick:focus-visible {
    outline: 2px solid var(--box-black);
    outline-offset: 2px;
}

.bundle-pick-img {
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #fff, var(--bg-secondary));
    padding: 12px 12px 6px;
}

.bundle-pick:hover .bundle-pick-img img {
    transform: scale(1.04);
}

.bundle-pick-img img {
    transition: transform var(--transition-base);
}

.bundle-pick-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bundle-pick-body {
    padding: 12px 12px 16px;
    text-align: center;
}

.bundle-pick-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.bundle-pick-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bundle-pick-check {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--box-black);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
}

.bundle-pick-minus {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: #d1362f;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.bundle-pick-minus:hover {
    background: #b02a24;
    transform: scale(1.08);
}

.bundle-pick.selected {
    border-color: var(--box-black);
    box-shadow: 0 0 0 2px var(--box-black), 0 10px 24px rgba(20, 22, 26, 0.14);
}

.bundle-pick.selected .bundle-pick-check {
    opacity: 1;
    animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkPop {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    60% {
        transform: scale(1.18);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bundle-pick.is-full:not(.selected) {
    opacity: 0.42;
    cursor: not-allowed;
}

.bundle-pick.flash {
    animation: pickFlash 1.2s ease;
}

@keyframes pickFlash {
    0%, 100% {
        box-shadow: 0 0 0 2px var(--box-black), 0 10px 24px rgba(20, 22, 26, 0.14);
    }

    25%, 75% {
        box-shadow: 0 0 0 3px var(--warm-gold, #b8892f);
    }
}

.bundle-pick.is-full:not(.selected):hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.bundle-more {
    display: block;
    margin: 24px auto 0;
    padding: 11px 32px;
    font-family: var(--font-arabic);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bundle-more:hover {
    background: var(--bg-tertiary);
}

.bundle-more[hidden] {
    display: none;
}

/* ===== Summary: the box ===== */
.bundle-summary {
    position: sticky;
    top: 118px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color, rgba(20, 22, 26, 0.14));
    padding: 26px 24px 24px;
    color: var(--text-primary, #14161a);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bundle-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.bundle-summary-head h2 {
    font-family: var(--font-arabic);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary, #14161a);
    letter-spacing: 0;
}

.bundle-summary-head span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--warm-gold, #8B6914);
    background: rgba(139, 105, 20, 0.08);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(139, 105, 20, 0.22);
}

/* The box preview stage is a sleek dark pedestal for maximum bottle contrast. */
.bundle-stage {
    position: relative;
    aspect-ratio: 1.6 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: radial-gradient(100% 70% at 50% 10%, #1e2025 0%, #0d0e10 100%);
    border: 1px solid rgba(20, 22, 26, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(139, 105, 20, 0.25);
    margin-bottom: 22px;
}

.bundle-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bundle-stage-slots {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--slot-count, 3), 1fr);
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5% 5%;
}

.bundle-stage-slot {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bundle-stage-bottle {
    max-height: 88%;
    max-width: 88%;
    width: auto;
    object-fit: contain;
    object-position: center;
}

.bundle-stage-slot:nth-child(2) .bundle-stage-bottle {
    max-height: 88%;
}

.bundle-stage-slot.filled .bundle-stage-bottle {
    animation: slotDrop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Empty slot: a faint bottle silhouette with its number. */
.bundle-stage-bottle.ghost {
    opacity: 0.15;
    filter: grayscale(1) brightness(1.6);
    transition: opacity var(--transition-base);
}

.bundle-stage-slot .bundle-slot-num {
    display: none !important;
}

@keyframes slotDrop {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chosen list */
.bundle-slot-list {
    list-style: none;
    border-top: 1px solid var(--border-color, rgba(20, 22, 26, 0.1));
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.bundle-slot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 22, 26, 0.08);
    border-radius: var(--radius-md);
    background: #f7f7f8;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bundle-slot-row:hover {
    background: #eeeef1;
    border-color: rgba(20, 22, 26, 0.18);
}

.bundle-slot-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(20, 22, 26, 0.08);
    color: #6b6e73;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bundle-slot-row.filled {
    background: rgba(139, 105, 20, 0.06);
    border-color: rgba(139, 105, 20, 0.3);
}

.bundle-slot-row.filled .bundle-slot-index {
    background: var(--warm-gold, #8B6914);
    color: #ffffff;
}

.bundle-slot-name {
    flex: 1;
    color: #6b6e73;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.bundle-slot-row.filled .bundle-slot-name {
    color: var(--text-primary, #14161a);
    font-weight: 700;
}

.bundle-slot-remove {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.bundle-slot-remove:hover {
    color: #dc2626;
    transform: scale(1.15);
}

/* Price */
.bundle-price {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 6px;
}

.bundle-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.bundle-price-old {
    font-size: 1rem;
    color: #dc2626;
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    font-weight: 600;
}

.bundle-price-new {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--warm-gold, #8B6914);
}

.bundle-price-new .cur {
    font-size: 0.92rem;
    font-weight: 500;
    color: #6b6e73;
    margin-inline-start: 5px;
}

.bundle-price-save {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--warm-gold, #8B6914);
    padding: 4px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.25);
    letter-spacing: 0.3px;
}

.bundle-price-note {
    display: block;
    margin-top: 10px;
    font-size: 0.76rem;
    color: #6b6e73;
}

.bundle-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bundle-cta {
    width: 100%;
    background: #14161a;
    color: #ffffff;
    border: none;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(20, 22, 26, 0.2);
    transition: all var(--transition-fast);
}

.bundle-cta:hover:not(:disabled) {
    background: #2c2f33;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(20, 22, 26, 0.3);
}

.bundle-cta:disabled {
    opacity: 1;
    background: #eeeef1;
    color: #999999;
    border: 1px dashed rgba(20, 22, 26, 0.2);
    box-shadow: none;
}

.bundle-add-another {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--warm-gold, #8B6914);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.3);
    transition: all var(--transition-fast);
}

.bundle-add-another:hover {
    background: #735610;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 105, 20, 0.4);
}

.bundle-add-another[hidden] {
    display: none;
}

/* Cart Banner & Saved Bundles Drawer */
.bundle-cart-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: rgba(139, 105, 20, 0.08);
    border: 1px solid rgba(139, 105, 20, 0.25);
    border-radius: var(--radius-sm);
    color: var(--warm-gold, #8B6914);
    font-size: 0.85rem;
    font-weight: 700;
}

.bundle-cart-banner[hidden] {
    display: none !important;
}

.bundle-cart-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bundle-cart-toggle-btn {
    background: rgba(139, 105, 20, 0.12);
    color: var(--warm-gold, #8B6914);
    border: 1px solid rgba(139, 105, 20, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.bundle-cart-toggle-btn:hover {
    background: var(--warm-gold, #8B6914);
    color: #ffffff;
}

.bundle-cart-checkout-link {
    color: #ffffff;
    background: var(--warm-gold, #8B6914);
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background var(--transition-fast);
}

.bundle-cart-checkout-link:hover {
    background: #735610;
    color: #ffffff;
}

.bundle-saved-drawer {
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(20, 22, 26, 0.12));
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bundle-saved-drawer[hidden] {
    display: none !important;
}

.bundle-saved-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(20, 22, 26, 0.1);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bundle-saved-drawer-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
}

.bundle-saved-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bundle-saved-card {
    background: #f7f7f8;
    border: 1px solid rgba(20, 22, 26, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bundle-saved-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.bundle-saved-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #14161a;
}

.bundle-saved-card-names {
    font-size: 0.74rem;
    color: #6b6e73;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bundle-remove-single {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.bundle-remove-single:hover {
    background: #dc2626;
    color: #ffffff;
}

.bundle-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.bundle-qty-title {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.bundle-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bundle-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    transition: all var(--transition-fast);
}

.bundle-qty-btn:hover {
    background: #e0b448;
    color: #000;
    border-color: #e0b448;
}

.bundle-qty-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    min-width: 18px;
    text-align: center;
}

.bundle-reset {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--silver-dim);
    font-family: var(--font-arabic);
    font-size: 0.82rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.bundle-reset:hover {
    color: #fff;
}

.bundle-reset[hidden] {
    display: none;
}

/* ===== Scroll to top / summary button ===== */
.bundle-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 280;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--box-black);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-family: var(--font-arabic);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(20, 22, 26, 0.3);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.bundle-scroll-top:hover {
    background: #000;
    transform: translateY(-2px);
}

.bundle-scroll-top[hidden] {
    display: none;
}

/* ===== Toast ===== */
.bundle-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--box-black);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    animation: toastIn var(--transition-base);
}

.bundle-toast[hidden] {
    display: none;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile bar ===== */
.bundle-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
}

.bundle-mobile-bar[hidden] {
    display: none;
}

/* Progress fill line spanning the top edge of the sticky bar. */
.bundle-mobile-progress {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.bundle-mobile-progress-fill {
    height: 100%;
    width: 0;
    background: var(--warm-gold);
    transition: width var(--transition-base);
}

.bundle-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bundle-mobile-count {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.bundle-mobile-price {
    font-size: 1.1rem;
    font-weight: 800;
}

.bundle-mobile-bar .bundle-btn {
    padding: 12px 24px;
    font-size: 0.86rem;
    white-space: nowrap;
}

/* ===== Trust strip ===== */
.bundle-trust {
    background: var(--box-black);
    padding: 22px 0;
}

.bundle-trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
}

.bundle-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.bundle-trust-item i {
    color: var(--silver);
    font-size: 1.15rem;
}

/* ===== Footer ===== */
.bundle-footer {
    padding: 56px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 211, 102, 0.08);
    color: #128c7e !important;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem !important;
    transition: all var(--transition-fast);
}

.footer-wa-btn i {
    font-size: 1.1rem;
    color: #25d366;
}

.footer-wa-btn:hover {
    background: #25d366;
    color: #fff !important;
    border-color: #25d366;
}

.footer-wa-btn:hover i {
    color: #fff;
}

.bundle-footer-copy {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .bundle-layout {
        grid-template-columns: 1fr;
    }

    .bundle-summary {
        position: static;
        order: -1;
    }

    .bundle-perks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Both announcements side by side overflow a phone viewport; css/checkout.css
       drops the second one for the same reason. */
    .bundle-header .header-top .container {
        justify-content: center;
    }

    .bundle-header .header-top span:last-child {
        display: none;
    }

    .bundle-nav-links {
        display: none;
    }

    /* On phones the box photo becomes a top band; text sits below it on cream,
       so the desktop left-scrim is not needed. */
    .bundle-hero {
        min-height: 0;
        display: block;
        background: #fff;
    }

    .bundle-hero::before {
        display: none;
    }

    .bundle-hero-photo {
        position: relative;
        width: 100%;
        height: 52vw;
        min-height: 210px;
        inset: auto;
        background-position: center;
        -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    }

    .bundle-hero-inner {
        padding: 0 22px 28px;
        display: block;
    }

    .bundle-hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bundle-hero-text .bundle-eyebrow {
        display: none;
    }

    .bundle-hero-text .bundle-rule {
        display: none;
    }

    /* Tighter heading */
    .bundle-hero-text h1 {
        order: 1;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .bundle-hero-price {
        order: 2;
        justify-content: center;
        margin: 0 0 18px;
    }

    /* Hide save line on mobile; show old price + "فقط" instead */
    .bundle-hero-price .save {
        display: none;
    }

    .bundle-hero-price .was {
        order: 3;
        font-size: 0.95rem;
    }

    .bundle-hero-price .now::after {
        content: "فقط";
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--warm-muted);
        margin-inline-start: 8px;
    }

    /* Hide subtitle on mobile */
    .bundle-hero-sub {
        display: none;
    }

    .bundle-hero-cta {
        order: 4;
        width: 100%;
    }

    /* How it works section mobile redesign */
    .bundle-how {
        padding: 24px 0 28px;
        background: var(--bg-secondary, #f7f7f8);
        border-bottom: 1px solid var(--border-color, rgba(20, 22, 26, 0.08));
    }

    .bundle-how-title {
        font-size: 1.25rem;
        font-weight: 800;
        margin-bottom: 16px;
        color: var(--text-primary, #14161a);
    }

    .bundle-how-arrow {
        display: none;
    }

    .bundle-how-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .bundle-how-step {
        max-width: none;
        background: #ffffff;
        border: 1px solid rgba(20, 22, 26, 0.08);
        border-radius: var(--radius-md);
        padding: 14px 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .bundle-how-num {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--warm-gold, #8B6914);
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 800;
        box-shadow: 0 4px 10px rgba(139, 105, 20, 0.25);
    }

    .bundle-how-step p {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-primary, #14161a);
        line-height: 1.35;
    }

    .bundle-builder-section {
        padding: 34px 0 110px;
    }

    .bundle-picker-top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    /* Duplicates the fill line now on the sticky bottom bar. */
    .bundle-progress {
        display: none;
    }

    .bundle-controls {
        grid-template-columns: 1fr;
    }

    .bundle-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .bundle-pick-img {
        padding: 6px 6px 4px;
    }

    .bundle-pick-body {
        padding: 8px 4px 10px;
    }

    .bundle-pick-name {
        font-size: 0.78rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .bundle-pick-meta {
        font-size: 0.7rem;
    }

    .bundle-pick-check {
        top: 6px;
        left: 6px;
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .bundle-pick-minus {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .bundle-mobile-bar {
        display: flex;
    }

    .bundle-mobile-bar[hidden] {
        display: none;
    }

    .bundle-toast {
        right: 16px;
        left: 16px;
        bottom: 82px;
        justify-content: center;
    }

    .bundle-scroll-top {
        left: 16px;
        bottom: 82px;
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    .bundle-footer {
        padding-bottom: 96px;
    }
}

@media (max-width: 480px) {
    .bundle-perks {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .bundle-price-new {
        font-size: 1.85rem;
    }
}

/* ===== Bundle Footer WhatsApp Help Banner ===== */
.bundle-footer-whatsapp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px;
    margin-bottom: 40px;
    border-radius: var(--radius-xl, 20px);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(18, 140, 126, 0.14) 100%);
    border: 1px solid rgba(37, 211, 102, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bfw-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bfw-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.bfw-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.bfw-text p {
    font-size: 0.88rem;
    color: #cccccc;
    margin: 0;
}

.bfw-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-lg, 14px);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.bfw-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .bundle-footer-whatsapp-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }
    .bfw-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .bfw-btn {
        width: 100%;
        justify-content: center;
    }
}
