:root {
  --ink: #1f2937;
  --muted: #66736c;
  --line: #d8e4d8;
  --paper: #f3f7f3;
  --paper-soft: #edf4ed;
  --panel: #ffffff;
  --green: #176c4f;
  --green-dark: #0d4534;
  --lime: #d6f27a;
  --gold: #f3b33d;
  --blue: #3d6fb6;
  --red: #b84b3e;
  --shadow: 0 18px 44px rgba(31, 41, 55, 0.09);
  --shadow-soft: 0 10px 28px rgba(31, 41, 55, 0.07);
  --radius-card: 18px;
  --radius-soft: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: #f3f7f3;
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-home-hint {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(23, 108, 79, 0.16);
  border-radius: 999px;
  background: #eef9e7;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-soft);
  background: var(--green);
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: white;
}

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

.search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #3f4f46;
  font-weight: 800;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0.38);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.main-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav a:hover,
.main-nav a.active,
.site-footer a:hover {
  color: var(--green);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a.active::before {
  opacity: 1;
  transform: scaleX(1);
}

#cartNavLink {
  position: relative;
  color: inherit;
  white-space: nowrap;
}

.cart-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffe38a, #d58a18);
  color: #6a4c0c;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 900;
}

#cartNavLink.cart-bounce {
  animation: cartBounce 0.48s ease;
}

@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.13);
  }
  68% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

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

