/* ============ AD Watch & Chasmaghar — storefront styles ============ */
:root {
  --brand: #1e3a8a;
  --brand-2: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 56px 0; }
.section-title { font-size: 1.7rem; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; transition: .18s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #16307a; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #3b2500; }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: #eef2ff; color: var(--brand); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.logo img { width: 36px; height: 36px; }
.logo span b { color: var(--accent-dark); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: #334155; }
.main-nav a:hover { background: #eef2ff; color: var(--brand); }
.main-nav a.active { background: var(--brand); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; background: #f1f5f9; cursor: pointer; font-size: 1.15rem; }
.icon-btn:hover { background: #e2e8f0; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  background: var(--accent); color: #3b2500; font-size: .72rem; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.hamburger { display: none; }
.account-name { font-size: .85rem; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile nav */
@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column;
    padding: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; margin-left: 0; }
  .main-nav.open { display: flex; }
  .hamburger { display: grid; }
}

/* Hero */
.hero { background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 14px; border-radius: 999px; font-size: .82rem; letter-spacing: .4px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; margin-bottom: 14px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: #cbd5e1; max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: min(360px, 80%); filter: drop-shadow(0 24px 44px rgba(0,0,0,.35)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(2deg); } }

/* Category + product grids */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.cat-card { background: var(--card); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  box-shadow: var(--shadow); transition: .2s; border: 1px solid transparent; }
.cat-card:hover { transform: translateY(-5px); border-color: var(--brand-2); }
.cat-card img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 14px; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat-card p { color: var(--muted); font-size: .86rem; }

.product-card { background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .2s; position: relative; }
.product-card:hover { transform: translateY(-4px); }
.product-thumb { aspect-ratio: 4/3; background: #f1f5f9; display: grid; place-items: center; padding: 16px; }
.product-thumb img { max-height: 100%; object-fit: contain; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.product-name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.product-name a:hover { color: var(--brand-2); }
.stars { color: var(--accent); font-size: .85rem; letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-weight: 800; font-size: 1.08rem; color: var(--brand); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.off-pill { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.stock-note { font-size: .78rem; color: var(--danger); }
.stock-note.ok { color: var(--ok); }

/* Offers */
.offer-strip { background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 14px, #1d377f 14px, #1d377f 28px);
  color: #fff; padding: 14px 0; }
.offer-strip .container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.offer-strip b { color: var(--accent); }
.offer-card { background: linear-gradient(135deg, #ffffff, #eff6ff); border: 2px dashed var(--brand-2);
  border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.offer-card h3 { margin-bottom: 6px; }
.offer-code { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff;
  font-family: Consolas, monospace; padding: 7px 12px; border-radius: 8px; margin-top: 10px; cursor: pointer; }
.offer-valid { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.offer-pct { position: absolute; right: -18px; top: 14px; background: var(--accent); color: #3b2500;
  font-weight: 800; padding: 6px 30px; transform: rotate(38deg); font-size: .85rem; }

/* Services */
.service-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border-top: 4px solid var(--accent); }
.service-card .s-icon { font-size: 1.9rem; margin-bottom: 10px; }
.service-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); }
.field.full { grid-column: 1 / -1; }
.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 130px; border: 2px solid var(--line); border-radius: 12px; padding: 14px;
  cursor: pointer; text-align: center; font-weight: 600; }
.radio-card input { display: none; }
.radio-card.checked { border-color: var(--brand); background: #eff6ff; color: var(--brand); }

/* Tables / cart */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.data th { background: #f1f5f9; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-box button { width: 32px; height: 32px; border: none; background: #f8fafc; cursor: pointer; font-size: 1rem; }
.qty-box span { width: 40px; text-align: center; font-weight: 700; }
.cart-img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; background: #f1f5f9; }

.summary-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-row.total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; }
.summary-row .free { color: var(--ok); font-weight: 700; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px; }
.filters h4 { margin-bottom: 10px; font-size: .95rem; }
.filter-group { margin-bottom: 18px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.search-input { flex: 1; min-width: 220px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
select.sort-select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }

/* Product detail */
.pd-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.pd-image { background: linear-gradient(160deg, #f8fafc, #e2e8f0); border-radius: 18px; padding: 40px;
  display: grid; place-items: center; box-shadow: var(--shadow); }
.pd-image img { max-height: 340px; object-fit: contain; }
.pd-info h1 { font-size: 1.65rem; margin: 6px 0 8px; }
.pd-price { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-2); }
.chip { display: inline-block; background: #ecfdf5; color: #047857; border-radius: 999px;
  font-size: .78rem; font-weight: 700; padding: 4px 12px; margin-right: 6px; }
.chip.warn { background: #fef3c7; color: #92400e; }

/* App download */
.app-section { background: linear-gradient(120deg, #111827, #1f2937); color: #fff; }
.app-inner { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.app-points li { padding: 7px 0; display: flex; gap: 10px; align-items: center; }
.phone-mock { width: 230px; height: 420px; border: 10px solid #334155; border-radius: 34px;
  background: linear-gradient(160deg,#0ea5e9,#1e3a8a); display: grid; place-items: center; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.phone-mock::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 16px; background: #334155; border-radius: 999px; }
.phone-screen { text-align: center; padding: 20px; }
.qr-box { background: #fff; padding: 12px 12px 8px; border-radius: 14px; display: inline-block; }
.qr-box img, .qr-box canvas { width: 150px; height: 150px; display: block; }
.qr-fallback { width: 150px; height: 150px; display: grid; place-items: center; color: #334155; font-size: .75rem; text-align: center; }
.qr-caption { color: #cbd5e1; font-size: .8rem; margin-top: 8px; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 52px 0 34px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { padding: 4px 0; font-size: .92rem; }
.newsletter-bar { background: #1e293b; padding: 18px 0; }
.newsletter-bar .container { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.newsletter-bar input { flex: 1; min-width: 220px; padding: 12px 15px; border-radius: 10px; border: none; font: inherit; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 0; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Toast + alerts */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; z-index: 200;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); transition: transform .3s; max-width: 92vw; font-size: .92rem; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; }
.alert-warn { background: #fef3c7; color: #92400e; }
.alert-ok { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* Skeletons */
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
  background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-card { height: 280px; }

/* Auth card */
.auth-wrap { max-width: 430px; margin: 60px auto; }
.auth-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.auth-tabs button { flex: 1; padding: 12px; border: none; background: none; font: inherit; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tabs button.active { color: var(--brand); border-color: var(--brand); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, #0f172a, #1e3a8a); color: #fff; padding: 46px 0; }
.page-hero h1 { font-size: 2rem; }
.page-hero p { color: #cbd5e1; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-inner, .pd-layout, .app-inner { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-art svg { width: min(260px, 70%); }
}
@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
