/* =========================================================
   ValBooksStore — Design System v3
   Calm and professional: one confident accent color, soft
   shadows, generous whitespace, Rubik throughout.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ink: #14161F;
  --ink-soft: #4B4E5C;
  --muted: #767A8A;
  --bg: #FFFFFF;
  --bg-tint: #FBF3EA;
  --surface: #FFFFFF;
  --border: #EDE4D8;
  --border-soft: #F3ECE2;

  --accent: #E23744;
  --accent-dark: #C22A36;
  --accent-soft: #FDEBEC;

  --coral: #FF6B5E;
  --coral-soft: #FFEBE8;
  --amber: #F5A623;
  --amber-soft: #FEF3DF;
  --teal: #17A398;
  --teal-soft: #E4F6F4;

  --ink-btn: #14161F;
  --ink-btn-dark: #23252F;

  --success: #1B8354;
  --error: #D8483A;
  --error-soft: #FCECEA;

  --font-display: 'Rubik', -apple-system, Segoe UI, sans-serif;
  --font-body: 'Rubik', -apple-system, Segoe UI, sans-serif;
  --font-ui: 'Rubik', -apple-system, Segoe UI, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-sm: 0 1px 2px rgba(20,22,31,0.05), 0 1px 1px rgba(20,22,31,0.04);
  --shadow-md: 0 6px 20px rgba(20,22,31,0.08);
  --shadow-lg: 0 20px 44px rgba(20,22,31,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 55%, var(--amber) 100%);
  z-index: 60;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Dot-cell motif (small Braille nod, used sparingly) ---------- */
