/* =========================================================
   Purnima inner pages: listing, product, cart, checkout,
   auth, account, orders, wishlist
   ========================================================= */

/* ---------- shared header additions ---------- */
.main-nav > ul > li > a.current { color: var(--pink); }
.account { position: relative; }
.account .icon-link { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; font-size: .9rem; padding-right: 0; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 250px; background: var(--navy); color: #fff;
  padding: 14px 0; z-index: 50;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.account-menu.open { opacity: 1; visibility: visible; transform: none; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 11px 28px; font-size: 1.05rem; font-weight: 500;
  background: none; border: 0; color: #fff; text-align: left;
}
.account-menu svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255,255,255,.08); color: var(--pink-soft); }

.search { position: relative; }
.suggest {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
  background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(20,20,40,.16);
  padding: 6px 0; z-index: 40; max-height: 420px; overflow: auto;
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px 14px; font-size: .9rem; font-weight: 600; }
.suggest a:hover { background: var(--coral-tint); }
.suggest img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; background: #f5f5f7; }
.suggest small { display: block; color: var(--pink); font-weight: 700; }
.suggest .all a { justify-content: center; color: var(--purple); border-top: 1px solid var(--line); padding: 10px; }
.suggest .none { padding: 12px 16px; color: var(--muted); font-size: .9rem; }

.card h3 a:hover { color: var(--pink); }
.toast a { color: var(--pink-soft); text-decoration: underline; margin-left: 6px; }

/* ---------- common bits ---------- */
.btn-green {
  display: inline-block; border: 0; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700;
  padding: 11px 34px; font-size: 1rem; text-align: center;
  transition: filter .2s, transform .15s;
}
.btn-green:hover { filter: brightness(1.08); }
.btn-green:active { transform: scale(.98); }
.btn-green.wide { width: 100%; }
.btn-green[disabled] { opacity: .55; cursor: not-allowed; }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--ink-2); border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; padding: 10px 26px; text-align: center;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.link-pink { color: var(--pink); font-weight: 600; }
.link-pink:hover { text-decoration: underline; }

.field { display: block; margin-bottom: 16px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.3px solid var(--purple); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(242,84,91,.18); border-color: var(--pink); }
.field .err { display: none; color: #d0103a; font-size: .8rem; margin-top: 5px; }
.field.invalid input, .field.invalid select { border-color: #d0103a; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-msg { font-size: .9rem; margin: 6px 0 12px; min-height: 1.2em; }
.form-msg.error { color: #d0103a; }
.form-msg.ok { color: var(--green); }

.breadcrumb { font-size: .95rem; font-weight: 600; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { margin: 0 4px; color: var(--muted); }

.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty h2 { color: var(--ink); font-size: 1.4rem; margin-bottom: 8px; }
.empty p { margin-bottom: 20px; }

.doodle-bg {
  background: url(../img/doodle-side.png) left top / 230px auto repeat-y, #fff;
  padding: 26px 0 70px;
}

/* ---------- page banner (listing) ---------- */
.page-banner {
  display: grid; grid-template-columns: 1fr 42%;
  min-height: 214px; margin-top: 26px; overflow: hidden;
  background: #FFF6EC url(../img/doodle-banner.png) left center / auto 100% no-repeat;
}
.page-banner .pb-copy { padding: 40px 20px 40px 160px; align-self: center; }
.page-banner h1 { color: var(--pink); font-size: 2rem; font-weight: 700; }
.page-banner .breadcrumb { margin: 6px 0 0; }
.page-banner .pb-img { background-size: cover; background-position: center; }

/* =================== CATEGORY LISTING =================== */
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 60px; margin-top: 40px; }
.filters h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin: 0 0 14px; }
.acc { border-bottom: 1px solid #cfcfd6; }
.acc > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; padding: 12px 0; font-weight: 700; font-size: .88rem; text-align: left;
}
.acc > button::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: #6a6a74 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s, background-color .2s;
}
.acc.open > button::after { transform: rotate(180deg); background-color: var(--green); }
.acc-body { display: none; padding: 0 0 14px; }
.acc.open .acc-body { display: block; }
.acc-body a, .acc-body label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 5px 0; cursor: pointer; }
.acc-body a.on, .acc-body a:hover { color: var(--pink); }
.acc-body input[type=checkbox] { accent-color: var(--pink); width: 15px; height: 15px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ccc; cursor: pointer; padding: 0;
}
.swatch.on { box-shadow: 0 0 0 2px var(--pink); }

