:root {
  --purple-950: #2d0b3a;
  --purple-800: #4a0f61;
  --purple-700: #5b1674;
  --purple-600: #72228f;
  --purple-100: #f4e9f8;
  --purple-50: #fbf7fc;
  --amber-500: #f2a51a;
  --amber-100: #fff3cf;
  --green-700: #237a4b;
  --green-100: #e3f5ea;
  --red-700: #ad2d37;
  --red-100: #fce8ea;
  --ink: #201a22;
  --muted: #6f6871;
  --line: #e8e1e9;
  --surface: #ffffff;
  --canvas: #faf8fb;
  --shadow: 0 18px 50px rgba(45, 11, 58, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
[role="button"] {
  cursor: pointer;
}

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

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

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 20px;
  background: var(--purple-950);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.announcement-separator {
  color: var(--amber-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(91, 22, 116, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--purple-700), var(--purple-950));
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(91, 22, 116, 0.25);
}

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

.brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-search {
  display: flex;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.header-search:focus-within {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--ink);
}

.header-search button {
  border: 0;
  padding: 0 18px;
  background: var(--purple-700);
  color: #fff;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions a {
  padding: 10px 0;
  color: #433b45;
}

.header-actions a:hover {
  color: var(--purple-700);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-500);
  color: #2b1a00;
  font-size: 12px;
}

#app {
  min-height: 64vh;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.page-loading,
.empty-state,
.error-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--purple-100);
  border-top-color: var(--purple-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 165, 26, 0.25), transparent 27%),
    linear-gradient(135deg, var(--purple-950), var(--purple-700));
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1,
.auth-copy h1,
.product-detail h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

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

.button,
button.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 19px;
  background: var(--purple-700);
  color: #fff;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(45, 11, 58, 0.18);
}

.button-amber {
  background: var(--amber-500);
  color: #2b1a00;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-outline {
  border-color: var(--purple-700);
  background: transparent;
  color: var(--purple-700);
}

.button-danger {
  background: var(--red-700);
}

.button-small {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-stat {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stat:first-child {
  grid-column: span 2;
}

.hero-stat strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  padding: 22px;
  background: #fff;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--purple-800);
}

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

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: 32px;
}

.page-heading h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.section-heading p,
.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.category-chip.active,
.category-chip:hover {
  border-color: var(--purple-700);
  background: var(--purple-700);
  color: #fff;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(45, 11, 58, 0.05);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

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

.product-image {
  position: relative;
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #faf6fb, #f0e8f3);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-image .image-placeholder {
  color: var(--purple-600);
  font-family: "Manrope", sans-serif;
  font-size: 44px;
  font-weight: 800;
}

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.stock-badge.out {
  background: var(--red-100);
  color: var(--red-700);
}

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

.product-category {
  color: var(--purple-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 48px;
  margin: 8px 0 12px;
  font-size: 17px;
  line-height: 1.4;
}

.product-price {
  color: var(--purple-800);
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.product-price small {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 15px;
}

.card-actions .button {
  padding-inline: 12px;
}

.icon-button {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--purple-700);
  font-size: 18px;
}

.filters-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.filters-bar input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.filters-bar input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.product-detail-media {
  position: sticky;
  top: 120px;
  min-height: 500px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  padding: 30px;
}

.product-detail h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.product-description {
  margin: 22px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  white-space: pre-line;
}

.purchase-box,
.summary-card,
.panel,
.auth-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(45, 11, 58, 0.06);
}

.purchase-box {
  margin-top: 25px;
  padding: 20px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 42px 72px 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.quantity-control button,
.quantity-control input {
  height: 42px;
  border: 0;
  background: #fff;
  text-align: center;
}

.quantity-control button {
  color: var(--purple-700);
  font-size: 20px;
  font-weight: 800;
}

.quantity-control input {
  width: 72px;
  border-inline: 1px solid var(--line);
  outline: 0;
  font-weight: 800;
}

.purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.cart-layout,
.checkout-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.cart-item.unavailable {
  border-color: #efc4c4;
  background: #fff8f8;
}

.cart-item.unavailable .cart-item-image {
  opacity: 0.58;
  filter: grayscale(0.35);
}

.cart-item .cart-availability {
  margin-top: 7px;
  color: var(--red-700);
  font-weight: 800;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--purple-50);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.cart-item h3 {
  margin: 0 0 6px;
}

.cart-item p {
  margin: 2px 0;
  color: var(--muted);
}

.summary-card {
  position: sticky;
  top: 112px;
  padding: 22px;
}

.summary-card h2,
.panel h2,
.order-card h2 {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--muted);
}

.summary-line strong {
  color: var(--ink);
}

.summary-line.total {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.progress-note,
.notice {
  margin: 14px 0;
  border-radius: 13px;
  padding: 12px 14px;
  background: var(--amber-100);
  color: #694500;
  font-size: 14px;
}

.notice.success {
  background: var(--green-100);
  color: var(--green-700);
}

.notice.error {
  background: var(--red-100);
  color: var(--red-700);
}

.auth-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: center;
}

.auth-copy h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.auth-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.auth-card {
  padding: 30px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}

.auth-card > p {
  margin: 0 0 25px;
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input[readonly] {
  border-color: #d8c7df;
  background: #f8f3fa;
  color: var(--purple-800);
  cursor: default;
}

.pin-status {
  min-height: 40px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #faf8fb;
  color: var(--muted);
  font-size: 13px;
}

.pin-status.loading {
  border-color: #d7c2e0;
  background: var(--purple-100);
  color: var(--purple-800);
}

.pin-status.success {
  border-color: #b8dcc8;
  background: #eef9f2;
  color: var(--green-700);
}

.pin-status.error {
  border-color: #efc4c4;
  background: #fff2f2;
  color: var(--red-700);
}

.form-message {
  min-height: 22px;
  margin: 12px 0;
  color: var(--red-700);
  font-size: 14px;
}

.field-validation {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 700;
}

.field-validation.success {
  color: var(--green-700);
}

.field input[aria-invalid="true"] {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(176, 35, 35, 0.1);
}

.checkout-main {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: 24px;
}

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

.address-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
}

.checkout-addresses .address-card {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.checkout-addresses .address-card:hover,
.address-card.active {
  border-color: var(--purple-700);
  background: var(--purple-50);
}

.checkout-addresses .address-card:hover {
  transform: translateY(-1px);
}

.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.address-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.address-default {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.form-intro {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.account-choice {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--purple-700);
}

.checkbox-row span,
.checkbox-row strong,
.checkbox-row small {
  display: block;
}

.checkbox-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.password-fields {
  margin-top: 4px;
}

.password-fields[hidden] {
  display: none !important;
}

.returning-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d7c3df;
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--purple-50);
}

.returning-customer strong,
.returning-customer span {
  display: block;
}

.returning-customer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.success-card {
  width: min(720px, 100%);
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 6vw, 52px);
  background: #fff;
  box-shadow: 0 16px 46px rgba(45, 11, 58, 0.08);
  text-align: center;
}

