:root {
  --paper: #f6f0ff;
  --surface: #ffffff;
  --ink: #211a2d;
  --muted: #645a78;
  --brand: #ffbf1f;
  --accent: #111111;
  --line: #e0d2ff;
  --shadow: 0 10px 28px rgba(44, 23, 82, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 76px;
}

body.home-page {
  background:
    linear-gradient(180deg, #9d82ef 0 560px, #ffbc1b 560px 610px, #fff7eb 610px 100%);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1500;
}

.logo {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 19px;
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 46px;
  max-width: 210px;
  object-fit: contain;
  width: auto;
}

.right {
  align-items: center;
  display: flex;
  gap: 8px;
}

.order-btn,
.cart-pill,
.menu-btn,
.link-btn,
.product-actions button,
.location-row a {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 12px;
}

.order-btn,
.product-actions button {
  background: var(--brand);
  color: #fff;
}

.cart-pill,
.menu-btn,
.link-btn {
  background: #f3ebe5;
  color: var(--ink);
}

.mobile-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  padding: 8px;
  position: absolute;
  right: 12px;
  top: 58px;
  width: 210px;
  z-index: 1600;
}

.mobile-menu a {
  color: var(--ink);
  display: block;
  padding: 11px;
  text-decoration: none;
}

.hero {
  background: transparent;
  height: 520px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero::after {
  background: linear-gradient(180deg, rgba(157, 130, 239, 0.08), rgba(17, 17, 17, 0.32));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  bottom: 52px;
  color: #fff;
  left: 50%;
  max-width: 720px;
  position: absolute;
  right: auto;
  text-align: center;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  z-index: 1;
}

body.home-page .hero-copy {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 {
  font-size: clamp(28px, 8vw, 52px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-copy p {
  font-size: 16px;
  margin: 0;
}

.section {
  margin: 0 auto;
  max-width: 1100px;
  padding: 22px 15px;
}

body.home-page .section {
  position: relative;
}

body.home-page .section h2,
body.home-page .section-title h2 {
  color: #20122b;
}

.section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.section h2 {
  margin: 0 0 15px;
}

.offer-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #ffbc1b;
  border-radius: 18px;
  min-width: 230px;
  padding: 14px;
}

.offer-card span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 5px;
}

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37,23,19,0.06);
  overflow: hidden;
}

body.home-page .product-card {
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(20, 12, 32, 0.24);
}

.product-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

body.home-page .product-card img {
  padding: 18px 18px 0;
}

.product-card div {
  padding: 12px;
}

body.home-page .product-card div {
  padding: 16px 18px 18px;
}

.product-card h3 {
  margin: 0 0 6px;
}

body.home-page .product-card h3 {
  color: #ffbc1b;
  font-size: 30px;
  text-transform: uppercase;
}

.product-card p {
  color: var(--muted);
  min-height: 42px;
  margin: 0 0 12px;
}

body.home-page .product-card p {
  color: rgba(255, 255, 255, 0.72);
}

.product-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 !important;
}

.product-actions b {
  color: #fff;
}

.location-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 14px;
}

.location-row p {
  color: var(--muted);
  margin: 6px 0;
}

.location-row a {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

body.home-page .location-row a {
  background: #ffbc1b;
}

body.home-page .pickup-section,
body.home-page .section#order {
  background: #0a0a0a;
  border-radius: 34px;
  color: #fff;
  margin-top: 18px;
  padding: 26px 22px;
}

body.home-page .pickup-section {
  background: #fff7eb;
  color: var(--ink);
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 16px;
}

.footer a {
  color: var(--muted);
  display: block;
  margin-top: 7px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand);
}

.footer-grid {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1100px;
  text-align: left;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-grid p {
  margin: 6px 0;
}

.content-page,
.policy-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px 15px 34px;
}

.content-hero {
  background: #241713;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 54px 26px;
  position: relative;
}

.content-hero::after {
  background: url('assets/images/slide1.png') center/cover;
  content: "";
  inset: 0;
  opacity: 0.23;
  position: absolute;
}

.content-hero > * {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.content-hero span {
  color: #f4cabf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-hero h1 {
  font-family: "Titan One", sans-serif;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0;
}

.content-hero p {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

.content-hero.compact {
  padding: 42px 26px;
}

.story-grid,
.contact-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-grid article,
.contact-card,
.contact-form,
.policy-list article,
.closing-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37,23,19,0.05);
  padding: 20px;
}

.story-grid h2,
.content-band h2,
.contact-layout h2,
.policy-list h2,
.closing-panel h2 {
  margin: 0 0 10px;
}

.page-about .story-grid h2,
.page-about .content-band h2,
.page-about .closing-panel h2 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-grid p,
.content-band p,
.contact-layout p,
.policy-list p {
  color: var(--muted);
  line-height: 1.65;
}