.price-filter { margin-top: 26px; }
.price-filter .label { font-size: .82rem; font-weight: 700; margin-bottom: 14px; }
.range { position: relative; height: 22px; }
.range .track { position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 4px; background: #e8e3dc; }
.range .fill { position: absolute; top: 9px; height: 5px; background: var(--green); border-radius: 4px; }
.range input {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: all; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer;
}
.range input::-moz-range-thumb {
  pointer-events: all; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; cursor: pointer;
}

.top-selling { margin-top: 34px; }
.ts-item { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #cfcfd6; }
.ts-item img { width: 64px; height: 64px; object-fit: cover; }
.ts-item h4 { font-size: .85rem; font-weight: 700; }
.ts-item .stars { font-size: .72rem; }
.ts-item .p { font-weight: 700; font-size: 1.05rem; }
.ts-item:hover h4 { color: var(--pink); }

.tag-search { margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags button {
  border: 0; background: #ece7df; padding: 6px 14px; font-size: .75rem; font-weight: 700; min-width: 60px;
}
.tags button.on, .tags button:hover { background: var(--green); color: #fff; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { font-size: .9rem; color: var(--muted); }
.toolbar .count strong { color: var(--ink); }
.toolbar select { font: inherit; font-size: .88rem; padding: 7px 12px; border: 1.3px solid var(--purple); border-radius: 999px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip { background: var(--coral-tint); color: var(--pink); border: 0; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; }
.chip::after { content: " \2715"; }
.chip.clear { background: none; text-decoration: underline; }
.chip.clear::after { content: ""; }
.filter-toggle { display: none; }

.listing .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 40px 28px; text-align: center; }

.shop-brands { margin-top: 70px; }
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.branch-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 14px; border-radius: 18px; font-weight: 700; color: var(--purple); transition: transform .2s, box-shadow .2s; }
.branch-link img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.branch-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 60px 100px 0; }
.pager .nums { display: flex; gap: 8px; }
.pager button { border: 0; background: none; font-weight: 700; font-size: 1rem; width: 34px; height: 34px; }
.pager .nums button.on { background: var(--green); color: #fff; }
.pager .arrow { background: #ece7df; font-size: 1.2rem; }
.pager .arrow:disabled { opacity: .35; cursor: default; }

/* =================== PRODUCT DETAIL =================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 50px; margin-top: 30px; }
.gallery { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 24px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumbs button { border: 2px solid transparent; padding: 0; background: #fff; width: 64px; height: 64px; overflow: hidden; flex: none; }
.thumbs button.on { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.main-img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: zoom-in; background: #fff; }
.main-img img { max-height: 100%; object-fit: contain; transition: transform .2s; }
.main-img.zoom img { transform: scale(1.8); }

.pinfo .offer-timer { display: flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; }
.pinfo .offer-timer svg { width: 13px; height: 13px; fill: var(--purple); }
.pinfo h1 { font-size: 1.35rem; font-weight: 700; margin: 4px 0; }
.pinfo .brand-line { font-size: .82rem; color: var(--muted); }
.pinfo .brand-line a { color: var(--purple); font-weight: 600; }
.pinfo .stars { font-size: 1rem; }
.ribbon {
  display: inline-block; background: var(--purple); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 26px 4px 14px; margin-top: 6px;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.pinfo hr { border: 0; border-top: 1px solid #bbb; margin: 12px 0; }
.pprice { font-weight: 700; font-size: 1.05rem; }
.pprice s { color: #d0103a; margin: 0 8px 0 4px; }
.pprice .now { font-size: 1.4rem; }
.psave { font-weight: 600; margin-top: 4px; }
.opt { margin-top: 20px; }
.opt h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.opt h3 span { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btns button {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
  border: 1.3px solid var(--purple); background: #fff; font-size: .78rem; font-weight: 700;
}
.size-btns button.on { background: var(--purple); color: #fff; }
.size-select {
  font: inherit; font-weight: 600; font-size: 1rem; padding: 8px 40px 8px 24px;
  border: 1.3px solid var(--ink); border-radius: 999px; background: #fff; min-width: 170px;
}
.colour-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.colour-btns button { width: 44px; height: 56px; border: 3px solid #fff; box-shadow: 0 0 0 1px #ddd; padding: 0; }
.colour-btns button.on { box-shadow: 0 0 0 2px var(--pink); }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.qty input { width: 44px; height: 32px; text-align: center; border: 1.3px solid var(--purple); font: inherit; font-weight: 600; }
.pincode { display: flex; width: 210px; border: 1.3px solid var(--purple); border-radius: 8px; overflow: hidden; }
.pincode input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; font-size: .8rem; }
.pincode input:focus { outline: none; }
.pincode button { border: 0; background: #fff; font-weight: 700; font-size: .8rem; padding: 0 10px; }
.pin-msg { font-size: .76rem; margin-top: 8px; }
.pin-msg.ok { color: var(--green); font-weight: 600; }
.pin-msg.err { color: #d0103a; }
.pactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-cart, .btn-wish {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 12px 22px; font-size: .82rem; font-weight: 700; text-transform: uppercase;
}
.btn-cart { background: var(--pink); color: #fff; border: 0; }
.btn-cart svg { width: 20px; height: 20px; fill: #fff; }
.btn-cart:hover { filter: brightness(1.08); }
.btn-wish { background: #fff; border: 1.3px solid var(--purple); color: var(--ink); }
.btn-wish svg { width: 14px; height: 14px; fill: var(--purple); }
.btn-wish.on { background: var(--purple); color: #fff; }
.btn-wish.on svg { fill: #fff; }
.buy-now { margin-top: 10px; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 24px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.perks div { background: #f6f6f9; padding: 10px; border-radius: 8px; text-align: center; }

.pdesc { margin-top: 60px; padding: 0 16px; }
.pdesc h2, .sub-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.pdesc p { line-height: 1.75; max-width: 900px; }
.pdesc ul { list-style: disc; padding-left: 20px; margin-top: 12px; line-height: 1.9; }

.reviews { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 90px; margin-top: 60px; }
.rbars { border-bottom: 1px solid #bbb; padding-bottom: 18px; margin-bottom: 20px; }
.rbar { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; margin-bottom: 6px; }
.rbar .stars { font-size: 1rem; min-width: 96px; }
.rbar .stars .off { display: none; }
.write-review h3 { font-size: .8rem; font-weight: 700; }
.write-review p { font-size: .72rem; margin: 6px 0 12px; }
.review-card { background: #fff; box-shadow: 4px 6px 12px rgba(0,0,0,.15); padding: 18px 22px 24px; margin-bottom: 24px; }
.review-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-card .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.review-card strong { font-size: .95rem; }
.review-card .stars .off { display: none; }
.review-card time { margin-left: auto; font-size: .75rem; color: var(--muted); }
.review-card p { line-height: 1.7; }

.rail { margin-top: 50px; }
.rail .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; gap: 24px; text-align: center; }
.rail .price { font-size: 1.1rem; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,20,35,.55); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; width: min(520px, 100%); padding: 28px; max-height: 90vh; overflow: auto; position: relative; }
.modal-box h2 { font-size: 1.3rem; margin-bottom: 18px; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.6rem; line-height: 1; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 16px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #ccc; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--pink); }

/* =================== CART + CHECKOUT =================== */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 50px 0 22px; border-bottom: 1px solid #bbb; margin-bottom: 20px; }
.panel-head h1 { font-size: 1.35rem; font-weight: 700; text-transform: none; }
.panel-head h1.caps { text-transform: uppercase; }
.panel-head .items { font-size: 1.35rem; font-weight: 700; }

.steps { display: flex; gap: 6px; margin: 26px 0 0; font-size: .78rem; font-weight: 700; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.steps li::after { content: "\203A"; margin-left: 4px; color: #bbb; }
.steps li:last-child::after { content: ""; }
.steps li.done { color: var(--green); }
.steps li.now { color: var(--pink); }
.steps .n { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .7rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: .75rem; font-weight: 600; text-align: left; padding: 8px 0 18px; text-transform: uppercase; }
.cart-table th:not(:first-child), .cart-table td:not(:first-child) { text-align: center; }
.cart-table td { padding: 0 0 36px; vertical-align: top; }
.cart-prod { display: flex; gap: 20px; }
.cart-prod img { width: 80px; height: 80px; object-fit: cover; background: #f5f5f7; }
.cart-prod h3 { font-size: .85rem; font-weight: 700; }
.cart-prod h3 a:hover { color: var(--pink); }
.cart-prod .variant { font-size: .75rem; color: var(--muted); margin: 2px 0; }
.cart-prod .stars { font-size: .9rem; }
.cart-prod .remove { border: 0; background: none; font-size: .78rem; font-weight: 600; padding: 8px 0 0; }
.cart-prod .remove:hover { color: #d0103a; }
.cart-table .money { font-weight: 700; font-size: .95rem; }
.continue { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.continue::before { content: "\2190"; font-size: 1.3rem; color: var(--purple); }

.summary { background: #f4f4f4; padding: 50px 28px 40px; position: sticky; top: 16px; }
.summary h2 { font-size: 1.25rem; font-weight: 700; padding-bottom: 22px; border-bottom: 1px solid #bbb; margin-bottom: 20px; }
.sum-rows { margin: 0; }
.sum-rows div { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sum-rows dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.sum-rows dd { margin: 0; font-weight: 700; }
.sum-rows .disc dd { color: var(--green); }
.sum-rows.total { border-top: 1px solid #bbb; padding-top: 22px; margin-top: 14px; }
.ship-note { font-size: .75rem; color: var(--pink); font-weight: 600; margin: -6px 0 14px; }
.promo label { display: block; font-size: .95rem; font-weight: 600; text-transform: uppercase; margin: 12px 0 10px; }
.promo input { width: 100%; padding: 8px 16px; border: 1.3px solid var(--purple); border-radius: 999px; font: inherit; text-transform: uppercase; }
.promo .btn-green { margin-top: 14px; padding: 7px 40px; }
.promo-msg { font-size: .78rem; margin-top: 8px; min-height: 1em; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: #d0103a; }
.promo-applied { border: 1.3px solid var(--purple); border-radius: 999px; text-align: center; font-size: .78rem; font-weight: 600; padding: 7px 10px; margin: 8px 0 20px; }
.summary .btn-green.wide { margin-top: 12px; }
.summary .mini-lines { margin-bottom: 18px; }
.mini-line { display: flex; gap: 10px; align-items: center; font-size: .78rem; margin-bottom: 10px; }
.mini-line img { width: 40px; height: 40px; object-fit: cover; }
.mini-line span { flex: 1; }
.mini-line b { white-space: nowrap; }

.co-form { max-width: 520px; }
.social-login { display: flex; gap: 22px; margin: 16px 0 22px; }
.social-login button { border: 0; background: none; padding: 0; }
.social-login svg { width: 40px; height: 40px; }
.forgot { display: block; text-align: right; font-size: .95rem; margin: -6px 0 26px; }
.forgot:hover { color: var(--pink); }
.center-actions { text-align: center; }
.center-actions .btn-green { min-width: 240px; }
.switch { margin-top: 14px; }

.pay-options { display: grid; gap: 10px; margin-bottom: 30px; }
.pay-options label { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; color: #888; cursor: pointer; }
.pay-options input { appearance: none; width: 20px; height: 20px; border: 1.3px solid #999; border-radius: 50%; margin: 0; }
.pay-options input:checked { background: var(--purple); border-color: var(--purple); }
.pay-options input:checked + span { color: var(--ink); }
.pay-options .pay-card {
  border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff;
  font-size: 1rem; color: var(--ink); gap: 14px;
}
.pay-options .pay-card.is-on { border-color: var(--pink); background: var(--coral-tint); }
.pay-options .pay-card input { flex: 0 0 20px; }
.pay-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.pay-ico svg { width: 26px; height: 26px; fill: var(--pink); }
.pay-text { display: grid; gap: 3px; }
.pay-text strong { font-size: 1.1rem; color: var(--ink); }
.pay-text small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.pay-options [hidden] { display: none; }
.upi-pay {
  display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap;
  border: 2px solid var(--pink); background: var(--coral-tint); border-radius: 16px; padding: 22px; margin: 18px 0 26px;
}
.upi-qr { flex: 0 0 210px; background: #fff; border-radius: 12px; padding: 10px; }
.upi-qr svg { display: block; width: 100%; height: auto; }
.upi-info { flex: 1 1 260px; display: grid; gap: 10px; align-content: start; }
.upi-info h2 { font-size: 1.3rem; margin: 0; }
.upi-info p { margin: 0; line-height: 1.55; }
.upi-id button { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-weight: 700; cursor: pointer; }
.upi-app { justify-self: start; display: none; }
.upi-ref label { display: block; font-size: .88rem; color: var(--muted); margin: 6px 0 8px; line-height: 1.5; }
.upi-ref div { display: flex; gap: 8px; }
.upi-ref input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; background: #fff; }
.upi-done { color: var(--green); font-weight: 600; }
@media (hover: none) and (pointer: coarse) { .upi-app { display: inline-flex; } }
@media (max-width: 560px) { .upi-qr { flex-basis: 100%; max-width: 260px; margin: 0 auto; } }
.pay-panel .field input { border-radius: 999px; padding-left: 22px; }
.card-field { position: relative; }
.card-brand { position: absolute; right: 16px; top: 12px; font-size: .75rem; font-weight: 800; color: #fff; background: #1a5cbe; padding: 4px 8px; border-radius: 4px; display: none; }
.card-brand.show { display: block; }
.upi-box, .cod-box { background: #f6f6f9; border-radius: 12px; padding: 18px; margin-bottom: 20px; line-height: 1.6; }
.secure-note { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: center; }

.saved-address { background: #f6f6f9; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; line-height: 1.6; }

/* confirmation */
.thanks h1 { color: var(--pink); font-size: 2.4rem; font-weight: 500; margin-top: 70px; }
.thanks .track-id { font-size: 1rem; margin: 10px 0 40px; }
.order-line { display: flex; background: #fff; box-shadow: 4px 6px 12px rgba(0,0,0,.18); width: min(380px, 100%); margin-bottom: 18px; }
.order-line img { width: 154px; height: 154px; object-fit: cover; background: #dcdce8; }
.order-line div { padding: 28px 20px; }
.order-line h3 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.order-line p { font-weight: 600; margin-bottom: 6px; }
.order-line .t { font-size: 1.4rem; font-weight: 700; }
.summary .addr { line-height: 1.6; margin: -8px 0 26px; font-size: .95rem; }
.thanks-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* =================== AUTH =================== */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0 40px; }
.auth-card { width: min(730px, 100%); }
.auth-card h1 { font-size: 1.7rem; font-weight: 500; margin: 0 0 -4px 36px; position: relative; z-index: 1; }
.auth-box { background: #fff; box-shadow: 5px 6px 12px rgba(0,0,0,.25); padding: 70px 70px 30px; }
.auth-box.tight { padding-top: 40px; }
.pw-hint { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: -2px 12px 40px; }
.pw-hint.bad { color: #d0103a; }
.demo-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* =================== ACCOUNT + ORDERS =================== */
.acct-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 16px; margin-top: 50px; align-items: start; }
.acct-nav { background: #f1f1f1; padding: 30px 8px 90px; display: grid; gap: 14px; }
.acct-nav button, .acct-nav a {
  display: block; width: 100%; text-align: center; padding: 11px; border-radius: 999px;
  border: 1.3px solid #333; background: #fff; font-size: 1.1rem; font-weight: 600;
}
.acct-nav .on { background: var(--green); color: #fff; border-color: var(--green); }
.acct-hello { font-size: .85rem; color: var(--muted); text-align: center; margin-bottom: 4px; }

.order-block { background: #f1f1f1; padding: 12px 18px 30px; margin-bottom: 18px; }
.order-block > h3 { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 700; margin: 0 0 8px 2px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c21a; }
.dot.amber { background: #f5a623; }
.dot.grey { background: #999; }
.dot.red { background: #d0103a; }
.order-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; align-items: center; }
.order-card { background: #fff; padding: 30px 16px 20px; }
.oc-top { display: flex; gap: 6px; align-items: center; justify-content: center; padding-bottom: 20px; border-bottom: 1px solid #ccc; }
.oc-top img { width: 64px; height: 64px; object-fit: cover; }
.oc-top .more { width: 64px; height: 64px; background: #9a9a9a; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: #111; }
.oc-top .arrive { margin-left: 8px; font-weight: 700; line-height: 1.8; }
.oc-bottom { text-align: center; font-weight: 700; padding-top: 14px; line-height: 2; }
.oc-meta { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; font-weight: 600; }
.order-actions { display: grid; gap: 8px; justify-items: stretch; }
.order-actions .btn-green, .order-actions .btn-outline { padding: 13px; font-size: .92rem; }
.order-actions .link { border: 0; background: none; font-weight: 700; padding: 18px 0 0; }
.order-actions .link:hover { color: var(--pink); }

.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: #ddd; }
.timeline li:last-child::before { display: none; }
.timeline .b { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #ddd; }
.timeline li.done .b { background: var(--green); }
.timeline li.done::before { background: var(--green); }
.timeline strong { display: block; }
.timeline small { color: var(--muted); }

.invoice-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.invoice-table th, .invoice-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e3e3e3; }
.invoice-table th { background: #f1f1f1; font-size: .78rem; text-transform: uppercase; }
.invoice-table button { border: 0; background: none; color: var(--pink); font-weight: 700; }

.profile-card { background: #f1f1f1; padding: 30px; }
.profile-card h2 { font-size: 1.2rem; margin-bottom: 18px; }
.profile-card + .profile-card { margin-top: 18px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.quick-links a { background: #fff; border-radius: 12px; padding: 20px; text-align: center; font-weight: 700; box-shadow: var(--shadow); }
.quick-links a span { display: block; font-size: 1.8rem; color: var(--pink); }
.quick-links a:hover { color: var(--pink); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
  .listing { gap: 30px; }
  .listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reviews { gap: 40px; }
  .pager { margin: 50px 0 0; }
  .page-banner .pb-copy { padding-left: 120px; }
}

@media (max-width: 900px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-block; border: 1.3px solid var(--purple); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .85rem; }
  .filters { display: none; background: #fff; padding: 10px 0 20px; border-bottom: 1px solid var(--line); }
  .filters.open { display: block; }
  .filters .top-selling { display: none; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; padding: 30px 22px; }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-nav { padding: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-nav button, .acct-nav a { font-size: .9rem; }
  .doodle-bg { background-size: 140px auto; }
  .page-banner { grid-template-columns: 1fr 40%; min-height: 160px; }
  .page-banner .pb-copy { padding: 26px 16px 26px 90px; }
  .auth-box { padding: 40px 30px 26px; }
}

@media (max-width: 600px) {
  .page-banner { grid-template-columns: minmax(0, 1fr); background-size: auto 70%; background-position: left bottom; }
  .page-banner .pb-copy { padding: 24px 20px; }
  .page-banner .pb-img { height: 130px; }
  .page-banner h1 { font-size: 1.6rem; }
  .listing .product-grid, .rail .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .pager { margin-top: 36px; }
  .pager .nums button { width: 28px; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 4px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
  .cart-table td { padding: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; margin-bottom: 12px; }
  .cart-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
  .panel-head { padding-top: 30px; }
  .thanks h1 { font-size: 1.9rem; margin-top: 30px; }
  .order-line img { width: 110px; height: 110px; }
  .order-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .auth-card h1 { margin-left: 16px; }
  .auth-box { padding: 30px 18px 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .quick-links { grid-template-columns: minmax(0, 1fr); }
  .invoice-table { font-size: .78rem; }
  .invoice-table th, .invoice-table td { padding: 8px 6px; }
}

/* ---------- utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-media { display: block; }
.listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; text-align: center; margin: 10px 0 40px; }
.page-wishlist .panel-head { padding-top: 40px; }
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- cash-on-delivery checkout ---------- */
.guest-box { background: var(--coral-tint); border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 8px; }
.guest-box p { margin: 0; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0 6px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-note { background: #E3F6F3; color: #0f6f63; border-radius: 12px; padding: 12px 16px; margin: -26px 0 30px; max-width: 560px; line-height: 1.55; }
.order-note.demo { background: #FFF1CC; color: #7a5600; }
.page-checkout .cod-box { margin-bottom: 18px; }

/* ---------- policy and help pages (page.html) ---------- */
.info-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 34px; padding-bottom: 20px; }
.info-nav { position: sticky; top: 20px; background: var(--header-bg); border-radius: 16px; padding: 20px 22px; }
.info-nav h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.info-nav ul + h2 { margin-top: 18px; }
.info-nav li a { display: block; padding: 6px 0; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.info-nav li a:hover { color: var(--pink); }
.info-nav li a[aria-current="page"] { color: var(--pink); }
.prose { max-width: 760px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: 2rem; color: var(--purple); margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: .85rem; margin: 0 0 22px; }
.prose h2 { font-size: 1.25rem; color: var(--purple); margin: 30px 0 10px; }
.prose h3 { font-size: 1.02rem; margin: 20px 0 6px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--pink); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { background: var(--coral-tint); color: var(--purple); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 820px) {
  .info-page { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .info-nav { position: static; order: 2; }
  .prose h1 { font-size: 1.6rem; }
}

.area-note { background: var(--coral-tint); color: var(--ink-2); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }

.reset-title { font-size: 1.15rem; margin: 0 0 14px; color: var(--purple); }


/* ---------- sign-up with a verification code ---------- */
.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: #f2f0f6; }
.seg button { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--purple); box-shadow: 0 2px 8px rgba(43,45,92,.12); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.seg-note { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: -4px 8px 18px; }
.seg-note button, .otp-sent button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.seg-note button:disabled { color: var(--muted); cursor: default; }
.otp-sent { line-height: 1.6; margin: 0 0 16px; }
#otp, #resetCode { letter-spacing: .4em; font-size: 1.2rem; font-weight: 700; text-align: center; }
.verified-pill { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: #e3f6f3; color: var(--green); font-weight: 700; font-size: .88rem; }
.switch.center { text-align: center; }