.icon-button,
.wallet-pill,
.primary-button,
.secondary-button,
.back-button,
.text-link {
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.account-label {
  display: none;
}

.has-customer-token .login-label {
  display: none;
}

.has-customer-token .account-label {
  display: inline;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: white;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  background: #fff7db;
  border-color: #f3d98d;
  color: #6a4c0c;
  white-space: nowrap;
}

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

.coin-symbol {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe38a, #d58a18);
  color: #6a4c0c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  vertical-align: -2px;
}

.coin-symbol::before {
  content: "G&T";
}

.coin-symbol.large {
  width: 40px;
  height: 32px;
  font-size: 13px;
  vertical-align: -5px;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  max-width: min(340px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(23, 108, 79, 0.18);
  border-radius: 8px;
  background: rgba(23, 32, 27, 0.94);
  color: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 27, 0.24);
  font-weight: 900;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

main {
  min-height: calc(100vh - 130px);
}

.page {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 24px 54px;
}

.page.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 22px;
  min-height: 490px;
  align-items: center;
  padding: 40px;
  border-radius: 10px;
  background:
    linear-gradient(105deg, rgba(23, 108, 79, 0.92), rgba(13, 69, 52, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: white;
  box-shadow: var(--shadow);
}

.maintenance-page {
  display: grid;
  place-items: start;
  gap: 14px;
  max-width: 760px;
  min-height: 420px;
  margin: 42px auto;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.maintenance-page h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.95;
}

.maintenance-page p:not(.kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero h1 {
  max-width: 720px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.9;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

.hero-live-cities {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-live-cities div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-live-cities span,
.hero-live-cities b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-live-cities span {
  padding: 0 11px;
  background: var(--lime);
  color: var(--ink);
}

.hero-live-cities b {
  padding: 0 10px;
  border: 1px solid rgba(200, 238, 98, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

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

.hero .kicker {
  color: var(--lime);
}

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

.primary-button,
.secondary-button,
.back-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
}

.primary-button {
  background: var(--green);
  color: white;
}

.hero .primary-button {
  background: var(--lime);
  color: var(--ink);
}

.secondary-button,
.back-button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

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

.status-card,
.hero-product,
.flow-card,
.hero-login-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.status-card span,
.status-card small,
.hero-product span,
.hero-login-card span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
}

.status-card strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 38px;
  font-family: "Outfit", sans-serif;
}

.status-card small {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(214, 242, 122, 0.5);
  border-radius: 999px;
  background: rgba(214, 242, 122, 0.95);
  color: var(--ink);
  font-weight: 900;
}

.flow-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-card span {
  padding: 11px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.hero-login-card {
  display: grid;
  gap: 12px;
}

.hero-login-card strong {
  max-width: 420px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.hero-login-card .primary-button {
  width: fit-content;
}

.hero-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-art {
  min-width: 84px;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d9f4ff, #2f4b5c);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.45);
}

.phone-art {
  border-radius: 16px;
}

.quick-grid,
.category-grid,
.product-grid,
.profile-grid,
.support-grid,
.policy-grid,
.admin-grid,
.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-grid {
  margin: 22px 0 34px;
}

.how-it-works-grid {
  margin-top: 18px;
  margin-bottom: 10px;
}

#categoryGrid {
  min-height: 156px;
}

#featuredProducts {
  min-height: 340px;
}

.quick-grid article,
.category-card,
.product-card,
.profile-grid article,
.support-grid article,
.policy-grid article,
.admin-grid article,
.order-card,
.wallet-card,
.task-card,
.process-panel,
.panel-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.quick-grid article,
.profile-grid article,
.support-grid article,
.policy-grid article,
.admin-grid article,
.order-card {
  padding: 18px;
}

.quick-grid h3,
.quick-grid p,
.support-grid h3,
.support-grid p,
.policy-grid h3,
.policy-grid p {
  margin: 8px 0 0;
}

.quick-grid p,
.support-grid p,
.policy-grid p,
.product-card p,
.product-detail p,
.process-panel,
.panel-form,
.order-card span,
.admin-grid span {
  color: var(--muted);
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.section-head,
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 34px 0 16px;
}

.page-title {
  align-items: center;
  margin-top: 8px;
}

.section-head h2,
.page-title h1 {
  margin: 5px 0 0;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.text-link {
  color: var(--green);
  align-self: center;
}

.products-divider {
  display: grid;
  gap: 10px;
  margin: 24px 0 14px;
}

.products-divider span {
  display: block;
  height: 1px;
  background: var(--line);
}

.products-divider h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.category-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.05);
  cursor: pointer;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf8;
  color: var(--green);
}

.category-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card h3,
.category-card p {
  margin: 0;
}

.category-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  overflow: hidden;
}

.product-visual {
  aspect-ratio: 1 / 1;
  height: auto;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  position: relative;
}

.product-card-visual-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-visual::after,
.detail-image::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 8px;
  border: 10px solid rgba(255, 255, 255, 0.55);
}

.product-visual:has(.product-photo)::after,
.detail-image:has(.product-photo)::after {
  display: none;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 12px;
}

.product-body h3 {
  display: -webkit-box;
  height: 40px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.25;
}

.coin-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 21px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: #6a4c0c;
  white-space: nowrap;
}

.coin-price .coin-symbol {
  flex: 0 0 auto;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.card-actions button {
  min-height: 40px;
}

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

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.detail-image {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 24px;
  border-radius: var(--radius-card);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

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

.checklist {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.checklist span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
}

.sell-layout,
.wallet-layout,
.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.panel-form,
.process-panel,
.wallet-card,
.task-card {
  padding: 20px;
}

.panel-form {
  display: grid;
  gap: 14px;
}

.panel-form.compact {
  max-width: 680px;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 18px;
  align-items: start;
}

#page-account {
  max-width: 1060px;
  background: var(--paper-soft);
  border-radius: 20px;
}

#page-account .page-title {
  margin-bottom: 18px;
}

#page-account .page-title p:not(.kicker) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

#accountGrid.profile-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

#accountGrid > article,
#accountGrid > section,
#accountGrid > div {
  min-width: 0;
}

.account-profile-card,
.account-wallet-card,
.account-panel,
.account-stats article,
.account-quick-actions a {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.account-profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.account-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), #0d4534);
  color: white;
  font-family: Outfit, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 108, 79, 0.22);
}

.account-profile-copy {
  display: grid;
  gap: 5px;
}

.account-profile-copy h2,
.account-profile-copy p {
  margin: 0;
}

.account-profile-copy h2 {
  font-size: 22px;
  line-height: 1.1;
}

.account-profile-copy p {
  color: var(--muted);
}

.verified-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 108, 79, 0.18);
  border-radius: 999px;
  background: #eef9e7;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.badge-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 11px;
}

.account-stats,
.account-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-stats article {
  display: grid;
  gap: 6px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.account-stats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), #c8ee62);
}

.account-stats span,
.account-wallet-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-stats strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

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

