:root {
  --ink: #f8f5ef;
  --ink-soft: #efe8dc;
  --card: #ffffff;
  --line: #e2d8ca;
  --text: #171411;
  --muted: #756c61;
  --red: #df3f2f;
  --red-dark: #b72f23;
  --red-soft: rgba(223, 63, 47, 0.11);
  --gold: #b98022;
  --gold-soft: rgba(185, 128, 34, 0.14);
  --green: #197d63;
  --green-soft: rgba(25, 125, 99, 0.12);
  --blue: #325f7f;
  --blue-soft: rgba(50, 95, 127, 0.12);
  --plum: #463143;
  --mint: #d7eadf;
  --cream: #fffaf1;
  --shadow: 0 22px 70px rgba(49, 39, 29, 0.13);
  --shadow-sm: 0 8px 26px rgba(49, 39, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 234, 223, 0.72), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #f8f5ef 42%, #eef5f0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  background: var(--text);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  min-width: 100%;
  gap: 34px;
  padding: 9px 0;
  animation: slideTicker 26s linear infinite;
}

.ticker span {
  color: #fff4df;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto 0;
  padding: 10px 12px;
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid var(--line);
  border: 1px solid rgba(226, 216, 202, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--plum));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text);
  font-size: 14px;
}

.brand small,
.main-nav a {
  color: var(--muted);
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  background: #fff;
}

.main-nav .main-nav-enquire {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.header-actions form {
  margin: 0;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.login-button,
.primary-action,
.secondary-action,
.collection-bar a,
.admin-products button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.login-button {
  padding: 10px 16px;
  color: #fff;
  background: var(--text);
}

/* ── Cart badge (used on the floating cart button) ── */
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cart-badge[hidden] {
  display: none;
}

/* ── Shared typography ── */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 12px 18px;
}

.primary-action {
  color: #fff;
  background: var(--text);
}

.secondary-action {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--red-dark);
  font-weight: 700;
}

section {
  padding: clamp(46px, 6vw, 86px) clamp(16px, 5vw, 72px);
}

/* ── Homepage hero ── */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 72px) clamp(30px, 5vw, 56px);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(25, 125, 99, 0.11);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-title {
  margin: 0 0 14px;
  max-width: 740px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.9;
  color: var(--text);
}

.home-sub {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.home-hero-slider {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 0.92;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

/* Home hero slide (also reused for any future banner slider) */
.deal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.deal-slide.active {
  opacity: 1;
}

.deal-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(23, 20, 17, 0.58);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 clamp(16px, 5vw, 72px) 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.stats-strip div {
  padding: 22px 24px;
  background: transparent;
}

.stats-strip div + div {
  border-left: 1px solid var(--line);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.stats-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ── Category grid (home) ── */
.cat-section {
  padding: clamp(42px, 6vw, 88px) clamp(16px, 5vw, 72px);
}

.cat-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.cat-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  color: var(--text);
}

.cat-section-head p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

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

.cat-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.74);
  box-shadow: 0 12px 34px rgba(49, 39, 29, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-soft);
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cat-card:hover .cat-card-img img {
  transform: scale(1.04);
}

.cat-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.cat-card-label svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ── Inner-page hero (photo + dark scrim, used on contact/product/collection/admin/auth) ── */
.page-hero {
  background:
    linear-gradient(90deg, rgba(23, 20, 17, 0.82), rgba(70, 49, 67, 0.4)),
    url("https://i.ibb.co/7dVkNWm4/cotton-ethnic-wear-23-08-28.jpg") center/cover;
  margin: 18px clamp(16px, 5vw, 72px) 0;
  border-radius: 28px;
  overflow: hidden;
}

.page-hero.compact {
  min-height: 320px;
  display: grid;
  align-content: center;
}

.page-hero .eyebrow {
  color: #ffe1a6;
}

.page-hero h1 {
  max-width: 900px;
  color: #fbf6ea;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
}

.page-hero p {
  max-width: 620px;
  color: #e6dbc8;
  line-height: 1.55;
}

.tight {
  padding-bottom: 12px;
}

.collections-section.tight {
  padding: 30px 0 58px;
}

.products-section {
  padding: 26px clamp(16px, 5vw, 72px) 0;
}

/* ── Collection page ── */
.coll-hero {
  padding: 52px clamp(16px, 5vw, 72px) 28px;
  background: transparent;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--text);
}

.coll-title {
  margin: 0 0 8px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  color: var(--text);
}

