/* Order page header */
.orderhead { background: var(--sky); color: var(--white); padding: 28px 0 24px; border-bottom: 3px solid var(--gold); }
.orderhead__inner { display: flex; align-items: center; gap: 18px; }
.orderhead__sticker .sticker { transform: rotate(-8deg); filter: drop-shadow(3px 4px 0 rgba(0,0,0,.45)); width: 88px; height: 88px; }
.orderhead__title { margin: 0 0 6px; font-size: clamp(30px, 5vw, 52px); }
.orderhead__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted-dark); font-weight: 600; font-size: .95rem; }
.orderhead__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.orderhead__meta a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
.orderhead__sub { margin: 0; color: var(--muted-dark); }
.orderno { color: var(--gold); font-family: var(--font-head); font-size: 1.3em; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--gold); color: var(--ink); }
@media (min-width: 768px) { .orderhead__sticker .sticker { width: 120px; height: 120px; } }

/* Chip bar */
.chipbar { background: var(--red); position: sticky; top: var(--header-h, 72px); z-index: 40; border-bottom: 2px solid var(--gold); }
.chipbar__inner { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .98rem; white-space: nowrap; }
.chip.is-active { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.search input { width: 100%; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; font: inherit; background: var(--white); color: var(--ink); }
@media (min-width: 900px) {
  .chipbar__inner { flex-direction: row; align-items: center; }
  .chips { flex: 1; }
  .search { width: 280px; }
}

/* Layout */
.orderwrap { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 140px; }
@media (min-width: 900px) {
  .orderwrap { grid-template-columns: 1fr 340px; align-items: start; padding-bottom: 60px; }
}
.order-note { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.order-note .ico { margin-top: 2px; color: var(--green); }
.alert { padding: 12px 16px; border-radius: 12px; border: 2px solid var(--ink); font-weight: 600; margin: 0 0 16px; }
.alert--error { background: #FFE1E6; color: #7A0A1C; border-color: var(--red); }
.alert--info { background: #E6F0FF; color: #10307F; border-color: var(--blue); }
.alert--closed { background: var(--gold); color: var(--ink); }

/* Category groups + product cards */
.catgroup { margin-bottom: 30px; }
.catgroup[hidden] { display: none; }
.catgroup__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.3rem; margin: 0 0 12px; }
.catgroup__band { background: var(--cat); color: var(--cat-text); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; }
.catgroup__ta { color: var(--muted); font-weight: 700; font-size: 1rem; }
.prodgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .prodgrid { grid-template-columns: repeat(2, 1fr); } }
.prod { display: grid; grid-template-columns: 76px 1fr; grid-template-areas: "thumb info" "buy buy"; gap: 10px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 12px; box-shadow: 3px 3px 0 var(--cat); }
.prod[hidden] { display: none; }
.prod.is-out { opacity: .7; }
.prod.in-cart { outline: 3px solid var(--gold); outline-offset: -3px; }
.prod__thumb { grid-area: thumb; position: relative; width: 76px; height: 76px; border-radius: 12px; background: var(--sky); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod__thumb .burst-thumb { width: 60px; height: 60px; }
.prod__out { position: absolute; inset: auto 0 0 0; background: var(--red); color: var(--white); font-size: .65rem; font-weight: 700; text-align: center; padding: 2px; }
.prod__info { grid-area: info; min-width: 0; }
.prod__name { font-size: 1.1rem; margin: 0; line-height: 1.2; }
.prod__ta, .prod__content { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.prod__price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prod__mrp { color: var(--muted); font-size: .9rem; }
.prod__net { color: var(--red); font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.prod__off { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; }
.prod__buy { grid-area: buy; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__line { font-weight: 600; color: var(--muted); }
.prod__line b { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.stepper__btn { width: 44px; height: 44px; border: 0; background: var(--white); color: var(--ink); font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.stepper__btn--plus { background: var(--red); color: var(--white); }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper__qty { width: 54px; height: 44px; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); text-align: center; font: inherit; font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper__qty::-webkit-outer-spin-button, .stepper__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.noresults { text-align: center; color: var(--muted); padding: 40px 0; }

/* Cart: fixed bottom bar on mobile, sticky side box on desktop */
.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--sky); color: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
.cart__inner { padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.cart__progress { height: 8px; background: var(--sky-line); border-radius: 999px; overflow: hidden; }
.cart__bar { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .25s ease; }
.cart.is-min .cart__bar { background: #4ADE80; }
.cart__summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--muted-dark); font-size: .9rem; text-align: left; min-height: 32px; }
.cart__summary b { color: var(--white); }
.cart__status { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cart.is-min .cart__status { color: #4ADE80; }
.cart__items { background: var(--sky-deep); border: 1px solid var(--sky-line); border-radius: 12px; padding: 8px 12px; max-height: 40vh; overflow-y: auto; }
.cart__items[hidden] { display: none; }
.cart__items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--sky-line); font-size: .92rem; }
.cart__items li:last-child { border-bottom: 0; }
.cart__items li b { color: var(--gold); white-space: nowrap; }
.cart__items li button { background: none; border: 0; color: var(--muted-dark); padding: 0 6px; min-height: 32px; }
.cart__clear { margin-top: 6px; background: none; border: 1px solid var(--sky-line); color: var(--muted-dark); border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: .85rem; }
.cart__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart__total { display: flex; flex-direction: column; line-height: 1.1; }
.cart__total span { font-size: .8rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .06em; }
.cart__total b { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold); }
.cart__continue { flex: 1; max-width: 220px; }
@media (min-width: 900px) {
  .cart { position: sticky; top: calc(var(--header-h, 72px) + 76px); left: auto; right: auto; bottom: auto; border: 2px solid var(--ink); border-top: 4px solid var(--gold); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .cart__inner { padding: 16px; gap: 12px; }
  .cart__items { max-height: 320px; }
  .cart__foot { flex-direction: column; align-items: stretch; }
  .cart__continue { max-width: none; }
}

/* Checkout dialog */
.checkout { border: 2px solid var(--ink); border-radius: 18px; padding: 0; width: min(94vw, 520px); max-height: 92vh; background: var(--white); color: var(--ink); box-shadow: var(--shadow-hard); }
.checkout::backdrop { background: rgba(6, 6, 26, .75); }
.checkout__form { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; }
.checkout__title { margin: 0; font-size: 1.6rem; }
.checkout__close { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.checkout__lead { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: inherit; padding: 10px 12px; min-height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.field small { color: var(--red); font-weight: 600; min-height: 1em; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #FFF3F5; }
.hp { position: absolute; left: -9999px; }
.checkout__totals { display: flex; justify-content: space-between; font-weight: 600; padding: 10px 12px; background: var(--cream); border-radius: 12px; }
.checkout__totals b { font-family: var(--font-head); font-size: 1.2rem; }
.checkout__fine { margin: 0; font-size: .85rem; color: var(--muted); }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* Confirmation page */
.orderhead--view { padding: 36px 0 28px; }
.orderview { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 60px; }
@media (min-width: 960px) { .orderview { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.actions .btn { flex: 1 1 240px; }
.estimate { padding: 18px; }
.estimate__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.estimate__brand { display: flex; align-items: center; gap: 10px; }
.estimate__brand b { font-family: var(--font-head); font-size: 1.2rem; }
.estimate__no { text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.estimate__no b { font-family: var(--font-head); font-size: 1.4rem; color: var(--red); }
.items { width: 100%; border-collapse: collapse; font-size: .95rem; }
.items th, .items td { padding: 8px 6px; border-bottom: 1px solid #E5DFCB; text-align: left; vertical-align: top; }
.items th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.items td small { display: block; color: var(--muted); }
.items .num { text-align: right; white-space: nowrap; }
.items tfoot td { border-bottom: 0; padding: 6px; }
.items tfoot tr.grand td { font-family: var(--font-head); font-size: 1.3rem; color: var(--red); border-top: 2px solid var(--ink); }
.estimate__cust { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.estimate__cust div { display: flex; flex-direction: column; }
.estimate__cust small { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.estimate__cust .wide { grid-column: 1 / -1; }
.estimate__fine { margin: 0; font-size: .85rem; color: var(--muted); }
.orderview__h { font-size: 1.5rem; }
.orderview__p { color: var(--muted); }
.bankgrid--stack { grid-template-columns: 1fr !important; }
.ico.flip { transform: scaleX(-1); }
.orderhead__meta .share-wa { color: var(--white); background: var(--green); border-radius: 999px; padding: 4px 12px; min-height: 36px; }
.orderhead__meta .share-wa:hover { background: #0C6632; }

/* Update 5 Part 4: order-page thumbs without cartoon art */
.prod { border: 1px solid #E8E3F0; box-shadow: 0 1px 3px rgba(30,27,46,.06); border-radius: 12px; }
.prod__thumb { background: var(--white); border: 1px solid #ECE7F5; }
.prod__thumb .prod__catimg { opacity: .45; filter: saturate(.7); }
.prod__blank { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #F4F2F8; color: #B9B3C9; }

/* Category illustrations on the order page */
.prod__art { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(255,255,255,.86), rgba(255,255,255,.86)), var(--cat, var(--cream)); }
.prod__art .catart { width: 76%; height: 76%; }
.orderhead__art { flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(0deg, rgba(255,255,255,.84), rgba(255,255,255,.84)), var(--cat, var(--cream)); border: 1px solid rgba(30,27,46,.08); }
.orderhead__art img { width: 100%; height: 100%; object-fit: cover; }
.orderhead__art .catart { width: 74%; height: 74%; }
@media (min-width: 768px) { .orderhead__art { width: 96px; height: 96px; } }
