/* =========================================================
   INTERCELL — additions on top of the template (style.css + pages.css)
   ========================================================= */

/* ---------- Logo ---------- */
.logo span { letter-spacing: .02em; }
.logo b { color: var(--primary); font-weight: 800; }
.logo img { border-radius: 10px; }

/* ---------- Shop logo image ---------- */
.v-logo--img { object-fit: cover; background: #fff; padding: 0; }
.v-logo.v-logo--img.xs { width: 20px; height: 20px; }

/* ---------- Merged mark (verified seal with B / W / R) ---------- */
.mk { --mk: #2f80ed; position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.mk svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk svg path { fill: var(--mk); }
.mk b { position: relative; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.mk--b { --mk: #7c3aed; }
.mk--w { --mk: #0d9488; }
.mk--r { --mk: #2f80ed; }
.mk.lg { width: 26px; height: 26px; }
.mk.lg b { font-size: 13px; }
.mk.xl { width: 34px; height: 34px; }
.mk.xl b { font-size: 16px; }

/* ---------- Product card extras ---------- */
.p-card__tier { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: #f1ecff; color: #7c3aed; }
.p-card__tier--wholesale { background: #e0f5f2; color: #0d9488; }
.p-card__price small { color: var(--muted); font-size: 12px; }
.p-card__img .mk { position: absolute; top: 10px; right: 52px; }
.p-card__soon { opacity: .9; }

/* ---------- Flash messages ---------- */
.site-alerts { position: fixed; top: 90px; right: 18px; z-index: 210; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.site-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); background: var(--navy); animation: toastIn .3s; }
.site-alert--success { background: #0f7a3f; }
.site-alert--error { background: #c52b2e; }
.site-alert .ic { width: 20px; height: 20px; flex-shrink: 0; }
.site-alert button { margin-left: auto; color: #fff; opacity: .8; }
.site-alert.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@media (max-width: 768px) { .site-alerts { top: auto; bottom: 80px; left: 16px; right: 16px; max-width: none; } }

/* ---------- Category tiles without an image ---------- */
.cat-tile__ph { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.cat-tile small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
@media (max-width: 768px) { .cat-tile__ph { width: 52px; height: 52px; font-size: 20px; } }
.drawer__ph { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; flex-shrink: 0; }

/* ---------- Store cards (home) ---------- */
.store-card__body .v-logo--img { width: 56px; height: 56px; border: 4px solid #fff; border-radius: 50%; }
.store-card__name .mk { margin-left: 2px; }

/* ---------- Load more ---------- */
.load-more .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---------- Product details extras ---------- */
.pd__tier { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7c3aed; margin-top: 6px; }
.pd__price .note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pd-desc { color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.pd-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.pd-desc table { width: 100%; border-collapse: collapse; }
.pd-desc td, .pd-desc th { border: 1px solid var(--line); padding: 6px 10px; }
.pd-highlights { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); }
.pd-highlights li { margin-bottom: 4px; }
.vendor-box__merge { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.vendor-box__merge b { font-weight: 800; }
.gallery__thumbs { grid-template-columns: repeat(5, 1fr); }

/* ---------- Store head ---------- */
.v-head .v-logo--img.xl { width: 104px; height: 104px; border: 5px solid #fff; box-shadow: var(--shadow); border-radius: 50%; }
@media (max-width: 768px) { .v-head .v-logo--img.xl { width: 84px; height: 84px; } }
.v-stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .v-stats--4 { grid-template-columns: repeat(2, 1fr); } .v-stats--4 div:nth-child(3) { border-left: 0; } .v-stats--4 div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Merge panel (store page) ---------- */
.merge { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; margin-top: 18px; overflow: hidden; scroll-margin-top: 100px; }
.merge__head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff7f2, #fff); }
.merge h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; min-width: 0; }
.merge h3 .ic { color: var(--primary); flex: 0 0 auto; }
.merge__chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.merge__chip span { min-width: 0; overflow-wrap: anywhere; }
.merge__chip .ic { flex: 0 0 auto; }
.merge__chip.is-ok { background: #e9f8ef; color: #12733f; }
.merge__chip.is-wait { background: #fff1d6; color: #9a5d00; }
.merge__chip.is-none { background: var(--bg); color: var(--muted); }
.merge__hint { color: var(--muted); font-size: 14px; margin: 0; padding: 12px 22px 0; overflow-wrap: anywhere; }
.merge__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; padding: 16px 22px 22px; }
.merge__main, .merge__side { min-width: 0; }
.merge p.merge__lead { color: var(--ink-2, #333); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.merge__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.merge__types .choice { min-width: 0; }
.merge__types .choice b { display: flex; align-items: center; gap: 6px; }
.merge__types .choice span { overflow-wrap: anywhere; }
.merge__limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.merge__limits div { background: var(--bg); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.merge__limits span { display: block; font-size: 12px; color: var(--muted); }
.merge__limits b { font-size: 15px; overflow-wrap: anywhere; }
.merge__side h4 { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.merge__side h4.mt { margin-top: 16px; }
.merge .side-row span { overflow-wrap: anywhere; }
.code-box { border: 2px dashed #f5c38a; background: #fffaf2; border-radius: 12px; padding: 14px; }
.code-box label { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.code-box .row { display: flex; gap: 8px; }
.code-box input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; outline: 0; background: #fff; }
.code-box input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 500; }
.code-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,90,31,.12); }
.code-box small { display: block; color: var(--muted); margin-top: 8px; font-size: 12.5px; }
/* Store head on small screens: nothing runs off the screen */
.v-head__info { min-width: 0; }
.v-head__info h1 { overflow-wrap: anywhere; }
.v-head__meta { flex-wrap: wrap; }
.v-head__btns { flex-wrap: wrap; }
@media (max-width: 992px) { .merge__body { grid-template-columns: 1fr; } }
@media (max-width: 576px) {
  .merge__head { padding: 14px 16px; }
  .merge h3 { font-size: 16px; }
  .merge__chip { font-size: 12.5px; padding: 7px 12px; border-radius: 12px; width: 100%; }
  .merge__hint { padding: 10px 16px 0; font-size: 13px; }
  .merge__body { padding: 14px 16px 18px; gap: 16px; }
  .merge__types { grid-template-columns: 1fr; }
  .merge__limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merge__submit { width: 100%; justify-content: center; }
  .code-box .row { flex-direction: column; }
  .code-box .row .btn { width: 100%; justify-content: center; }
  .v-head__btns .btn { flex: 1 1 auto; justify-content: center; }
}
}

/* ---------- Shop page ---------- */
.filter .cat-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.filter .cat-link small { color: var(--muted); }
.filter .cat-link:hover, .filter .cat-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.filter .rating-opt { text-align: left; }
.chip button, .chip a { display: inline-flex; color: inherit; }
.empty.panel { grid-column: 1 / -1; }
.toolbar form { display: contents; }

/* ---------- Auth server errors ---------- */
.auth .field__error { display: block; }
.auth-notice { background: var(--primary-soft); color: var(--ink-2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* Store page category chips (links) */
.v-cats .v-chip { padding: 8px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 13.5px; }
.v-cats .v-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.v-toolbar form:not(.search) { display: contents; }

/* Shop: price note under the price range (merged B2B / Wholesale customers) */
.price-note { display: block; margin-top: 8px; font-size: 12px; color: var(--muted, #6b7280); line-height: 1.4; }

/* =========================================================
   (added) Cart · Checkout · Orders · My Account dashboard
   ========================================================= */

/* Red notice on top: password = email */
.pw-banner { background: var(--red); color: #fff; font-size: 13.5px; }
.pw-banner__inner { display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.pw-banner__inner .ic { width: 18px; height: 18px; flex-shrink: 0; }
.pw-banner__inner span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pw-banner__inner a { flex-shrink: 0; background: #fff; color: var(--red); font-weight: 800; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; white-space: nowrap; }
.pw-banner__inner a:hover { background: #ffe9e9; }
.action--account { position: relative; }
.action--account .badge { background: var(--red); }

/* Cart lines (no select box) */
.cart-item--plain { grid-template-columns: 90px 1fr auto auto auto; }
.cart-item--plain .cart-item__var { display: block; margin-top: 2px; }
.cart-group__sub { margin-left: auto; color: var(--primary); font-weight: 800; white-space: nowrap; }
.cart-group__vendor a { min-width: 0; }
.qty button:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
button:disabled.btn { opacity: .55; cursor: not-allowed; }

/* Checkout */
.co-guest { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px dashed var(--primary); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.co-guest > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.co-guest div { flex: 1; min-width: 0; font-size: 13.5px; }
.co-guest b { display: block; font-size: 14.5px; }
.co-guest span { color: var(--muted); }
.co-shop { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; font-size: 13.5px; }
.co-shop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-items .summary__row { font-size: 13.5px; border-bottom: 1px dashed var(--line); }

/* Pop-up box */
.ic-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(22, 26, 46, .55); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.ic-modal.open { opacity: 1; visibility: visible; }
.ic-modal__box { position: relative; width: 100%; max-width: 620px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; transform: translateY(14px); transition: transform .2s; }
.ic-modal.open .ic-modal__box { transform: none; }
.ic-modal__box--lg { max-width: 820px; }
.ic-modal__box h2 { font-size: 20px; margin: 0 40px 16px 0; }
.ic-modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); z-index: 1; }
.ic-modal__close:hover { background: var(--primary-soft); color: var(--primary); }
.ic-modal__close .ic { width: 18px; }
.ic-modal__msg:empty { display: none; }
.ic-modal__msg { margin: 0 44px 12px 0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; background: #e8f7ee; color: var(--green); }
.ic-modal__msg.is-error { background: #fdecec; color: var(--red); }
.ic-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ic-modal__loading { padding: 40px 0; text-align: center; color: var(--muted); }
.form-msg:empty { display: none; }
.form-msg { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; background: #e8f7ee; color: var(--green); }
.form-msg.is-error { background: #fdecec; color: var(--red); }

/* Order status colours */
.ost { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.ost--pending { background: #fff6e5; color: #b7740a; }
.ost--processing { background: #e8f0ff; color: #2c5fd6; }
.ost--complete { background: #e8f7ee; color: var(--green); }
.ost--cancel { background: #f0f1f5; color: var(--muted); }
.ost--fake { background: #fdecec; color: var(--red); }

/* Order rows */
.ord-list { display: grid; gap: 10px; }
.ord { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ord:hover { border-color: #d5d8e4; box-shadow: var(--shadow); }
.ord--new { border-color: var(--primary); background: linear-gradient(0deg, #fff, var(--primary-soft)); }
.ord__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ord__shop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ord__shop b { display: block; font-size: 14.5px; }
.ord__shop small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord__bottom { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.ord__bottom b { color: var(--ink); font-size: 15px; margin-right: auto; }

/* Order details (box) */
.od__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-right: 44px; margin-bottom: 14px; }
.od__head h3 { margin: 0; font-size: 19px; }
.od__head small { color: var(--muted); }
.od__hint { display: flex; gap: 8px; align-items: flex-start; background: #fff6e5; color: #8a5a06; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.od__hint .ic { width: 16px; flex-shrink: 0; margin-top: 2px; }
.od__items { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.od-line { display: flex; align-items: center; gap: 12px; padding: 12px; }
.od-line + .od-line { border-top: 1px dashed var(--line); }
.od-line img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.od-line__info { flex: 1; min-width: 0; }
.od-line__info b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-line__info small { color: var(--muted); font-size: 12.5px; }
.od-line__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.od-line__right > b { min-width: 86px; text-align: right; font-size: 14.5px; }
.od-line__qty { color: var(--muted); font-weight: 700; }
.od-line__del { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.od-line__del:hover { background: #fdecec; color: var(--red); }
.od-line__del .ic { width: 16px; }
.od__totals { margin: 12px 0 0 auto; max-width: 320px; }
.od__totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.od__totals .od__total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 800; font-size: 16px; color: var(--ink); }
.od__totals .od__total span:last-child { color: var(--primary); }
.od__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.od__grid h4 { margin: 0 0 8px; font-size: 14px; }
.od__grid p { margin: 0 0 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.od__log { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; }
.od__log div { border-left: 3px solid var(--line); padding-left: 10px; font-size: 13px; }
.od__log b { display: block; font-weight: 700; }
.od__log span { display: block; color: var(--ink-2); font-style: italic; }
.od__log small { color: var(--muted); }
.od__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.od__cancel:hover { border-color: var(--red); color: var(--red); }

/* Dashboard */
.acc-nav .acc-count { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg); color: var(--ink-2); display: inline-grid; place-items: center; }
.acc-nav .acc-count--red { background: var(--red); color: #fff; }
.acc-nav form button { color: var(--red); }
.account section > .panel + .panel, .account section > .panel + .acc-cards, .account section > .acc-cards + .panel { margin-top: 14px; }
.account .panel h2 { font-size: 19px; margin: 0 0 12px; }
.account .section__head { margin-bottom: 8px; }
.account .section__head h2 { margin: 0; }
.acc-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-hero__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-hero h2 { margin: 0 !important; }
.acc-hero p { margin: 2px 0 0; overflow-wrap: anywhere; }
.acc-note { font-size: 13.5px; margin: 0 0 12px; }
.acc-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.acc-chips button i { font-style: normal; font-size: 11.5px; background: var(--bg); border-radius: 10px; padding: 1px 7px; }
.acc-chips button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.acc-chips button.active i { background: rgba(255, 255, 255, .25); color: #fff; }
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 16px; color: var(--muted); font-size: 14px; }
.acc-empty > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--bg); }
.acc-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.acc-details div { min-width: 0; }
.acc-details span { display: block; font-size: 12.5px; color: var(--muted); }
.acc-details b { font-weight: 600; overflow-wrap: anywhere; }
.acc-warn { display: flex; gap: 8px; align-items: flex-start; background: #fdecec; color: var(--red); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.acc-warn .ic { width: 17px; flex-shrink: 0; margin-top: 1px; }
.acc-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.acc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.acc-switch__ui { width: 46px; height: 26px; border-radius: 13px; background: #cfd3df; position: relative; flex-shrink: 0; transition: background .2s; }
.acc-switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.acc-switch input:checked + .acc-switch__ui { background: var(--green); }
.acc-switch input:checked + .acc-switch__ui::after { transform: translateX(20px); }
.acc-switch input:focus-visible + .acc-switch__ui { outline: 2px solid var(--primary); outline-offset: 2px; }
.acc-switch b { display: block; font-size: 14.5px; }
.acc-switch small { color: var(--muted); font-size: 12.5px; }

/* Notifications */
.notes { display: grid; gap: 8px; }
.note { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.note:hover { border-color: var(--primary); }
.note > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg); color: var(--ink-2); flex-shrink: 0; }
.note b { display: block; font-size: 14px; font-weight: 700; }
.note span { display: block; font-size: 13px; color: var(--ink-2); font-style: italic; }
.note small { color: var(--muted); font-size: 12px; }
.note--new { background: var(--primary-soft); border-color: #ffd2bd; }
.note--new > .ic { background: var(--primary); color: #fff; }

/* Shop lists */
.shop-list { display: grid; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.shop-item:hover { border-color: var(--primary); }
.shop-item > div { flex: 1; }
.shop-item b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.shop-item small { color: var(--muted); font-size: 12.5px; }
.text-warn { color: #b7740a; font-weight: 700; }
.text-red { color: var(--red); font-weight: 700; }

@media (max-width: 992px) {
  .acc-nav .acc-count { margin-left: 6px; }
  .acc-nav form { flex-shrink: 0; }
}
@media (max-width: 768px) {
  .pw-banner__inner { font-size: 12.5px; align-items: flex-start; flex-wrap: wrap; }
  .pw-banner__inner a { margin-left: 28px; }
  .cart-item--plain { grid-template-columns: 72px 1fr; }
  .cart-item--plain > :nth-child(1) { grid-row: 1 / span 3; align-self: start; }
  .cart-item--plain > :nth-child(2) { grid-column: 2; grid-row: auto; padding-right: 34px; }
  .cart-item--plain .cart-item__price { grid-column: 2; }
  .cart-item--plain .qty { grid-column: 2; }
  .cart-item--plain > :nth-child(3) { padding-right: 0; }
  .co-guest { flex-wrap: wrap; }
  .co-guest .btn { width: 100%; }
  .ic-modal { padding: 0; align-items: flex-end; }
  .ic-modal__box { max-width: none !important; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 94vh; overflow-y: auto; }
  .od-line { flex-wrap: wrap; }
  .od-line__right { width: 100%; padding-left: 68px; justify-content: space-between; }
  .od-line__right > b { margin-left: auto; min-width: 0; }
  .od__totals { max-width: none; }
  .od__grid, .acc-details { grid-template-columns: 1fr; }
  .od__actions .btn { width: 100%; }
  .ord__bottom { flex-wrap: wrap; gap: 8px 14px; }
  .ord__bottom .btn { width: 100%; }
  .acc-hero .btn { width: 100%; }
  .acc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .acc-chips button { flex-shrink: 0; }
  .ic-modal__foot .btn { flex: 1; }
}
@media (max-width: 420px) {
  .ord__top { flex-wrap: wrap; }
  .shop-item { flex-wrap: wrap; }
}

/* =========================================================
   (added) Reviews · Wishlist · Pages managed by Super Admin
   ========================================================= */

/* Star picker (radio buttons, right-to-left so CSS can colour the hovered ones) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; padding: 2px; line-height: 0; }
.star-input svg { width: 28px; height: 28px; fill: #e3e5ee; transition: fill .12s, transform .12s; }
.star-input label:hover svg, .star-input label:hover ~ label svg,
.star-input input:checked ~ label svg { fill: var(--amber); }
.star-input:hover input:checked ~ label svg { fill: #e3e5ee; }
.star-input:hover label:hover svg, .star-input:hover label:hover ~ label svg { fill: var(--amber); }
.star-input label:active svg { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 1px; border-radius: 4px; }
.star-input__text { order: -1; margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--amber); min-width: 70px; }

/* Product reviews panel */
.rv .review-summary { align-items: center; }
.rv .review-summary__score span.text-muted { font-size: 15px; }
.rv__cta { display: flex; flex-direction: column; gap: 6px; margin-left: auto; align-items: flex-start; }
.rv__cta small { font-size: 12px; }
.rv-form { margin: 14px 0; border: 1.5px solid var(--primary-soft); }
.rv-form__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-form__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-form__msg { font-size: 13px; font-weight: 600; }
.rv-form__msg.is-error { color: var(--red); }
.rv-del:hover { border-color: var(--red); color: var(--red); }
.rv__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13px; }
.rv__filter button { padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.rv__filter button i { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 2px; }
.rv__filter button.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.rv__filter button:disabled { opacity: .45; cursor: not-allowed; }
.rv__empty { display: flex; align-items: center; gap: 8px; padding: 14px 0; margin: 0; }
.rv__empty .ic { width: 18px; }
.rv__more { text-align: center; margin-top: 14px; }
.rv__product { display: inline-block; font-size: 12.5px; margin-bottom: 4px; }
.review__reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13.5px; }
.review__reply b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--primary); }
.review__reply b .ic { width: 14px; }
.review__reply p { margin: 4px 0 0; }
.review__reply small { color: var(--muted); font-size: 11.5px; }
.rv-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.rv-mine { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.text-green { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.text-green .ic { width: 14px; }

/* Rate products of a complete order (order box) */
.od-rate { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.od-rate h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 15px; }
.od-rate h4 .ic { width: 17px; color: var(--amber); }
.od-rate__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.od-rate__product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.od-rate__product img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.od-rate__product b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-rate__product small { font-size: 12px; }
.od-rate__item textarea { grid-column: 1 / -1; width: 100%; min-height: 56px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; outline: 0; }
.od-rate__item textarea:focus { border-color: var(--primary); }
.od-rate__item .btn { grid-column: 1 / -1; justify-self: end; }
.od-rate .star-input svg { width: 24px; height: 24px; }

/* Wishlist heart on the product page */
.pd-wish.active { color: var(--red); }
.pd-wish.active .ic { fill: var(--red); }

/* Text written in Super Admin's editor */
.cms-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.cms-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cms-body td, .cms-body th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.cms-body blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--bg); border-radius: 0 8px 8px 0; }
.cms-body a { color: var(--primary); text-decoration: underline; }
.about-hero .cms-body h2 { margin-top: 0; }
.about-hero .cms-body p { color: var(--muted); }
.legal--single { grid-template-columns: 1fr; max-width: 900px; margin-left: auto; margin-right: auto; }
.legal__body .updated { display: block; }
a.contact-item { color: inherit; }
a.contact-item:hover b { color: var(--primary); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.faq-none { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.faq-none .ic { width: 18px; }
.otp-field { align-items: center; }

@media (max-width: 768px) {
  .rv__cta { margin-left: 0; width: 100%; }
  .rv__cta .btn { width: 100%; }
  .od-rate__item { grid-template-columns: 1fr; }
  .od-rate__item .btn { width: 100%; }
  .star-input svg { width: 32px; height: 32px; }
}

/* =========================================================
   (added) Search dropdowns (cart + order edit), one shop per cart, View / Edit
   ========================================================= */
.sdrop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 40; max-height: 340px; overflow-y: auto; padding: 4px; }
.sdrop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; }
.sdrop__item:hover:not(:disabled), .sdrop__item:focus-visible { background: var(--primary-soft); outline: 0; }
.sdrop__item:disabled { opacity: .5; cursor: not-allowed; }
.sdrop__item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.sdrop__name { flex: 1; min-width: 0; }
.sdrop__name b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdrop__name small { color: var(--muted); font-size: 12px; }
.sdrop__price { font-weight: 800; color: var(--primary); font-size: 13.5px; white-space: nowrap; }
.sdrop__add { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; flex-shrink: 0; }
.sdrop__empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

.cart-search { margin-bottom: 14px; padding: 14px 16px; position: relative; z-index: 5; }
.cart-search__box { position: relative; }
.cart-search__box > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); pointer-events: none; }
.cart-search__box input { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px 0 42px; font: inherit; outline: 0; }
.cart-search__box input:focus { border-color: var(--primary); }
.cart-search__shop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.cart-search__shop .ic { width: 16px; color: var(--primary); }
.cart-head button .ic { width: 15px; }
.cart-lock { display: flex; gap: 8px; align-items: flex-start; background: #fff6e5; color: #8a5a06; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.cart-lock .ic { width: 16px; flex-shrink: 0; margin-top: 2px; }
.cart-lock a { color: var(--primary); font-weight: 700; text-decoration: underline; }

.ord__btns { display: flex; gap: 8px; }
.ord__btns .btn .ic { width: 15px; }
.od__mode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.od__mode .od__hint { flex: 1; margin: 0; min-width: 200px; }
.od__mode-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--primary); color: #fff; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.od__mode-tag .ic { width: 13px; }
.od__mode--view .btn .ic { width: 15px; }
.od-add { position: relative; margin-bottom: 12px; }
.od-add__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; border: 1.5px dashed var(--primary); color: var(--primary); font-weight: 700; font-size: 13px; }
.od-add__toggle .ic { width: 16px; }
.od-add__toggle.active, .od-add__toggle:hover { background: var(--primary-soft); }
.od-add__box { position: relative; margin-top: 8px; }
.od-add__box > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); pointer-events: none; }
.od-add__box input { width: 100%; height: 42px; border: 1.5px solid var(--primary); border-radius: 10px; padding: 0 12px 0 38px; font: inherit; outline: 0; }
.od__actions { gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .ord__btns { width: 100%; }
  .ord__btns .btn { flex: 1; }
  .ord__bottom .ord__btns .btn { width: auto; }
  .od__mode--view .btn { width: 100%; }
  .sdrop { max-height: 46vh; }
}
