/* AK Fabrics shared theme (loaded after shop.css on every shop page):
   ivory page, serif headings, white rounded cards, black pill buttons, one 20px gutter. */
body[data-shop] {
  --iv: #F7F4EE; --ink: #141414; --mute: #6F6A60; --line: #E6E0D5; --soft: #EFEAE0; --gut: 20px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--iv);
}
@media (min-width: 768px) { body[data-shop] { --gut: 28px; } }

/* ---------- header ---------- */
body[data-shop] .shop-hdr { background: rgba(247, 244, 238, .92); }
body[data-shop] .shop-hdr.scrolled { box-shadow: none; border-color: var(--line); }
body[data-shop] .logo b { font-weight: 700; letter-spacing: .24em; font-size: 1rem; }
body[data-shop] .logo span { letter-spacing: .46em; }
body[data-shop] .icon-btn:hover { background: rgba(20, 20, 20, .05); }

/* price: "PKR" small and quiet, number bold */
.cur { font-size: .58em; font-weight: 600; letter-spacing: .16em; color: var(--mute); margin-right: .38em; vertical-align: .14em; }

/* ---------- category tabs ---------- */
body[data-shop] .tabs { background: rgba(247, 244, 238, .94); border-bottom: 1px solid var(--line); }
body[data-shop] .tabs-in { gap: 30px; padding: 0 var(--gut); }
body[data-shop] .tab {
  position: relative; height: 48px; padding: 0; border-radius: 0; background: none; color: var(--mute);
  font-weight: 600; font-size: .86rem; letter-spacing: .02em; transition: color .25s;
}
body[data-shop] .tab:active { transform: none; }
body[data-shop] .tab.on { background: none; color: var(--ink); }
body[data-shop] .tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
body[data-shop] .tab.on::after { transform: scaleX(1); }