.dot-cell {
  display: inline-grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 2.5px;
  flex: none;
}
.dot-cell span {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
}
.dot-cell.active span { opacity: 1; }
.dot-cell[data-pattern="all"] span:nth-child(1),
.dot-cell[data-pattern="all"] span:nth-child(2),
.dot-cell[data-pattern="all"] span:nth-child(3),
.dot-cell[data-pattern="all"] span:nth-child(4),
.dot-cell[data-pattern="all"] span:nth-child(5),
.dot-cell[data-pattern="all"] span:nth-child(6) { opacity: 1; }
.dot-cell[data-pattern="english"] span:nth-child(1),
.dot-cell[data-pattern="english"] span:nth-child(3) { opacity: 1; }
.dot-cell[data-pattern="hindi"] span:nth-child(1),
.dot-cell[data-pattern="hindi"] span:nth-child(2),
.dot-cell[data-pattern="hindi"] span:nth-child(3) { opacity: 1; }
.dot-cell[data-pattern="braille"] span { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(226,55,68,0.28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--ink-btn); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--ink-btn-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg-tint); color: var(--ink); }
.btn-block { width: 100%; }
.btn-danger { background: var(--surface); color: var(--error); border-color: var(--error-soft); }
.btn-danger:hover { background: var(--error-soft); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
.site-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  color: var(--ink);
  position: sticky; top: 4px; z-index: 50;
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center;
}
.brand img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-search { flex: 1; max-width: 380px; position: relative; margin: 0 20px; }
.nav-search input {
  width: 100%; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); font-family: var(--font-ui); font-size: 13.5px;
  background: var(--bg-tint); color: var(--ink);
}
.nav-search input:focus { border-color: var(--accent); background: var(--surface); }
.nav-links a, .nav-links button.link-btn {
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); padding: 10px 14px; border-radius: var(--radius-s);
  background: none; border: none; cursor: pointer;
}
.nav-links a:hover, .nav-links button.link-btn:hover { color: var(--ink); background: var(--bg-tint); }
.nav-cart { position: relative; }
.nav-cart .count {
  position: absolute; top: -6px; right: -4px;
  background: var(--accent); color: #fff;
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  border-radius: 999px; min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #fff;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 110px 0 0;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-photo {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 35%;
}
.hero-scrim {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.90) 38%,
    rgba(255,255,255,0.55) 62%,
    rgba(255,255,255,0.15) 100%);
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px; display: block;
}
.hero-content { position: relative; z-index: 1; max-width: 620px; padding-bottom: 130px; }
.hero h1 { font-size: 52px; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 span.accent { color: var(--accent); }
.hero p.lead { color: var(--ink-soft); font-size: 17.5px; max-width: 46ch; font-family: var(--font-body); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- About strip (creators) ---------- */
.about-strip { padding: 60px 0 88px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.creator-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flow-root; /* contains the floated photo without clipping */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.creator-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.creator-photo {
  float: left;
  margin: 0 20px 12px 0;
  width: 200px; height: 250px; border-radius: var(--radius-m);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.creator-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.creator-card h3 { font-size: 19px; margin-bottom: 2px; }
.creator-role { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; display: block; }
.creator-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.7; }

/* ---------- Full-width banner (poster artwork) ---------- */
.full-banner {
  width: 100%;
  display: block;
  line-height: 0;
}
.full-banner img {
  width: 100%;
  display: block;
}

/* ---------- Shop section ---------- */
.shop-section {
  padding: 64px 0 100px;
  background: var(--bg);
}
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.shop-head h2 {
  font-size: 36px; margin: 0;
}

.pill-row {
  display: flex; gap: 26px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.pill {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 2px 12px; border-radius: 0;
  border: none; border-bottom: 3px solid transparent;
  background: none; box-shadow: none;
  color: var(--muted); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pill .dot-cell { display: none; }
.pill:hover { color: var(--ink); transform: none; box-shadow: none; }
.pill.active {
  background: none; color: var(--accent); border-color: var(--accent);
  box-shadow: none;
}

.lang-select-mobile {
  display: none;
  width: 100%;
  margin-bottom: 32px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
}
.lang-select-mobile:focus { border-color: var(--accent); }

.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 22px;
  margin-top: 36px;
}
.book-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.book-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--amber));
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-cover {
  aspect-ratio: 1/1; background: var(--bg-tint); position: relative; overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.book-card:hover .book-cover img { transform: scale(1.06); }
.book-cover .lang-tag {
  position: absolute; top: 12px; left: 10px;
  background: rgba(20,22,31,0.85); color: #fff;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.book-cover .lang-tag .dot-cell { color: #fff; transform: scale(0.85); }
.book-cover .lang-tag.lang-non-braille { background: var(--amber); color: #14161F; }
.book-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-title { font-family: var(--font-ui); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.book-author { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-top: -6px; }
.book-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.book-mrp { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.book-price { font-family: var(--font-ui); font-weight: 700; color: var(--ink); font-size: 16px; }
.book-discount { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--success); }
.book-delivery { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.book-actions { display: flex; gap: 8px; }
.book-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }
.wishlist-btn {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-s);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.wishlist-btn:hover { border-color: var(--accent); color: var(--accent); }
.wishlist-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.empty-state {
  text-align: center; padding: 64px 24px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius-m); background: var(--surface);
}
.empty-state h3 { color: var(--ink); }

/* ---------- Book detail ---------- */
.detail-section { padding: 56px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 52px; }
.detail-cover { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border); background: var(--bg-tint); aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .lang-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 16px;
}
.detail-info .lang-tag .dot-cell { color: var(--accent-dark); }
.detail-info .lang-tag.lang-non-braille { background: var(--amber-soft); color: #8A5A12; }
.detail-info h1 { font-size: 34px; margin-bottom: 8px; }
.detail-price { font-family: var(--font-ui); font-size: 25px; font-weight: 700; color: var(--accent); margin: 14px 0 22px; }
.detail-desc { color: var(--ink-soft); font-size: 16px; max-width: 62ch; font-family: var(--font-body); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; }
.qty-stepper button { background: var(--surface); border: none; width: 38px; height: 42px; font-size: 16px; cursor: pointer; font-family: var(--font-ui); color: var(--ink-soft); }
.qty-stepper button:hover { background: var(--bg-tint); color: var(--ink); }
.qty-stepper input { width: 44px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 42px; font-family: var(--font-ui); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }

/* ---------- Forms ---------- */
.form-page { padding: 76px 0 100px; background: var(--bg-tint); min-height: calc(100vh - 200px); }
.form-card {
  max-width: 440px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 40px 36px; box-shadow: var(--shadow-md);
}
.form-card.wide { max-width: 720px; }
.form-card h1, .form-card h2 { font-size: 25px; text-align: center; }
.form-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; font-family: var(--font-ui); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-top: 5px; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface);
}
input[type="radio"], input[type="checkbox"] {
  width: 16px; height: 16px; flex: none;
  padding: 0; border: none; background: none; border-radius: 0;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { text-align: center; font-family: var(--font-ui); font-size: 14px; color: var(--muted); margin-top: 20px; }
.form-foot a { color: var(--accent); font-weight: 600; }
.form-msg { font-family: var(--font-ui); font-size: 13px; padding: 10px 12px; border-radius: var(--radius-s); margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--error-soft); color: var(--error); }
.form-msg.success { background: #E9F6EF; color: var(--success); }

/* ---------- Cart / checkout ---------- */
.cart-section { padding: 56px 0 100px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-line img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--bg-tint); }
.cart-line-title { font-family: var(--font-ui); font-weight: 600; color: var(--ink); font-size: 16px; }
.cart-line-lang { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.cart-line-price { font-family: var(--font-ui); font-weight: 700; color: var(--accent); }
.remove-link { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--error); background: none; border: none; cursor: pointer; padding: 0; margin-top: 6px; }
.summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.summary-row { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }

/* ---------- Profile / orders ---------- */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--font-ui); }
.order-id { font-weight: 700; color: var(--ink); font-size: 14px; }
.order-date { color: var(--muted); font-size: 13px; }
.order-status { font-family: var(--font-ui); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.order-status.status-dispatched { background: #FFF3D6; color: #8A5A12; }
.order-status.status-completed { background: #E9F6EF; color: var(--success); }
.order-item-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--ink-soft); font-family: var(--font-ui); }
.order-total { text-align: right; font-weight: 700; font-family: var(--font-ui); border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; background: var(--bg-tint); }
.admin-header { background: var(--surface); color: var(--ink); padding: 20px 0; border-bottom: 1px solid var(--border); }
.admin-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.admin-main { padding: 44px 0 100px; }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 26px; box-shadow: var(--shadow-sm); }
.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-sm); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
th { background: var(--bg-tint); color: var(--ink-soft); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
td.num { text-align: right; }
tr:last-child td { border-bottom: none; }
.thumb { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-tint); }
.badge-lang { font-family: var(--font-ui); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.file-drop { border: 1.5px dashed var(--border); border-radius: var(--radius-s); padding: 18px; text-align: center; font-family: var(--font-ui); font-size: 13px; color: var(--muted); cursor: pointer; }
.file-drop:hover { border-color: var(--accent); }
.setup-banner {
  background: #FFF8ED; border: 1px solid #F3D9A8; color: #8A5A12;
  font-family: var(--font-ui); font-size: 13px; padding: 14px 18px; border-radius: var(--radius-s);
  margin-bottom: 24px; line-height: 1.5;
}
.setup-banner code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px; }