.account-quick-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.account-quick-actions a:hover,
.account-quick-actions a:active {
  border-color: rgba(23, 108, 79, 0.26);
  box-shadow: 0 18px 40px rgba(23, 32, 27, 0.12);
  transform: translateY(-1px);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef9e7;
  color: var(--green);
  font-weight: 900;
}

.coin-action-icon {
  background: #fff7db;
  color: #8a620d;
}

.account-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
}

.account-wallet-card div {
  display: grid;
  gap: 8px;
}

.account-wallet-card strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 26px;
  line-height: 1;
}

.account-wallet-card .coin-symbol.large {
  width: 44px;
  height: 36px;
  font-size: 14px;
}

.account-panel {
  padding: 20px;
}

.account-panel h3 {
  margin-top: 0;
}

.account-panel-head,
.account-history-top,
.account-order-meta,
.account-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-panel-head,
.account-history-top,
.account-order-meta {
  justify-content: space-between;
}

.account-panel-title {
  min-width: 0;
}

.account-panel-title h3,
.account-panel-title p {
  margin: 0;
}

.account-panel-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.account-panel-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef9e7;
  color: var(--green);
  font-weight: 900;
}

.address-default-badge {
  flex: 0 0 auto;
}

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

.address-book-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.address-book-form button {
  width: fit-content;
}

.account-logout-row {
  display: flex;
  justify-content: flex-end;
  padding: 6px 0 0;
}

.logout-outline-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #e5a49a;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.logout-outline-button:hover,
.logout-outline-button:active {
  background: #fff3f1;
  box-shadow: 0 10px 24px rgba(184, 72, 55, 0.12);
  transform: translateY(-1px);
}

.account-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.account-empty-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
}

.account-history-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.account-order-card {
  cursor: pointer;
}

.account-order-card:hover,
.account-order-card:active {
  border-color: rgba(23, 108, 79, 0.24);
  box-shadow: 0 14px 30px rgba(23, 32, 27, 0.1);
  transform: translateY(-1px);
}

.account-history-top > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-history-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.account-history-card small {
  color: var(--muted);
  font-weight: 800;
}

.account-history-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-status-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.account-status-badge.success {
  border: 1px solid #bfe8c0;
  background: #eef9e7;
  color: var(--green);
}

.account-status-badge.warning {
  border: 1px solid #f1db90;
  background: #fff8dd;
  color: #7a5a10;
}

.account-status-badge.danger {
  border: 1px solid #f0b7ad;
  background: #fff3f1;
  color: var(--red);
}

.account-status-badge.info {
  border: 1px solid #b7d7f2;
  background: #eef7ff;
  color: #17609f;
}

.account-order-meta span {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
}

.account-order-meta b {
  color: var(--green);
  font-size: 13px;
}

.panel-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.form-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.check-row {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 700 !important;
}

.dynamic-fields {
  display: grid;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 22px;
}

.notice {
  padding: 14px;
  border-radius: 14px;
  background: #fff7db;
  color: #6a4c0c;
}

.full {
  width: 100%;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.recharge-grid button {
  min-height: 56px;
  border: 1px solid #f3d98d;
  border-radius: 8px;
  background: #fff7db;
  color: #6a4c0c;
  font-weight: 900;
}

.recharge-grid.payment-step {
  grid-template-columns: 1fr;
}

.payment-summary,
.upi-payment-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--paper-soft);
}

.payment-summary span,
.upi-payment-box span,
.upi-payment-box small {
  color: var(--muted);
}

.payment-summary strong {
  color: var(--ink);
  font-size: 28px;
}

.upi-payment-box strong {
  color: #2e7354;
  font-size: 22px;
  word-break: break-word;
}

.upi-open-button {
  justify-self: start;
  text-decoration: none;
}

.upi-reference-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.cart-view {
  padding: 0;
  border: 0;
  background: transparent;
}

.checkout-flow,
.checkout-step {
  display: grid;
  gap: 16px;
}

.cart-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.empty-cart {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.empty-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
}

.cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cart-title-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--paper-soft);
  color: var(--green);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(23, 108, 79, 0.08);
}

.cart-summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 108, 79, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.empty-cart-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  text-align: center;
  box-shadow: 0 10px 28px rgba(23, 32, 27, 0.07);
}

