:root {
  --ink: #151515;
  --muted: #69645c;
  --line: #e4dfd5;
  --paper: #fbfaf7;
  --white: #fff;
  --gold: #b99135;
  --deep: #2b241b;
  --accent: #8f2f24;
  --shadow: 0 18px 44px rgba(21, 21, 21, 0.1);
  --topbar-height: 34px;
  --header-height: 105px;
  --site-bg: var(--paper);
  --top-header-bg: var(--deep);
  --header-bg: rgba(251, 250, 247, 0.94);
  --footer-bg: var(--deep);
  --text-color: var(--ink);
  --heading-color: var(--ink);
  --section-bg: var(--white);
  --top-header-text: var(--white);
  --header-text: var(--muted);
  --section-text: var(--ink);
  --footer-text: var(--white);
  --paragraph-text: var(--ink);
  --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --top-header-font: var(--font-family);
  --header-font: var(--font-family);
  --section-font: var(--font-family);
  --footer-font: var(--font-family);
  --heading-font: var(--font-family);
  --paragraph-font: var(--font-family);
  --top-header-font-size: 14px;
  --header-font-size: 15px;
  --section-font-size: 16px;
  --footer-font-size: 16px;
  --heading-font-size: 38px;
  --paragraph-font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: calc(var(--topbar-height) + var(--header-height));
  background: var(--site-bg);
  color: var(--text-color);
  font-family: var(--font-family);
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: center;
  padding: 8px 5vw;
  background: var(--top-header-bg);
  color: var(--top-header-text);
  font-family: var(--top-header-font);
  font-size: var(--top-header-font-size);
}

.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 39;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  font-family: var(--header-font);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 145, 53, 0.75);
  border-radius: 999px;
  padding: 7px;
  background: #080808;
  box-shadow: 0 10px 26px rgba(8, 8, 8, 0.28), 0 0 0 4px rgba(185, 145, 53, 0.1);
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--header-text);
  font-family: var(--header-font);
  font-size: var(--header-font-size);
}

.site-nav a:hover,
.site-nav .active {
  color: var(--header-text);
  filter: brightness(0.72);
}

.cart-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--section-bg);
  color: var(--header-text);
  font-weight: 800;
}

.cart-pill span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.78rem;
}

.account-menu {
  position: relative;
}

.account-link,
.account-menu summary {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: var(--section-bg);
  color: var(--header-text);
  font-family: var(--header-font);
  font-weight: 850;
  cursor: pointer;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.profile-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 950;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--section-bg);
  box-shadow: var(--shadow);
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 6px;
  padding: 10px;
  background: transparent;
  color: var(--text-color);
  text-align: left;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--site-bg);
}

.account-dropdown-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  padding: 8px 8px 12px;
  color: var(--text-color);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: 5vw;
  padding: 60px 5vw;
  min-height: 78vh;
  background: var(--site-bg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--section-text);
  font-family: var(--section-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: var(--heading-font-size);
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, var(--heading-font-size));
  line-height: 0.98;
  white-space: normal;
}

h2 {
  margin: 0 0 18px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: var(--heading-font-size);
  line-height: 1.05;
}

h3 {
  margin: 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: min(1.1rem, var(--heading-font-size));
}

p {
  font-family: var(--paragraph-font);
  color: var(--paragraph-text);
  font-size: var(--paragraph-font-size);
  line-height: 1.65;
}

.lead {
  max-width: 580px;
  color: var(--paragraph-text);
  font-family: var(--paragraph-font);
  font-size: 1.08rem;
}

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

.store-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 580px;
  margin-top: 22px;
}

.store-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--section-bg);
  color: var(--text-color);
  font: inherit;
}

.store-search input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(185, 145, 53, 0.18);
  outline-offset: 0;
}

.store-search.compact {
  width: min(100%, 420px);
  margin-top: 0;
}

.store-search.compact input {
  min-height: 42px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.light {
  border-color: var(--line);
  background: var(--section-bg);
}

.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 0 0 6px;
  text-decoration: underline;
}

.button.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

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

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--section-bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.54);
  color: var(--white);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-slider-control.prev {
  left: 14px;
}

.hero-slider-control.next {
  right: 14px;
}