.success-card h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 5vw, 46px);
}

.success-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.success-card .inline-actions {
  justify-content: center;
  margin-top: 22px;
}

.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 34px;
  font-weight: 800;
}

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

.payment-option {
  border: 2px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  background: #fff;
  text-align: left;
}

.payment-option.active {
  border-color: var(--purple-700);
  background: var(--purple-50);
}

.payment-option strong,
.payment-option span {
  display: block;
}

.payment-option span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.upi-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid #b9dfc8;
  border-radius: 18px;
  padding: 18px;
  background: #f3fbf6;
}

.qr-wrap {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.qr-wrap canvas,
.qr-wrap img {
  max-width: 100%;
  height: auto !important;
}

.qr-error {
  padding: 14px;
  color: var(--red-700);
  font-size: 13px;
  text-align: center;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.order-card {
  padding: 20px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order-top h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.order-top p,
.order-meta p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  height: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--amber-100);
  color: #714900;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.status-pill.confirmed {
  background: var(--green-100);
  color: var(--green-700);
}

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

.order-item-mini {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 14px;
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 50px;
  padding: 52px 0 40px;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid > div > a:not(.brand) {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--muted);
}

.footer-grid > div > a:hover {
  color: var(--purple-700);
}

.footer-download {
  border-bottom: 1px solid var(--purple-700);
  color: var(--purple-700) !important;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(390px, calc(100% - 40px));
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--purple-950);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--red-700);
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    padding: 12px 0;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    justify-self: end;
  }

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

  .hero-inner {
    grid-template-columns: 1fr 0.7fr;
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .product-detail,
  .auth-shell,
  .cart-layout,
  .checkout-layout,
  .account-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 35px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

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

  .product-detail-media,
  .summary-card {
    position: static;
  }

  .product-detail-media {
    min-height: 380px;
  }

  .upi-panel {
    grid-template-columns: 1fr;
  }

  .qr-wrap {
    margin: 0 auto;
  }

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

@media (max-width: 620px) {
  .announcement {
    display: block;
  }

  .announcement-separator {
    display: none;
  }

  .announcement span {
    display: block;
  }

  .header-inner,
  .page-shell,
  .hero-inner,
  .auth-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-self: center;
  }

  .header-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
  }

  .header-actions a {
    font-size: 13px;
  }

  .header-search {
    grid-row: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-stat:first-child {
    grid-column: auto;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    padding: 16px 10px;
  }

  .section-heading,
  .page-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .product-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .product-image {
    height: 100%;
    aspect-ratio: auto;
  }

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

  .filters-bar,
  .form-grid,
  .payment-options,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 76px 1fr;
  }

  .cart-item-image {
    width: 76px;
    height: 76px;
  }

  .cart-item > :last-child {
    grid-column: 1 / -1;
  }

  .purchase-row,
  .order-top,
  .returning-customer,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .upi-panel,
  .panel,
  .auth-card,
  .summary-card {
    padding: 17px;
  }

  .qr-wrap {
    width: 190px;
    height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