.content-band {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.content-band > div {
  background: #fff7ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.clean-list {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}

.closing-panel {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.contact-card {
  background: #241713;
  color: #fff;
}

.contact-card p {
  color: #f2e7df;
}

.email-link {
  color: #fff;
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0;
  text-decoration: none;
  word-break: break-word;
}

.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 9px;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.success-box {
  background: #dff4eb;
  border: 1px solid #a7dcc7;
  border-radius: 8px;
  color: #12694d;
  margin-bottom: 10px;
  padding: 10px;
}

.profile-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.profile-identity-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
}

.profile-avatar {
  align-items: center;
  background: linear-gradient(135deg, #8d67ef 0%, #ffbf1f 100%);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.profile-kicker {
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.profile-identity-card h2,
.profile-section-card h2 {
  margin: 0;
}

.profile-copy {
  color: var(--muted);
  margin: 8px 0 0;
}

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

.profile-stat-card span,
.profile-info-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.profile-stat-card b {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.profile-info-grid strong {
  display: block;
  line-height: 1.5;
  word-break: break-word;
}

.profile-inline-empty {
  margin-top: 14px;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.policy-list article {
  padding: 18px 20px;
}

.policy-list a {
  color: var(--brand);
}

.app-bar {
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1500;
}

.app-btn {
  border: 0;
  flex: 1;
  font-weight: 700;
  min-height: 58px;
}

.delivery-btn {
  background: var(--brand);
  color: #fff;
}

.pickup-btn {
  background: var(--accent);
  color: #fff;
}

.account-btn {
  background: #fff;
  color: var(--ink);
}

.popup {
  align-items: center;
  background: rgba(0,0,0,0.55);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 14px;
  position: fixed;
  z-index: 2200;
}

.popup-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 390px;
  padding: 20px;
  position: relative;
  text-align: left;
  width: 100%;
}

.popup-content.tall {
  max-height: 88vh;
  overflow-y: auto;
}

.popup-content h3 {
  margin: 0 28px 12px 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.popup-btn {
  border: 0;
  border-radius: 8px;
  margin-top: 10px;
  min-height: 44px;
  padding: 11px;
  width: 100%;
}

.popup-btn.delivery {
  background: var(--brand);
  color: #fff;
}

.popup-btn.pickup {
  background: #f3ebe5;
  color: var(--ink);
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 9px;
  padding: 12px;
  width: 100%;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.close-icon {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
}

.cart-row,
.address-option {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
}

.cart-row {
  align-items: flex-start;
}

.cart-row-copy {
  display: grid;
  gap: 6px;
}

.cart-row-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-variant-select {
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid rgba(26,24,18,0.12);
  border-radius: 999px;
  background: #fff7ef;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.cart-row span,
.address-option span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.qty {
  align-items: center;
  display: flex;
  gap: 8px;
}

.qty button,
.address-option button {
  background: #f3ebe5;
  border: 0;
  border-radius: 6px;
  min-height: 32px;
  min-width: 32px;
}

.cart-total {
  font-size: 18px;
  font-weight: 800;
  margin: 14px 0 4px;
  text-align: right;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.checkbox-row input,
.address-option input {
  width: auto;
}

.setup-notice {
  margin: 60px auto;
  max-width: 620px;
  padding: 20px;
}

.my-orders-page {
  min-height: 60vh;
}

.section-title a {
  text-decoration: none;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.25;
}

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

.text-link-btn {
  display: inline-block;
  text-decoration: none;
}

.order-card-list {
  display: grid;
  gap: 14px;
}

.user-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37,23,19,0.06);
  padding: 14px;
}

.user-order-head,
.user-order-foot {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.user-order-head span,
.user-order-foot span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.status-badge {
  border-radius: 999px;
  font-size: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.status-placed,
.status-accepted,
.status-preparing {
  background: #fff2cc;
  color: #8a6200;
}

.status-ready,
.status-completed {
  background: #dff4eb;
  color: #12694d;
}

.status-cancelled {
  background: #f7dddd;
  color: #9d1f1f;
}

.order-items-mini {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 12px 0;
  padding: 8px 0;
}

.order-items-mini p {
  color: var(--muted);
  margin: 5px 0;
}

.order-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin: 14px 0;
}

.progress-step {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.progress-step span {
  background: #eadfd8;
  border-radius: 999px;
  display: block;
  height: 8px;
  margin-bottom: 6px;
  width: 100%;
}

.progress-step.done span {
  background: var(--accent);
}

.progress-step.done {
  color: var(--ink);
  font-weight: 700;
}

.cancelled-note {
  background: #f7dddd;
  border-radius: 8px;
  color: #9d1f1f;
  grid-column: 1 / -1;
  padding: 10px;
  text-align: center;
}

@media (max-width: 620px) {
  .header {
    padding: 10px;
  }

  .logo {
    font-size: 17px;
  }

  .logo img {
    height: 38px;
    max-width: 155px;
  }

  .order-btn,
  .cart-pill,
  .menu-btn {
    min-height: 34px;
    padding: 7px 9px;
  }

  .hero {
    height: 300px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .product-card img {
    height: 100%;
  }

  .product-card p {
    min-height: 0;
  }

  .location-row,
  .address-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid,
  .story-grid,
  .content-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .content-hero {
    padding: 38px 18px;
  }

  .closing-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-identity-card,
  .user-order-head,
  .user-order-foot {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .profile-stats,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    height: 60px;
    width: 60px;
    font-size: 24px;
  }

  .order-progress {
    grid-template-columns: 1fr;
  }

  .progress-step {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 40px 1fr;
    text-align: left;
  }

  .progress-step span {
    margin: 0;
  }
}

.admin-body,
.receipt-body {
  background: #f6f1ec;
  padding-bottom: 0;
}

.admin-shell-body {
  background: #f6f1ec;
  color: var(--ink);
  display: flex;
  min-height: 100vh;
  padding-bottom: 0;
}

.admin-sidebar {
  background: #211714;
  color: #fff;
  flex: 0 0 250px;
  min-height: 100vh;
  padding: 18px 14px;
  position: sticky;
  top: 0;
}

.admin-brand {
  color: #fff;
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin: 4px 8px 22px;
  text-decoration: none;
}

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

.admin-sidebar nav a {
  border-radius: 8px;
  color: #e9ddd6;
  padding: 12px;
  text-decoration: none;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: var(--brand);
  color: #fff;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 22px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar h1 {
  font-size: 24px;
  margin: 0;
}

.admin-topbar span {
  color: var(--muted);
  font-size: 13px;
}

.admin-menu-toggle {
  background: #f3ebe5;
  border: 0;
  border-radius: 8px;
  display: none;
  min-height: 38px;
  padding: 9px 12px;
}

.admin-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px;
}

.admin-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}

.admin-header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.admin-header a,
.admin-link {
  color: var(--brand);
  font-weight: 700;
  margin-left: 12px;
  text-decoration: none;
}

.admin-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px;
}

.admin-login {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 70px auto;
  max-width: 380px;
  padding: 24px;
}

.alert {
  background: #fde9e9;
  border: 1px solid #f3b8b8;
  border-radius: 8px;
  color: #8f2020;
  margin: 12px 0;
  padding: 10px;
}

.admin-primary,
.inline-form button,
.status-form button,
.receipt-head button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  margin-top: 10px;
  min-height: 40px;
  padding: 10px 14px;
}

.danger-btn {
  background: #f7dddd;
  border: 0;
  border-radius: 8px;
  color: #9d1f1f;
  margin-top: 8px;
  min-height: 36px;
  padding: 8px 12px;
}

.admin-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.admin-stats div,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37,23,19,0.05);
  padding: 16px;
}

.admin-stats span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

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

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  margin-bottom: 16px;
}

.admin-panel {
  margin-bottom: 16px;
}

.admin-panel h2 {
  margin: 0 0 12px;
}

.admin-form textarea,
.admin-form select,
.admin-form input,
.inline-form input,
.inline-form select,
.status-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 9px;
  padding: 11px;
  width: 100%;
}

.admin-form textarea {
  min-height: 82px;
  resize: vertical;
}

.compact-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 170px minmax(160px, 1fr) 120px 150px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.inline-form {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  min-width: 520px;
}

.image-picker-block {
  display: grid;
  gap: 10px;
  margin-top: 9px;
}

.image-picker-block label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-image-preview {
  background: #faf7f4;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: 180px;
  object-fit: cover;
  width: 180px;
}

.image-upload-input {
  background: #fff;
}

.admin-image-preview.small {
  height: 110px;
  width: 110px;
}

.inline-image-picker {
  grid-column: span 2;
}

.table-product-thumb {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  height: 86px;
  object-fit: cover;
  width: 86px;
}

.pincode-form {
  grid-template-columns: 120px minmax(140px, 1fr) 90px 80px;
  min-width: 440px;
}

.inline-form label {
  align-items: center;
  display: flex;
  gap: 6px;
}

.receipt {
  background: #fff;
  margin: 26px auto;
  max-width: 820px;
  padding: 28px;
}

.receipt-head {
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.receipt-head h1 {
  margin: 0;
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.receipt-address {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
  padding: 14px;
}

.receipt-address h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.receipt-address pre {
  font-family: inherit;
  margin: 0;
  white-space: pre-wrap;
}

.receipt-total {
  margin-top: 16px;
  text-align: right;
}

.receipt-total b {
  font-size: 22px;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list p,
.metric-row {
  background: #faf7f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 12px;
}

.summary-list b,
.metric-row b {
  display: block;
  font-size: 22px;
}

.summary-list span,
.metric-row span,
.metric-row small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

@media (max-width: 720px) {
  .hero {
    height: 420px;
  }

  .hero-copy {
    bottom: 32px;
  }

  .product-card h3 {
    font-size: 22px;
  }

  .admin-shell-body {
    display: block;
  }

  .admin-sidebar {
    bottom: 0;
    left: 0;
    min-height: 0;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    width: 260px;
    z-index: 30;
  }

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

  .admin-menu-toggle {
    display: inline-block;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-header a {
    margin-left: 0;
    margin-right: 12px;
  }

  .admin-main,
  .admin-page,
  .receipt {
    padding: 12px;
  }

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

  .receipt-head {
    flex-direction: column;
    gap: 10px;
  }

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

  .inline-image-picker {
    grid-column: auto;
  }
}

@media print {
  .receipt-head button {
    display: none;
  }

  .receipt {
    margin: 0;
    max-width: none;
  }
}

/* Premium storefront refresh */

:root {
  --paper: #fbf8ff;
  --surface: #ffffff;
  --ink: #171325;
  --muted: #635a79;
  --brand: #ffbf1f;
  --accent: #121019;
  --line: #e8defa;
  --line-strong: #d6c5f8;
  --shadow-soft: 0 18px 60px rgba(37, 17, 64, 0.12);
  --shadow-card: 0 16px 34px rgba(25, 14, 43, 0.14);
  --gradient-brand: linear-gradient(135deg, #a786ef 0%, #8f75ef 44%, #ffbf1f 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 191, 31, 0.15), transparent 32%),
    linear-gradient(180deg, #f6efff 0%, #fff9ee 100%);
  color: var(--ink);
}

body.home-page {
  background:
    linear-gradient(180deg, #f6efff 0 520px, #fff8ec 520px 100%);
}

.header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(133, 107, 197, 0.14);
  box-shadow: 0 8px 24px rgba(29, 18, 48, 0.04);
  gap: 16px;
  padding: 12px 22px;
}

.logo img {
  height: 54px;
  max-width: 240px;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.desktop-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.footer a:hover,
.mobile-menu a:hover {
  color: #8d67ef;
}

.header-actions {
  margin-left: auto;
}

.menu-btn {
  display: none;
}

.order-btn,
.product-actions button,
.hero-cta.primary,
.popup-btn.delivery {
  background: var(--accent);
  color: #fff;
}

.cart-pill,
.menu-btn,
.link-btn,
.hero-cta.secondary {
  background: #fff;
  border: 1px solid rgba(141, 103, 239, 0.18);
  color: var(--ink);
}

.hero-premium {
  border-radius: 0 0 36px 36px;
  box-shadow: inset 0 -120px 120px rgba(15, 11, 22, 0.26);
  height: 640px;
  margin: 0 20px;
}

.hero-premium::before {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(18,16,25,0.1) 35%, rgba(18,16,25,0.58) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background: linear-gradient(180deg, rgba(149, 115, 238, 0.12), rgba(18, 16, 25, 0.24));
  z-index: 1;
}

.hero-copy {
  bottom: 56px;
  max-width: 760px;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.eyebrow {
  color: #ffe17d;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-intro .eyebrow,
.story-copy .eyebrow,
.support-card .eyebrow,
.content-hero .eyebrow {
  color: #8d67ef;
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  margin-bottom: 16px;
  max-width: 12ch;
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

.hero-cta {
  border-radius: 999px;
  font-weight: 800;
  min-height: 48px;
  padding: 14px 22px;
  text-decoration: none;
}

.section {
  max-width: 1180px;
  padding: 28px 18px;
}

.section-shell {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.benefit-bar {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -38px;
  position: relative;
  text-align: center;
  z-index: 3;
}

.benefit-bar div {
  font-weight: 700;
  padding: 8px 4px;
}

.tile-section,
.story-section,
.faq-section,
.support-section {
  margin-top: 18px;
}

.section-intro h2,
.premium-title h2,
.story-copy h2,
.faq-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0;
  max-width: 14ch;
}

.category-tile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.category-tile {
  background: linear-gradient(180deg, #fff 0%, #f7f1ff 100%);
  border: 1px solid rgba(141,103,239,0.15);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  display: block;
  padding: 24px;
  position: relative;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.premium-product-card:hover,
.support-card:hover {
  box-shadow: 0 22px 42px rgba(25, 14, 43, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.tile-icon {
  align-items: center;
  background: var(--gradient-brand);
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.category-tile h3,
.support-card h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.category-tile p,
.support-card p,
.story-copy p,
.content-page p,
.policy-page p {
  color: var(--muted);
  line-height: 1.7;
}

.content-page .content-hero p,
.policy-page .content-hero p {
  color: #fff;
}

.tile-link {
  color: #8d67ef;
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
}

.premium-offer-strip {
  margin-top: 16px;
}

.offer-card {
  background: linear-gradient(135deg, #fff 0%, #fff6de 100%);
  border: 1px solid rgba(255, 191, 31, 0.32);
  border-left: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.premium-title,
.section-title {
  gap: 16px;
}

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

.product-grid {
  gap: 18px;
  margin-top: 18px;
}

.premium-product-card {
  background: linear-gradient(180deg, rgba(19,16,30,0.98) 0%, rgba(28,20,44,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.premium-product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 18px 18px 0;
}

.product-badge {
  background: rgba(255, 191, 31, 0.15);
  border: 1px solid rgba(255, 191, 31, 0.3);
  border-radius: 999px;
  color: #ffe28d;
  font-size: 12px;
  font-weight: 800;
  left: 18px;
  padding: 8px 12px;
  position: absolute;
  top: 18px;
  z-index: 2;
}

.product-card-body {
  padding: 18px;
}

.product-card-topline,
.variant-meta,
.payment-cluster span,
.sort-control span {
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-product-card h3 {
  color: #fff;
  font-size: 30px;
  margin: 8px 0 8px;
}

.product-copy {
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
  min-height: 48px;
}

.variant-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.variant-pill {
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.1;
  min-height: 40px;
  min-width: 84px;
  overflow: visible;
  padding: 11px 18px;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.variant-pill.active {
  background: #ffbf1f;
  border-color: #ffbf1f;
  color: #1d132d;
  transform: translateY(-1px);
}

.variant-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.variant-offer-note {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.variant-offer-note-offer {
  background: rgb(232 80 10);
  border-color: rgb(255 255 255 / 50%);
}

.variant-offer-note-custom {
  background: rgb(232 80 10);
  border-color: rgba(255,255,255,0.18);
}

.variant-offer-label {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.variant-offer-helper {
  color: rgba(255,255,255,0.86);
  font-size: 0.76rem;
  line-height: 1.35;
}

.variant-weight {
  color: #fff3c1;
}

.variant-blurb {
  letter-spacing: normal;
  text-transform: none;
}

.product-actions {
  align-items: center;
  gap: 12px;
}

.dynamic-price {
  color: #fff;
  font-size: 24px;
}

.quick-add-btn {
  min-width: 116px;
}

.theme-spice .product-badge {
  color: #ffd8bf;
}

.story-section {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr;
}

.story-card {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 28px;
}

.story-visual {
  padding: 0;
}

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

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

.support-card {
  background: linear-gradient(180deg, #fff 0%, #f8f3ff 100%);
  border: 1px solid rgba(141,103,239,0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.14);
  border-radius: 22px;
  overflow: hidden;
}

.faq-question {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: flex;
  font-size: 17px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 68px;
  padding: 18px 20px;
  width: 100%;
}

.faq-question b {
  color: #8d67ef;
  font-size: 26px;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question b {
  transform: rotate(45deg);
}

.shop-hero {
  margin-bottom: 0;
}

.shop-shell {
  margin-top: 18px;
}

.shop-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.15);
  border-radius: 999px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
}

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

.sort-control {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sort-control select {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.15);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
}

.premium-footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer {
  background: #161222;
  border-top: 0;
  color: rgba(255,255,255,0.72);
  margin-top: 30px;
  padding: 40px 18px 120px;
}

.footer a,
.footer p {
  color: rgba(255,255,255,0.72);
}

.footer-brand b,
.footer p b {
  color: #fff;
}

.payment-cluster {
  margin-top: 18px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.payment-badges b {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 10px 12px;
}

.app-bar {
  background: rgba(17, 13, 27, 0.9);
  backdrop-filter: blur(12px);
}

.content-hero {
  background: linear-gradient(135deg, #1e172d 0%, #2e2244 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.content-band > div,
.story-grid article,
.contact-card,
.contact-form,
.policy-list article,
.closing-panel {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.closing-panel {
  background: linear-gradient(135deg, #fff 0%, #f5eeff 100%);
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .benefit-bar,
  .category-tile-grid,
  .support-grid,
  .story-section,
  .premium-footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-premium {
    height: 560px;
    margin: 0 10px;
  }

  .section-title,
  .premium-title,
  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .header {
    padding: 10px 14px;
  }

  .logo img {
    height: 46px;
  }

  .hero-premium {
    border-radius: 0 0 28px 28px;
    height: 500px;
    margin: 0;
  }

  .hero-copy {
    bottom: 30px;
    width: calc(100% - 24px);
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 52px);
    max-width: none;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-cta-row,
  .section-actions,
  .variant-switch,
  .variant-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .benefit-bar {
    border-radius: 28px;
    margin-top: -24px;
  }

  .premium-product-card h3,
  .section-intro h2,
  .premium-title h2,
  .story-copy h2,
  .faq-section h2 {
    font-size: 28px;
    max-width: none;
  }

  .story-card,
  .section-shell {
    border-radius: 24px;
  }

  .product-card-topline,
  .variant-meta,
  .payment-cluster span,
  .sort-control span {
    letter-spacing: 0.04em;
  }

  .section-title a,
  .section-title .link-btn,
  .profile-identity-card .link-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .product-detail-highlights {
    grid-template-columns: 1fr;
  }

  .product-detail-variants {
    grid-template-columns: 1fr;
  }

  .product-detail-price-row .dynamic-price {
    font-size: 26px;
  }
}


/* new changes */
/* =========================
   MODERN PREMIUM HERO
========================= */

.hero-premium {
  position: relative;
  height: 92vh;
  min-height: 720px;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  background: #000;
}

/* Dark cinematic overlay */
.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.58) 35%,
      rgba(0,0,0,0.18) 100%
    );
}

/* Remove old overlay */
.hero::after {
  display: none;
}

/* Slides */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* cinematic zoom */
  transform: scale(1.05);
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

/* Content */
.hero-copy {
  position: absolute;
  z-index: 3;

  top: 50%;
  left: 8%;

  transform: translateY(-50%);

  width: 100%;
  max-width: 560px;

  text-align: left;
}

/* Small label */
.hero-copy .eyebrow {
  color: #d4af37;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;

  margin-bottom: 18px;
  display: inline-block;
}

/* Heading */
.hero-copy h1 {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.05;
  font-weight: 700;

  letter-spacing: -2px;

  color: #fff;

  margin: 0 0 24px;
  max-width: 10ch;

  text-transform: none;
}

/* remove italic style */
.hero-copy h1 em {
  font-style: normal;
  color: #d4af37;
}

/* Paragraph */
.hero-copy p {
  font-size: 18px;
  line-height: 1.8;

  color: rgba(255,255,255,0.82);

  margin: 0 0 34px;

  max-width: 520px;
}

/* CTA buttons */
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  justify-content: flex-start;
}

/* Primary button */
.hero-cta.primary {
  background: #d4af37;
  color: #111;

  border: none;
  border-radius: 10px;

  padding: 16px 28px;

  font-weight: 700;
  font-size: 15px;

  text-decoration: none;

  transition: all 0.3s ease;
}

.hero-cta.primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Secondary button */
.hero-cta.secondary {
  background: transparent;

  border: 1px solid rgba(255,255,255,0.3);

  color: #fff;

  border-radius: 10px;

  padding: 16px 28px;

  font-weight: 600;

  text-decoration: none;

  transition: all 0.3s ease;
}

.hero-cta.secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 42px;

  margin-top: 50px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.hero-stat span {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  margin-top: 4px;
}

/* Dots */
.hero-dots {
  position: absolute;
  z-index: 4;

  left: 8%;
  bottom: 50px;

  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  border: none;

  background: rgba(255,255,255,0.3);

  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #d4af37;
}

/* Mobile */
@media (max-width: 768px) {

  .hero-premium {
    min-height: 640px;
  }

  .hero-copy {
    left: 24px;
    right: 24px;

    width: auto;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 42px;
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }
}

/* Product gallery and admin catalog refresh */

.admin-secondary,
.admin-link-btn,
.admin-text-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(141,103,239,0.16);
  border-radius: 12px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.admin-secondary:hover,
.admin-link-btn:hover,
.admin-text-btn:hover {
  border-color: rgba(141,103,239,0.32);
  color: #8d67ef;
}

.admin-products-layout {
  align-items: start;
}

.admin-product-editor {
  position: sticky;
  top: 94px;
}

.admin-product-editor-head,
.admin-gallery-head,
.admin-library-head,
.admin-product-card-top,
.admin-product-card-actions,
.admin-form-actions,
.product-detail-price-row,
.product-detail-actions,
.product-detail-highlights,
.product-detail-breadcrumb,
.shop-card-actions,
.shop-card-gallery-meta {
  display: flex;
  gap: 12px;
}

.admin-product-editor-head,
.admin-gallery-head,
.admin-library-head,
.admin-product-card-top,
.product-detail-breadcrumb {
  align-items: center;
  justify-content: space-between;
}

.admin-kicker,
.admin-muted {
  color: var(--muted);
}

.admin-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.admin-product-form {
  display: grid;
  gap: 18px;
}

.admin-product-form label {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.admin-checkbox-wrap {
  align-items: end;
  display: flex;
}

.admin-checkbox {
  margin-top: 18px;
}

.admin-gallery-section {
  background: #faf7ff;
  border: 1px solid rgba(141,103,239,0.14);
  border-radius: 20px;
  padding: 18px;
}

.admin-gallery-head h3,
.admin-product-card-body h3 {
  margin: 0;
}

.admin-gallery-head p,
.admin-library-head p,
.admin-product-card-body p {
  margin: 4px 0 0;
}

.admin-gallery-count {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.14);
  border-radius: 999px;
  color: #8d67ef;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.admin-gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 16px;
}

.admin-image-slot {
  background: #fff;
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-image-slot-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.admin-image-slot-head strong {
  font-size: 13px;
}

.admin-image-slot-head span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-image-slot .admin-image-preview {
  height: 150px;
  width: 100%;
}

.admin-form-actions {
  align-items: center;
}

.admin-inline-message {
  border-radius: 14px;
  font-weight: 700;
  padding: 12px 14px;
}

.admin-inline-message.success {
  background: #dff4eb;
  color: #12694d;
}

.admin-inline-message.error {
  background: #fde9e9;
  color: #8f2020;
}

.admin-product-library {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-product-card {
  background: linear-gradient(180deg, #fff 0%, #faf7ff 100%);
  border: 1px solid rgba(141,103,239,0.14);
  border-radius: 24px;
  overflow: hidden;
}

.admin-product-mosaic {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
  padding: 14px;
}

.admin-product-mosaic img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.admin-product-card-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.admin-product-status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.admin-product-status.active {
  background: #dff4eb;
  color: #12694d;
}

.admin-product-status.inactive {
  background: #f7dddd;
  color: #9d1f1f;
}

.admin-product-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-card {
  overflow: hidden;
}

.shop-card-media {
  display: block;
  padding: 18px 18px 0;
  position: relative;
  text-decoration: none;
}

.shop-card-media-shell {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  border-radius: 22px;
  display: block;
  overflow: hidden;
}

.shop-card-image {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  padding: 0 !important;
  transition: transform 0.45s ease;
  width: 100%;
}

.shop-card:hover .shop-card-image,
.shop-card-media:hover .shop-card-image {
  transform: scale(1.2);
}

.shop-card-title,
.product-card-topline a {
  color: inherit;
  text-decoration: none;
}

.product-card-topline a {
  color: var(--card-accent, #ffbf1f);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-card-gallery-meta {
  color: rgba(255,255,255,0.64);
  flex-wrap: wrap;
  font-size: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shop-detail-btn {
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.shop-detail-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.shop-card-actions {
  margin-left: auto;
}

.product-detail-page {
  margin: 0 auto;
  max-width: 1320px;
  padding: 32px 18px 48px;
  position: relative;
}

.product-detail-shell {
  background:
    radial-gradient(circle at top right, rgba(141,103,239,0.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(250,244,255,0.96) 100%);
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 36px;
  padding: 28px;
}

.product-detail-breadcrumb {
  align-items: center;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 26px;
}

.product-detail-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.product-detail-breadcrumb a:hover {
  color: #8d67ef;
}

.product-detail-breadcrumb b {
  color: var(--ink);
  font-weight: 800;
}

.product-detail-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: start;
}

.product-gallery-panel {
  display: grid;
  gap: 18px;
}

.product-gallery-mobile-slider {
  display: none;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 38%),
    linear-gradient(180deg, #241a37 0%, #161121 100%);
  border-radius: 34px;
  box-shadow: 0 28px 60px rgba(28, 18, 48, 0.18);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.product-gallery-mobile-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-gallery-mobile-track::-webkit-scrollbar {
  display: none;
}

.product-gallery-mobile-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.product-gallery-mobile-slide img {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-gallery-mobile-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.product-gallery-mobile-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.36);
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-gallery-mobile-dot.active {
  background: #fff;
  transform: scale(1.15);
}

.product-gallery-main {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 38%),
    linear-gradient(180deg, #241a37 0%, #161121 100%);
  border-radius: 34px;
  box-shadow: 0 28px 60px rgba(28, 18, 48, 0.18);
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.product-detail-badge {
  left: 26px;
  top: 26px;
}

.product-gallery-main img {
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
  width: 100%;
}

.product-gallery-main:hover img {
  transform: scale(1.03);
}

.product-gallery-thumbs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.product-thumb {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(141,103,239,0.16);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(23, 15, 42, 0.06);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 12px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-thumb:hover {
  border-color: rgba(141,103,239,0.34);
  transform: translateY(-2px);
}

.product-thumb.active {
  border-color: #8d67ef;
  box-shadow: 0 12px 30px rgba(141,103,239,0.16);
}

.product-thumb img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.product-thumb span {
  font-size: 12px;
  font-weight: 700;
}

.product-detail-content {
  display: grid;
  gap: 20px;
}

.product-detail-kicker {
  color: #8d67ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-content h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 12ch;
}

.product-detail-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
  max-width: 56ch;
}

.product-detail-highlights {
  flex-wrap: wrap;
}

.product-detail-highlights div {
  background: linear-gradient(180deg, #fff 0%, #faf6ff 100%);
  border: 1px solid rgba(141,103,239,0.12);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(29, 18, 48, 0.06);
  min-width: 140px;
  padding: 14px 16px;
}

.product-detail-highlights b {
  display: block;
  font-size: 24px;
}

.product-detail-highlights span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
  text-transform: uppercase;
}

.product-detail-variant-card {
  background:
    radial-gradient(circle at top right, rgba(255,191,31,0.16), transparent 32%),
    linear-gradient(180deg, rgba(20,16,31,0.98) 0%, rgba(34,23,53,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  box-shadow: 0 26px 54px rgba(20, 14, 34, 0.2);
  color: #fff;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.product-detail-variants {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.product-detail-variants .variant-pill {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 108px;
  overflow: visible;
  padding: 14px 18px;
  text-transform: none;
  vertical-align: middle;
}

.product-detail-price-row {
  align-items: center;
  justify-content: space-between;
}

.product-detail-price-row .dynamic-price {
  font-size: clamp(28px, 4vw, 40px);
}

.product-detail-price-row .variant-weight {
  color: #ffe28d;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-blurb {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.product-detail-actions {
  align-items: center;
  flex-wrap: wrap;
}

.product-detail-actions .quick-add-btn,
.product-detail-actions .shop-detail-btn {
  min-height: 48px;
  padding-inline: 20px;
}

@media (max-width: 960px) {
  .admin-product-editor {
    position: static;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-product-form-grid,
  .admin-gallery-grid,
  .product-gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .admin-product-card-top,
  .admin-gallery-head,
  .admin-product-editor-head,
  .product-detail-price-row,
  .shop-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-card-media {
    padding: 16px 16px 0;
  }

  .product-detail-shell {
    border-radius: 24px;
    padding: 16px;
  }

  .product-detail-content h1 {
    max-width: none;
  }

  .product-detail-breadcrumb {
    gap: 6px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .product-detail-breadcrumb a,
  .product-detail-breadcrumb b,
  .product-detail-breadcrumb span {
    font-size: 12px;
  }

  .product-detail-layout {
    gap: 20px;
  }

  .product-gallery-panel {
    gap: 12px;
  }

  .product-gallery-mobile-slider {
    display: block;
    border-radius: 24px;
  }

  .product-gallery-main,
  .product-gallery-thumbs {
    display: none;
  }

  .product-gallery-main {
    border-radius: 24px;
    padding: 16px;
  }

  .product-gallery-main img {
    border-radius: 18px;
  }

  .product-detail-badge {
    left: 16px;
    top: 16px;
  }

  .product-thumb {
    border-radius: 16px;
    gap: 6px;
    padding: 8px;
  }

  .product-thumb span {
    font-size: 11px;
  }

  .product-detail-content {
    gap: 16px;
  }

  .product-detail-content h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  .product-detail-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .product-detail-highlights {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-highlights div {
    min-width: 0;
    padding: 12px;
  }

  .product-detail-highlights b {
    font-size: 20px;
  }

  .product-detail-highlights span {
    font-size: 10px;
  }

  .product-detail-variant-card {
    border-radius: 24px;
    gap: 14px;
    padding: 18px;
  }

  .product-detail-variants {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-variants .variant-pill {
    align-items: center;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
    padding: 14px 12px;
    width: 100%;
  }

  .product-detail-price-row {
    align-items: flex-start;
    gap: 8px;
  }

  .product-detail-price-row .dynamic-price {
    font-size: 30px;
  }

  .product-detail-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .product-detail-actions .quick-add-btn,
  .product-detail-actions .shop-detail-btn {
    width: 100%;
  }

  .popup-content {
    max-width: calc(100vw - 24px);
    padding: 18px 16px;
  }

  .popup-content.tall {
    max-height: min(84vh, 680px);
  }

  .popup-content h3 {
    margin-right: 36px;
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .close-icon {
    right: 6px;
    top: 6px;
  }

  .cart-row,
  .address-option {
    gap: 12px;
    padding: 12px 0;
  }

  .cart-row {
    flex-direction: column;
  }

  .cart-row-copy {
    width: 100%;
  }

  .cart-row-controls {
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .cart-variant-select {
    min-width: 0;
    width: 100%;
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .cart-row span,
  .address-option span,
  .hint {
    font-size: 12px;
    line-height: 1.45;
  }

  .qty {
    align-self: flex-end;
  }

  .qty button,
  .address-option button {
    min-height: 36px;
    min-width: 36px;
  }

  .cart-total {
    font-size: 1rem;
    margin-top: 12px;
  }

  .cart-offer-note {
    padding: 10px 12px;
  }

  .cart-offer-note b {
    font-size: 0.84rem;
  }

  .cart-offer-note span {
    font-size: 0.76rem;
  }
}