.empty-cart-illustration {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: var(--paper-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(23, 108, 79, 0.08);
}

.empty-cart-illustration svg {
  width: 58px;
  height: 58px;
}

.empty-cart-panel h2,
.empty-cart-panel p,
.cart-recommendations h2 {
  margin: 0;
}

.empty-cart-panel h2 {
  font-size: 25px;
  line-height: 1.1;
}

.empty-cart-panel p {
  max-width: 420px;
  color: var(--muted);
}

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

.cart-recommendations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.cart-recommendations h2 {
  font-size: 18px;
}

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

.empty-cart-product {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.empty-cart-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.empty-cart-product div:not(.empty-cart-product-image) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.empty-cart-product strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 36px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.35;
}

.empty-cart-product span {
  color: var(--green);
  font-weight: 900;
}

.empty-cart-product .secondary-button {
  min-height: 36px;
  padding: 0 10px;
}

.orders-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.empty-orders {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.empty-orders-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  text-align: center;
  box-shadow: 0 10px 28px rgba(23, 32, 27, 0.07);
}

.empty-orders-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: var(--paper-soft);
  color: var(--green);
}

.empty-orders-icon svg {
  width: 56px;
  height: 56px;
}

.empty-orders-card h2,
.empty-orders-card p {
  margin: 0;
}

.empty-orders-card h2 {
  font-size: 25px;
  line-height: 1.1;
}

.empty-orders-card p {
  max-width: 430px;
  color: var(--muted);
}

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

.orders-info-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.orders-info-grid span {
  color: var(--muted);
  font-size: 13px;
}

.orders-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.orders-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.orders-tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.orders-tabs button.active {
  border-color: var(--green);
  color: var(--green);
}

.orders-filter-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.order-detail-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.order-detail-top,
.order-status-copy,
.order-detail-footer,
.order-item-row,
.order-detail-section p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-detail-top > div:first-child {
  display: grid;
  gap: 8px;
}

.order-detail-top span,
.order-detail-section span,
.order-item-row span {
  color: var(--muted);
}

.order-total-box {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.order-total-box strong {
  color: var(--green);
  font-size: 26px;
}

.order-total-box small {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef9e7;
  color: var(--ink);
  font-weight: 900;
}

.order-status-panel,
.order-detail-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--paper-soft);
}

.order-status-copy {
  margin-bottom: 14px;
}

.order-status-copy > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.order-status-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e1f6dd;
  color: var(--green);
  font-size: 24px;
}

.order-status-copy em {
  padding: 7px 11px;
  border: 1px solid #7ad17a;
  border-radius: 8px;
  color: #1a8a2d;
  font-style: normal;
  font-weight: 900;
}

.order-status-copy em.completed {
  border-color: var(--green);
  background: #eef9e7;
  color: var(--green);
}

.order-status-copy em.cancelled {
  border-color: #f0b7ad;
  background: #fff3f1;
  color: var(--red);
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.order-progress div {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.order-progress span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-weight: 900;
}

.order-progress .done {
  color: var(--green);
}

.order-progress .done span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.order-detail-section {
  display: grid;
  gap: 10px;
}

.order-detail-section h3 {
  margin: 0;
}

.order-detail-section p {
  margin: 0;
}

.order-detail-section .order-cancel-reason {
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #f0b7ad;
  border-radius: 8px;
  background: #fff3f1;
}

.order-detail-section .order-cancel-reason strong {
  color: var(--red);
  text-align: right;
}

.order-item-image {
  position: relative;
  overflow: hidden;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.order-item-row > div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.order-detail-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.order-detail-footer a {
  color: var(--green);
  font-weight: 900;
}

.checkout-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.checkout-review-step {
  display: grid;
  gap: 14px;
  border-color: var(--line);
  border-radius: 20px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.checkout-review-head,
.checkout-address-card,
.checkout-review-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-review-head {
  justify-content: space-between;
}

.checkout-review-head h2,
.checkout-review-head p,
.checkout-address-card p {
  margin: 0;
}

.checkout-review-head p {
  margin-top: 5px;
  color: var(--muted);
}

.checkout-wallet-badge,
.checkout-warning-card,
.checkout-address-card,
.checkout-price-details,
.checkout-review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.checkout-wallet-badge {
  display: grid;
  gap: 4px;
  min-width: 178px;
  padding: 12px 14px;
  animation: cartSoftIn 0.22s ease;
}

.checkout-wallet-badge span,
.checkout-wallet-badge small,
.checkout-address-card small,
.checkout-review-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checkout-wallet-badge small {
  font-size: 11px;
  font-weight: 800;
}

.checkout-wallet-badge strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.checkout-warning-card {
  display: grid;
  gap: 9px;
  align-items: start;
  padding: 14px;
  border-color: #f1db90;
  background: #fff8dd;
  color: #7a5a10;
  font-weight: 900;
  animation: cartSoftIn 0.22s ease;
}

.checkout-warning-card strong {
  color: #6a4c0c;
  font-size: 15px;
}

.checkout-warning-card span {
  color: #7a5a10;
  font-size: 13px;
  line-height: 1.4;
}

.checkout-warning-card .primary-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.checkout-address-card {
  align-items: flex-start;
  padding: 14px;
}

.checkout-address-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--paper-soft);
  color: var(--green);
  font-weight: 900;
}

.checkout-address-card > div {
  display: grid;
  gap: 4px;
}

.checkout-address-card p {
  color: var(--muted);
  line-height: 1.45;
}

.checkout-review-items {
  gap: 10px;
}

.checkout-review-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
}

