/* ===== Amazon-style skin (matches the sister stationery store happiness-colors.sa) =====
   Loaded after store.css, so it overrides the older look. */
body { font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; font-size: 15px; }
.wrap { max-width: 1400px; padding: 0 16px; }

/* header: navy bar with logo, big search, track + cart */
.top { background: var(--navy); border-bottom: 0; color: #fff; }
.top-in { height: auto; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: nowrap; justify-content: flex-start; }
.brand { color: #fff; font-size: 17px; flex: none; max-width: 260px; }
.brand img { height: 44px; max-width: 150px; border-radius: 0; }
.searchbox { flex: 1; display: flex; min-width: 0; max-width: 900px; }
.searchbox input { flex: 1; min-width: 0; height: 42px; border: 0; padding: 0 14px; border-radius: 0 6px 6px 0; background: #fff; color: var(--ink); font-size: 15px; }
.searchbox input:focus { outline: 2px solid #f90; outline-offset: -2px; }
.searchbox button { width: 56px; height: 42px; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; border-radius: 6px 0 0 6px; display: grid; place-items: center; }
.searchbox button:hover { background: #f7ca00; }
.top-nav { flex: none; gap: 4px; margin-inline-start: auto; }
.top-nav .link { color: #fff; font-size: 14px; padding: 8px 10px; border-radius: 4px; }
.top-nav .link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cart-btn { width: auto; height: auto; background: transparent; color: #fff; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }
.cart-btn:hover { background: rgba(255, 255, 255, 0.12); }
.count { position: static; background: var(--accent); color: var(--ink); border-radius: 999px; order: 2; }

/* navy category bar with dropdowns */
.cat-nav { background: var(--navy2); overflow: visible; }
.cat-nav .wrap { display: flex; gap: 0; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav .ni { position: relative; flex: none; }
.cat-nav a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 500; color: #fff; opacity: 1; border-bottom: 0; white-space: nowrap; }
.cat-nav .ni:hover > a, .cat-nav a.active { background: rgba(255, 255, 255, 0.14); }
.cat-nav .has-sub > a::after { content: ' ⌄'; font-size: 11px; opacity: 0.8; }
.cat-nav .sub { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); z-index: 30; padding: 6px 0; }
.cat-nav .sub a { color: var(--ink); padding: 9px 16px; font-weight: 500; }
.cat-nav .sub a:hover { background: #f0f2f2; color: var(--link); }
@media (hover: hover) and (min-width: 768px) {
  .cat-nav .wrap { overflow: visible; flex-wrap: wrap; }
  .cat-nav .ni:hover > .sub { display: block; }
}

/* headings, breadcrumbs */
.sect { font-size: 22px; font-weight: 700; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); flex: 1; }
h2.sect { margin-top: 26px; }
.sect-row { display: flex; align-items: flex-end; gap: 12px; margin: 26px 0 0; }
.sect-row .sect { margin: 0; }
.arrows { display: flex; gap: 8px; order: 2; margin-bottom: 6px; }
.arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.arrows button:hover { background: #f0f2f2; }
.crumbs { background: #f7f8f8; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 10px 16px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--link); }
.crumbs a:hover { color: #c7511f; text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 700; }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; flex-wrap: wrap; }
.cat-title { font-size: 26px; margin: 0; }
.cat-count { color: var(--muted); font-size: 14px; }
.subchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.subchip { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.subchip:hover { border-color: #f90; background: #fffaf0; }

/* product cards: white box, price in red, wide yellow button */
.grid { gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.pcard { padding: 10px; transition: none; }
.pcard:hover { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.pcard .pc-link { display: flex; flex-direction: column; flex: 1; }
.pcard .img { background: #fff; aspect-ratio: 1 / 1; position: relative; }
.pcard .img img { object-fit: contain; }
.pcard .body { padding: 8px 2px; flex: 1; }
.pcard h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pcard:hover h3 { color: var(--link); }
.from { color: var(--muted); font-size: 12.5px; }
.from b { color: var(--price); font-size: 20px; font-weight: 500; }
s.old { color: var(--muted); }
.off, .badge-tag { background: var(--price); color: #fff; font-weight: 700; border-radius: 3px; box-shadow: none; }
.badge-tag { padding: 2px 8px; font-size: 12px; inset-inline-start: 0; top: 0; }
.off { padding: 1px 6px; }
.pc-add { margin-top: 8px; width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 500; padding: 9px 10px; cursor: pointer; font-size: 14px; }
.pc-add:hover { background: #f7ca00; }
.ph { color: #8a8f94; }
.pcard .img, .pitem .thumb, .ctile .img, .pimg { background: #fff; }
.prow .pcard { flex: 0 0 250px; }
.prow { padding: 14px 2px 20px; }
.pitem .thumb img, .ctile .img img { object-fit: contain; }
.ctile .img { background: #f3f3f3; }

/* buttons */
.btn { border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 500; }
.btn:hover { filter: none; background: #f7ca00; }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.ghost:hover { background: #f7f8f8; }
.linkbtn { color: var(--link); }
.linkbtn:hover { color: #c7511f; text-decoration: underline; }

/* banners */
.hero-banner { border-radius: 0; margin: 14px 0 0; min-height: 220px; background: var(--navy2); color: #fff; }
.hero-banner.plain { background: linear-gradient(135deg, var(--navy2), #37475a); }
.hero-banner.plain .hb-in { color: #fff; }
.hb-slider { border-radius: 0; margin: 14px 0 0; }
.hb-btn { background: var(--accent); color: var(--ink); }
.hb-dot.on { background: var(--accent); }

/* product page */
.pgrid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 14px; gap: 28px; }
@media (min-width: 820px) { .pgrid { grid-template-columns: 5fr 6fr; } }
.pimg { border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; max-height: 560px; }
.pimg img { object-fit: contain; }
.th { border-radius: 6px; width: 72px; height: 72px; border: 1px solid var(--line); }
.th img { object-fit: contain; }
.th.on { border: 2px solid #f90; }
.pbody { padding: 0; border: 0; background: transparent; }
.pbody h1 { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pricebox { padding: 6px 0 10px; }
.pricebox .pnow { color: var(--price); font-size: 34px; font-weight: 500; line-height: 1.2; }
.pricebox .pnow small { font-size: 16px; }
.pricebox s.old { font-size: 16px; margin-inline-start: 8px; }
.pricebox .off { font-size: 14px; padding: 2px 8px; margin-inline-start: 6px; }
.pricebox .vatnote { color: var(--muted); font-size: 14px; margin-top: 2px; }
.stock { border: 1px solid var(--line); border-radius: 8px; background: #f7f8f8; padding: 12px 16px; margin: 10px 0 16px; }
.stock b { color: var(--ok); font-size: 18px; }
.stock small { display: block; color: var(--muted); margin-top: 2px; }
.sec { font-weight: 700; margin: 16px 0 8px; }
.chip span { border: 1px solid var(--line); border-radius: 8px; }
.chip input:checked + span { border: 2px solid #f90; background: #fffaf0; box-shadow: none; padding: 9px 13px; }
.qchips .p { color: var(--price); }
.best { background: var(--price); border-radius: 3px; }
.buy { background: transparent; border: 0; box-shadow: none; padding: 16px 0 0; position: static; }
.buy-in { max-width: none; justify-content: flex-start; gap: 14px; }
.buy .tot { display: none; }
.buy .btn { flex: 1; min-height: 50px; font-size: 16px; }
@media (max-width: 819px) {
  .buy { position: fixed; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .buy .tot { display: block; }
  .buy-in { justify-content: space-between; }
  .buy .btn { flex: 0 1 220px; }
  .pgrid { padding-bottom: 20px; margin-bottom: 90px; }
}
.share { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.share:hover { background: #f7f8f8; }
.pdesc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pdesc h2 { font-size: 18px; margin: 0 0 8px; }
.pdesc p { margin: 0; color: var(--ink); line-height: 1.8; }
.quote { background: #fffaf0; border: 1px solid #f3d9a4; }

/* forms, cart */
.field input, .field textarea { border: 1px solid #888c8c; border-radius: 6px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: #e77600; box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.25); }
.payinfo { background: #f7f8f8; border: 1px solid var(--line); }
h1.page { font-size: 26px; font-weight: 700; }
.line .thumb { background: #fff; border: 1px solid var(--line); }
.line .thumb img { object-fit: contain; }
.sum .r.big { color: var(--price); }
.code { color: var(--ink); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now .dot { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.rm { color: var(--link); }

/* search */
.sr-head { margin: 18px 0 6px; font-size: 20px; }
.sr-head span { color: var(--muted); font-size: 14px; margin-inline-start: 8px; }

/* reviews, quick links */
.review, .qlink { border-radius: 8px; box-shadow: none; }
.review .stars { color: #f90; }
.qlink .qicon { background: #f0f2f2; color: var(--navy2); }

/* footer */
.foot { margin: 40px 0 0; padding: 0; background: var(--navy2); color: #ddd; border-top: 0; font-size: 14px; }
.foot a { color: #ddd; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .totop { display: block; text-align: center; padding: 14px; background: #37475a; color: #fff; font-size: 14px; cursor: pointer; border: 0; width: 100%; }
.foot .totop:hover { background: #485769; }
.foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 32px 0 24px; }
.foot h4 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .copy { border-top: 1px solid #3a4553; padding: 16px 0 24px; text-align: center; color: #aaa; }

/* floating whatsapp */
.wa-float { position: fixed; inset-inline-start: 18px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); z-index: 40; }
.wa-float:hover { background: #1ebe5b; }
@media (max-width: 819px) { .wa-float { bottom: 86px; width: 52px; height: 52px; } }

@media (max-width: 767px) {
  .top-in { flex-wrap: wrap; row-gap: 8px; }
  .brand { max-width: 60%; }
  .brand span { white-space: normal; font-size: 15px; }
  .top-nav .link { display: none; }
  .searchbox { order: 3; flex: 0 0 100%; max-width: none; }
  .cart-btn .ctext { display: none; }
  .sect { font-size: 19px; }
  .prow .pcard { flex-basis: 170px; }
  .pgrid { padding: 12px; }
  .pimg { max-height: 380px; }
}
@media (min-width: 720px) { .pgrid-c { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.foot .cols li b { color: #ffd814; }
.foot .group-line { text-align: center; padding: 12px 0; border-top: 1px solid #3a4553; color: #fff; font-weight: 700; }
.foot .group-line + .copy { border-top: 0; padding-top: 0; }
.foot .grp-link { display: inline-block; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: #ffd814; color: #0f1111; font-weight: 700; }
.foot .grp-link:hover { background: #f7ca00; color: #0f1111; text-decoration: none; }

/* design choice: ready file or design service */
.dchoice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dopt { position: relative; cursor: pointer; }
.dopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dopt span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; min-height: 64px; }
.dopt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dopt input:checked + span { border: 2px solid #f90; background: #fffaf0; padding: 11px 13px; }
.dopt input:focus-visible + span { outline: 2px solid #f90; outline-offset: 2px; }
.dpanel { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; background: #f7f8f8; }
.dline { margin-top: 4px; font-size: 13px; color: var(--ink); }
.dline span { color: var(--muted); white-space: pre-wrap; }
.dline .flist-row { color: var(--muted); }
@media (max-width: 480px) { .dchoice { grid-template-columns: 1fr; } }

/* three-step cart */
.stepsbar { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; flex-wrap: wrap; }
.stepsbar li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.stepsbar li .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e7e9e9; color: var(--ink); font-size: 13px; font-weight: 700; }
.stepsbar li.now { color: var(--ink); font-weight: 700; border-color: #f90; background: #fffaf0; }
.stepsbar li.now .n { background: #f90; color: #fff; }
.stepsbar li.done .n { background: var(--ok); color: #fff; }
.cart-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1fr 340px; } .cart-side { position: sticky; top: 130px; } }
.cform { padding: 18px; }
.cform h2 { margin: 18px 0 10px; font-size: 17px; }
.cform h2:first-child { margin-top: 0; }
.cform .dopt { cursor: pointer; }
#payChoice, #deliveryChoice { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.review .rv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.review .rv:first-child { border-top: 0; }
.cart-side .sum { padding: 16px; margin: 0; }
.sum .r { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }

/* accounts */
.acct-link { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.acct-link small { font-size: 12px; opacity: 0.85; }
.acct-link b { font-size: 14px; }
.auth-wrap { max-width: 640px; margin: 20px auto; }
.acct-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f8; }
@media (max-width: 767px) { .top-nav .acct-link { display: flex; } }

/* the "الأوفر" badge is a span inside .chip, so it must beat the generic ".chip span" box style */
.chip span.best { position: absolute; top: -10px; inset-inline-end: 8px; display: inline-block; min-height: 0; padding: 1px 10px; background: var(--price); color: #fff; border: 0; border-radius: 3px; font-size: 11px; font-weight: 700; z-index: 2; }

/* "added to cart" popup */
.modal-back { position: fixed; inset: 0; background: rgba(15, 17, 17, 0.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 440px; padding: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); animation: modalIn 0.15s ease-out; }
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-ok { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.modal-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.modal-item .thumb { width: 72px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; background: #f3f3f3; display: grid; place-items: center; }
.modal-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.modal-sum { margin: 12px 0 14px; color: var(--muted); font-size: 14px; }
.modal-sum b { color: var(--ink); }
.modal-btns { display: grid; gap: 8px; }
.modal-btns .btn { display: block; text-align: center; width: 100%; }

/* sign-in popup */
.auth-modal { max-width: 760px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.auth-form { padding: 28px 28px 22px; }
.auth-form h2 { margin: 0 0 4px; font-size: 24px; }
.auth-brand { background: linear-gradient(160deg, #0f2038, #1b2b45 60%, #28405f); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.auth-brand img { max-width: 110px; max-height: 110px; object-fit: contain; }
.auth-brand b { font-size: 20px; }
.auth-brand span { opacity: 0.85; font-size: 14px; }
.phone-row { display: flex; direction: ltr; gap: 8px; }
.phone-row .cc { flex: none; display: grid; place-items: center; padding: 0 12px; border: 1px solid #888c8c; border-radius: 6px; background: #f7f8f8; font-size: 14px; }
.phone-row input { flex: 1; min-width: 0; width: 100%; padding: 12px; border: 1px solid #888c8c; border-radius: 6px; min-height: 46px; }
@media (max-width: 640px) { .auth-modal { grid-template-columns: 1fr; } .auth-brand { display: none; } }

/* single-page checkout */
.csec { padding: 16px 18px; margin-bottom: 12px; }
.csec h2 { margin: 0 0 12px; font-size: 18px; }
.csec h2 small { color: var(--muted); font-weight: 400; }
.cartline { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cartline:first-of-type { border-top: 0; }
.cartline .thumb { width: 64px; height: 64px; flex: none; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; background: #fff; }
.cartline .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cartline .info { flex: 1; min-width: 0; }
.cartline .info b { display: block; }
.cartline .info small { color: var(--muted); }
.cartline .amt { font-weight: 700; white-space: nowrap; color: var(--price); }
.optrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.optrow.on { border-color: #f90; background: #fffaf0; }
.optrow input { flex: none; accent-color: #f90; width: 18px; height: 18px; }
.optrow .ot { flex: 1; min-width: 0; }
.optrow .ot b { display: block; font-weight: 500; }
.optrow .ot small { color: var(--muted); font-size: 13px; }
.optrow .op { font-weight: 700; white-space: nowrap; }
.optrow .op s { color: var(--muted); font-weight: 400; margin-inline-end: 4px; }
.newaddr { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 8px; background: #f7f8f8; }
.coupon { margin: 10px 0 6px; }
.coupon label { font-size: 13px; font-weight: 700; }
.cp-row { display: flex; gap: 8px; margin-top: 4px; }
.cp-row input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #888c8c; border-radius: 6px; }
.cp-row .btn { min-height: 0; padding: 8px 16px; }
.trust { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.trust b { display: block; font-size: 14px; }
.trust small { color: var(--muted); }
.mysr-form { margin-top: 10px; }

.cartline .rm { font-size: 18px; padding: 6px; }

/* categories on phones: one button that opens a list */
.cat-mobile { display: none; }
@media (max-width: 767px) {
  .cat-nav { background: var(--navy2); position: relative; }
  .cat-desktop { display: none !important; }
  .cat-mobile { display: block; }
  .cm-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-align: start; }
  .cm-btn .burger { font-size: 20px; line-height: 1; }
  .cm-btn .chev { margin-inline-start: auto; transition: transform 0.15s; }
  .cm-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .cm-panel { position: absolute; top: 100%; inset-inline: 0; z-index: 60; background: #fff; max-height: min(70vh, 520px); overflow-y: auto; border-bottom: 3px solid var(--accent); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); -webkit-overflow-scrolling: touch; }
  .cm-item { display: block; flex: 1; padding: 14px 18px; font-size: 16px; color: var(--ink); border-bottom: 1px solid #eee; min-height: 48px; }
  .cm-item.active { background: #fffaf0; font-weight: 700; border-inline-start: 4px solid #f90; }
  .cm-row { display: flex; align-items: stretch; border-bottom: 1px solid #eee; }
  .cm-row .cm-item { border-bottom: 0; }
  .cm-tog { flex: 0 0 52px; border: 0; border-inline-start: 1px solid #eee; background: #f7f8f8; font-size: 18px; cursor: pointer; transition: transform 0.15s; }
  .cm-tog.open { background: #eef0f0; }
  .cm-sub { background: #f7f8f8; }
  .cm-sub .cm-item { padding-inline-start: 34px; font-size: 15px; }
}

/* phone fixes: list text colour, compact one-row header */
.cat-nav .cm-item, .cat-nav .cm-sub .cm-item { color: var(--ink); opacity: 1; }
.cat-nav .cm-item:hover { background: #f7f8f8; }
@media (max-width: 767px) {
  .top-in { flex-wrap: wrap; align-items: center; row-gap: 8px; padding-top: 8px; padding-bottom: 10px; }
  .top-in .brand { flex: 1 1 0; min-width: 0; max-width: none; }
  .top-in .brand img { height: 38px; max-width: 64px; }
  .top-in .brand span { font-size: 14px; line-height: 1.25; }
  .top-nav { flex: none; margin-inline-start: 0; gap: 0; }
  .top-nav .acct-link small { display: none; }
  .top-nav .acct-link b { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cart-btn { padding: 6px 8px; }
  .searchbox { order: 3; flex: 0 0 100%; }
}
@media (max-width: 767px) { .pimg { max-height: 280px; aspect-ratio: auto; height: 280px; } }

/* option groups: optional / multiple choice + colour dots */
.gopt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.chip .sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #bbb; margin-inline-end: 6px; vertical-align: -3px; }
.reqstar { color: var(--price); font-weight: 700; }

.colorpick { display: flex; align-items: center; gap: 10px; }
.colorpick input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #888c8c; border-radius: 6px; background: #fff; cursor: pointer; }
.colorpick .cv { color: var(--muted); font-size: 14px; direction: ltr; }
.dpanel .chips { margin-bottom: 4px; }

/* live design preview on the product page */
.mk-cols { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mk-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); padding: 0; cursor: pointer; }
.mk-sw.on { border-color: #f90; box-shadow: 0 0 0 2px #fff inset, 0 0 0 1px #f90; }
.mk-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.mk-fname { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.mk-canvas { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; max-width: 480px; }
.mk-canvas canvas { width: 100%; height: auto; display: block; border-radius: 8px; cursor: grab; }
.mk-zoom { display: flex; align-items: center; gap: 8px; margin-top: 8px; max-width: 480px; }
.mk-zoom input[type=range] { flex: 1; }
.mk-sel { display: flex; gap: 8px; margin-top: 8px; }
.mk-sel .on { border-color: #f90; background: #fffaf0; }
.pvthumb { display: block; width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: #fff; }

/* product feature bullets */
.feats { margin: 10px 0 4px; padding: 0 18px 0 0; list-style: none; }
.feats li { position: relative; padding: 3px 18px 3px 0; line-height: 1.7; }
.feats li::before { content: '✔'; position: absolute; right: 0; top: 3px; color: #0f766e; font-size: 13px; }

/* description / specifications tabs */
.ptabs { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ptab-bar { display: flex; background: #f1f2f2; border-bottom: 1px solid var(--line); }
.ptab-bar button { appearance: none; border: 0; background: transparent; padding: 11px 20px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ptab-bar button.on { color: var(--text, #111); background: #fff; border-bottom-color: #f90; }
.ptab-pane { padding: 14px 16px; }
.ptab-pane p { margin: 0; line-height: 1.9; }
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.spec th { width: 36%; background: #f3f4f4; font-weight: 600; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec .spec-note { background: #fff; }
table.spec .spec-note::before { content: '✔ '; color: #0f766e; }
@media (max-width: 520px) { table.spec th { width: 42%; } .ptab-bar button { padding: 10px 14px; } }

/* "need another quantity?" strip, right under the quantity choices */
.qalt { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 4px; padding: 11px 14px; background: #fffaf0; border: 1.5px dashed #f90; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; text-align: start; }
.qalt:hover { background: #fff3dc; }
.qalt-ic { font-size: 22px; }
.qalt > span:nth-child(2) { flex: 1; display: block; }
.qalt b { display: block; font-size: 15px; }
.qalt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.qalt-go { font-weight: 700; color: #b45309; white-space: nowrap; font-size: 13.5px; }
@media (max-width: 480px) { .qalt-go { display: none; } }
.quote { margin-top: 8px; }

/* quantity stepper for products sold by the piece */
.ustep { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ustep button { appearance: none; border: 0; background: #f3f4f4; width: 46px; height: 46px; font-size: 22px; cursor: pointer; line-height: 1; }
.ustep button:hover { background: #e8eaea; }
.ustep input { width: 86px; height: 46px; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 700; outline: none; }
.uunit { margin-inline-start: 10px; color: var(--muted); }
.unote { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* similar products row under a product */
.related { margin-top: 22px; }
.rel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rel-head h2 { margin: 0; font-size: 20px; }
.rel-nav { display: flex; gap: 8px; }
.rel-btn { appearance: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.rel-btn:hover { background: #f3f4f4; }
.related .prow { scroll-snap-type: none; scrollbar-width: thin; }
.related .prow .pcard { scroll-snap-align: start; }
@media (max-width: 480px) { .rel-nav { display: none; } .related .prow { scroll-snap-type: x proximity; } .related .prow .pcard { flex-basis: 170px; } }