/* ---------- category header ---------- */
body[data-shop] .cat-head { padding: 28px 0 4px; }
body[data-shop] .cat-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.02; letter-spacing: -.012em; }
body[data-shop] .cat-desc { margin: 12px 0 14px; font-size: .95rem; line-height: 1.5; font-weight: 400; max-width: 52ch; }
body[data-shop] .cat-chips { gap: 6px; margin-bottom: 16px; }
body[data-shop] .cat-chip { background: transparent; border: 1px solid var(--line); padding: 6px 12px; font-size: .76rem; font-weight: 600; color: var(--ink); }
body[data-shop] .cat-chip svg { width: 15px; height: 15px; color: var(--mute); }
body[data-shop] .cat-price { gap: 8px; margin-top: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
body[data-shop] .cat-price s { font-size: .95rem; font-weight: 400; }
body[data-shop] .cat-price i { padding: 4px 9px; font-size: .62rem; letter-spacing: .14em; font-weight: 700; align-self: center; }
body[data-shop] .deal-strip { margin-top: 16px; padding: 13px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem; line-height: 1.35; }
body[data-shop] .deal-strip svg { color: var(--gold); }
body[data-shop] .cat-hint { margin-top: 10px; background: transparent; border: 1px dashed #D9D2C4; border-radius: 14px; font-weight: 500; color: var(--mute); font-size: .82rem; }

/* ---------- product cards ---------- */
body[data-shop] .grid { gap: 14px 12px; padding: 20px 0 8px; }
@media (min-width: 640px) { body[data-shop] .grid { gap: 20px 16px; } }
body[data-shop] .card { padding: 8px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 30px -26px rgba(20, 20, 20, .45); }
body[data-shop] .card-img { border-radius: 16px; }
body[data-shop] .card-tag { top: 9px; left: 9px; padding: 5px 10px; font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
body[data-shop] .card-zoom { right: 9px; bottom: 9px; width: 34px; height: 34px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
body[data-shop] .card-zoom svg { width: 18px; height: 18px; }
body[data-shop] .card-name { margin: 12px 4px 6px; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; line-height: 1.12; letter-spacing: -.005em; min-height: 2.24em; }
body[data-shop] .card-price-row { margin: 0 4px 10px; }
body[data-shop] .card-price { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
body[data-shop] .card-price s { font-weight: 400; }
body[data-shop] .qty-picker { background: var(--iv); }
body[data-shop] .btn-add { height: 46px; border-radius: 999px; font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
body[data-shop] .btn-add:disabled { background: #cfc9bd; }
body[data-shop] .more { padding: 22px 0 6px; }
body[data-shop] .more button { height: 50px; padding: 0 30px; border-radius: 999px; background: transparent; font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s; }
body[data-shop] .more button:hover { background: var(--ink); color: #fff; }
body[data-shop] .wrap { padding-bottom: 34px; }

/* help block (WhatsApp) */
body[data-shop] .help { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
body[data-shop] .help-ic { background: var(--iv); }
body[data-shop] .help-txt b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
body[data-shop] .btn-wa { border-radius: 999px; }

/* ---------- bag bar ---------- */
body[data-shop] .bar { border-radius: 26px; padding: 8px 8px 8px 12px; }
body[data-shop] .bar .btn-wa { border-radius: 999px; }
body[data-shop] .bar-info b { font-weight: 700; }

/* ---------- bag sheet + checkout ---------- */
body[data-shop] .sheet { background: #FBF9F5; border-radius: 28px 28px 0 0; }
body[data-shop] .sheet-h { padding: 18px 20px 12px; }
body[data-shop] .sheet-h h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -.005em; }
body[data-shop] .sheet-x { background: #fff; border: 1px solid var(--line); }
body[data-shop] .sheet-list { padding: 4px 20px; }
body[data-shop] .it img { border-radius: 14px; }
body[data-shop] .it b { font-weight: 600; }
body[data-shop] .it .qty button { border-radius: 50%; background: #fff; }
body[data-shop] .sheet-f { padding: 14px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
body[data-shop] .sum.big { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
body[data-shop] .btn-primary, body[data-shop] .btn-submit, body[data-shop] .btn-sec { border-radius: 999px; font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
body[data-shop] .btn-sec { background: #fff; }
body[data-shop] .btn-form-wa { text-transform: none; letter-spacing: 0; font-size: .92rem; }
body[data-shop] .form-body { padding: 16px 20px 8px; }
body[data-shop] .form-field label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--mute); text-transform: uppercase; }
body[data-shop] .form-field input, body[data-shop] .form-field select, body[data-shop] .form-field textarea { border-radius: 14px; background: #fff; }
body[data-shop] .form-summary { margin: 10px 20px 0; border-radius: 18px; background: #fff; }
body[data-shop] .form-actions { padding: 14px 20px 20px; }
body[data-shop] .success-icon { background: #fff; border: 1px solid var(--line); }
body[data-shop] .sheet-success h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
body[data-shop] .success-order-box { background: #fff; border-radius: 18px; }

/* ---------- lightbox ---------- */
body[data-shop] .lb-info { background: #FBF9F5; border-radius: 28px 28px 0 0; }
body[data-shop] .lb-meta h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.08; letter-spacing: -.005em; }
body[data-shop] .lb-price b { font-weight: 700; font-variant-numeric: tabular-nums; }
body[data-shop] .lb-price small { background: #fff; border: 1px solid var(--line); }
body[data-shop] .lb-trust span { background: #fff; border: 1px solid var(--line); font-weight: 600; }
body[data-shop] .lb-btns .btn-add, body[data-shop] .lb-btns .btn-wa { border-radius: 999px; }
@media (min-width: 900px) { body[data-shop] .lb-info { border-radius: 28px; } }

body[data-shop] .toast { font-weight: 600; }
body[data-shop] .sheet-form .sheet-h h3, body[data-shop] .sheet-h .sheet-back + h3 { font-size: 1.35rem; }
body[data-shop] .btn-submit { font-size: .8rem; letter-spacing: .04em; padding: 0 14px; text-align: center; line-height: 1.25; }

/* ---------- v9.2: easier to order ---------- */
/* trust strip under the category price */
body[data-shop] .cat-trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; font-weight: 600; color: var(--ink); }
body[data-shop] .cat-trust li { display: inline-flex; align-items: center; gap: 6px; }
body[data-shop] .cat-trust svg { width: 16px; height: 16px; color: #1E9E55; flex: none; }

/* quantity buttons: real finger-sized targets */
body[data-shop] .qty-picker { height: 44px; padding: 0 3px; }
body[data-shop] .qty-btn { width: 40px; height: 40px; font-size: 1.25rem; }
body[data-shop] .qty-btn::before { inset: 0; }
body[data-shop] .qty-num { min-width: 26px; font-size: .95rem; }
body[data-shop] .card-price-row { flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; }
body[data-shop] .card-price { flex-direction: row; align-items: baseline; gap: 6px; font-size: 1rem; }
body[data-shop] .card .qty-picker { width: 100%; justify-content: space-between; margin-left: 0; }
body[data-shop] .lb-qty { height: 44px; }

/* bag bar: "Order Karein" is the main button, WhatsApp is the small round one */
body[data-shop] .bar { gap: 8px; padding: 8px 8px 8px 12px; }
body[data-shop] .bar-info span { white-space: normal; font-size: .72rem; }
body[data-shop] .bar .bar-go { flex: none; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
body[data-shop] .bar .bar-go:active { transform: scale(.96); }
body[data-shop] .bar .bar-wa { flex: none; width: 50px; min-height: 50px; padding: 0; border-radius: 50%; justify-content: center; }
body[data-shop] .bar .bar-wa svg { width: 26px; height: 26px; }

/* bigger zoom when the photo is tapped */
body[data-shop] .lb-img.zoomed { transform: scale(2.4); }

/* ---------- v9.3: photos fade in, soft placeholder while they load ---------- */
body[data-shop] .card-img { background: linear-gradient(110deg, #ECE6DA 30%, #F5F1E8 48%, #ECE6DA 66%); background-size: 220% 100%; animation: akShimmer 1.4s linear infinite; }
body[data-shop] .card-img img { opacity: 0; transition: opacity .45s ease; }
body[data-shop] .card-img img.ld { opacity: 1; }
body[data-shop] .card-img:has(img.ld) { animation: none; background: #ECE6DA; }
@keyframes akShimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { body[data-shop] .card-img { animation: none; } body[data-shop] .card-img img { transition: none; } }

/* ---------- v9.3: finishing touches ---------- */
body[data-shop] .cat-chip.cat-count { background: var(--ink); border-color: var(--ink); color: #fff; }
body[data-shop] .cat-chip.cat-count b { font-weight: 800; }
body[data-shop] .card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
body[data-shop] .card-img:active img { transform: scale(.985); }
body[data-shop] .card-img img { transition: opacity .45s ease, transform .5s var(--ease); }
@media (hover: hover) {
  body[data-shop] .card:hover { transform: translateY(-4px); box-shadow: 0 26px 38px -26px rgba(20, 20, 20, .5); }
  body[data-shop] .card:hover .card-img img { transform: scale(1.03); }
}
body[data-shop] .cat-head h1 { animation: akRise .7s var(--ease) both; }
body[data-shop] .cat-desc, body[data-shop] .cat-chips, body[data-shop] .cat-price, body[data-shop] .cat-trust { animation: akRise .7s var(--ease) .08s both; }
@keyframes akRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body[data-shop] .cat-head * { animation: none !important; } }