.checkout-review-item > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.checkout-review-item > div strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.25;
}

.checkout-review-price {
  align-self: end;
  color: var(--green);
  text-align: right;
  white-space: nowrap;
}

.checkout-review-image {
  position: relative;
  overflow: hidden;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.checkout-price-details {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.checkout-price-details h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.checkout-price-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.checkout-price-details strong {
  color: var(--ink);
  text-align: right;
}

.checkout-price-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checkout-price-total span,
.checkout-price-total strong {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.checkout-price-total strong,
.checkout-review-price,
.checkout-wallet-badge strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.checkout-price-total .coin-symbol {
  flex: 0 0 auto;
  vertical-align: 0;
}

.checkout-items,
.checkout-summary {
  display: grid;
  gap: 10px;
}

.checkout-items p,
.checkout-summary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: white;
}

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

.checkout-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.checkout-fields .span-2 {
  grid-column: span 2;
}

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

.cart-filled-head {
  animation: cartSoftIn 0.2s ease;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(23, 32, 27, 0.06);
  animation: cartSoftIn 0.22s ease;
}

.cart-item-image {
  position: relative;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.cart-item-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-item-body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
}

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

.cart-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbf8;
}

.cart-qty-control button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(23, 108, 79, 0.1);
  transition: transform 0.14s ease, background 0.14s ease;
}

.cart-qty-control button:hover,
.cart-qty-control button:active {
  background: var(--paper-soft);
  transform: scale(0.96);
}

.cart-qty-control strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
}

.cart-line-price {
  color: #6a4c0c;
  white-space: nowrap;
}

.cart-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  width: fit-content;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ead7d4;
  border-radius: 10px;
  background: #fffafa;
  color: var(--red);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.14s ease, transform 0.14s ease;
}

.cart-remove-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-remove-button span {
  font-size: 15px;
  line-height: 1;
}

.cart-remove-button:not(:has(.cart-remove-icon)) {
  font-size: 0;
}

.cart-remove-button:not(:has(.cart-remove-icon))::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v5M14 11v5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cart-remove-button:not(:has(.cart-remove-icon))::after {
  content: "Remove";
  font-size: 15px;
  line-height: 1;
}

.cart-remove-button:hover,
.cart-remove-button:active {
  border-color: #e7a79f;
  background: #fff3f1;
  transform: translateY(-1px);
}

.cart-item-actions,
.checkout-nav,
.cart-total-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-item-actions .cart-remove-button {
  justify-self: stretch;
  min-height: 42px;
  border-radius: 10px;
  background: #fffafa;
}

.cart-item-actions .primary-button {
  width: 100%;
  min-height: 42px;
}

.cart-review-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--green-dark);
  box-shadow: 0 8px 22px rgba(23, 32, 27, 0.05);
  font-weight: 900;
}

.cart-total-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(23, 32, 27, 0.08);
}

.cart-total-bar small {
  color: var(--muted);
  font-weight: 800;
}

.cart-price-details {
  gap: 9px;
  padding: 14px 16px;
}

.cart-price-details h3 {
  font-size: 21px;
}

