/* =====================================================================
   ADVAITHAAT — UI polish (loaded last, after mobile-fixes.css)
   1. Breathing room under the fixed header + clear edge on the category bar
   2. Bigger, clearer tap targets for small links/buttons
   3. Account menu: profile header, quick tiles, grouped sections
   4. Cart & checkout: modern inputs, PIN box, cards, buttons
   ===================================================================== */

/* ---------- 1. space under the header ---------- */
body { padding-top: calc(var(--adv-header-h, 175px) + 18px) !important; }
.site-header .category-bar { border-bottom: 1px solid #e6ebf1; box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .18); }
@media (max-width: 768px) {
  body { padding-top: calc(var(--adv-header-h, 196px) + 16px) !important; }
  .site-header .category-bar .category-container { padding-bottom: 10px !important; }
}

/* ---------- 2. tap targets ---------- */
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.c2-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid #cfe3da; color: #0f5c45 !important; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 2px 6px rgba(15, 92, 69, .08); white-space: nowrap; }
.c2-more:hover { background: #f1faf6; border-color: #0f5c45; }
.c2-remove { display: inline-flex !important; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #fff5f4; border: 1px solid #f6d3cf; color: #a3322a !important; font-weight: 600; font-size: 13px !important; }
.c2-remove:hover { background: #ffe9e6; }
.c2-info h3 { margin-right: 96px !important; }
@media (max-width: 480px) { .c2-info h3 { margin-right: 0 !important; padding-right: 0; } .c2-remove { position: static !important; margin-top: 8px; align-self: flex-start; } }

/* ---------- 3. account menu ---------- */
.acc-menu { width: 320px; max-width: calc(100vw - 20px); padding: 0 !important; border-radius: 16px !important; overflow: hidden; box-shadow: 0 18px 40px rgba(15, 23, 42, .18) !important; border: 1px solid #e6ebf1; }
.acc-menu.show-dropdown { display: block; max-height: calc(100vh - 140px); overflow-y: auto; }
.acc-menu a { text-decoration: none; }
.acc-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #0b1225, #1d3a7a); color: #fff; }
.acc-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fbbf24; color: #111827; font-weight: 800; font-size: 18px; flex: 0 0 40px; }
.acc-head b { display: block; font-size: 15px; color: #fff; }
.acc-head small { display: block; font-size: 12px; color: #c7d2fe; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; border-bottom: 1px solid #eef2f7; }
.acc-tiles a { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px !important; border-radius: 12px; background: #f6f8fb; color: #0f172a !important; font-size: 12px !important; font-weight: 600; border: 0 !important; }
.acc-tiles a:hover { background: #eef2ff; }
.acc-tiles i { font-style: normal; font-size: 20px; }
.acc-grp { border-bottom: 1px solid #eef2f7; }
.acc-grp summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 700; font-size: 14px; color: #0f172a; cursor: pointer; }
.acc-grp summary::-webkit-details-marker { display: none; }
.acc-grp summary::after { content: "›"; margin-left: auto; font-size: 20px; color: #94a3b8; transition: transform .15s; }
.acc-grp[open] summary::after { transform: rotate(90deg); }
.acc-grp summary i, .acc-link i { font-style: normal; width: 22px; text-align: center; }
.acc-grp a { display: block !important; padding: 10px 16px 10px 48px !important; font-size: 14px !important; color: #334155 !important; border: 0 !important; }
.acc-grp a:hover { background: #f6f8fb; color: #0f172a !important; }
.acc-grp[open] { background: #fbfcfe; padding-bottom: 6px; }
.acc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.acc-btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px !important; border-radius: 10px; border: 1.5px solid #dbe2ea !important; color: #0f172a !important; font-weight: 700; font-size: 14px !important; background: #fff; }
.acc-btn-pri { background: #fbbf24 !important; border-color: #fbbf24 !important; color: #111827 !important; }
.acc-del { font-size: 12px !important; color: #94a3b8 !important; padding: 8px 0 !important; border: 0 !important; }
.acc-guest { padding: 16px; background: linear-gradient(135deg, #0b1225, #1d3a7a); color: #fff; }
.acc-guest b { display: block; font-size: 15px; color: #fff; }
.acc-guest small { display: block; color: #c7d2fe; margin: 2px 0 12px; font-size: 12.5px; }
.acc-guest-btns { display: flex; gap: 8px; }
.acc-guest-btns .acc-btn { flex: 1; border-color: rgba(255, 255, 255, .5) !important; color: #fff !important; background: transparent; }
.acc-guest-btns .acc-btn-pri { color: #111827 !important; background: #fbbf24 !important; }
.acc-link { display: flex !important; align-items: center; gap: 10px; padding: 13px 16px !important; font-size: 14px !important; color: #0f172a !important; border-bottom: 1px solid #eef2f7; }
.acc-link:hover { background: #f6f8fb; }

/* ---------- 4. cart & checkout ---------- */
.cart2-body .c2 { --c2-radius: 16px; }
.cart2-body .c2-item, .cart2-body .c2-sum, .cart2-body .checkout-box { box-shadow: 0 4px 16px rgba(15, 23, 42, .05); border-color: #e6ebf1 !important; }
/* PIN box */
.c2-pin { border: 0 !important; background: linear-gradient(180deg, #f3f8ff, #ffffff) !important; border-radius: 14px !important; padding: 14px !important; box-shadow: inset 0 0 0 1.5px #dbe7ff; }
.c2-pin label { font-size: 14px !important; color: #0f172a; margin-bottom: 8px !important; }
.c2-pin-row { display: flex; align-items: stretch; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.c2-pin-row:focus-within { border-color: #1d4ed8; box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.c2-pin-ico { display: grid; place-items: center; padding: 0 4px 0 12px; font-size: 16px; }
.c2-pin-row input { flex: 1; min-width: 0; border: 0 !important; outline: 0; padding: 12px 8px !important; font-size: 16px !important; letter-spacing: .08em; font-weight: 600; background: transparent; box-shadow: none !important; }
.c2-pin-btn { border: 0; background: #1d4ed8; color: #fff; font-weight: 700; font-size: 15px; padding: 0 20px; cursor: pointer; min-height: 46px; }
.c2-pin-btn:hover { background: #1e40af; }
.c2-pinmsg { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0 !important; padding: 9px 11px; border-radius: 10px; background: #f8fafc; font-size: 13.5px !important; }
.c2-pinmsg.ok { background: #ecfdf3; color: #166534 !important; }
.c2-pinmsg.bad { background: #fef2f2; color: #b91c1c !important; }
.c2-trlist { display: grid; gap: 8px; margin-top: 8px !important; }
.c2-trlist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px !important; border: 1px solid #e6ebf1 !important; border-radius: 12px; background: #fff; }
.c2-tr-ico { font-size: 18px; line-height: 1.2; }
.c2-trlist li b { font-size: 14px; color: #0f172a; }
/* checkout fields */
.cart2-body .checkout-box { background: #fff; border: 1px solid #e6ebf1; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.cart2-body .checkout-box h3 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: #0f172a; }
.cart2-body .checkout-box h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: #0f5c45; }
.cart2-body .addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cart2-body .addr-grid .fld-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .cart2-body .addr-grid { grid-template-columns: 1fr; } }
.cart2-body .checkout-box label.fld, .cart2-body .addr-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.cart2-body .checkout-box input[type=text], .cart2-body .checkout-box input[type=tel], .cart2-body .checkout-box input[type=email], .cart2-body .checkout-box select, .cart2-body .checkout-box textarea {
  width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1.5px solid #dbe2ea; border-radius: 11px; font: inherit; font-size: 15.5px; font-weight: 500; background: #fff; color: #0f172a; transition: border-color .15s, box-shadow .15s; }
.cart2-body .checkout-box input:focus, .cart2-body .checkout-box select:focus, .cart2-body .checkout-box textarea:focus { outline: 0; border-color: #0f5c45; box-shadow: 0 0 0 4px rgba(15, 92, 69, .12); }
.adv-pin-msg { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; }
/* zone + transporter cards */
.c2-zone { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 11px 13px; border: 1.5px solid #e3e9ee; border-radius: 12px; background: #fff; margin-bottom: 8px; cursor: pointer; }
.c2-zone:has(input:checked) { border-color: #0f5c45; background: #f7fcfa; box-shadow: 0 0 0 3px rgba(15, 92, 69, .12); }
.c2-zone input { accent-color: #0f5c45; width: 18px; height: 18px; margin-top: 2px; }
.c2-zone small { display: block; color: #64748b; font-weight: 400; font-size: 12.5px; }
.c2-zones legend, .c2-trs legend { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 8px; }
/* main buttons */
.c2-cta, .place-order-btn { border-radius: 14px !important; min-height: 52px; font-size: 16.5px !important; letter-spacing: .01em; box-shadow: 0 8px 18px rgba(15, 92, 69, .22); transition: transform .08s, box-shadow .15s, background .15s; }
.c2-cta:hover, .place-order-btn:hover { box-shadow: 0 10px 22px rgba(15, 92, 69, .3); }
.c2-cta:active, .place-order-btn:active { transform: translateY(1px); }
.c2-step { border-radius: 14px !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.c2-step button { width: 44px !important; height: 44px !important; }
.c2-step select { height: 44px !important; }
.c2-steps li.on::before { box-shadow: 0 0 0 4px rgba(15, 92, 69, .15); }
.c2-opt { transition: border-color .15s, box-shadow .15s; }
.c2-opt:hover { border-color: #b7d8ca; }
.c2-items, .c2-item, .c2-info, .c2-grid > * { min-width: 0; }
.c2-row { flex-wrap: wrap; }
@media (max-width: 480px) { .c2-step button { width: 40px !important; } .c2-step select { min-width: 54px !important; } }
.c2-cta { background: var(--c2-brand, #0f5c45); color: #fff; }
.c2-cta:hover { background: var(--c2-brand2, #0b4a37); }

/* Continue with WhatsApp + opt-in tick */
.wa-login { margin: 12px 0; }
.wa-login-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: #128c4a; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.wa-login-btn:hover { background: #0e7a40; }
.wa-login-btn:focus-visible { outline: 3px solid #0b3d24; outline-offset: 2px; }
.wa-login-wait { background: #effaf3; border: 1px solid #bfe6cd; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #1d3b2a; }
.wa-login-wait p { margin: 0 0 6px; }
.wa-login-alt { font-size: 13px; }
.wa-login-alt a, .wa-login-cancel { color: #0e6b39; font-weight: 600; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.wa-login-note { margin: 6px 0 0; font-size: 12px; color: #5b6b62; text-align: center; }
.wa-optin { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #374151; margin: 4px 0 12px; line-height: 1.4; }
.wa-optin input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.cod-otp { display: grid; gap: 4px; margin-top: 8px; }
.cod-otp label { font-size: 12.5px; font-weight: 600; color: #374151; }
.cod-otp input { width: 150px; padding: 8px 10px; border: 1.5px solid #f2a516; border-radius: 8px; font-size: 18px; letter-spacing: .25em; }
.ship-rec { margin: -4px 0 10px; padding: 8px 12px; background: #f1f6ff; border: 1px solid #d6e3f8; border-radius: 10px; font-size: 13.5px; color: #1f3350; line-height: 1.45; }
.ship-rec a { font-weight: 700; color: #16406b; }

/* pack nudge, quote links, often bought together */
.up-nudge { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 9px 11px; background: #fff8e8; border: 1px solid #f5d98d; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: #4a3608; }
.up-nudge-btn { display: inline-block; margin-left: 4px; padding: 4px 10px; border: 0; border-radius: 999px; background: #f2a516; color: #1d1300; font-weight: 700; font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.up-nudge-btn:hover { background: #e09a10; }
.c2-quote { display: block; margin: 8px 0; padding: 10px 12px; border: 1.5px dashed #c8d3e2; border-radius: 10px; color: #16406b; font-weight: 700; font-size: 14px; text-decoration: none; }
.c2-quote:hover { border-color: #16406b; background: #f4f8fd; }
.up-fbt { margin: 22px 0 8px; }
.up-fbt h2 { font-size: 18px; margin: 0 0 4px; }
.up-note { margin: 0 0 10px; font-size: 13px; color: #5b6b7f; }
.up-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.up-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; }
.up-img img { width: 100%; height: 120px; object-fit: contain; border-radius: 8px; background: #f7f8fa; }
.up-name { font-size: 13.5px; font-weight: 600; color: #102033; text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-price { font-weight: 800; font-size: 15px; color: #102033; }
.up-tag { font-size: 11.5px; color: #0f6b3d; font-weight: 700; }
.up-add { margin-top: auto; text-align: center; padding: 7px; border-radius: 8px; border: 1.5px solid #16406b; color: #16406b; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.up-add:hover { background: #16406b; color: #fff; }
@media (max-width: 700px) { .up-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* group buy box on the product page */
.gb-box { margin: 16px 0; padding: 14px 16px; border: 1.5px solid #c9dcf2; border-radius: 14px; background: #f5f9ff; }
.gb-title { margin: 0 0 6px; font-weight: 800; color: #0d2a4a; }
.gb-line { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #22344a; }
.gb-meter { height: 8px; background: #dfe8f3; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.gb-meter i { display: block; height: 100%; background: #f2a516; }
.gb-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.gb-form input { width: 70px; padding: 7px 8px; border: 1.5px solid #c9d6e6; border-radius: 8px; }
.gb-btn { padding: 8px 14px; border: 0; border-radius: 999px; background: #16406b; color: #fff; font-weight: 700; cursor: pointer; }
.gb-link { background: none; border: 0; color: #16406b; text-decoration: underline; cursor: pointer; font: inherit; }
.gb-flash { margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.gb-ok { background: #e3f6ec; color: #0f5a33; } .gb-err { background: #fde8e8; color: #8a1c1c; }
