:root {
  --navy: #0b3954;
  --teal: #087e8b;
  --teal-dark: #066570;
  --coral: #ff6b5b;
  --wa: #25d366;
  --wa-dark: #1da851;
  --bg: #f4f9fb;
  --card: #ffffff;
  --text: #1c2b36;
  --muted: #64748b;
  --line: #e2ebf0;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(11, 57, 84, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
.container { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 56px); }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-muted { background: #e5e7eb; color: #6b7280; cursor: not-allowed; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .6; }

/* Header */
.announce { background: var(--navy); color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; }
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.logo-light { color: #fff; }
.cart-btn { position: relative; color: var(--navy); padding: 8px; }
.cart-count {
  position: absolute; top: 0; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--coral); color: #fff; border-radius: 10px; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 6px 14px; border-radius: 999px; background: var(--bg);
  color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.cat-nav a.active { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(120deg, rgba(11,57,84,.95), rgba(8,126,139,.7)), url('../img/hero.jpg') center/cover;
  color: #fff; padding: 56px 0 64px;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 12px; max-width: 640px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 560px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.usp {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: -32px; position: relative;
}
.usp div { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.usp strong { display: block; color: var(--navy); }
.usp span { font-size: .85rem; color: var(--muted); }
@media (min-width: 768px) { .usp { grid-template-columns: repeat(4, 1fr); } }

/* Shop */
.search { display: flex; gap: 8px; margin: 28px 0 8px; }
.search input { flex: 1; min-width: 0; }
.section-title { margin: 32px 0 14px; font-size: 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
@media (min-width: 1360px) { .grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(7, 1fr); } }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; background: #e6f2f5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.soldout .card-img img { filter: grayscale(.8); opacity: .6; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: .95rem; margin: 0; flex: 1; }
.price { font-weight: 700; color: var(--teal); }
.price small { font-weight: 400; color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; }
.badge-out { background: var(--coral); color: #fff; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Forms */
input, textarea, select {
  font: inherit; width: 100%; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 12px; }
label input, label textarea { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: .9rem; }
.alert-error { background: #fdecea; color: #b42318; }
.alert-ok { background: #e7f7ee; color: #146c43; }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 820px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1280px) { .product { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 56px; } }
.product-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #e6f2f5; aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: .9rem; text-decoration: none; }
.product-info h1 { margin: 8px 0; font-size: 1.8rem; }
.desc { color: var(--muted); }
.low-stock { color: var(--coral); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.variant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.variant, .chip, .cut { position: relative; }
.variant input, .chip input, .cut input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.variant span {
  display: flex; flex-direction: column; padding: 12px; border: 2px solid var(--line);
  border-radius: 12px; cursor: pointer; background: #fff;
}
.variant em { font-style: normal; color: var(--teal); font-weight: 600; }
.variant input:checked + span { border-color: var(--teal); background: #e8f6f7; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; font-size: .9rem; }
.chip input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.zoomable { cursor: zoom-in; }
.zoomable img { transition: transform .15s ease-out; }
.zoomable.zooming img { transform: scale(2.2); }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); pointer-events: none; transition: opacity .15s;
}
.zoomable.zooming .zoom-hint { opacity: 0; }
.viewer { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(4, 22, 34, .96); }
.viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-out; }
.viewer-stage img { max-width: 100%; max-height: calc(100dvh - 60px); object-fit: contain; transition: transform .2s ease-out; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.viewer.zoomed .viewer-stage img { cursor: grab; }
.viewer.dragging .viewer-stage img { transition: none; }
.viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.viewer-tip { margin: 0; padding: 10px 16px 18px; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.cut-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cut span {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; height: 100%;
  padding: 6px 6px 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; text-align: center;
}
.cut img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #fff; }
.cut-hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.cut-hint::before { content: "ⓘ "; color: var(--teal); }
.cut-error { margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #c0392b; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff;
  box-shadow: 0 -4px 16px rgba(11, 57, 84, .12);
}
.buybar-sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.buybar-sum strong { font-size: 1.15rem; color: var(--navy); }
.buybar-sum small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn-cart { flex-shrink: 0; height: 44px; }
body.has-buybar { padding-bottom: 70px; }
body.has-buybar .wa-float { bottom: 84px; }
.cut b { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.cut input:checked + span { border-color: var(--teal); background: #e8f6f7; color: var(--teal); }
.variant input:focus-visible + span, .chip input:focus-visible + span, .cut input:focus-visible + span { outline: 2px solid var(--navy); }
.price-box { margin: 4px 0 14px; }
.price-box .line-total { font-size: 1.6rem; }
.line-meta { font-size: .85rem; color: var(--muted); }
.line-meta span:empty { display: none; }
#line-weight::before { content: " · "; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-cart { height: 48px; padding: 0 26px; border-radius: 12px; box-shadow: 0 4px 12px rgba(8, 126, 139, .22); }
.btn-cart.btn-muted, .btn-cart.btn-wa { box-shadow: none; }
.wa-ask { margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.qty input { width: 52px; border: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty-unit { margin: 0 4px 0 -12px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.unit-price { margin: 6px 0 18px; font-size: 1.3rem; font-weight: 700; color: var(--teal); }
.unit-price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 32px; font-size: 1.1rem; }
.qty-sm span { min-width: 28px; text-align: center; font-weight: 600; }
.line-total { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.added { margin-top: 16px; padding: 16px; background: #e7f7ee; border-radius: var(--radius); color: #146c43; font-weight: 600; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Cart */
.cart-page { padding-top: 24px; padding-bottom: 48px; }
.cart-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: flex; align-items: flex-start; gap: 14px; background: #fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-line > img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.cart-line.soldout { opacity: .6; }
.cart-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-line-head strong { color: var(--navy); line-height: 1.3; }
.line-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-line .ur { line-height: 1.6; margin-top: -2px; }
.cart-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 10px; border-radius: 999px; background: #e8f6f7; color: var(--teal); font-size: .75rem; font-weight: 600; }
.cart-line-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cart-line-foot small { color: var(--muted); font-size: .8rem; }
.qty-sm { border-width: 1.5px; border-radius: 8px; }
.link-remove {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer;
}
.link-remove:hover { background: #fdecea; color: #b42318; }
@media (max-width: 420px) { .link-remove span { display: none; } }
.checkout { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout h2 { font-size: 1.15rem; margin: 20px 0 12px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.2rem; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.done { text-align: center; background: #fff; padding: 40px 20px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 48px; padding: 40px 0 20px; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer p { margin: 4px 0; }
.footer-grid { display: grid; gap: 24px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; font-size: .85rem; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45); z-index: 30;
}

/* Logo wordmark */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 1.35rem; font-weight: 700; letter-spacing: .3px; }
.brand small { font-size: .68rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.logo-light .brand small { color: #7fd3dc; }

/* Urdu fish names */
.ur { display: block; font-family: 'Noto Nastaliq Urdu', serif; font-weight: 400; font-size: .92rem; line-height: 2; color: var(--teal); text-align: left; }
h1 + .ur { font-size: 1.3rem; margin: -4px 0 4px; }
.pcard-title .ur { display: inline; font-size: .85rem; }
.ur-input { font-family: 'Noto Nastaliq Urdu', 'Poppins', sans-serif; }

/* Footer extras */
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .logo { margin-bottom: 8px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--teal); }

/* Desktop: slightly smaller type and tighter controls so pages don't feel oversized */
@media (min-width: 1024px) {
  html { font-size: 15px; }
  body { font-size: 15px; }
  .announce { font-size: .8rem; padding: 5px 16px; }
  .header-row { height: 58px; }
  .logo img { width: 42px; height: 42px; }
  .brand b { font-size: 1.2rem; }
  .cat-nav a { font-size: .88rem; padding: 6px 14px; }

  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .btn-lg { padding: 11px 22px; font-size: .95rem; }
  .section-title { font-size: 1.25rem; }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: .9rem; }

  .product { grid-template-columns: minmax(0, 480px) minmax(0, 620px); justify-content: center; gap: 56px; padding-top: 28px; padding-bottom: 56px; }
  .product-info { max-width: 620px; }
  .product-info h1 { font-size: 1.6rem; margin: 6px 0 4px; }
  .product-info .ur { font-size: 1.1rem; }
  .desc { font-size: .92rem; margin: 6px 0 16px; }
  legend { font-size: .92rem; }
  fieldset { margin-bottom: 16px; }
  .variant-list { grid-template-columns: repeat(auto-fill, minmax(104px, 120px)); gap: 8px; }
  .variant span { padding: 8px 12px; border-radius: 10px; font-size: .88rem; }
  .cut-list { grid-template-columns: repeat(auto-fill, minmax(92px, 104px)); gap: 8px; }
  .cut span { padding: 5px 5px 8px; border-radius: 10px; gap: 4px; }
  .cut b { font-size: .78rem; }
  .price-box .line-total { font-size: 1.45rem; }
  .qty { border-radius: 10px; }
  .qty button { width: 38px; height: 40px; font-size: 1.15rem; }
  .qty input { width: 44px; }
  .btn-cart { height: 44px; padding: 0 22px; font-size: .92rem; border-radius: 10px; }
}

/* Cut style pop-up: picture shown large over a blurred page for a moment */
.cut-pop {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px;
  background: rgba(11, 57, 84, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s ease; cursor: pointer;
}
.cut-pop.open { opacity: 1; }
.cut-pop figure {
  position: relative; width: min(440px, 100%); margin: 0; overflow: hidden; border-radius: 18px; background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); transform: scale(.92); transition: transform .2s ease;
}
.cut-pop.open figure { transform: none; }
.cut-pop img { width: 100%; aspect-ratio: 1215 / 788; object-fit: contain; padding: 12px; background: #fff; }
.cut-pop figcaption { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.cut-pop b { display: block; color: var(--navy); font-size: 1.05rem; }
.cut-pop span { font-size: .85rem; color: var(--muted); }
.cut-pop-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--teal); transform-origin: left; }
.cut-pop.open .cut-pop-bar { animation: cut-pop-timer 1.8s linear forwards; }
@keyframes cut-pop-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .cut-pop, .cut-pop figure { transition: none; }
  .cut-pop.open .cut-pop-bar { animation: none; }
}
.variant em small { font-weight: 500; color: var(--muted); }
.size-note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
