/* Home banner bundle page + bundle lines in the cart / checkout. */

/* The hero runs up under the fixed header, like the home page banners. */
.product-detail-section.dr-bundle-page {
    padding-top: 0;
}

/* ---------- Hero: text panel + banner image ---------- */
.dr-bundle-hero {
    --fg: #fff;
    --muted: rgba(255, 255, 255, .86);
    --line: rgba(255, 255, 255, .28);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(440px, 48vw, 660px);
    background: var(--bundle-bg, #17233f);
    color: var(--fg);
}

/* Bundle banner without an image: text only, on the background colour. */
.dr-bundle-hero.no-image {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(320px, 30vw, 520px);
}

.dr-bundle-hero.is-dark {
    --fg: #111;
    --muted: #333;
    --line: rgba(0, 0, 0, .18);
}

.dr-bundle-hero-text {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(32px, 5vw, 80px);
    padding-top: calc(110px + clamp(16px, 3vw, 48px));
}

.dr-bundle-hero-text > :not(.dr-bundle-snow) {
    position: relative;
}

/* A few soft snow dots behind the text */
.dr-bundle-snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background:
        radial-gradient(circle at 9% 11%, currentColor 0 3px, transparent 4px),
        radial-gradient(circle at 40% 9%, currentColor 0 2px, transparent 3px),
        radial-gradient(circle at 73% 18%, currentColor 0 3px, transparent 4px),
        radial-gradient(circle at 89% 8%, currentColor 0 4px, transparent 5px),
        radial-gradient(circle at 93% 31%, currentColor 0 2px, transparent 3px),
        radial-gradient(circle at 6% 48%, currentColor 0 2px, transparent 3px),
        radial-gradient(circle at 92% 61%, currentColor 0 3px, transparent 4px),
        radial-gradient(circle at 4% 84%, currentColor 0 3px, transparent 4px),
        radial-gradient(circle at 19% 95%, currentColor 0 2px, transparent 3px),
        radial-gradient(circle at 51% 92%, currentColor 0 3px, transparent 4px),
        radial-gradient(circle at 81% 89%, currentColor 0 2px, transparent 3px);
}

.dr-bundle-hero.is-dark .dr-bundle-snow {
    opacity: .15;
}

.dr-bundle-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dr-bundle-title {
    margin: 28px 0 24px;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.045em;
    color: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dr-bundle-description {
    max-width: 440px;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--muted);
}

.dr-bundle-description p:last-child {
    margin-bottom: 0;
}

.dr-bundle-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 32px;
}

.dr-bundle-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.dr-bundle-shop:hover,
.dr-bundle-shop:focus-visible {
    background: #333;
    color: #fff;
}

.dr-bundle-meta {
    font-size: .875rem;
    color: var(--muted);
}

.dr-bundle-meta strong {
    color: var(--fg);
}

.dr-bundle-meta del {
    margin-left: 4px;
    opacity: .7;
}

.dr-bundle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    width: 100%;
    max-width: 460px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: .8125rem;
    font-weight: 600;
}

.dr-bundle-hero-img {
    position: relative;
    background: #8a8a8a;
}

.dr-bundle-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- What's in the set ---------- */
.dr-bundle-set-head {
    margin: 72px 0 36px;
    text-align: center;
}

.dr-bundle-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #111;
}

.dr-bundle-set-title {
    margin: 0;
    font-size: clamp(1.875rem, 3.6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.035em;
    color: #111;
}

.dr-bundle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 16px;
}

/* One product / gift card */
.dr-bundle-line {
    display: flex;
    flex-direction: column;
    flex: 0 1 calc(25% - 12px);
    min-width: 0;
}

.dr-bundle-line-img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
}

.dr-bundle-line-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.dr-bundle-line-img:hover img {
    transform: scale(1.03);
}

.dr-bundle-free-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: #17233f;
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dr-bundle-line-body {
    min-width: 0;
}

.dr-bundle-line-num {
    display: block;
    margin-top: 14px;
    font-size: .75rem;
    color: #666;
}

.dr-bundle-line-name {
    margin: 2px 0 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #111;
}

.dr-bundle-line.is-missing .dr-bundle-line-hint {
    color: #c0392b;
    font-weight: 600;
}

.dr-bundle-line.is-missing .dr-bundle-sizes .dr-bundle-size:not(:disabled) {
    border-color: #c0392b;
}

.dr-bundle-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dr-bundle-sizes .dr-bundle-size {
    min-width: 42px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
    font-size: .8125rem;
    cursor: pointer;
}

.dr-bundle-sizes .dr-bundle-size.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.dr-bundle-sizes .dr-bundle-size:disabled {
    color: #bbb;
    text-decoration: line-through;
    cursor: not-allowed;
}

