/* ==========================================================================
   BEBO Beauty — brand theme (brand pink, pastel pink, white, charcoal)
   Loaded AFTER store.css and catwalk.css. It only re-maps the colour tokens
   the earlier theme already uses (the --gold* tokens now hold pinks) and
   overrides the few hard-coded colours. No functional/layout rules live here.

   Palette (sampled from the supplied BEBO logo artwork):
     --bebo        #dd3872  brand pink (graphics, large text, accents)
     --bebo-btn    #cc2f69  button fill / link text (white text >= 4.5:1)
     --bebo-dark   #a91f52  hover / pressed
     --bebo-pastel #fde8ef  soft pastel pink surfaces
     --bebo-blush  #fff6f9  very light page sections
     --charcoal    #2b2327  body text / headings
   ========================================================================== */
:root {
    --bebo: #dd3872;
    --bebo-btn: #cc2f69;
    --bebo-dark: #a91f52;
    --bebo-deep: #8f1b46;
    --bebo-pastel: #fde8ef;
    --bebo-blush: #fff6f9;
    --charcoal: #2b2327;

    /* Re-map the catwalk tokens */
    --ink: var(--charcoal);
    --ink-2: #3a2f35;
    --gold: var(--bebo);
    --gold-light: #f6a9c3;
    --gold-pale: var(--bebo-pastel);
    --gold-deep: var(--bebo-btn);
    --ivory: var(--bebo-blush);
    --sand: #fdeef3;
    --line: #f4dfe7;
    --crimson: var(--bebo-dark);
    --grad-gold: linear-gradient(135deg, #f58fb2 0%, #e8548a 38%, var(--bebo) 70%, var(--bebo-btn) 100%);

    --brand-ink: var(--bebo-btn);
    --brand-ink-hover: var(--bebo-dark);
    --brand-light: var(--gold-light);
    --accent-ink: var(--bebo-dark);
    --accent-ink-hover: var(--bebo-deep);
    --tech-ink: var(--bebo-btn);
    --text: #3a3035;
    --muted: #6f6168;
    --border: var(--line);
    --border-strong: #ecc9d6;
    --shadow: 0 18px 40px -26px rgba(143, 27, 70, .35);
    --shadow-lg: 0 30px 60px -30px rgba(143, 27, 70, .45);
    --shadow-brand: 0 16px 30px -18px rgba(221, 56, 114, .65);
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --bs-primary: var(--bebo-btn);
    --bs-link-color: var(--bebo-btn);
    --bs-link-hover-color: var(--bebo-dark);
    --bs-border-radius: 8px;
}
::selection { background: rgba(221, 56, 114, .2); }
:focus-visible { outline-color: var(--bebo); }

/* ---------- Buttons: brand pink, darker pink on hover ---------- */
.theme-catwalk .btn-primary, .theme-catwalk .btn-brand, .theme-catwalk .btn-cta, .theme-catwalk .btn-dark {
    --bs-btn-bg: var(--bebo-btn); --bs-btn-border-color: var(--bebo-btn); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--bebo-dark); --bs-btn-hover-border-color: var(--bebo-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--bebo-deep); --bs-btn-active-border-color: var(--bebo-deep); --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: #c9aab6; --bs-btn-disabled-border-color: #c9aab6; --bs-btn-disabled-color: #fff;
    --bs-btn-focus-shadow-rgb: 221, 56, 114;
    border-radius: 999px; letter-spacing: .06em;
}
.theme-catwalk .btn-outline-primary, .theme-catwalk .btn-outline-dark {
    --bs-btn-color: var(--bebo-btn); --bs-btn-border-color: var(--bebo-btn);
    --bs-btn-hover-bg: var(--bebo-btn); --bs-btn-hover-border-color: var(--bebo-btn); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--bebo-dark); --bs-btn-active-border-color: var(--bebo-dark); --bs-btn-active-color: #fff;
    border-radius: 999px;
}
.theme-catwalk .btn-light { border-radius: 999px; --bs-btn-hover-border-color: var(--bebo); --bs-btn-hover-color: var(--bebo-btn); }
.theme-catwalk .btn-buy-now, .theme-catwalk .btn-outline-dark { border-radius: 999px; }
.btn-lux { color: #fff !important; background: linear-gradient(135deg, var(--bebo) 0%, var(--bebo-btn) 100%); border-color: var(--bebo-btn); box-shadow: 0 14px 28px -18px rgba(221, 56, 114, .8); }
.btn-lux:hover { background-position: 100% 0; color: #fff !important; }
.btn-lux-outline { color: var(--bebo-btn) !important; border-color: var(--bebo-btn); }
.btn-lux-outline:hover { background: var(--bebo-btn); color: #fff !important; }
.form-check-input:checked { background-color: var(--bebo-btn); border-color: var(--bebo-btn); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--bebo); box-shadow: 0 0 0 .2rem rgba(221, 56, 114, .16); }

/* ---------- Branded loader ---------- */
.sc-loader { background: radial-gradient(120% 90% at 50% 10%, #fff 0%, var(--bebo-blush) 70%); }
.sc-loader-bar { background: rgba(221, 56, 114, .18); }
.sc-loader-bar span { background: linear-gradient(90deg, transparent, var(--bebo), transparent); }
@keyframes scGlow { from { opacity: .85; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

/* ---------- Top bar ---------- */
.topbar { background: var(--bebo-btn); color: rgba(255, 255, 255, .92); }
.topbar a { color: rgba(255, 255, 255, .92); }
.topbar a:hover, .topbar a:focus-visible { color: #fff; }
.topbar i { color: #fff; }
.topbar-info > a + a { border-left-color: rgba(255, 255, 255, .35); }
.topbar-follow { color: rgba(255, 255, 255, .75); }

/* ---------- Header: the BEBO wordmark is wide (about 3.4:1), so size it by height ---------- */
.brand-logo img { height: 44px; width: auto; max-width: 100%; }
.site-header.scrolled .brand-logo img { height: 38px; }
.header-action .count { background: var(--bebo-btn); color: #fff; }
.cart-action .count { background: var(--bebo-btn); }
.theme-catwalk .header-action:hover { background: var(--bebo-pastel); color: var(--bebo-btn); }
.search-panel .header-search .search-btn { background: var(--bebo-btn); color: #fff; }
.btn-app { border-color: var(--bebo); }
.btn-app:hover, .btn-app:focus-visible { background: var(--bebo-btn); color: #fff; }
.btn-app:hover i { color: #fff; }
@media (max-width: 991.98px) {
    .brand-logo img, .site-header.scrolled .brand-logo img { height: 34px; }
}
@media (max-width: 380px) {
    .brand-logo img, .site-header.scrolled .brand-logo img { height: 30px; }
}
.offcanvas-menu .offcanvas-header .brand-logo img { height: 36px; }
.mobile-bottom-nav .active { color: var(--bebo-btn); }

/* ---------- Footer: deep brand pink with the white logo ---------- */
.theme-catwalk .site-footer { background: linear-gradient(180deg, var(--bebo-dark) 0%, var(--bebo-deep) 100%); color: rgba(255, 255, 255, .86); }
.theme-catwalk .site-footer a { color: rgba(255, 255, 255, .88); }
.theme-catwalk .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-logo img { height: 56px; }
.theme-catwalk .footer-title { color: #fff; }
.footer-ornament { color: #fff; }
.footer-ornament span { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)); }
.footer-ornament span:last-child { background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent); }
.site-footer .contact-list i { color: #fff; }
.site-footer .map-link { color: #fff !important; }
.theme-catwalk .footer-bottom { background: #741538; border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); }
.site-footer .social-links a { border-color: rgba(255, 255, 255, .45); color: #fff; }
.site-footer .social-links a:hover { background: #fff; color: var(--bebo-btn) !important; text-decoration: none; }


/* ---------- Beauty product information (product page) ---------- */
.bebo-details { border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; overflow: hidden; background: #fff; }
.bebo-details-head { background: var(--bebo-blush); border-bottom: 1px solid var(--line); padding: .7rem 1rem; font-weight: 700; color: var(--charcoal); }
.bebo-details dl { margin: 0; }
.bebo-details dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding: .65rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.bebo-details dl > div:first-child { border-top: 0; }
.bebo-details dt { font-weight: 600; color: var(--charcoal); }
.bebo-details dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .bebo-details dl > div { grid-template-columns: 1fr; gap: .15rem; } }
.bebo-rich ul, .bebo-rich ol { padding-left: 1.2rem; margin-bottom: .6rem; }
.bebo-rich ul { list-style: none; padding-left: 0; }
.bebo-rich ul li { position: relative; padding-left: 1.5rem; margin-bottom: .3rem; }
.bebo-rich ul li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--bebo); font-weight: 700; }
.bebo-rich h3 { font-size: 1.05rem; }
.bebo-rich table { width: 100%; }
.bebo-bundle li { padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.product-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-tabs .nav-link { white-space: nowrap; }

/* ---------- Brands A-Z & skin-concern chips ---------- */
.brand-az-tools { position: sticky; top: calc(var(--header-h, 70px) + 8px); z-index: 5; background: #fff; padding: .6rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.brand-az-tools input { max-width: 420px; border-radius: 999px; }
.brand-az-index { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.brand-az-index a { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--charcoal); text-decoration: none; }
.brand-az-index a:hover { background: var(--bebo-btn); color: #fff; border-color: var(--bebo-btn); }
.brand-az-group { scroll-margin-top: 150px; margin-bottom: 1.5rem; }
.brand-az-letter { font-size: 1.6rem; color: var(--bebo-btn); border-bottom: 2px solid var(--bebo-pastel); padding-bottom: .25rem; margin-bottom: .8rem; }
.concern-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.concern-chip { padding: .55rem 1.1rem; border-radius: 999px; background: var(--bebo-pastel); color: var(--bebo-dark); font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid transparent; }
.concern-chip:hover { background: var(--bebo-btn); color: #fff; }

/* ---------- Cart drawer (right side; layout after the CuteCare reference, BEBO colours) ----------
   Head (title + close) > count + Clear All > scroll area (progress, item cards) > sticky subtotal + actions. */
#miniCart.bs-drawer { --bs-offcanvas-width: min(440px, 100vw); width: min(440px, 100vw); max-width: 100vw; border-left: 0; box-shadow: -24px 0 48px -28px rgba(43, 35, 39, .45); transition: transform .38s cubic-bezier(.22, .8, .24, 1); }
#miniCart .bs-drawer-head { padding: 1.15rem 1.25rem .4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; color: var(--charcoal); }
.bs-drawer-close { flex: 0 0 auto; }
#miniCart .offcanvas-title { font-family: var(--font-head); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); font-weight: 800; color: var(--charcoal); margin: 0; letter-spacing: -.01em; }
.bs-drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2, #faf6f8); color: var(--charcoal); display: grid; place-items: center; font-size: 1rem; transition: background .2s, color .2s, transform .2s; }
.bs-drawer-close:hover { background: var(--bebo-pastel); color: var(--bebo-btn); transform: rotate(90deg); }
.bs-drawer-close:focus-visible { outline: 2px solid var(--bebo); outline-offset: 2px; }
#miniCart .bs-drawer-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
#miniCart .bs-drawer-body > .empty-state { padding: 0 1.25rem; }
.mini-head { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .35rem 1.25rem .75rem; border-bottom: 1px solid var(--line); }
.mini-count { color: var(--muted); font-size: .95rem; font-weight: 500; }
.mini-clear { border: 0; background: none; color: var(--bebo-btn); font-weight: 700; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; min-height: 36px; padding: .25rem .55rem; border-radius: 8px; }
.mini-clear:hover { background: var(--bebo-pastel); color: var(--bebo-dark); }
.mini-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .9rem 1.25rem .5rem; scrollbar-width: thin; scrollbar-color: #e9cdd8 transparent; }
.mini-scroll .wholesale-notice { margin-bottom: .8rem; }

/* Progress: evenly spaced steps (Current, then each milestone); each segment fills in proportion to the real subtotal. */
.reward-box { background: var(--bebo-blush); border: 1px solid var(--line); border-radius: 16px; padding: 1rem .75rem .8rem; margin-bottom: .9rem; }
.reward-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 2), minmax(0, 1fr)); }
.reward-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 0 .2rem; }
.reward-dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #ecd6df; color: #a8969e; font-size: 1.05rem; margin-bottom: .45rem; transition: background .3s, border-color .3s, color .3s; }
.reward-step.is-done .reward-dot { background: var(--bebo-btn); border-color: var(--bebo-btn); color: #fff; box-shadow: 0 8px 16px -10px rgba(204, 47, 105, .9); }
.reward-bar { position: absolute; top: 21px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 99px; background: #ecd6df; overflow: hidden; }
.reward-fill { display: block; height: 100%; width: 0; background: var(--bebo-btn); border-radius: 99px; transition: width .6s cubic-bezier(.22, .8, .24, 1); }
.reward-step b { font-size: .88rem; font-weight: 800; color: var(--charcoal); line-height: 1.2; white-space: nowrap; }
.reward-step.is-current b { color: var(--bebo-btn); }
.reward-step small { font-size: .72rem; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.reward-msg { margin-top: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .75rem; font-size: .88rem; color: var(--charcoal); text-align: center; }
.reward-msg b { color: var(--bebo-btn); }
.reward-msg i { color: var(--bebo-btn); }
.reward-goal { white-space: nowrap; }
.reward-msg.is-done { background: var(--bebo-pastel); border-color: transparent; color: var(--bebo-deep); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .reward-fill, .reward-dot, #miniCart.bs-drawer { transition: none; } }

/* Item cards */
.mini-lines { list-style: none; margin: 0; padding: 0; }
.mini-lines .mini-item { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .75rem; margin-bottom: .7rem; transition: opacity .2s; }
.mini-lines .mini-item.is-updating { opacity: .55; }
.mini-lines .mini-item .img-wrap { flex: 0 0 auto; display: block; border-radius: 12px; overflow: hidden; background: var(--bebo-blush); }
.mini-lines .mini-item img { display: block; width: 84px; height: 84px; object-fit: cover; border: 0; border-radius: 12px; }
.mini-info { flex: 1 1 auto; min-width: 0; }
.mini-top { display: flex; align-items: flex-start; gap: .4rem; }
.mini-name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--charcoal); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-name:hover { color: var(--bebo-btn); }
.mini-lines .cart-line-remove { color: var(--bebo-btn); margin: -4px -4px 0 0; }
.mini-lines .cart-line-remove:hover, .mini-lines .cart-line-remove:focus-visible { background: var(--bebo-pastel); color: var(--bebo-dark); }
.mini-variant { font-size: .78rem; color: var(--muted); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-unit { font-weight: 800; font-size: 1rem; color: var(--charcoal); margin: .2rem 0 0; }
.mini-warn { font-size: .78rem; color: #b42318; margin-top: .15rem; }
.mini-lines .cart-line-foot { margin-top: .45rem; }
.mini-lines .qty-stepper.xs { border-color: var(--line); background: var(--surface-2, #faf6f8); }
.mini-line-total { font-size: .88rem; color: var(--charcoal); white-space: nowrap; }

/* Sticky footer: always visible while the list scrolls */
.mini-foot { flex: 0 0 auto; padding: .9rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -14px 24px -22px rgba(43, 35, 39, .45); }
.mini-sum { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .8rem; }
.mini-subtotal { font-weight: 800; font-size: 1.05rem; color: var(--charcoal); }
.mini-subtotal small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.mini-subtotal-amt { font-size: 1.4rem; font-weight: 800; color: var(--charcoal); white-space: nowrap; }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mini-actions .btn { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; border-radius: 12px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding-left: .5rem; padding-right: .5rem; }
.mini-actions .btn-outline-dark { border-color: var(--line); border-width: 1.5px; color: var(--charcoal); background: #fff; }
.mini-actions .btn-outline-dark:hover { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
@media (max-width: 359.98px) {
    #miniCart .bs-drawer-head, .mini-head, .mini-scroll, .mini-foot { padding-left: 1rem; padding-right: 1rem; }
    .mini-lines .mini-item img { width: 68px; height: 68px; }
    .mini-actions .btn { font-size: .92rem; }
}

/* ---------- Wholesale ---------- */
.wholesale-points li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.wholesale-points i { color: var(--bebo); font-size: 1.15rem; margin-top: .1rem; }
.wholesale-notice { background: #fff8e6; border: 1px solid #f3dca0; color: #6b4e00; border-radius: 10px; padding: .6rem .8rem; font-size: .86rem; margin-bottom: .8rem; }
.wholesale-notice.is-ok { background: var(--bebo-pastel); border-color: transparent; color: var(--bebo-deep); }
.badge-wholesale { background: var(--bebo-pastel); color: var(--bebo-dark); font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; }

/* ---------- Mobile bottom nav: raised cart button in the centre ---------- */
.mobile-bottom-nav button { background: none; border: 0; }
.mobile-bottom-nav .bottom-cart { position: relative; }
.mobile-bottom-nav .bottom-cart-icon { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--bebo-btn); color: #fff; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(221, 56, 114, .8); }
.mobile-bottom-nav .bottom-cart-icon i { font-size: 1.35rem; }
.mobile-bottom-nav .bottom-cart-icon .count { position: absolute; top: -8px; right: -6px; background: #fff; color: var(--bebo-btn); border: 1px solid var(--bebo-btn); min-width: 20px; height: 20px; border-radius: 999px; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.mobile-bottom-nav a:hover, .mobile-bottom-nav button:hover { color: var(--bebo-btn); }