.coll-count {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.coll-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 78px;
  z-index: 15;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.coll-products-wrap {
  padding: 28px clamp(16px, 5vw, 72px) 58px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

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

.prod-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 216, 202, 0.72);
  box-shadow: 0 14px 34px rgba(49, 39, 29, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.prod-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.prod-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-soft);
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.prod-card:hover .prod-img img {
  transform: scale(1.04);
}

.prod-info {
  display: grid;
  gap: 6px;
  padding: 14px 16px 18px;
}

.prod-info strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.prod-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ── Product listing page ── */
.collection-bar {
  position: sticky;
  top: 78px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.collection-bar a {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.collection-bar a.active,
.collection-bar a:hover {
  color: #fff;
  border-color: var(--text);
  background: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(49, 39, 29, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--ink-soft);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 13px 15px 17px;
}

.product-info strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.product-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ── Shared product pricing / cart controls ── */
.product-price {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

button.tier-badge {
  min-height: 24px;
  cursor: pointer;
}

button.tier-badge:hover,
button.tier-badge.active {
  border-color: rgba(245, 158, 11, 0.35);
  background: #f59e0b;
  color: #fff;
}

/* Circular add-to-cart button, overlaid on the product image */
.add-to-cart-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 12px rgba(17, 17, 24, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.add-to-cart-fab:hover {
  background: var(--red);
  transform: scale(1.08);
}

.add-to-cart-fab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.add-to-cart-fab .icon-check {
  display: none;
}

.add-to-cart-fab.in-cart {
  background: var(--green);
  cursor: default;
}

.add-to-cart-fab.in-cart:hover {
  background: var(--green);
  transform: none;
}

.add-to-cart-fab.in-cart .icon-plus {
  display: none;
}

.add-to-cart-fab.in-cart .icon-check {
  display: block;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 32px;
}

.contact-grid article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  align-content: end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 232, 220, 0.74));
  box-shadow: var(--shadow-sm);
}

.contact-grid strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.contact-grid span,
.contact-grid a {
  color: var(--muted);
  line-height: 1.55;
}

/* ── Auth pages (login / register / admin login / admin register) ── */
.auth-section {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding-top: 84px;
}

.auth-card {
  display: grid;
  width: min(430px, 100%);
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin-bottom: 4px;
  font-size: 44px;
  line-height: 0.98;
}

.otp-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--text);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
}