.cart-price-details > div {
  font-size: 16px;
  line-height: 1.25;
}

.cart-price-details .checkout-delivery-info {
  display: grid;
  align-items: start;
  justify-content: start;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.cart-price-details .checkout-price-total {
  margin-top: 6px;
  padding-top: 12px;
  align-items: center;
}

.cart-price-details .checkout-price-total span,
.cart-price-details .checkout-price-total strong {
  font-size: 20px;
  line-height: 1;
}

.cart-price-details .checkout-price-total strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cart-required-coins {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.cart-required-coins .coin-symbol {
  width: 30px;
  height: 26px;
  font-size: 10px;
}

.cart-price-details .checkout-price-total .coin-symbol {
  flex: 0 0 auto;
  vertical-align: 0;
}

.cart-price-details .primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  padding: 0 16px;
  font-size: 17px;
}

.cart-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 41, 55, 0.26);
  animation: cartFadeIn 0.16s ease;
}

.cart-confirm-modal {
  display: grid;
  gap: 16px;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 22px 60px rgba(31, 41, 55, 0.2);
}

.cart-confirm-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.cart-confirm-modal div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-delivery-info {
  align-items: flex-start !important;
  display: grid !important;
  justify-content: stretch !important;
  gap: 5px !important;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@keyframes cartSoftIn {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cartFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.mini-steps span {
  padding: 8px;
  border-radius: 8px;
  background: #eef8f2;
  font-size: 12px;
  text-align: center;
}

.admin-grid article {
  display: grid;
  gap: 8px;
}

.wide-card {
  grid-column: span 3;
}

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

.admin-section-head > div {
  display: grid;
  gap: 5px;
}

.admin-section-head .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}

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

.admin-product-form .span-2 {
  grid-column: span 2;
}

.admin-product-manager {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.admin-product-thumb {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
}

.admin-product-row > div:not(.admin-product-thumb):first-of-type {
  display: grid;
  gap: 6px;
}

.admin-product-row span {
  color: var(--muted);
}

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

.danger-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #f0b7ad;
  border-radius: 8px;
  background: #fff3f1;
  color: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.danger-button:hover {
  background: #ffe4df;
}

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

.admin-list.is-collapsed {
  display: none;
}

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

.admin-row.stacked {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.admin-actions .admin-status-done:disabled {
  border-color: #bfe8c0;
  background: #eef9e7;
  color: var(--green);
  opacity: 1;
}

.admin-order-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-images a {
  display: block;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-order-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.admin-photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.task-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search-shell,
  .main-nav {
    grid-column: 1 / -1;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a {
    min-width: max-content;
  }

  .hero,
  .product-detail,
  .sell-layout,
  .wallet-layout,
  .auth-layout,
  .partner-layout {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .category-grid,
  .profile-grid,
  .support-grid,
  .policy-grid,
  .admin-grid,
  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    display: block;
    white-space: nowrap;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 6px;
  }

  .icon-button,
  .wallet-pill {
    min-height: 38px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .wallet-pill {
    padding: 0 10px;
  }

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

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .page {
    padding: 18px 12px 44px;
  }

  .hero {
    padding: 20px;
    min-height: auto;
  }

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

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

  .hero-panel {
    gap: 10px;
  }

  .status-card,
  .hero-login-card {
    padding: 14px;
  }

  .status-card strong {
    margin: 5px 0 8px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
    overflow: visible;
  }

  .main-nav a {
    gap: 4px;
    min-width: 0;
    justify-content: center;
    padding: 0 4px;
    font-size: 12px;
  }

  .main-nav #cartNavLink {
    min-height: 40px;
  }

  .main-nav svg {
    width: 16px;
    height: 16px;
  }

  .main-nav a::before {
    left: 5px;
    right: 5px;
  }

  .main-nav #cartNavLink .cart-count-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
  }

  .product-grid,
  .quick-grid,
  .profile-grid,
  .support-grid,
  .policy-grid,
  .admin-grid,
  .orders-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .empty-cart {
    padding: 10px;
  }

  .empty-cart-head {
    padding: 9px;
  }

  .cart-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .cart-summary {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .empty-cart-panel {
    padding: 20px 14px;
  }

  .empty-cart-illustration {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .empty-cart-illustration svg {
    width: 50px;
    height: 50px;
  }

  .empty-cart-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .empty-cart-product {
    padding: 8px;
  }

  .empty-orders {
    padding: 10px;
  }

  .empty-orders-card {
    padding: 20px 14px;
  }

  .empty-orders-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  .empty-orders-icon svg {
    width: 50px;
    height: 50px;
  }

  .orders-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .order-detail-card {
    padding: 12px;
  }

  .order-detail-top,
  .order-detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-total-box {
    justify-items: start;
  }

  .order-status-copy {
    align-items: flex-start;
  }

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

  .order-progress strong {
    font-size: 11px;
  }

  .order-item-row {
    align-items: flex-start;
  }

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

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

  #page-account {
    border-radius: 0;
  }

  #accountGrid.profile-grid {
    gap: 12px;
  }

  .account-profile-card,
  .account-wallet-card {
    align-items: flex-start;
  }

  .account-profile-card {
    padding: 14px;
  }

  .account-avatar {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .account-stats article {
    padding: 11px 9px;
  }

  .account-stats strong {
    font-size: 21px;
  }

  .account-stats span {
    font-size: 11px;
    line-height: 1.2;
  }

  .account-quick-actions {
    gap: 8px;
  }

  .account-quick-actions a {
    min-height: 62px;
    padding: 11px;
  }

  .account-wallet-card {
    display: grid;
  }

  .account-wallet-card strong {
    font-size: 23px;
  }

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

  .account-logout-row {
    justify-content: stretch;
  }

  .logout-outline-button {
    width: 100%;
  }

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

  #categoryGrid {
    min-height: 124px;
  }

  #featuredProducts {
    min-height: 620px;
  }

  .category-card {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 58px;
    gap: 8px;
    padding: 9px;
  }

  .category-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .category-icon svg {
    width: 18px;
    height: 18px;
  }

  .category-card h3 {
    font-size: 15px;
    line-height: 1.1;
  }

  .product-visual {
    aspect-ratio: 1.05 / 1;
  }

  .product-body {
    padding: 8px;
  }

  .product-body h3 {
    height: 34px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.28;
  }

  .product-card p {
    margin: 6px 0 0;
    font-size: 12px;
  }

  .product-card .badge {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card .coin-price {
    font-size: 18px;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .card-actions button {
    min-height: 36px;
    padding: 7px;
    font-size: 12px;
  }

  .detail-panel h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  .detail-image {
    min-height: 260px;
  }

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

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

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

  .cart-item-body strong {
    font-size: 15px;
  }

  .cart-price-row {
    align-items: center;
    gap: 8px;
  }

  .cart-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cart-item-actions button {
    min-height: 42px;
    padding: 8px;
  }

  .cart-item-actions .cart-remove-button {
    font-size: 0;
  }

  .cart-remove-icon,
  .cart-remove-button:not(:has(.cart-remove-icon))::before {
    width: 24px;
    height: 24px;
  }

  .cart-remove-button span,
  .cart-remove-button:not(:has(.cart-remove-icon))::after {
    font-size: 14px;
  }

  .cart-price-details {
    padding: 12px 14px;
  }

  .cart-price-details > div {
    align-items: center;
    font-size: 15px;
  }

  .cart-price-details .checkout-price-total span,
  .cart-price-details .checkout-price-total strong {
    font-size: 17px;
  }

  .cart-price-details .primary-button {
    min-height: 50px;
    font-size: 16px;
  }

  .cart-total-bar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .cart-total-bar .primary-button {
    grid-column: 1 / -1;
  }

  .checkout-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-wallet-badge {
    min-width: 0;
  }

  .checkout-review-item {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }

  .checkout-review-image {
    width: 54px;
    height: 54px;
  }

  .checkout-review-price {
    grid-column: 2;
    justify-self: end;
    margin-top: -2px;
    font-size: 14px;
  }

  .wide-card {
    grid-column: span 1;
  }

  .inline-form,
  .admin-product-form,
  .checkout-fields,
  .upi-reference-form,
  .admin-row,
  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .admin-product-actions {
    justify-content: flex-start;
  }

  .admin-product-form .span-2,
  .checkout-fields .span-2 {
    grid-column: span 1;
  }

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

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

  .wallet-pill {
    max-width: 120px;
    overflow: hidden;
  }
}