.hero-slider-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.hero-slider-bars button {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-slider-bars button.is-active {
  background: var(--gold);
}

.product-detail img {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 94%;
  margin: auto;
  object-fit: contain;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.category-strip a {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px 16px;
  min-height: 96px;
  background: var(--section-bg);
}

.category-strip span {
  color: var(--paragraph-text);
  font-family: var(--paragraph-font);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-strip strong {
  color: var(--section-text);
  font-family: var(--section-font);
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  line-height: 1.2;
}

.section,
.page {
  padding: 72px 5vw;
  color: var(--section-text);
  font-family: var(--section-font);
  font-size: var(--section-font-size);
}

.product-page {
  min-height: calc(100vh - 121px);
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--site-bg);
}

.product-view-page .site-footer {
  display: none;
}

.section.white {
  background: var(--section-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head,
.page-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head p,
.page-head p,
.muted {
  color: var(--paragraph-text);
  font-family: var(--paragraph-font);
}

.checkout-page .page-head h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.about-page .page-head h1 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.account-page {
  font-size: 0.92rem;
}

.account-page .page-head h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
}

.account-page h2 {
  font-size: 1.45rem;
}

.account-page h3 {
  font-size: 1rem;
}

.account-page .field label,
.account-page input,
.account-page select,
.account-page textarea,
.account-page .button,
.account-page .muted {
  font-size: 0.86rem;
}

main:has([data-admin-panel-message]) .page-head h1 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

main:has([data-admin-panel-message]) h2 {
  font-size: 1.45rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.sidebar,
.panel,
.summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--section-bg);
}

.sidebar {
  display: grid;
  gap: 22px;
  align-self: start;
}

.sidebar h2 {
  font-size: 1.05rem;
}

.sidebar a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paragraph-text);
  font-family: var(--paragraph-font);
  font-weight: 760;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--section-bg);
  color: var(--section-text);
  font-family: var(--section-font);
}

.toolbar p {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--section-bg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--site-bg);
}

.sale {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-body {
  padding: 18px;
}

.product-body .cat {
  margin: 0 0 6px;
  color: var(--paragraph-text);
  font-family: var(--paragraph-font);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating {
  margin: 10px 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 16px;
}

.price strong {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1.18rem;
}

.price s {
  color: var(--paragraph-text);
}

.product-price {
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(185, 145, 53, 0.24);
  border-radius: 8px;
  margin: 10px 0 12px;
  padding: 12px;
  background: linear-gradient(90deg, #fff8e8 0%, #fff 100%);
}

.product-price strong {
  color: var(--heading-color);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.product-price s {
  color: var(--paragraph-text);
  font-size: 0.95rem;
}

.product-price span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #e9f6ee;
  color: #16803a;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.product-actions .button.dark {
  width: auto;
  min-width: 64px;
  padding-inline: 16px;
}

.form-grid,
.auth-grid,
.checkout-grid,
.cart-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 28px;
}

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

.detail-grid {
  grid-template-columns: minmax(460px, 0.82fr) minmax(390px, 1.18fr);
  align-items: start;
  gap: 18px;
}

.detail-grid .product-gallery {
  grid-column: 1;
  justify-self: start;
  width: 100%;
}

.detail-grid .product-gallery + div {
  grid-column: 2;
}

.detail-grid h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.16rem, 1.7vw, 1.55rem);
  line-height: 1.18;
  font-weight: 650;
}

.detail-grid .lead {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.detail-grid .price {
  margin: 10px 0 10px;
}

.detail-grid .rating {
  margin: 8px 0;
}

.detail-grid .actions {
  margin-top: 18px;
}

.product-detail {
  overflow: hidden;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: min(64vh, 560px);
  background: var(--section-bg);
  cursor: zoom-in;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--section-bg);
}

.product-gallery .product-detail {
  grid-column: 1;
  grid-row: 1;
}

.product-main-panel {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--section-bg);
}

.product-thumbs {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-thumbs img {
  width: 100%;
  height: 78px;
  border: 1px solid var(--line);
  border-width: 0 1px 0 0;
  border-radius: 0;
  object-fit: contain;
  background: var(--section-bg);
}

.product-thumbs button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-thumbs button.active img {
  border: 2px solid #2874f0;
  box-shadow: none;
}

.product-info-panel {
  min-height: min(68vh, 610px);
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--section-bg);
}

.product-info-panel h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.product-info-panel .cat {
  margin: 0;
  color: var(--paragraph-text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.market-actions .button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.market-meta {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 10px 0;
  padding: 10px 0;
  color: var(--paragraph-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.product-size-select {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 10px 0;
  padding: 10px 0;
}

.product-size-select div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-size-select button {
  min-width: 44px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--section-bg);
  color: var(--text-color);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.product-size-select button.active {
    border-color: #2874f0;
    color: #2874f0;
    box-shadow: 0 0 0 1px #2874f0;
  }

  .product-size-select.needs-selection button {
    border-color: #c0392b;
  }

  .product-size-select [data-size-warning] {
    min-height: 18px;
    margin: 0;
    color: #c0392b;
    font-size: 0.85rem;
    font-weight: 750;
  }
  
  .delivery-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  padding: 10px;
  background: var(--site-bg);
}

.delivery-box p {
  margin: 4px 0 0;
  color: var(--paragraph-text);
  font-size: 0.9rem;
}

.delivery-box.needs-selection {
  border-color: #c0392b;
}

.pincode-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.pincode-check input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--section-bg);
  font: inherit;
}

.pincode-check .button {
  min-height: 40px;
  padding: 0 12px;
}

.delivery-result {
  display: grid;
  gap: 4px;
  margin-top: 10px !important;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--section-bg);
}