.dr-bundle-line-hint {
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    color: #888;
}

/* Free gift options (pick one) */
.dr-bundle-gifts {
    margin-top: 56px;
}

.dr-bundle-gifts-head {
    margin-bottom: 24px;
    text-align: center;
}

.dr-bundle-gifts-head h3 {
    margin: 2px 0 6px;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #111;
}

.dr-bundle-gifts-head p {
    margin: 0;
    font-size: .875rem;
    color: #666;
}

.dr-bundle-line.is-option {
    padding: 10px;
    border: 1px solid #e5e5e5;
    transition: border-color .2s, box-shadow .2s;
}

.dr-bundle-line.is-option .dr-bundle-line-img {
    cursor: pointer;
}

.dr-bundle-line.is-option.is-chosen {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.dr-bundle-line.is-option:not(.is-chosen) .dr-bundle-line-img img {
    opacity: .75;
}

.dr-bundle-gift-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: .8125rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
}

.dr-bundle-gift-pick input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #111;
}

.dr-bundle-gift-pick input:disabled + span {
    color: #999;
}

/* ---------- Buy ---------- */
.dr-bundle-buybox {
    max-width: 560px;
    margin: 56px auto 0;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.dr-bundle-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dr-bundle-price-now {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
}

.dr-bundle-price del {
    color: #999;
}

.dr-bundle-save {
    padding: 2px 8px;
    background: #111;
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
}

.dr-bundle-price .dr-sale-countdown {
    flex-basis: 100%;
    text-align: center;
    margin: 0;
}

.dr-bundle-buy {
    display: flex;
    gap: 12px;
}

.dr-bundle-qty {
    display: flex;
    flex-shrink: 0;
    height: 56px;
    border: 1px solid #111;
}

.dr-bundle-qty button {
    width: 44px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 1.125rem;
}

.dr-bundle-qty input {
    width: 48px;
    border: 0;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.dr-bundle-qty input::-webkit-outer-spin-button,
.dr-bundle-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dr-bundle-add {
    flex: 1;
    cursor: pointer;
}

.dr-bundle-add:disabled {
    opacity: .6;
}

.dr-bundle-error {
    margin-top: 12px;
    color: #c0392b;
    font-size: .875rem;
    text-align: center;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 991px) {
    .dr-bundle-line {
        flex-basis: calc(50% - 8px);
    }
}

@media (max-width: 767px) {
    .dr-bundle-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .dr-bundle-hero-img {
        order: -1;
        aspect-ratio: 9 / 10;
        max-height: 70vh;
    }

    .dr-bundle-hero-text {
        padding: 32px 20px 36px;
    }

    .dr-bundle-title {
        margin: 20px 0 18px;
    }

    .dr-bundle-description {
        font-size: 1rem;
    }

    .dr-bundle-cta {
        width: 100%;
        margin-top: 24px;
    }

    .dr-bundle-shop {
        justify-content: center;
        width: 100%;
    }

    .dr-bundle-features {
        gap: 8px 20px;
        margin-top: 24px;
        padding-top: 18px;
        font-size: .75rem;
    }

    .dr-bundle-set-head {
        margin: 44px 0 24px;
        text-align: left;
    }

    .dr-bundle-eyebrow {
        display: none;
    }

    /* Cards become rows: image left, name + sizes right */
    .dr-bundle-grid {
        flex-direction: column;
        gap: 14px;
    }

    .dr-bundle-line {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        flex-basis: auto;
    }

    .dr-bundle-line-img {
        flex: 0 0 37%;
    }

    .dr-bundle-line-body {
        flex: 1;
    }

    .dr-bundle-free-tag {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: .625rem;
    }

    .dr-bundle-line-num {
        margin-top: 0;
    }

    .dr-bundle-buybox {
        margin-top: 36px;
    }

    .dr-bundle-gifts {
        margin-top: 40px;
    }

    .dr-bundle-gifts-head {
        text-align: left;
    }

    .dr-bundle-buy {
        flex-direction: column;
    }

    .dr-bundle-qty {
        align-self: center;
    }
}

/* Bundle contents under a cart / checkout / mini-cart line */
.dr-bundle-contents {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    color: #666;
    line-height: 1.5;
}

.dr-bundle-contents .is-free {
    color: #111;
}
/* Colour choice (variants with colour + size) */
.dr-bundle-colours {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.dr-bundle-colour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
    font-size: .8125rem;
    cursor: pointer;
}

.dr-bundle-colour.active {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.dr-bundle-colour:disabled {
    color: #bbb;
    cursor: not-allowed;
}

.dr-bundle-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
}

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

.dr-bundle-only-colour {
    align-self: center;
    margin-right: 4px;
    font-size: .8125rem;
    color: #666;
}