input[type="file"] {
  padding: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.image-control {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.image-control > input[type="url"] {
  flex: 1 1 140px;
  min-width: 0;
}

.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.preview-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.preview-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.image-preview {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  z-index: 2;
  width: 150px;
  height: 150px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.image-preview[hidden] {
  display: none;
}

/* ── Admin ── */
.admin-body {
  min-height: 100vh;
  background: #f4f5f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-sidebar-nav {
  display: grid;
  gap: 6px;
}

.admin-nav-label {
  margin: 12px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-sidebar-nav a,
.admin-sidebar-view-site {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  color: var(--red);
  background: var(--red-soft);
}

.admin-sidebar svg,
.admin-menu-toggle svg,
.admin-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-sidebar-view-site {
  margin-top: auto;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--ink-soft);
}

.admin-main {
  position: relative;
  min-width: 0;
}

.admin-content {
  display: grid;
  gap: 20px;
  padding: 30px clamp(16px, 3vw, 38px) 42px;
}

.admin-content-head {
  padding-right: 80px;
}

.admin-content-head p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-content-head h1 {
  margin: 0;
  font-size: 34px;
}

.admin-corner {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 35;
}

.admin-icon-button,
.admin-menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.admin-menu-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 45;
  display: none;
}

.admin-avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-avatar-menu[hidden] {
  display: none;
}

.admin-avatar-menu strong {
  font-size: 14px;
}

.admin-avatar-menu-email {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.admin-avatar-menu a,
.admin-avatar-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.admin-avatar-menu form {
  margin: 0;
}

.admin-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  align-self: end;
  font-size: 34px;
}

.stat-red {
  border-top: 3px solid var(--red);
}

.stat-gold {
  border-top: 3px solid var(--gold);
}

.stat-blue {
  border-top: 3px solid var(--blue);
}

.stat-green {
  border-top: 3px solid var(--green);
}

.admin-panel,
.admin-products-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-panel h2,
.admin-products-panel h2 {
  margin: 0;
  font-size: 20px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel-head h2 {
  margin: 0;
}

.admin-inline-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-inline-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.admin-inline-stats span,
.admin-recent-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-inline-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.admin-recent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-page > .form-error,
.admin-page > form:last-child {
  grid-column: 1 / -1;
}

.admin-form {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.admin-form h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.collection-picker {
  display: grid;
  gap: 10px;
}

.collection-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-picker .checkbox-label {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.collection-picker .checkbox-label input {
  width: 15px;
  min-height: 15px;
}

.admin-products {
  display: grid;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
}

/* ── Product Management page (light, stacked layout) ── */
.products-page {
  display: grid;
  gap: 26px;
}

.admin-panel {
  padding: 24px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(226, 216, 202, 0.6);
  border-radius: 20px;
  background: var(--card);
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.admin-panel-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.products-page .admin-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 26px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.form-section-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid-3 label:last-child:nth-child(odd) {
  grid-column: auto;
}

.products-page .collection-picker > div {
  gap: 6px;
}

.products-page .collection-picker .checkbox-label {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  border-color: rgba(226, 216, 202, 0.7);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.products-page .collection-picker .checkbox-label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}

.admin-filter-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-row-selects,
.filter-row-checks {
  padding-top: 10px;
  border-top: 1px solid rgba(226, 216, 202, 0.6);
}

.admin-filter-bar input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 38px;
  border-radius: 9px;
}

.admin-filter-bar select {
  flex: 0 1 auto;
  min-height: 38px;
  border: 1px solid rgba(226, 216, 202, 0.7);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.admin-filter-bar .checkbox-label {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(226, 216, 202, 0.7);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}

.admin-filter-bar .primary-action,
.admin-filter-bar .secondary-action {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.product-list {
  display: grid;
  max-height: 900px;
  overflow-y: auto;
}

.product-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.55);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink-soft);
}

.product-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.product-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-row-meta-muted {
  opacity: 0.8;
}

.status-badge.status-inactive {
  background: var(--ink-soft);
  color: var(--muted);
}

.product-row-stats {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.product-row-price {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.product-row-unpriced {
  color: var(--muted);
  font-weight: 700;
}

.product-row-gst {
  color: var(--muted);
  font-size: 11px;
}

.product-row-actions {
  display: flex;
  gap: 6px;
}

.product-row-actions form {
  margin: 0;
}

.product-row-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-row-actions form button {
  border-color: rgba(223, 63, 47, 0.35);
  color: var(--red-dark);
}

.product-row-actions form button:hover {
  background: var(--red-soft);
}

.product-row-actions .product-edit-trigger:hover {
  background: var(--ink-soft);
}

@media (max-width: 640px) {
  .product-row {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 8px;
    padding: 14px 4px;
  }

  .product-row img {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .product-row-main {
    grid-column: 2;
    grid-row: 1;
  }

  .product-row-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-items: unset;
    justify-content: flex-start;
    text-align: left;
    align-items: center;
    gap: 12px;
  }

  .product-row-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
  }
}

/* ── Collections management page ── */
.admin-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-panel-head-actions .secondary-action,
.admin-panel-head-actions .primary-action {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.collection-list {
  display: grid;
}

.collection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(226, 216, 202, 0.55);
}

.collection-row:last-child {
  border-bottom: 0;
}

.collection-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.collection-row-main strong {
  font-size: 14px;
}

.collection-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.collection-only-flag {
  color: var(--gold);
  font-weight: 700;
}

.collection-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.collection-delete-trigger {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(223, 63, 47, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.collection-delete-trigger:hover {
  background: var(--red-soft);
}

.collection-delete-dialog {
  width: min(560px, calc(100vw - 32px));
}

.collection-delete-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  max-height: calc(min(88vh, 900px) - 60px);
  overflow-y: auto;
}

.collection-delete-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.5;
}

.collection-delete-products-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.collection-delete-products {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.collection-delete-product {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
}

.collection-delete-product.is-only {
  background: var(--gold-soft);
}

.collection-delete-product img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink-soft);
}

.collection-delete-product-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.collection-only-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.collection-delete-form {
  margin: 0;
}

.collection-delete-confirm {
  width: 100%;
  background: var(--red-dark);
}

.admin-products h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-products article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.admin-products img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-products span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.stock-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.stock-badge.in-stock {
  color: var(--green);
  background: var(--green-soft);
}

.stock-badge.low-stock {
  color: var(--gold);
  background: var(--gold-soft);
}

.stock-badge.out-of-stock {
  color: var(--red);
  background: var(--red-soft);
}

.admin-products button {
  padding: 9px 12px;
  color: #fff;
  background: var(--red-dark);
}

.banner-editor > form:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.banner-editor > form:first-of-type input,
.banner-editor > form:first-of-type button {
  min-height: 36px;
  font-size: 12px;
}

/* Bulk discount tier editor (add-product form + each inline product-edit form) */
.tier-editor {
  display: grid;
  gap: 8px;
}

.tier-editor-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tier-rows {
  display: grid;
  gap: 6px;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}

.tier-row input {
  min-height: 36px;
}

.tier-remove {
  min-height: 36px;
  width: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.product-edit-dialog-head .cart-close-button {
  background: var(--ink);
  color: var(--muted);
}

.product-edit-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 17, 24, 0.28);
}

.product-edit-dialog::backdrop {
  background: rgba(17, 17, 24, 0.55);
}

.product-edit-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-edit-dialog-head h3 {
  margin: 0;
  font-size: 18px;
}

.product-edit-dialog .admin-form {
  max-height: calc(min(88vh, 900px) - 60px);
  overflow-y: auto;
  padding: 20px;
  box-shadow: none;
}

/* Admin: inquiries */
.inquiries-list {
  max-height: none;
}

article.inquiry-card {
  display: grid;
  grid-template-columns: none;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.inquiry-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-badge,
.whatsapp-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge.status-new {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge.status-contacted {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-badge.status-closed {
  background: var(--green-soft);
  color: var(--green);
}

.whatsapp-status.whatsapp-sent {
  background: var(--green-soft);
  color: var(--green);
}

.whatsapp-status.whatsapp-failed {
  background: var(--red-soft);
  color: var(--red);
}

.whatsapp-status.whatsapp-skipped {
  background: var(--ink-soft);
  color: var(--muted);
}

.inquiry-notes {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.inquiry-empty {
  color: var(--muted);
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.cart-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cart-summary-table th,
.cart-summary-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  color: var(--text);
}

.inquiry-status-form {
  display: flex;
  gap: 8px;
}

.inquiry-status-form select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.inquiry-status-form button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--text);
  color: var(--card);
  font-weight: 700;
  cursor: pointer;
}

/* ── Cart drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 17, 24, 0.5);
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(520px, 100vw);
  background: #f7f7fb;
  box-shadow: -18px 0 44px rgba(17, 17, 24, 0.16);
  overflow: hidden;
}

.cart-drawer[hidden],
.cart-overlay[hidden] {
  display: none;
}

.cart-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.cart-close-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.cart-drawer-footer {
  display: grid;
  gap: 12px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -10px 24px rgba(17, 17, 24, 0.08);
}

.cart-drawer-footer[hidden] {
  display: none;
}

.cart-send-trigger {
  width: 100%;
}

.cart-send-trigger[hidden] {
  display: none;
}

.cart-send-trigger.is-loading {
  animation: cartSendPulse 0.45s ease;
  pointer-events: none;
}

@keyframes cartSendPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.95);
    opacity: 0.82;
  }
  100% {
    transform: scale(1);
  }
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-items[hidden] {
  display: none;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cart-item-row img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink-soft);
}

.cart-item-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-item-info strong {
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
}

.cart-item-info span {
  color: var(--muted);
  font-size: 12px;
}

.tier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item-unpriced {
  grid-template-columns: 66px minmax(0, 1fr) 28px;
}

.unpriced-note {
  color: var(--muted);
  font-size: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  min-height: 34px;
  width: 32px;
  border: 0;
  background: var(--ink-soft);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.qty-input {
  width: 44px;
  min-height: 34px;
  border: 0;
  text-align: center;
  padding: 0;
  color: var(--text);
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.cart-item-total {
  font-size: 13px;
  white-space: nowrap;
  color: var(--text);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-remove {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  justify-self: end;
  align-self: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cart-item-remove:hover {
  border-color: var(--line);
  color: var(--red);
  background: var(--red-soft);
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cart-summary[hidden] {
  display: none;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.cart-summary-row strong {
  color: var(--text);
}

.cart-summary-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.cart-summary-total strong {
  color: var(--red);
}

.cart-form {
  display: grid;
  gap: 12px;
}

.cart-form[hidden] {
  display: none;
}

.cart-form.is-revealing {
  animation: cartFormReveal 0.35s ease;
}

@keyframes cartFormReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
}

.cart-success {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  text-align: center;
  color: var(--text);
}

.cart-success[hidden] {
  display: none;
}

/* ── Trust section (Google / JustDial / IndiaMART badges) ── */
.trust-section {
  border-top: 1px solid rgba(226, 216, 202, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(215, 234, 223, 0.34));
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 16px;
  margin: 0 0 12px;
  border: 1px solid rgba(185, 128, 34, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dark-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dark-cards article {
  padding: 26px;
  border: 1px solid rgba(226, 216, 202, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.trust-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.platform-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: #fffaf1;
  font-size: 24px;
  font-weight: 800;
}

.google {
  color: var(--blue);
}

.justdial {
  color: #fb8720;
}

.indiamart {
  color: var(--red);
}

.verified {
  min-height: 25px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dark-cards strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.dark-cards small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rating {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.rating b {
  color: var(--text);
}

.dark-cards p {
  color: var(--muted);
  line-height: 1.5;
}

.dark-cards ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}

.dark-cards li::before {
  content: "";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  font-size: 11px;
}

.dark-cards article > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-weight: 700;
}

.dark-cards article > a::after {
  content: "->";
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.trust-badges span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px clamp(16px, 5vw, 72px) 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(23, 20, 17, 0.94);
  color: #fffaf1;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 250, 241, 0.68);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 999px;
  color: #fffaf1;
}

/*
  Floating action buttons sit on a quarter-circle arc pivoting from the
  viewport's bottom-right corner. Alone, the phone rests on the 45deg
  diagonal (its original right:18/bottom:18 position). Once the cart has
  items, both buttons fan out - phone to 30deg (lower/flatter), cart to
  60deg (higher/steeper) - at a radius wide enough that the two 58px
  buttons never overlap.
*/
.floating-phone {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(25, 125, 99, 0.34);
  font-size: 0;
  transition: right 0.25s ease, bottom 0.25s ease;
}

.floating-phone::before {
  content: "\260E";
  font-size: 25px;
  line-height: 1;
}

body.has-cart-items .floating-phone {
  right: 114px;
  bottom: 54px;
}

.floating-cart-button {
  position: fixed;
  right: 54px;
  bottom: 114px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(255, 40, 58, 0.34);
  cursor: pointer;
  transition: right 0.25s ease, bottom 0.25s ease;
}

.floating-cart-button[hidden] {
  display: none;
}

.floating-cart-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart-button .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin-left: 0;
}

@keyframes slideTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 44;
    width: min(280px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 43;
    background: rgba(17, 17, 24, 0.44);
  }

  .admin-sidebar-overlay[hidden] {
    display: none;
  }

  .admin-menu-toggle {
    display: grid;
  }

  .admin-content {
    padding-top: 78px;
  }

  .site-header {
    top: 8px;
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .main-nav {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
  }

  .collection-bar,
  .coll-filter-bar {
    top: 116px;
    border-radius: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: start;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero-slider {
    aspect-ratio: 16/11;
  }

  .cat-section-head {
    display: grid;
    align-items: start;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip div + div {
    border-left: 0;
  }

  .stats-strip div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stats-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid,
  .admin-inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip,
  .product-grid,
  .dark-cards,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-hero-slider {
    aspect-ratio: 16/9;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 8px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    grid-column: unset;
    grid-row: unset;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    overflow-x: visible;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .header-actions > .login-button {
    display: none;
  }

  .main-nav .main-nav-enquire {
    display: inline-flex;
    margin-top: 6px;
    width: 100%;
  }

  .header-actions {
    gap: 6px;
  }

  .floating-cart-button {
    right: 48px;
    bottom: 102px;
    width: 52px;
    height: 52px;
  }

  .floating-phone {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  body.has-cart-items .floating-phone {
    right: 102px;
    bottom: 48px;
  }

  .collection-bar,
  .coll-filter-bar {
    top: 76px;
  }

  .home-title,
  .coll-title {
    font-size: 46px;
  }

  .home-hero {
    padding-top: 34px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .stats-strip div:nth-child(even) {
    border-left: 0;
  }

  .stats-strip div + div {
    border-top: 1px solid var(--line);
  }

  .cat-section-head h2,
  .section-heading h2 {
    font-size: 38px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid label:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .stats-strip,
  .product-grid,
  .dark-cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .admin-products article {
    display: block;
  }

  .site-footer {
    border-radius: 20px;
  }

  .footer-actions {
    margin-top: 18px;
  }

  .admin-stats-grid,
  .admin-inline-stats,
  .admin-recent-row {
    grid-template-columns: 1fr;
  }

  .admin-content-head h1 {
    font-size: 28px;
  }

  .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .admin-products img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 10px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-drawer-head {
    padding: 18px 16px;
  }

  .cart-drawer-body {
    padding: 14px;
  }

  .cart-drawer-footer {
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .cart-item-row {
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .cart-item-row img {
    width: 58px;
    height: 58px;
  }

  .cart-item-actions {
    grid-column: 2 / 4;
    justify-content: space-between;
    gap: 10px;
  }

  .cart-item-unpriced {
    grid-template-columns: 58px minmax(0, 1fr) 28px;
  }
}