.delivery-result span {
  color: var(--paragraph-text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-result strong {
  color: #12823a;
  font-size: 0.94rem;
  line-height: 1.2;
}

.delivery-result em {
  color: var(--paragraph-text);
  font-size: 0.86rem;
  font-style: normal;
}

.delivery-result.success {
  border-color: rgba(18, 130, 58, 0.28);
  background: #f1fbf5;
}

.delivery-result.error {
  border-color: rgba(192, 57, 43, 0.28);
  background: #fff6f4;
  color: #c0392b;
  font-weight: 800;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.86);
}

.image-preview img {
  max-width: min(94vw, 980px);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  background: var(--section-bg);
}

.image-preview button {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--section-bg);
  color: var(--text-color);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--paragraph-text);
  font-size: 0.84rem;
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--site-bg);
  color: var(--text-color);
  font: inherit;
}

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

.checkout-account {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.checkout-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkout-register-panel {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.account-status {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 18px;
  padding: 12px;
  color: var(--paragraph-text);
  font-weight: 760;
}

.account-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-bottom: 28px;
}

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

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

.admin-record,
.admin-product-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.admin-record {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-product-row img {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--white);
}

.slide-management {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.slide-admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.slide-admin-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--white);
}

.slide-admin-row .image-upload-row {
  grid-template-columns: minmax(0, 1fr);
}

.slide-admin-row .upload-button {
  min-height: 34px;
  padding: 8px 10px;
}

.theme-settings {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.theme-settings.font-settings {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.theme-customizer {
  display: grid;
  gap: 18px;
}

.theme-customizer h3 {
  font-size: 1rem;
}

.customizer-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--site-bg);
}

.font-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.font-style-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.typography-type-grid {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.font-style-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 120px;
  gap: 10px;
  align-items: end;
}

.font-style-row.compact {
  grid-template-columns: minmax(0, 1fr) 118px;
}

.logo-settings {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 12px;
  background: var(--paper);
}

.logo-settings img {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  padding: 8px;
  object-fit: contain;
  background: #080808;
}

.footer-settings {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.site-footer .social-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text);
  font-family: var(--footer-font);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-footer .social-icon:hover {
  background: var(--footer-text);
  color: var(--footer-bg);
  transform: translateY(-1px);
}

.site-footer .social-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.social-link-field label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-link-field label img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  display: inline-block;
  object-fit: contain;
}

.upload-mini-button {
  min-height: 36px;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.upload-mini-button input {
  display: none;
}

.custom-sections {
  display: grid;
  gap: 0;
}

.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 46px 5vw;
  background: var(--section-bg);
  color: var(--section-text);
  border-top: 1px solid var(--line);
  font-family: var(--section-font);
  font-size: var(--section-font-size);
}

.custom-section.has-image {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  align-items: center;
}

.custom-section.text-only {
  grid-template-columns: minmax(0, 1fr);
}

.custom-section.text-only .custom-section-copy {
  max-width: 860px;
}

.custom-section-copy {
  max-width: 760px;
}

.custom-section h2 {
  margin: 0 0 12px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
}

.custom-section p {
  max-width: 68ch;
}

.custom-section-actions {
  margin-top: 18px;
}

.custom-section-media {
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.custom-section-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.section-manager {
  display: grid;
  gap: 18px;
}

.section-form,
.section-list {
  display: grid;
  gap: 14px;
}

.section-form-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(110px, 0.45fr) auto;
  gap: 12px;
  align-items: end;
}

.switch-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--paper);
  font-weight: 850;
}

.section-image-preview {
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}

.section-image-preview img {
  width: 100%;
  height: 120px;
  display: block;
  object-fit: cover;
}

.section-list-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.section-list-item img {
  width: 84px;
  height: 84px;
  display: block;
  object-fit: cover;
  background: var(--paper);
}

.section-list-item h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-actions .button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

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

