/* Tahir Singhar House — storefront: layout + the emerald, ivory & gold look.
   Light mode is the default; dark mode (html[data-mode="dark"], chosen by each
   visitor with the sun/moon button) is at the end of this file.
   effects.css adds motion and festive details on top. */

:root {
  --primary: #0f4c3a;
  --primary-dark: #0a3328;
  --primary-mid: #1d6b53;
  --primary-tint: #e6f0eb;
  --accent: #c9a14a;
  --accent-dark: #9c7a2e;
  --accent-tint: #f5ecd6;
  --bg: #fbf7ef;
  --bg-alt: #f3ebdc;
  --rose: #e8b4b8;
  --ink: #15231e;
  --muted: #5d6c66;
  --line: #e7ddcb;
  --white: #fff;
  --danger: #b0413a;
  --overlay: #0a1e18;
  --success: #1f7a4f;
  --wa: #128c4b;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px
    color-mix(in srgb, var(--primary-dark) 35%, transparent);
  --shadow-sm: 0 6px 18px -10px
    color-mix(in srgb, var(--primary-dark) 30%, transparent);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

i[data-icon],
.ic {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
i[data-icon] svg,
.ic svg {
  width: 100%;
  height: 100%;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow.light {
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-mid);
}
.btn-gold {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
}
.btn-gold:hover {
  background: color-mix(in srgb, var(--accent) 85%, white);
}
.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--bg);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.icon-btn:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.icon-btn i[data-icon] {
  width: 22px;
  height: 22px;
}

/* ---------- announcement & header ---------- */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--primary-dark);
  color: var(--accent-tint);
  font-size: 0.88rem;
  text-align: center;
}
.announce i[data-icon] {
  color: var(--accent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 44px;
  color: var(--accent);
  flex: none;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav a:hover::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  gap: 10px;
}
.wa-link {
  color: var(--wa);
}
.basket-btn .count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.basket-btn.bump {
  animation: bump 0.4s ease;
}
@keyframes bump {
  50% {
    transform: scale(1.15);
  }
}
.menu-btn {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      1000px 500px at 85% 0%,
      color-mix(in srgb, var(--rose) 28%, transparent),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 0% 100%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 60%
    ),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    color-mix(in srgb, var(--accent) 35%, transparent) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 0;
}
.hero-copy {
  padding-bottom: 64px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--primary);
  margin: 18px 0 20px;
  font-weight: 600;
}
.hero h1 em {
  color: var(--accent-dark);
  font-style: italic;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--primary);
  font-size: 0.95rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points i[data-icon] {
  color: var(--accent-dark);
}
.hero-art {
  align-self: end;
  justify-self: center;
  width: min(420px, 100%);
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(
    0 30px 40px color-mix(in srgb, var(--primary-dark) 25%, transparent)
  );
}
.twinkle {
  animation: twinkle 3s ease-in-out infinite;
}
.float {
  animation: float 6s ease-in-out infinite;
  transform-origin: 320px 190px;
}
@keyframes twinkle {
  50% {
    opacity: 0.45;
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

/* ---------- section heads ---------- */
section {
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--primary);
  margin: 12px 0 10px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* ---------- shop ---------- */
.shop {
  padding: 80px 0 90px;
}

.tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.tabs-bar.stuck {
  border-color: var(--line);
  box-shadow: 0 10px 20px -18px
    color-mix(in srgb, var(--primary-dark) 50%, transparent);
}
.tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: 1 0 auto;
  min-width: 160px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.tab:hover {
  border-color: var(--accent);
}
.tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  transition:
    background 0.2s,
    color 0.2s;
}
.tab-icon svg {
  width: 22px;
  height: 22px;
}
.tab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tab-name {
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}
.tab-count {
  font-size: 0.78rem;
  color: var(--muted);
}
.tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.tab[aria-selected="true"] .tab-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent);
}
.tab[aria-selected="true"] .tab-count {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
}
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.subtab {
  position: relative;
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.subtab sup {
  font-size: 0.7rem;
  margin-left: 3px;
  color: var(--accent-dark);
}
.subtab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.subtab:hover {
  color: var(--primary);
}
.subtab[aria-selected="true"] {
  color: var(--primary);
}
.subtab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tools {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.search input,
.search input:focus {
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.tools select {
  width: auto;
  height: 44px;
  padding: 0 38px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4c3a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.results-head h3 {
  font-size: 1.7rem;
  color: var(--primary);
}
.results-head span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 160px 160px var(--radius) var(--radius);
  padding: 10px 10px 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-tint);
}
.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 150px 150px 10px 10px;
  background: var(--bg-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(
      circle at 50% 35%,
      color-mix(in srgb, var(--accent-tint) 22%, transparent),
      transparent 55%
    ),
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--accent) 8%, transparent) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(160deg, var(--primary-mid), var(--primary-dark));
}
.ph svg {
  width: 34%;
  height: auto;
  opacity: 0.9;
}
.badges {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-out {
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  color: var(--bg);
}
.badge-feat {
  background: var(--accent);
  color: var(--primary-dark);
}
.badge-sale {
  background: var(--rose);
  color: var(--primary-dark);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 8px 16px;
  text-align: center;
}
.card-code {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-title {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 4px 0 6px;
}
.card-title button {
  all: unset;
  cursor: pointer;
}
.card-title button:hover {
  color: var(--primary);
}
.card-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.price strong {
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: 600;
}
.price s {
  font-size: 0.8rem;
  color: var(--muted);
}
.price small {
  font-size: 0.72rem;
  color: var(--muted);
}
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.add-btn:hover {
  background: var(--primary);
  color: var(--bg);
}
.add-btn.added {
  background: var(--primary);
  color: var(--bg);
}
.add-btn[disabled] {
  border-color: var(--line);
  color: var(--muted);
  background: var(--bg-alt);
  pointer-events: none;
}

.skeleton {
  min-height: 420px;
  background: linear-gradient(
    100deg,
    var(--white) 30%,
    var(--bg-alt) 50%,
    var(--white) 70%
  );
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty h4 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.empty button {
  margin-top: 14px;
}

/* ---------- how ---------- */
.how {
  padding: 90px 0;
  background: var(--bg-alt);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.steps li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.steps h3 {
  font-size: 1.55rem;
  color: var(--primary);
  margin: 12px 0 8px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---------- plan ---------- */
.plan {
  padding: 90px 0;
  color: var(--bg);
  background:
    radial-gradient(
      700px 400px at 100% 0%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 60%
    ),
    linear-gradient(160deg, var(--primary), var(--primary-dark));
}
.plan-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.plan h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 14px 0 16px;
}
.plan-copy p {
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  margin: 0 0 24px;
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.plan-list i[data-icon] {
  color: var(--primary-dark);
  background: var(--accent);
  border-radius: 50%;
  padding: 4px;
  width: 26px;
  height: 26px;
}

.plan-form {
  background: var(--bg);
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 14px;
}
.plan-form h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

label {
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
input.invalid {
  border-color: var(--danger);
}
textarea {
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}

/* ---------- footer ---------- */
.footer {
  background: var(--primary-dark);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bg);
}
.footer-brand p {
  margin: 6px 0 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  text-decoration: none;
}
.contact-line i[data-icon],
.contact-line .ic {
  margin-top: 3px;
  color: var(--accent);
}
.contact-line.link:hover {
  color: var(--bg);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}
.socials a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}
.socials svg {
  width: 20px;
  height: 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 0.85rem;
}
.footer-bottom a {
  text-decoration: none;
  color: var(--accent);
}

/* ---------- floating basket ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--bg);
  font-weight: 500;
  box-shadow: 0 14px 30px -10px
    color-mix(in srgb, var(--primary-dark) 60%, transparent);
}
.fab i[data-icon] {
  color: var(--accent);
  width: 22px;
  height: 22px;
}

/* ---------- modal ---------- */
.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--overlay) 55%, transparent);
  animation: fade 0.2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal-panel {
  position: relative;
  width: min(940px, 100% - 32px);
  max-height: calc(100% - 48px);
  overflow: auto;
  margin: 24px auto;
  background: var(--bg);
  border-radius: 24px;
  animation: rise 0.25s ease;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes rise {
  from {
    opacity: 0;
    margin-top: 40px;
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.pm {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pm-gallery {
  padding: 20px;
}
.pm-main {
  aspect-ratio: 4 / 4.6;
  border-radius: 180px 180px 14px 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.pm-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.pm-thumbs button {
  width: 64px;
  height: 64px;
  flex: none;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-alt);
}
.pm-thumbs button[aria-current="true"] {
  border-color: var(--accent);
}
.pm-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-info {
  padding: 44px 36px 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-crumb {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}
.pm-info h2 {
  font-size: 2.3rem;
  color: var(--primary);
}
.pm-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-price strong {
  font-size: 1.7rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.pm-price s {
  color: var(--muted);
}
.pm-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 14px;
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
}
.pm-desc {
  margin: 0;
  white-space: pre-line;
}
.pm-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.stock-in {
  color: var(--success);
  font-weight: 500;
}
.stock-out {
  color: var(--danger);
  font-weight: 500;
}
.pm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.qty button {
  width: 38px;
  height: 42px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.qty button i[data-icon] {
  width: 16px;
  height: 16px;
}
.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  background: color-mix(in srgb, var(--wa) 88%, black);
}

/* ---------- basket drawer ---------- */
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slide 0.25s ease;
}
@keyframes slide {
  from {
    transform: translateX(100%);
  }
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-size: 1.8rem;
  color: var(--primary);
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 8px 20px;
}
.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line-thumb {
  width: 64px;
  height: 72px;
  border-radius: 32px 32px 8px 8px;
  overflow: hidden;
}
.line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line-thumb .ph svg {
  width: 50%;
}
.line-name {
  font-weight: 500;
  line-height: 1.3;
}
.line-sub {
  font-size: 0.82rem;
  color: var(--muted);
}
.line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.line-side .qty button {
  width: 30px;
  height: 32px;
}
.line-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
}
.line-remove:hover {
  color: var(--danger);
}
.drawer-empty {
  text-align: center;
  padding: 60px 10px;
  color: var(--muted);
}
.drawer-empty .ic {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 10px;
}
.drawer-empty h4 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  display: grid;
  gap: 10px;
  background: var(--white);
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.total-row strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
}
.hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.drawer-foot label {
  font-size: 0.8rem;
}
.drawer-foot input {
  padding: 9px 12px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  animation: rise 0.2s ease;
  max-width: calc(100% - 32px);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 0;
  }
  .hero-copy {
    padding-bottom: 32px;
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-points {
    justify-content: center;
  }
  .hero-art {
    width: min(320px, 80%);
  }
  .plan-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .pm {
    grid-template-columns: 1fr;
  }
  .pm-info {
    padding: 0 24px 28px;
  }
  .pm-gallery {
    padding: 20px 20px 8px;
  }
  .pm-main {
    aspect-ratio: 4 / 3.4;
    border-radius: 160px 160px 14px 14px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn {
    display: inline-grid;
  }
  .wa-link {
    display: none;
  }
  .brand-text strong {
    font-size: 1.2rem;
  }
  .brand-text small {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .brand-mark {
    width: 30px;
    height: 36px;
  }
  .header-inner {
    gap: 12px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .shop {
    padding: 56px 0 70px;
  }
  .tab {
    min-width: 0;
    flex: none;
    padding: 6px 14px 6px 6px;
  }
  .tab-icon {
    width: 36px;
    height: 36px;
  }
  .tab-icon svg {
    width: 19px;
    height: 19px;
  }
  .tab-name {
    font-size: 0.9rem;
  }
  .subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    gap: 18px;
  }
  .subtabs::-webkit-scrollbar {
    display: none;
  }
  .subtab {
    white-space: nowrap;
  }
  .tools {
    width: 100%;
    margin-left: 0;
  }
  .search {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .tools select {
    width: 150px;
    flex: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card {
    padding: 6px 6px 0;
    border-radius: 100px 100px 12px 12px;
  }
  .card-media {
    border-radius: 94px 94px 8px 8px;
  }
  .card-body {
    padding: 12px 4px;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .card-note {
    display: none;
  }
  .card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .price {
    align-items: center;
    text-align: center;
  }
  .add-btn {
    justify-content: center;
    padding: 8px 10px;
  }
  .badge {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
  .skeleton {
    min-height: 300px;
  }

  .how,
  .plan {
    padding: 64px 0;
  }
  .plan-form {
    padding: 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .drawer-foot .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .fab {
    display: inline-flex;
  }
  .modal-panel {
    width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    position: absolute;
    transform: none;
  }
  .pm-info h2 {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Dark mode — chosen by each visitor with the sun/moon button (or their
   device setting). Deep emerald-black, ivory text, gold headings & buttons.
   ========================================================================== */
html[data-mode="dark"] {
  color-scheme: dark;
  --primary: #d8b25c;
  --primary-dark: #0c2a21;
  --primary-mid: #e8c878;
  --primary-tint: #1c2b24;
  --accent: #c9a14a;
  --accent-dark: #e3c47e;
  --accent-tint: #2a2416;
  --bg: #0b1411;
  --bg-alt: #0f1c17;
  --white: #13211c;
  --rose: #6e3b44;
  --ink: #ece5d6;
  --muted: #a1b2a9;
  --line: #24382f;
  --danger: #ef8a80;
  --overlay: #000;
  --success: #5cc791;
  --wa: #25a244;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.65);
}
html[data-mode="dark"] .announce { color: #f1e3bd; }
html[data-mode="dark"] .tab[aria-selected="true"] .tab-icon {
  background: rgba(0, 0, 0, 0.14);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
html[data-mode="dark"] .tools select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b25c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-mode="dark"] .plan {
  color: #efe6d2;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(201, 161, 74, 0.14), transparent 60%),
    linear-gradient(160deg, #123b2f, #07170f);
}
html[data-mode="dark"] .plan-copy p { color: rgba(239, 230, 210, 0.78); }
html[data-mode="dark"] .plan-form { background: var(--white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
html[data-mode="dark"] .footer { color: rgba(236, 229, 214, 0.8); }
html[data-mode="dark"] .footer-brand strong { color: #f6edd9; }
html[data-mode="dark"] .contact-line.link:hover { color: #fff; }
html[data-mode="dark"] .fab i[data-icon] { color: var(--bg); }
html[data-mode="dark"] .card-media { background: var(--bg-alt); }
html[data-mode="dark"] ::selection { background: rgba(216, 178, 92, 0.35); }