/* ---------- Profile tabs ---------- */
.tab-row { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 12px 4px; margin-right: 24px; border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }


.address-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.address-card {
  border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
  background: var(--surface);
}
.address-card:hover { border-color: var(--accent); }
.address-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.address-card input[type="radio"] { margin-top: 3px; accent-color: var(--accent); flex: none; }
.address-card .addr-body { flex: 1; }
.address-card .addr-text { font-family: var(--font-ui); font-size: 14px; color: var(--ink); line-height: 1.5; }
.address-card .addr-phone { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.address-card .addr-delete {
  font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--error);
  background: none; border: none; cursor: pointer; padding: 4px; flex: none;
}
.address-toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }


.site-footer { background: var(--ink); color: #B7B8C4; padding: 52px 0 32px; margin-top: auto; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; transition: opacity 0.15s ease; }
.footer-brand:hover { opacity: 0.8; }
.footer-brand img { height: 38px; width: auto; display: block; }
.footer-note { font-family: var(--font-ui); font-size: 13px; max-width: 40ch; margin-top: 10px; color: #8C8DA0; }
.footer-links { display: flex; gap: 28px; font-family: var(--font-ui); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-family: var(--font-ui); font-size: 12px; color: #6E6F80; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 999;
  display: flex; align-items: center; gap: 10px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Loading ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-tint) 25%, #ffffff 37%, var(--bg-tint) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-s); border: 1px solid var(--border-soft); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-search { display: none; }
  .hero { padding-top: 80px; }
  .hero-content { max-width: 100%; padding-bottom: 90px; }
  .hero-bg svg { opacity: 0.9; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .row-2 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line .cart-line-price, .cart-line .remove-link { grid-column: 2; }
  .creator-card { flex-direction: column; }
  .creator-photo { float: none; width: 100%; max-width: 220px; height: 260px; margin: 0 0 14px 0; }
  .pill-row { display: none; }
  .lang-select-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