.theme-color-field {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.theme-color-field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.theme-color-field input,
.theme-color-field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.theme-color-field select {
  padding: 0 10px;
}

.admin-product-row div {
  display: grid;
  gap: 4px;
}

.admin-record div {
  display: grid;
  gap: 4px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 850;
}

.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.admin-product-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-record span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-row-actions select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-customer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.admin-customer summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.admin-customer form {
  margin-top: 14px;
}

.size-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.size-tabs span {
  width: 100%;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.size-tabs label {
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--paper);
  font-weight: 850;
}

.size-tabs input {
  accent-color: var(--ink);
}

.image-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.image-upload-row textarea {
  width: 100%;
  min-height: 86px;
}

.pincode-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.pincode-rule-head,
.pincode-rule-row {
  display: grid;
  grid-template-columns: 90px 110px minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pincode-rule-head {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pincode-rule-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  background: var(--white);
}

.pincode-rule-list .muted {
  margin: 0;
  padding: 14px;
}

.pincode-rule-row {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

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

.pincode-rule-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
  font: inherit;
}

.pincode-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.pincode-select input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.pincode-rule-row .button {
  min-height: 38px;
  padding: 0 10px;
}

.upload-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-row-actions {
  display: flex !important;
  gap: 8px;
}

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

.account-sidebar {
  position: sticky;
  top: 92px;
}

.profile-large {
  display: grid;
  gap: 8px;
}

.profile-large .profile-logo {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.profile-large p {
  margin: 0;
  color: var(--paragraph-text);
}

.account-content {
  display: grid;
  gap: 18px;
}

.account-orders {
  display: grid;
  gap: 14px;
}

.order-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--section-bg);
}

.sent-status-panel {
  display: grid;
  gap: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--section-bg);
}

.status-row div {
  display: grid;
  gap: 4px;
}

.status-row span {
  color: var(--paragraph-text);
  font-size: 0.88rem;
}

.status-badge {
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--site-bg);
  color: var(--text-color) !important;
  font-weight: 900;
  white-space: nowrap;
}

.status-sent,
.status-delivered {
  background: #e9f6ee;
  color: #176b3a !important;
}

.status-paid,
.status-payment_created {
  background: #fff3d5;
  color: #805b00 !important;
}

.status-failed {
  background: #fde8e5;
  color: #9b241b !important;
}

.order-card > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.bill-box {
  display: block !important;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

.bill-box h3 {
  margin-bottom: 8px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--section-bg);
}

.cart-item img {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
}

.summary div {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.values article {
  min-height: 170px;
  padding: 26px;
  background: var(--section-bg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 46px 5vw;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--footer-font);
  font-size: var(--footer-font-size);
}

.site-footer a,
.site-footer p {
  display: block;
  color: var(--footer-text);
  font-family: var(--footer-font);
}

.site-footer h3 {
  margin-bottom: 12px;
  color: var(--footer-text);
  font-family: var(--footer-font);
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 38px;
    --header-height: 150px;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a,
  .account-menu summary,
  .account-link {
    min-width: max-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--section-bg);
    color: var(--header-text);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
  }

  .site-nav a.active,
  .site-nav a:hover,
  .account-menu[open] summary,
  .account-link:hover {
    background: var(--header-text);
    color: var(--header-bg);
  }

  .cart-pill {
    gap: 4px;
  }

  .cart-pill span {
    min-width: 19px;
    height: 19px;
    font-size: 0.68rem;
  }

  .account-dropdown {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    bottom: auto;
    width: min(280px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 180px));
    overflow: auto;
  }

  .hero,
  .shop-layout,
  .account-shell,
  .admin-grid,
  .form-grid,
  .auth-grid,
  .checkout-grid,
  .cart-grid,
  .detail-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .custom-section,
  .custom-section.has-image,
  .section-form-grid,
  .section-list-item {
    grid-template-columns: 1fr;
  }

  .section-list-item .actions,
  .section-actions {
    justify-content: flex-start;
  }

  .detail-grid .product-gallery,
  .detail-grid .product-gallery + div {
    grid-column: auto;
  }

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

  .product-gallery .product-detail,
  .product-main-panel,
  .product-thumbs {
    grid-column: auto;
    grid-row: auto;
  }

  .product-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-right: 0;
    order: 2;
  }

  .product-thumbs img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-main-panel {
    order: 1;
  }

  .product-info-panel {
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3.8rem;
  }

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

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

@media (max-width: 560px) {
  :root {
    --topbar-height: 44px;
    --header-height: 148px;
  }

  .topbar,
  .site-header,
  .hero,
  .section,
  .page,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .site-nav {
    gap: 7px;
    padding-bottom: 2px;
  }

  .site-nav a {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 11px;
    background: var(--section-bg);
    font-size: 0.8rem;
  }

  .account-menu summary,
  .account-link {
    min-height: 40px;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    bottom: auto;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero h1 {
    white-space: normal;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .category-strip,
  .values,
  .two-col,
  .logo-settings,
  .footer-settings,
  .font-style-grid,
  .font-style-row,
  .product-actions,
  .admin-product-row,
  .slide-admin-row,
  .theme-settings,
  .admin-record,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .slide-admin-row img {
    width: 100%;
  }

  .category-strip a {
    min-height: auto;
    padding: 18px 16px;
  }

  .button {
    width: 100%;
  }

  .store-search {
    grid-template-columns: 1fr;
  }

  .store-search.compact {
    width: 100%;
  }

  .pincode-rule-head {
    display: none;
  }

  .pincode-rule-row {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .status-row {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }
}
