:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --line: #e7e7e7;
  --text: #222;
  --muted: #6d6d6d;
  --primary: #000000;
  --primary-hover: #000000;
  --header-grad-start: #000000;
  --header-grad-end: #000000;
  --font-body: "Manrope", "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Sora", "Manrope", "Inter", "Segoe UI", sans-serif;
}

/* Normalize button corners to be more square across the app */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
a.btn,
.admin-btn,
a.admin-btn,
.admin-icon-btn,
.user-nav > a,
.banner-nav,
.detail-nav,
.detail-thumb,
.admin-mobile-toggle,
.admin-edit-gallery-nav,
.admin-edit-thumb {
  border-radius: 2px !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

input,
select,
textarea,
button {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: var(--font-display);
}

.container {
  width: min(1220px, 94%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--header-grad-start), var(--header-grad-end));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.top-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-strip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: #fff;
  font-size: 12px;
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0 16px;
}

.brand {
  margin: 0;
  text-decoration: none;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px;
}

.brand-name {
  line-height: 1;
}

.fake-search input {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}

.fake-search input::placeholder {
  color: #999;
}

.user-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-nav > a,
.user-nav > form > button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.cart-link {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cart-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.user-nav form {
  margin: 0;
}

.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-toggle {
  margin: 0;
  list-style: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-toggle::-webkit-details-marker {
  display: none;
}

.profile-toggle::marker {
  content: "";
}

.profile-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 170px;
  border-radius: 10px;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: none;
  gap: 6px;
  z-index: 20;
}

.profile-menu[open] .profile-dropdown {
  display: grid;
}

.profile-dropdown form {
  margin: 0;
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.profile-dropdown button:hover,
.profile-dropdown a:hover {
  background: #e5e7eb;
}

.hero {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #f1d2ca;
  border-radius: 10px;
  background-image: linear-gradient(120deg, #fff, #fff4f1);
}

.eyebrow {
  color: #000000;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.hero h2 {
  margin: 8px 0;
}

.hero p {
  margin: 0;
  max-width: 820px;
}

.hero-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips span {
  background: #fff;
  border: 1px solid #ffd8cf;
  color: #c93f23;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.banner-strip {
  margin: 12px 0 18px;
  position: relative;
}

.banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.banner-nav:hover {
  background: rgba(0, 0, 0, 0.38);
}

.banner-nav-prev {
  left: 10px;
}

.banner-nav-next {
  right: 10px;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 1983 / 793;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: var(--surface);
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-card-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
}

.banner-card-caption strong {
  display: inline-flex;
  max-width: min(100%, 420px);
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.banner-dots {
  display: none;
}

.banner-dots a {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ddd;
  display: inline-block;
}

.banner-dots a.is-active {
  background: var(--primary);
}

.store-toolbar {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}

.store-section {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

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

.store-section-copy {
  display: grid;
  gap: 5px;
}

.store-section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3e0;
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-section-copy h2,
.store-section-copy p {
  margin: 0;
}

.store-section-copy h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  color: #0f172a;
}

.store-section-copy p {
  color: #64748b;
  font-size: 14px;
}

.store-see-all-card {
  margin: 12px 0 12px;
  padding: 12px 14px;
  border: 1px solid #eceff3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.store-see-all-copy {
  display: grid;
  gap: 2px;
}

.store-see-all-copy p,
.store-see-all-kicker {
  margin: 0;
}

.store-see-all-kicker {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-see-all-copy p {
  color: #5f6b7d;
  font-size: 13px;
  line-height: 1.35;
}

.store-see-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d9dee6;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.store-see-all-link:hover {
  border-color: #c8d0da;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.store-see-all-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.home-category-strip {
  display: grid;
  gap: 14px;
  margin: 26px 0 10px;
}

.home-category-strip-head h2,
.home-category-strip-head p {
  margin: 0;
}

.home-category-strip-head p {
  margin-top: 4px;
  color: #5f6b7d;
}

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

.home-category-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.home-category-card.is-active {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fff8eb 0%, #fff 100%);
}

.home-category-card img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
  border: 1px solid #eef2f7;
}

.home-category-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  color: #111827;
}

.home-category-card-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.home-category-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-category-card strong {
  font-size: 14px;
  line-height: 1.2;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-category-card small {
  font-size: 10px;
  color: #6b7280;
}

.home-poster-strip {
  display: grid;
  gap: 10px;
  margin: 18px 0 10px;
}

.home-poster-strip-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: #111827;
}

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

.home-poster-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

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

.store-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 220px 220px auto;
  gap: 8px;
}

.store-filter-form input,
.store-filter-form select {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.store-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-toolbar-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.store-voucher-feedback {
  margin: 0 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.store-voucher-feedback-success {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.store-voucher-feedback-warning {
  border-color: #fde68a;
  background: #fef9c3;
  color: #92400e;
}

.store-voucher-feedback-error {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.voucher-strip {
  margin: 8px 0 12px;
  padding: 8px;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf3 0%, #ffffff 46%, #f8fafc 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.voucher-strip-head {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}

.voucher-strip-head h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.voucher-strip-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.voucher-strip-list {
  margin: 0;
  display: flex;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.voucher-strip-list::-webkit-scrollbar {
  display: none;
}

.voucher-mini-card {
  flex: 0 0 250px;
  border: 1px solid #f1d3ad;
  border-radius: 12px;
  background: #fff;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  scroll-snap-align: start;
}

.voucher-mini-card:last-child {
  margin-right: 2px;
}

.voucher-mini-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.voucher-mini-main strong {
  display: block;
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.voucher-mini-code {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  width: fit-content;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid #fdba74;
  color: #9a3412;
  background: #fff7ed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.voucher-mini-meta {
  margin-top: 4px;
  display: grid;
  gap: 1px;
}

.voucher-mini-meta span {
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-mini-meta a {
  color: #0f172a;
}

.voucher-mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.voucher-mini-actions form {
  margin: 0;
}

.voucher-mini-actions .btn {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.card-empty {
  grid-column: 1 / -1;
}

.store-load-more {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}

.store-load-more-static {
  margin: 2px 0 0;
}

.card {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card-media-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.card-discount-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.22);
}

.card-discount-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-has-free-shipping {
  border-color: #f5d0a5;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.12);
}

.card-free-shipping-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}

.card-free-shipping-tag img {
  width: 48px;
  height: auto;
  max-width: none;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

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

.card-body h3 {
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.card-body p {
  color: var(--muted);
  min-height: 38px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: #b45309;
  font-family: var(--font-display);
  white-space: nowrap;
}

.card-price-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef2f7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(78px, 7vw, 92px);
  align-items: start;
  gap: 5px;
}

.card-price-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.card-price-stack strong {
  margin: 0;
  padding: 0;
  border: 0;
}

.card-price-stack span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: line-through;
}

.card-price-badges {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 3px;
  width: 48px;
  min-height: 18px;
  margin-top: -1px;
}

.card-body .btn {
  margin-top: auto;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.card-cart-form {
  margin: 0;
  display: flex;
}

.btn-icon {
  width: 48px;
  min-width: 48px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-actions .btn {
  margin-top: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.card-actions > .btn:not(.btn-icon) {
  width: 100%;
}

.btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

.btn-secondary {
  background: #f4f4f4;
  color: #373737;
}

.btn-small {
  padding: 7px 10px;
}

.btn-ghost {
  background: transparent;
  color: #a94438;
  border: 1px solid #efc7c0;
}

.btn-ghost:hover {
  background: #fff4f2;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.checkout-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin: 24px 0;
}

.checkout-product,
.checkout-form,
.payment-box,
.order-status {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--surface);
}

.checkout-address-preview {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.checkout-address-preview strong,
.checkout-address-preview small {
  display: block;
}

.checkout-address-preview p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-product img {
  width: 100%;
  border-radius: 8px;
}

.checkout-price-wrap {
  margin-top: 10px;
  display: grid;
  gap: 3px;
}

.checkout-price-wrap strong {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  color: #b45309;
}

.checkout-price-wrap span {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
}

.checkout-discount-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}

.product-slider {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-slider-track {
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.product-slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 0;
}

.product-detail-page {
  padding: 24px 0 40px;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "gallery summary"
    "actions summary";
  gap: 18px;
  align-items: start;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-detail-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "summary"
      "actions"
      "description";
    gap: 12px;
  }

  .product-detail-page {
    padding: 16px 0 28px;
  }
}

.product-detail-gallery {
  grid-area: gallery;
}

.product-detail-gallery,
.product-detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.product-detail-gallery {
  padding: 16px;
}

.detail-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.detail-slide {
  margin: 0;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

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

.detail-slide video {
  background: #0f172a;
  object-fit: contain;
}

.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.36);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.detail-nav-prev {
  left: 12px;
}

.detail-nav-next {
  right: 12px;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.detail-thumb {
  flex: 0 0 68px;
  width: 68px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

.detail-thumb.is-active {
  border-color: #111827;
}

.detail-thumb img,
.detail-thumb video {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
}

.detail-video-thumb {
  background: #0f172a;
}

@media (max-width: 640px) {
  .detail-thumbs {
    gap: 6px;
  }

  .detail-thumb {
    flex-basis: 56px;
    width: 56px;
  }

  .detail-thumb img,
  .detail-thumb video,
  .detail-video-thumb {
    height: 56px;
  }
}

.product-detail-card {
  padding: 22px;
}

.product-detail-summary {
  grid-area: summary;
}

.product-detail-description-panel {
  grid-area: description;
}

.product-detail-notes-desktop {
  display: block;
}

.related-products-section {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head p {
  margin-top: 4px;
  color: #64748b;
}

.related-product-grid {
  margin-top: 0;
}

.product-detail-card h1,
.product-detail-card h3 {
  margin: 0;
}

.product-detail-card h1 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  font-family: var(--font-display);
}

.product-detail-price {
  display: block;
  margin-top: 2px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0;
  font-family: var(--font-display);
}

.product-detail-price-wrap {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-discount-pill {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.product-detail-price-meta {
  margin-top: 2px;
}

.product-detail-price-old {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
}

.product-detail-sold {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  font-family: var(--font-display);
}

.product-detail-description {
  margin: 14px 0 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}

.product-detail-notes {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
}

.product-detail-notes p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.7;
}

.product-detail-notes-text {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-store-card {
  min-height: 108px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.product-store-logo {
  width: 68px;
  height: 68px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
}

.product-store-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-store-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-store-name strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.product-store-verified {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #1687f8;
  color: #fff;
  display: inline-grid;
  place-items: center;
}

.product-store-verified svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-store-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.product-store-visit {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #d4a017;
  border-radius: 8px;
  color: #8a5a00;
  background: #fffaf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.product-store-visit:hover,
.product-store-visit:focus-visible {
  border-color: #b7791f;
  background: #fff3d6;
  color: #6b4600;
}

.product-size-guide-image {
  display: block;
  width: min(100%, 540px);
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin: 14px 0 10px;
}

.product-detail-actions {
  grid-area: actions;
  display: grid;
  gap: 10px;
}

.product-detail-description-panel .product-detail-notes {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 1025px) {
  .product-detail-description-panel {
    display: none;
  }
}

@media (max-width: 1024px) {
  .product-store-card-desktop {
    display: none;
  }
}

@media (max-width: 520px) {
  .product-store-card {
    min-height: 92px;
    margin-top: 16px;
    padding: 12px;
    gap: 10px;
  }

  .product-store-logo {
    width: 52px;
    height: 52px;
  }

  .product-store-name {
    gap: 4px;
  }

  .product-store-name strong {
    font-size: 13px;
  }

  .product-store-verified {
    width: 17px;
    height: 17px;
  }

  .product-store-verified svg {
    width: 12px;
    height: 12px;
  }

  .product-store-label {
    font-size: 11px;
  }

  .product-store-visit {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }
}

.product-variant-block {
  display: grid;
  gap: 8px;
}

.product-color-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.product-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 5px;
}

.product-color-option {
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: #1e293b;
}

.product-color-option img {
  width: 100%;
  max-width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
}

.product-color-option span {
  font-size: 12px;
  font-weight: 800;
}

.product-color-option.is-text-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
}

.product-color-option.is-text-only span {
  font-size: 13px;
}

.product-color-option.is-active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.product-size-option {
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
  min-height: 32px;
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: #1e293b;
}

.product-size-option span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.product-size-option.is-active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.product-size-option:disabled,
.product-size-option.is-disabled {
  cursor: not-allowed;
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

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

.product-stock-note {
  display: none;
  margin: -2px 0 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.product-stock-note.is-visible {
  display: block;
}

.product-detail-actions .btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
}

.qty-stepper-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.qty-stepper input[type="number"] {
  width: 92px;
  min-height: 44px;
  text-align: center;
  margin: 0;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  background: #fff;
}

.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 640px) {
  .qty-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .qty-stepper input[type="number"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

.product-cart-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-cart-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.product-share-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-share-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.product-share-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
}

.product-share-dialog {
  width: min(100%, 380px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  padding: 14px;
}

.product-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.product-share-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.product-share-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.product-share-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.product-share-option {
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.product-share-option:hover,
.product-share-option:focus-visible {
  border-color: #111827;
  outline: 0;
}

.product-share-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  display: inline-grid;
  place-items: center;
}

.product-share-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.product-share-icon-copy {
  background: #e2e8f0;
  color: #0f172a;
}

.product-share-icon-instagram {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 52%, #6228d7 100%);
  color: #fff;
}

.product-share-icon-facebook {
  background: #1877f2;
  color: #fff;
}

.product-share-icon-tiktok {
  background: #111827;
  color: #fff;
}

.product-share-icon-whatsapp {
  background: #25d366;
  color: #fff;
}

.product-share-feedback {
  min-height: 18px;
  margin: 10px 0 0;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.checkout-form input,
.checkout-form textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font: inherit;
}

.checkout-form label {
  font-size: 14px;
  color: #575757;
  margin-top: 4px;
}

.checkout-voucher-note {
  display: block;
  margin-top: -2px;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

.checkout-voucher-note.is-valid {
  color: #15803d;
  font-weight: 700;
}

.checkout-voucher-note.is-invalid {
  color: #b91c1c;
  font-weight: 700;
}

.checkout-variant-summary {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-variant-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1e293b;
  background: #f8fbff;
}

.shipping-options {
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.shipping-options-status {
  color: #475569;
  font-size: 13px;
  margin-bottom: 8px;
}

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

.shipping-contact-card {
  margin-top: 10px;
  padding: 0;
}

.shipping-contact-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  background: #1d9b54;
  color: #ffffff;
  border: 1px solid #1d9b54;
}

.shipping-contact-btn:hover {
  background: #168347;
}

.shipping-contact-btn.is-disabled,
.shipping-contact-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.shipping-group {
  display: grid;
  gap: 6px;
}

.shipping-group-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.shipping-group-collapse > summary {
  cursor: pointer;
  list-style: none;
}

.shipping-group-collapse > summary::-webkit-details-marker {
  display: none;
}

.shipping-group-collapse > summary::after {
  content: " \25be";
  font-size: 10px;
}

.shipping-group-collapse[open] > summary::after {
  content: " \25b4";
}

.shipping-group-collapse .shipping-group-list {
  margin-top: 6px;
}

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

.shipping-option {
  display: grid;
  grid-template-columns: auto 36px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.shipping-option input[type="radio"] {
  width: 16px;
  height: 16px;
}

.shipping-option-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.shipping-option-meta {
  display: grid;
  gap: 2px;
}

.shipping-option-meta strong {
  font-size: 13px;
}

.shipping-option-meta small {
  color: #6b7280;
}

.payment-box,
.order-status {
  margin-top: 24px;
}

.actions {
  margin-top: 12px;
}

.order-status h2 {
  margin-bottom: 4px;
}

.order-subtitle {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.order-product-preview {
  margin: 0 0 12px;
}

.order-product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: inline-block;
}

.order-meta-item {
  margin: 0;
  padding: 7px 0;
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #eef2f7;
  line-height: 1.45;
}

.order-meta-item strong {
  color: #111827;
  font-size: 13px;
}

.order-cost-breakdown {
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 8px 12px;
  margin: 12px 0;
}

.order-cost-breakdown p {
  margin: 0;
  padding: 6px 0;
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
}

.order-cost-breakdown p:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.order-feedback {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.order-status .actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #fff1ed;
  border: 1px solid #ffd8cf;
  color: #bc3b21;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Status-specific badge colors */
.badge-paid {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.badge-failed {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

.badge-pending {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.badge-shipping-belum_dibayar {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.badge-shipping-dikemas {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}

.badge-shipping-proses_kirim {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.badge-shipping-sudah_sampai {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.badge-shipping-ditolak {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

/* Sync box */
.sync-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfcfe;
}

.sync-info {
  margin: 0 0 10px;
  font-size: 14px;
  color: #5d4037;
}

.btn-sync {
  background: #111827;
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-sync:hover {
  background: #374151;
}

.btn-sync:disabled {
  background: #bbb;
  cursor: not-allowed;
}

.proof-delivery-btn {
  margin-left: 8px;
  padding: 9px 14px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .order-status {
    padding: 14px;
  }

  .order-meta-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .order-cost-breakdown p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .order-meta-item strong {
    margin-bottom: 4px;
  }

  .order-status .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-status .actions .btn {
    width: 100%;
    text-align: center;
  }

  .proof-delivery-btn {
    display: block;
    margin: 8px 0 0;
    width: 100%;
    text-align: center;
  }

  .shipping-step {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 7px 9px;
  }

  .order-product-thumb {
    width: 48px;
    height: 48px;
  }
}

.report-wrap {
  margin: 16px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.report-wrap h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.report-card-strong {
  border-color: #ffd8cf;
  background: #fff6f4;
}

.report-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.report-value {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.report-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.report-footnote {
  margin-top: 10px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 10px;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #fff6f4;
  color: #9b3824;
}

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

/* ── Checkout summary ──────────────────────────────────────────────── */
.checkout-summary {
  margin-top: 12px;
  border: 1px solid #e3f2fd;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row small {
  color: var(--muted);
}

.summary-total {
  border-top: 2px solid var(--primary);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
}

.summary-total strong {
  color: var(--primary);
  font-size: 18px;
}

/* ── Order cost breakdown ──────────────────────────────────────────── */
.order-cost-breakdown {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  background: #fafafa;
}

.order-cost-breakdown p {
  margin: 4px 0;
}

.total-highlight {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* ── Helpers ───────────────────────────────────────────────────────── */
.text-muted {
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid #ebebeb;
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer-block {
  margin-top: 168px;
  padding: 0;
  border-top: 0;
  background: #0b0b0b;
  color: #d4d4d8;
  font-family: var(--font-body);
}

.site-footer-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 38px 0 30px;
  align-items: start;
}

.site-footer-col {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.site-footer-col h3 {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer-title-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  color: #e5e7eb;
}

.site-footer-title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-col a,
.site-footer-col p {
  margin: 0;
  color: #d4d4d8;
  text-decoration: none;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.site-footer-col a:hover {
  color: #f5f5f5;
}

.site-footer-col-brand {
  gap: 14px;
}

.site-footer-brand-title {
  margin: 0;
  display: block;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer-points li {
  color: #d4d4d8;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 0;
}

.site-footer-bottom small {
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
}

.site-footer-credit-separator {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.45;
}

.site-footer-credit {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-credit:hover,
.site-footer-credit:focus-visible {
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

.site-footer-inner,
.site-footer-brand,
.site-footer-shortcuts,
.site-footer-link {
  display: none;
}

.ai-chat-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.ai-chat-toggle,
.ai-chat-panel {
  pointer-events: auto;
}

.ai-chat-toggle {
  position: relative;
  width: 72px;
  height: 72px;
  border: 2px solid #ffffff;
  border-radius: 999px !important;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.36);
}

.ai-chat-toggle:focus-visible,
.ai-chat-close:focus-visible,
.ai-chat-whatsapp:focus-visible,
.ai-chat-form button:focus-visible,
.ai-chat-suggestions button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.35);
  outline-offset: 3px;
}

.ai-chat-toggle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ai-chat-panel {
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.ai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: #111827;
  color: #ffffff;
}

.ai-chat-head-identity,
.ai-chat-head-actions {
  display: flex;
  align-items: center;
}

.ai-chat-head-identity {
  min-width: 0;
  gap: 9px;
}

.ai-chat-head-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.ai-chat-head-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 !important;
}

.ai-chat-head-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-chat-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.ai-chat-head span {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.ai-chat-whatsapp,
.ai-chat-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-whatsapp {
  background: #128c50;
  text-decoration: none;
}

.ai-chat-whatsapp:hover {
  background: #0f7444;
}

.ai-chat-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ai-chat-messages {
  display: grid;
  align-content: start;
  gap: 9px;
  height: min(360px, calc(100vh - 260px));
  min-height: 210px;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ai-chat-bubble {
  max-width: 86%;
  border-radius: 8px;
  padding: 9px 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-chat-bubble-bot {
  justify-self: start;
  background: #e6fffb;
  border: 1px solid #99f6e4;
}

.ai-chat-bubble-user {
  justify-self: end;
  background: #111827;
  color: #ffffff;
}

.ai-chat-rich {
  white-space: normal;
}

.ai-chat-rich p {
  margin: 0 0 7px;
}

.ai-chat-rich p:last-child {
  margin-bottom: 0;
}

.ai-chat-rich ul,
.ai-chat-rich ol {
  margin: 4px 0 7px;
  padding-left: 19px;
}

.ai-chat-rich li {
  margin: 0 0 5px;
}

.ai-chat-rich li:last-child {
  margin-bottom: 0;
}

.ai-chat-answer-heading {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.ai-chat-link {
  max-width: 100%;
  min-height: 32px;
  margin: 6px 4px 2px 0;
  border: 1px solid #0f766e;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.ai-chat-link:hover {
  background: #115e59;
  border-color: #115e59;
}

.ai-chat-link span {
  flex: 0 0 auto;
  font-size: 14px;
}

.ai-chat-image-card {
  width: 100%;
  max-width: 220px;
  margin: 7px 0 3px;
  border: 1px solid #bfe8e1;
  border-radius: 7px;
  background: #ffffff;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.ai-chat-image-card img {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
}

.ai-chat-image-card span {
  display: block;
  padding: 7px 9px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.ai-chat-image-card:hover span {
  color: #115e59;
}

.ai-chat-table-wrap {
  max-width: 100%;
  margin-top: 5px;
  overflow-x: auto;
  border: 1px solid #bfe8e1;
  border-radius: 6px;
  background: #ffffff;
}

.ai-chat-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ai-chat-table-wrap th,
.ai-chat-table-wrap td {
  min-width: 90px;
  padding: 7px;
  border-bottom: 1px solid #dff3ef;
  text-align: left;
  vertical-align: top;
}

.ai-chat-table-wrap th {
  background: #dff7f2;
  color: #115e59;
  font-weight: 900;
}

.ai-chat-table-wrap tr:last-child td {
  border-bottom: 0;
}

.ai-chat-bubble-thinking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
}

.ai-chat-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ai-chat-thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f766e;
  animation: ai-chat-thinking 1.1s ease-in-out infinite;
}

.ai-chat-thinking-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.ai-chat-thinking-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes ai-chat-thinking {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.ai-chat-suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 14px 12px;
  background: #ffffff;
  box-shadow: inset 0 12px 14px -14px rgba(15, 23, 42, 0.28);
}

.ai-chat-suggestions button {
  flex: 0 0 188px;
  width: 188px;
  min-height: 52px;
  border: 1px solid #ccfbf1;
  border-radius: 6px !important;
  background: #f0fdfa;
  color: #0f766e;
  padding: 7px 9px;
  display: -webkit-box;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.ai-chat-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 10px 11px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.ai-chat-form input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.ai-chat-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px !important;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ai-chat-form button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 520px) {
  .ai-chat-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .ai-chat-toggle {
    width: 66px;
    height: 66px;
  }

  .ai-chat-panel {
    width: calc(100vw - 24px);
  }

  .ai-chat-messages {
    height: min(330px, calc(100vh - 230px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-thinking-dots i {
    animation: none;
  }
}

@media (max-width: 768px) {
  .site-footer-block {
    margin-top: 120px;
  }

  .top-strip {
    display: none;
  }

  .nav-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .fake-search {
    display: none;
  }

  .user-nav {
    grid-area: nav;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }

  .user-nav > a,
  .user-nav > form > button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .brand {
    font-size: 26px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .site-footer-block-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 30px 0 24px;
    align-items: flex-start;
  }

  .site-footer-col {
    gap: 6px;
  }

  .site-footer-col h3 {
    font-size: 14px;
  }

  .site-footer-col a,
  .site-footer-col p,
  .site-footer-points li {
    font-size: 12px;
    line-height: 1.4;
  }

  .site-footer-brand-title {
    font-size: 15px;
  }

  .site-footer-title-icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .site-footer-bottom small {
    display: block;
    line-height: 1.45;
  }

  .site-footer-credit-separator {
    margin: 0 6px;
  }

  .cart-link {
    width: 36px;
    height: 36px;
  }

  .cart-link svg {
    width: 17px;
    height: 17px;
  }

  .cart-badge {
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    border-width: 1px;
  }

  .hero {
    padding: 14px;
  }

  .store-filter-form {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .store-toolbar {
    margin: 6px 0 10px;
    gap: 8px;
  }

  .store-section {
    gap: 10px;
    margin-bottom: 22px;
  }

  .store-section-copy h2 {
    font-size: 20px;
  }

  .store-section-copy p {
    font-size: 13px;
  }

  .store-see-all-card {
    margin: 10px 0 12px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 14px;
  }

  .store-see-all-kicker {
    font-size: 10px;
  }

  .store-see-all-copy p {
    font-size: 13px;
  }

  .store-see-all-link {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .store-toolbar-meta p {
    font-size: 12px;
  }

  .store-toolbar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .store-toolbar-meta .btn {
    width: 100%;
    text-align: center;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .voucher-strip {
    margin: 7px 0 11px;
    padding: 7px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px;
  }

  .voucher-strip-head {
    padding: 0 2px;
  }

  .voucher-strip-head h2 {
    font-size: 11px;
  }

  .voucher-strip-head p {
    margin-top: 1px;
    font-size: 9px;
  }

  .voucher-strip-list {
    gap: 6px;
  }

  .voucher-mini-card {
    flex: 0 0 202px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px 8px;
  }

  .voucher-mini-main strong {
    font-size: 11.5px;
  }

  .voucher-mini-code {
    min-height: 16px;
    padding: 0 5px;
    font-size: 8.5px;
  }

  .voucher-mini-meta span {
    font-size: 9px;
  }

  .voucher-mini-actions .btn {
    width: auto;
    min-height: 24px;
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .card-price-row {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 3px;
    align-items: start;
  }

  .card-body strong {
    font-size: clamp(14px, 3.8vw, 16px);
    white-space: nowrap;
  }

  .card-price-stack {
    gap: 1px;
  }

  .card-price-stack span {
    font-size: 11px;
  }

  .card-price-badges {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: 66px;
    min-height: 16px;
    margin-top: -1px;
  }

  .card-discount-tag {
    min-height: 16px;
    padding: 0 4px;
    font-size: 8px;
  }

  .card-discount-corner {
    top: 6px;
    left: 6px;
    min-height: 16px;
    padding: 0 5px;
    font-size: 8px;
  }

  .card-free-shipping-tag {
    width: 32px;
    height: 12px;
    padding: 0;
  }

  .card-free-shipping-tag img {
    width: 32px;
    height: auto;
  }

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

  .banner-nav {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    font-size: 16px;
  }

  .banner-card-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .banner-card-caption strong {
    max-width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }

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

  .home-category-card {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 50px;
    padding: 7px 8px;
    gap: 8px;
  }

  .home-category-card img {
    width: 36px;
    height: 36px;
  }

  .home-category-card-icon {
    width: 36px;
    height: 36px;
  }

  .home-category-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .home-category-card strong {
    font-size: 12px;
  }

  .home-category-card small {
    font-size: 9px;
  }

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

  .home-poster-strip-head h2 {
    font-size: 14px;
  }

  .card-body {
    padding: 8px;
    gap: 6px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-body strong {
    font-size: 16px;
  }

  .card-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .card-body h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .checkout-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "summary"
      "actions"
      "description";
    gap: 12px;
    overflow: hidden;
  }

  .product-detail-page {
    padding: 14px 0 24px;
  }

  .product-detail-page,
  .product-detail-shell,
  .product-detail-gallery,
  .product-detail-card,
  .product-detail-actions {
    width: 100%;
    min-width: 0;
  }

  .product-detail-gallery,
  .product-detail-card {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.05);
  }

  .product-detail-gallery {
    padding: 10px;
  }

  .detail-slider {
    border-radius: 12px;
  }

  .detail-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .detail-nav-prev {
    left: 8px;
  }

  .detail-nav-next {
    right: 8px;
  }

  .product-detail-card {
    padding: 14px;
  }

  .product-detail-notes-desktop {
    display: none;
  }

  .product-detail-card h1 {
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .product-detail-price {
    font-size: 28px;
  }

  .product-detail-notes {
    margin-top: 12px;
    padding-top: 12px;
  }

  .product-detail-notes p,
  .product-detail-notes-text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .product-size-guide-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
  }

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

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

  .product-color-option,
  .product-size-option {
    min-height: 34px;
    padding: 6px;
  }

  .product-color-option span,
  .product-size-option span {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .product-color-option img {
    max-width: 64px;
    height: 46px;
  }

  .detail-slider-track::-webkit-scrollbar,
  .detail-thumbs::-webkit-scrollbar {
    display: none;
  }

  .detail-slider-track,
  .detail-thumbs {
    scrollbar-width: none;
  }

  .qty-stepper {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 6px;
  }

  .qty-stepper-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    padding: 0;
    font-size: 20px;
  }

  .qty-stepper input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 16px;
  }

  .product-detail-actions form,
  .product-detail-actions #detail-checkout-link,
  .product-detail-actions .product-cart-btn {
    width: 100%;
  }

  .product-detail-actions .btn,
  .product-detail-actions form .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .account-head,
  .account-order {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .account-head {
    flex-direction: column;
  }

  .account-grid,
  .account-two {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

}

/* Admin */
.admin-body,
.admin-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 153, 0.32), transparent 28%),
    linear-gradient(180deg, #f7f4ef 0%, #eef2f6 55%, #f8fafc 100%);
}

.admin-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-mobile-toggle,
.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: #000;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.admin-brand,
.admin-login-brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand strong,
.admin-login-brand {
  font-weight: 900;
}

.admin-brand small {
  display: block;
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
}

.admin-brand img,
.admin-login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

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

.admin-nav a,
.admin-logout button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  color: #dbe4f0;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  text-decoration: none;
  font: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.admin-nav a span,
.admin-nav a small {
  display: block;
}

.admin-nav a span {
  font-weight: 900;
}

.admin-nav a small {
  margin-top: 4px;
  color: rgba(219, 228, 240, 0.72);
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-logout button:hover {
  background: linear-gradient(135deg, #171717 0%, #262626 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.admin-nav a:hover small,
.admin-nav a.is-active small {
  color: rgba(255, 255, 255, 0.88);
}

.admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.admin-sidebar-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-note span,
.admin-sidebar-note strong {
  display: block;
}

.admin-sidebar-note span {
  color: rgba(219, 228, 240, 0.7);
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-sidebar-note strong {
  font-size: 14px;
  word-break: break-word;
}

.admin-main {
  width: 100%;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.admin-topbar h1,
.admin-panel h2,
.admin-login-panel h1,
.admin-hero h2 {
  margin: 0;
  line-height: 1.08;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-lead {
  margin: 10px 0 0;
  max-width: 680px;
  color: #526070;
}

.admin-profile,
.admin-hero,
.admin-stat,
.admin-panel,
.admin-login-panel {
  border: 1px solid rgba(222, 229, 236, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.admin-profile {
  min-width: 220px;
  padding: 14px 16px;
}

.admin-profile span,
.admin-profile strong {
  display: block;
}

.admin-profile span {
  color: #667386;
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-hero {
  padding: 24px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.96)),
    #fff;
}

.admin-hero-copy p {
  margin: 10px 0 0;
  max-width: 560px;
  color: #526070;
}

.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1d6;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.admin-btn:hover,
.admin-inline-form button:hover,
.admin-login-form button:hover {
  transform: translateY(-1px);
}

.admin-btn-primary,
.admin-inline-form button,
.admin-login-form button {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.16);
}

.admin-btn-secondary {
  border: 1px solid #d7dee7;
  background: #fff;
  color: #111827;
}

.admin-text-link,
.admin-mini-link {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-stats,
.admin-overview-grid,
.admin-content-grid {
  display: grid;
  gap: 16px;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-content-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.admin-stat {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.admin-stat span,
.admin-stat small,
.admin-panel-head p,
.admin-table small,
.admin-list-card small,
.admin-product-item small {
  color: #667386;
}

.admin-stat strong {
  font-size: 26px;
  line-height: 1.05;
}

.admin-stat-strong {
  border-color: rgba(17, 24, 39, 0.94);
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  color: #fff;
}

.admin-stat-strong span,
.admin-stat-strong small {
  color: #e5e7eb;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f5;
}

.admin-panel-head p {
  margin: 6px 0 0;
}

.admin-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.admin-metric-list div {
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfe;
}

.admin-metric-list span,
.admin-metric-list strong {
  display: block;
}

.admin-metric-list span {
  color: #667386;
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-metric-list strong {
  font-size: 28px;
  line-height: 1;
}

.admin-list-card-wrap {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.admin-list-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfe;
}

.admin-list-card strong,
.admin-list-card small {
  display: block;
}

.admin-empty,
.admin-empty-state {
  text-align: center;
  color: #667386;
}

.admin-empty-state {
  padding: 24px;
}

.admin-empty {
  padding: 28px !important;
}

.admin-feedback {
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.admin-feedback-success {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.admin-feedback-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.admin-product-panel {
  margin-bottom: 18px;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

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

.admin-products-layout .admin-panel {
  margin-bottom: 0;
}

.admin-products-list-panel .admin-panel-head {
  border-bottom: 1px solid #edf1f5;
}

.admin-products-list-panel .admin-panel-head .admin-btn {
  width: auto;
}

.admin-product-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

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

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

.admin-product-form label,
.admin-form-wide {
  display: grid;
  gap: 7px;
  color: #435064;
  font-weight: 800;
  font-size: 13px;
}

.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.admin-inline-form input,
.admin-inline-form select,
.admin-login-form input {
  min-width: 0;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  font: inherit;
  background: #fff;
}

.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-login-form input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.admin-btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-variant-card {
  border: 1px solid #e6edf6;
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
  display: grid;
  gap: 10px;
}

.admin-variant-card small {
  color: #667386;
}

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

.admin-variant-bulk-stock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

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

.admin-variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-variant-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.admin-size-guide-preview {
  display: grid;
  gap: 10px;
}

.admin-size-guide-preview img {
  width: min(360px, 100%);
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.admin-product-video-preview {
  width: min(420px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  display: block;
}

.admin-product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px;
}

.admin-category-layout,
.admin-category-list,
.admin-category-card,
.admin-category-products-form {
  display: grid;
  gap: 16px;
}

.admin-category-layout {
  margin-bottom: 18px;
}

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

.admin-category-list {
  padding: 22px;
}

.admin-category-card {
  border: 1px solid #edf1f5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  padding: 16px;
}

.admin-category-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-category-head.is-compact {
  grid-template-columns: minmax(0, 1fr);
}

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

.admin-category-head p {
  margin-top: 5px;
  color: #667386;
  font-weight: 800;
}

.admin-category-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-category-current-image {
  display: flex;
}

.admin-category-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid #e6ebf1;
  background: #f8fafc;
}

.admin-form-hint {
  margin: 0;
  color: #667386;
  font-size: 13px;
}

.admin-banner-list {
  padding: 22px;
}

.admin-banner-card {
  gap: 14px;
}

.admin-banner-preview {
  display: flex;
}

.admin-banner-image {
  width: min(100%, 520px);
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border: 1px solid #e6ebf1;
  background: #f8fafc;
}

.admin-banner-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-banner-meta h3,
.admin-banner-meta p {
  margin: 0;
}

.admin-banner-meta p {
  margin-top: 5px;
  color: #667386;
  font-weight: 700;
}

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

.admin-category-product-option {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e6edf6;
  background: #fff;
  padding: 10px;
  color: #435064;
  font-size: 13px;
  font-weight: 800;
}

.admin-category-product-option input {
  width: 18px;
  height: 18px;
}

.admin-category-product-option img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #e6ebf1;
}

.admin-category-product-option strong,
.admin-category-product-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-product-option small {
  margin-top: 3px;
  color: #667386;
}

.admin-product-list-compact {
  padding-top: 18px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.admin-product-row-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.admin-product-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
}

.admin-product-row-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-product-row-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.admin-product-card-meta {
  min-width: 0;
}

.admin-product-card-meta strong,
.admin-product-card-meta small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-card-meta small {
  margin-top: 4px;
  color: #667386;
}

.admin-product-price {
  font-size: 20px;
  line-height: 1.1;
  color: #111827;
  white-space: nowrap;
}

.admin-product-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-row-stats span,
.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-status-pill.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.admin-status-pill.is-draft {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-product-row-desc {
  margin: 0;
  color: #526070;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526070;
  font-size: 13px;
}

.admin-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.admin-product-actions,
.admin-product-delete {
  display: flex;
}

.admin-product-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.admin-product-row-actions .admin-btn {
  min-width: 104px;
}

.admin-product-actions .admin-btn,
.admin-product-delete .admin-btn {
  width: 100%;
}

.admin-product-delete {
  margin-top: auto;
}

.admin-btn-danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.admin-edit-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-edit-summary-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.admin-edit-gallery {
  position: relative;
  border: 1px solid #e6ebf1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.admin-edit-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.admin-edit-gallery-track::-webkit-scrollbar {
  display: none;
}

.admin-edit-slide {
  margin: 0;
  scroll-snap-align: start;
}

.admin-edit-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-edit-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.4);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-edit-gallery-prev {
  left: 10px;
}

.admin-edit-gallery-next {
  right: 10px;
}

.admin-edit-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
}

.admin-edit-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.admin-edit-thumb.is-active {
  border-color: #111827;
}

.admin-edit-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-edit-summary-copy {
  display: grid;
  gap: 12px;
}

.admin-edit-summary-copy h2,
.admin-edit-summary-copy p {
  margin: 0;
}

.admin-edit-summary-desc {
  color: #526070;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-edit-summary-desc.is-empty {
  color: #94a3b8;
  font-style: italic;
}

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

.admin-product-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.admin-product-item img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
}

.admin-product-item strong,
.admin-product-item small {
  display: block;
}

.admin-product-item small {
  margin-top: 4px;
}

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

.admin-orders-mobile-list {
  display: none;
}

.admin-order-mobile-item {
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  gap: 10px;
}

.admin-order-mobile-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
}

.admin-order-mobile-meta strong,
.admin-order-mobile-meta small {
  display: block;
}

.admin-order-mobile-meta small {
  margin-top: 3px;
}

.admin-order-mobile-total {
  white-space: nowrap;
}

.admin-order-mobile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-order-mobile-details summary {
  cursor: pointer;
  color: #334155;
  font-weight: 800;
}

.admin-order-mobile-details[open] summary {
  margin-bottom: 10px;
}

.admin-order-mobile-section + .admin-order-mobile-section {
  margin-top: 10px;
}

.admin-order-mobile-section span,
.admin-order-mobile-section strong,
.admin-order-mobile-section small,
.admin-order-mobile-section a {
  display: block;
}

.admin-order-mobile-section span {
  margin-bottom: 4px;
  color: #8b98a9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-order-mobile-section strong {
  margin-bottom: 4px;
}

.admin-order-mobile-section small + small {
  margin-top: 4px;
}

.admin-order-mobile-section .admin-inline-form {
  min-width: 0;
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: #f8fafc;
  color: #364152;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1f5;
  padding: 16px;
  vertical-align: top;
}

.admin-table td {
  background: rgba(255, 255, 255, 0.92);
}

.admin-table td > strong,
.admin-table td > small,
.admin-table td > .badge {
  display: block;
  margin-bottom: 6px;
}

.admin-rating-stars {
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #f59e0b;
}

.admin-review-text {
  margin: 0;
  white-space: pre-wrap;
  color: #1f2937;
  line-height: 1.45;
}

.admin-order-code {
  font-weight: 900;
  color: #111827;
  margin-bottom: 4px;
}

.admin-order-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid #e6ebf1;
  object-fit: cover;
  background: #f8fafc;
}

.admin-inline-form {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.admin-discount-form {
  min-width: 220px;
}

.admin-voucher-create-form {
  padding-top: 16px;
}

.admin-voucher-form {
  min-width: 250px;
}

.admin-voucher-chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
}

.admin-discount-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-voucher-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-product-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-discount-chip {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 900;
}

.admin-inline-form button,
.admin-login-form button {
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-inline-form button:disabled,
.admin-inline-form select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-icon-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: none;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.admin-toast.is-visible {
  display: block;
}

.admin-toast.is-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.admin-toast.is-warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.admin-toast.is-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.admin-login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-shell {
  width: min(100%, 430px);
}

.admin-login-panel {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.admin-login-brand {
  color: #111827;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
}

.admin-login-form button {
  min-height: 46px;
  margin-top: 8px;
}

.admin-login-error {
  border: 1px solid #fca5a5;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  font-weight: 800;
}

.auth-shell {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.auth-panel,
.account-card {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.auth-panel {
  width: min(100%, 460px);
  padding: 24px;
}

.auth-panel h2,
.account-page h2,
.account-card h3 {
  margin: 0;
}

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

.auth-form,
.account-form {
  display: grid;
  gap: 9px;
}

.auth-form label,
.account-form label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
}

.auth-form input,
.account-form input,
.account-form textarea,
.account-form select {
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font: inherit;
}

.avatar-upload-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar-upload-row input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #f8fafc;
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  object-fit: cover;
}

.auth-error,
.auth-success {
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.auth-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.auth-success {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: #111827;
  font-weight: 900;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d7dee7;
}

.auth-google {
  display: grid;
  gap: 8px;
}

.auth-google-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-google-note {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.account-page {
  padding: 28px 0 40px;
}

.cart-page {
  padding: 28px 0 40px;
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

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

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

.cart-item,
.cart-summary-card {
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

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

.cart-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #edf1f5;
}

.cart-item-body,
.cart-summary-card {
  display: grid;
  gap: 14px;
}

.cart-item-top,
.cart-item-bottom,
.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.cart-actions .btn {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-checkout-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cart-item-top p,
.cart-summary-card p {
  margin: 6px 0 0;
}

.cart-variant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
}

.cart-price,
.cart-line-total {
  min-width: 150px;
  text-align: right;
}

.cart-price span,
.cart-line-total span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-qty-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cart-qty-label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
  width: 100%;
}

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

.cart-qty-btn {
  min-width: 40px;
  padding: 8px 12px;
}

.cart-qty-value {
  min-width: 44px;
  text-align: center;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  color: #14212f;
}

.cart-summary-card {
  padding: 20px;
  position: sticky;
  top: 110px;
}

.cart-summary-card h3 {
  margin: 0;
}

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

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

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

.account-mini-card {
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.account-mini-card small,
.account-mini-card span {
  display: block;
  color: var(--muted);
}

.account-mini-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 24px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-sidebar,
.account-main {
  display: grid;
  gap: 16px;
}

.account-menu {
  display: grid;
  gap: 10px;
}

.account-menu-link {
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}

.account-menu-link:hover {
  background: #eef2f7;
}

.account-menu-link.is-active {
  border-color: #c1d0e2;
  background: #e8f0f9;
}

.account-logout {
  width: 100%;
  margin-top: 4px;
}

.account-card {
  padding: 20px;
  margin-bottom: 0;
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.account-kicker {
  margin: 0 0 4px;
  color: #7b8796;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-orders-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.account-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #334155;
}

.account-check input {
  width: auto;
  margin: 0;
}

.address-list,
.account-orders {
  display: grid;
  gap: 12px;
}

.address-item {
  border: 1px solid #e7edf4;
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
}

.address-item.is-primary {
  border-color: #cfddee;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.address-item-head,
.account-order-top,
.account-order-main,
.account-order-actions,
.address-title-row,
.address-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.address-item strong,
.address-item span,
.address-item small {
  display: block;
}

.address-item small {
  color: var(--muted);
}

.address-actions {
  justify-content: flex-end;
}

.address-actions form {
  margin: 0;
}

.badge-primary {
  background: #eaf3ff;
  border-color: #bfd7ff;
  color: #2457a6;
}

.account-order-card {
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.account-order-top small,
.account-order-meta small,
.order-product small {
  display: block;
  color: var(--muted);
}

.order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-order-id strong {
  font-size: 23px;
  line-height: 1.1;
}

.account-order-main {
  align-items: center;
  padding: 14px;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  background: #fafcff;
}

.account-order-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fff;
}

.order-product-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.account-order-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 1px solid #dce5ef;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.order-product {
  min-width: 0;
}

.order-product strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.account-order-actions {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.account-order-actions .btn {
  white-space: nowrap;
}

.account-order-actions form {
  margin: 0;
}

.cancel-order-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
}

.cancel-order-box form {
  display: grid;
  gap: 10px;
}

.cancel-order-box select,
.cancel-order-box input {
  border: 1px solid #f1b5b5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.cancel-order-box .cancel-reason-other {
  display: none;
}

.cancel-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-review-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fddf9b;
  border-radius: 12px;
  background: #fffbeb;
}

.order-review-box h3 {
  margin: 0;
  font-size: 18px;
}

.order-review-lead {
  margin: 6px 0 12px;
  color: #6b7280;
  font-size: 13px;
}

.order-review-form {
  display: grid;
  gap: 10px;
}

.order-review-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.order-review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-review-stars label {
  font-size: 28px;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.order-review-stars label:hover,
.order-review-stars label:hover ~ label,
.order-review-stars input:checked ~ label {
  color: #f59e0b;
}

.order-review-stars label:active {
  transform: scale(0.95);
}

.order-review-form textarea {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 84px;
  background: #fff;
}

.order-review-form button {
  width: fit-content;
}

.account-order-details {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fcfdff;
  overflow: hidden;
}

.account-order-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #14212f;
  padding: 12px 14px;
  user-select: none;
}

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

.account-order-details[open] summary {
  border-bottom: 1px solid #e8eef5;
}

.account-order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
}

.order-label {
  display: block;
  margin-bottom: 4px;
  color: #7b8796;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-total {
  text-align: right;
  min-width: 180px;
}

.order-total strong {
  font-size: 27px;
  line-height: 1.1;
}

.account-order-address {
  padding: 0 14px 14px;
}

.account-order-address p,
.account-empty p {
  margin: 0;
}

.order-notes {
  margin-top: 10px !important;
  color: #4b5563;
}

.account-empty {
  border: 1px dashed #d9e1ea;
  border-radius: 14px;
  padding: 18px;
  background: #fbfcfe;
}

.account-empty strong {
  display: block;
  margin-bottom: 6px;
}

.text-link {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.account-tracking-card {
  margin: 0;
  border-color: #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
  padding: 16px;
}

.account-tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.account-tracking-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.account-tracking-head small {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 2px;
}

.tracking-message,
.tracking-last {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.45;
}

.shipping-progress-chain {
  margin: 2px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
}

.progress-chain-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  flex: 0 0 auto;
}

.progress-chain-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.progress-chain-dot svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.progress-chain-label {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.progress-chain-link {
  width: 28px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 999px;
  flex: 0 0 28px;
}

.progress-chain-step.is-done {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.progress-chain-step.is-done .progress-chain-dot {
  background: #22c55e;
}

.progress-chain-step.is-current {
  border-color: #93c5fd;
  color: #1e3a8a;
  background: #eff6ff;
}

.progress-chain-step.is-current .progress-chain-dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}

.progress-chain-link.is-done {
  background: #86efac;
}

.tracking-message {
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #d9e9ff;
}

.tracking-message strong {
  font-size: 18px;
  color: #1d3557;
}

.shipping-timeline {
  margin: 0 0 12px;
  padding: 2px 0;
  display: grid;
  gap: 8px;
}

.shipping-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #6b7280;
}

.shipping-step-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 15px;
}

.shipping-step-label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.shipping-step.is-done {
  border-color: #cbd5e1;
  color: #1f2937;
  background: #f8fafc;
}

.shipping-step.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
}

.shipping-step.is-current .shipping-step-icon {
  background: #dbeafe;
}

.tracking-last {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tracking-last strong {
  display: block;
  margin-bottom: 4px;
}

.tracking-last small {
  display: inline-block;
  margin-top: 4px;
  color: #64748b;
}

.tracking-manifest {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #1f2937;
}

.tracking-manifest li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.tracking-manifest li.is-empty {
  color: #64748b;
  font-style: italic;
}

.tracking-time {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}

.tracking-desc {
  font-size: 14px;
  line-height: 1.45;
}

.tracking-live-wrap {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748b;
}

.tracking-live-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tracking-live-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-mobile-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1200;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .admin-mobile-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    display: block;
  }

  .admin-sidebar-backdrop.is-visible {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: min(86vw, 320px);
    height: 100vh;
    padding: 22px 18px;
    gap: 16px;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

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

  .admin-main {
    padding: 84px 16px 16px;
  }

  .admin-topbar {
    padding-left: 60px;
    min-height: 44px;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-profile {
    width: 100%;
    min-width: 0;
  }

  .admin-stats,
  .admin-overview-grid,
  .admin-content-grid,
  .admin-form-grid,
  .admin-category-create-grid,
  .admin-category-product-grid,
  .admin-products-layout,
  .admin-edit-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .admin-panel-head {
    padding: 14px;
  }

  .admin-metric-list,
  .admin-product-list,
  .admin-category-list,
  .admin-list-card-wrap,
  .admin-product-form {
    padding: 16px;
  }

  .admin-hero {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-list-card,
  .admin-product-item,
  .admin-product-row-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .admin-product-thumb,
  .admin-product-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .admin-list-card {
    display: grid;
  }

  .admin-product-row-actions,
  .admin-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-products-list-panel .admin-panel-head .admin-btn {
    width: 100%;
  }

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

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

  .admin-product-row-actions .admin-btn {
    min-width: 0;
  }

  .admin-orders-panel-orders .admin-orders-mobile-list {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .admin-orders-panel-orders .admin-table-wrap {
    display: none;
  }

  .admin-order-mobile-item {
    padding: 10px;
  }

  .admin-order-mobile-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .admin-order-mobile-total {
    grid-column: 2 / 3;
  }

  .admin-order-mobile-item .admin-order-thumb {
    width: 52px;
    height: 52px;
  }

  .admin-table {
    min-width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 16px;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255, 255, 255, 0.92);
  }

  .admin-table td {
    border: 0;
    padding: 0 0 14px;
  }

  .admin-table td:last-child {
    padding-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #8b98a9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-inline-form {
    min-width: 0;
  }

  .account-order-main {
    flex-direction: row;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
  }

  .order-product-wrap {
    gap: 10px;
    align-items: flex-start;
  }

  .account-order-thumb {
    width: 52px;
    height: 52px;
  }

  .order-product strong {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .order-product small {
    font-size: 12px;
    line-height: 1.35;
  }

  .account-summary,
  .account-layout,
  .account-order-meta,
  .account-order-quick {
    grid-template-columns: 1fr;
  }

  .account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-grid,
  .account-two,
  .account-order,
  .account-order-main {
    grid-template-columns: 1fr;
  }

  .cart-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cart-head .btn {
    width: 100%;
    text-align: center;
  }

  .cart-page {
    padding: 18px 0 28px;
  }

  .cart-subtitle {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
  }

  .cart-layout {
    gap: 12px;
  }

  .cart-list {
    gap: 8px;
  }

  .cart-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
  }

  .cart-item-body,
  .cart-item-top > div:first-child,
  .cart-item-bottom {
    min-width: 0;
    width: 100%;
  }

  .cart-item-top,
  .cart-item-bottom,
  .cart-actions {
    gap: 8px;
  }

  .cart-item-top,
  .cart-item-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-top strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .cart-variant-meta {
    gap: 6px;
    font-size: 11px;
  }

  .cart-price span,
  .cart-line-total span {
    font-size: 12px;
  }

  .cart-price strong,
  .cart-line-total strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .cart-price,
  .cart-line-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .cart-price span,
  .cart-line-total span {
    margin-bottom: 0;
  }

  .cart-qty-label {
    font-size: 12px;
  }

  .cart-qty-controls {
    gap: 6px;
    display: grid;
    grid-template-columns: 34px minmax(0, auto) 34px;
    align-items: center;
  }

  .cart-qty-btn {
    min-width: 34px;
    width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
  }

  .cart-qty-controls form {
    margin: 0;
    display: inline-flex;
  }

  .cart-qty-controls .btn {
    width: 34px;
  }

  .cart-qty-value {
    min-width: 34px;
    padding: 6px;
    font-size: 12px;
  }

  .cart-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 40px;
    font-size: 13px;
  }

  .cart-actions {
    width: 100%;
  }

  .cart-summary-card {
    padding: 14px;
  }

  .cart-summary-card h3 {
    font-size: 16px;
  }

  .cart-summary-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .cart-summary-card .summary-row strong {
    font-size: 14px;
  }

  .cart-summary-card .summary-total strong {
    font-size: 16px;
  }

  .account-grid,
  .address-item-head,
  .account-order-top,
  .account-order-main,
  .account-order-actions,
  .account-tracking-head,
  .cart-item-top,
  .cart-item-bottom,
  .cart-actions,
  .address-title-row,
  .address-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-badges,
  .order-total,
  .address-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .order-product-wrap {
    width: 100%;
  }

  .order-total {
    min-width: 0;
  }

  .order-total strong,
  .order-product strong,
  .account-order-id strong {
    font-size: 18px;
  }

  .cart-price,
  .cart-line-total {
    text-align: left;
    min-width: 0;
  }

  .cart-summary-card {
    position: static;
  }

  .avatar-upload-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 420px) {
  .product-detail-page {
    padding: 10px 0 20px;
  }

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

  .product-detail-card h1 {
    font-size: 20px;
  }

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

  .detail-nav {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .detail-thumb {
    flex-basis: 52px;
    width: 52px;
  }

  .detail-thumb img {
    height: 52px;
  }

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

  .qty-stepper {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
    padding: 5px;
  }

  .qty-stepper-btn {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    padding: 0;
  }

  .qty-stepper input[type="number"] {
    min-height: 38px;
  }

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

  .cart-item img {
    width: 52px;
    height: 52px;
    max-width: none;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .cart-qty-controls {
    grid-template-columns: 32px minmax(0, auto) 32px;
    gap: 5px;
  }

  .cart-qty-btn,
  .cart-qty-controls .btn {
    min-width: 32px;
    width: 32px;
    min-height: 32px;
  }

  .site-footer-col h3 {
    font-size: 13px;
  }

  .site-footer-col a,
  .site-footer-col p,
  .site-footer-points li {
    font-size: 11px;
  }

  .site-footer-bottom small {
    font-size: 11px;
  }

  .site-footer-credit {
    font-size: 9px;
  }
}

/* Cart mobile hotfix: keep list layout stable and prevent button collisions */
@media (max-width: 768px) {
  .cart-page .cart-layout {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .cart-page .cart-list {
    order: 1 !important;
    gap: 8px !important;
  }

  .cart-page .cart-summary-card {
    order: 2 !important;
    width: 100% !important;
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    padding: 12px !important;
  }

  .cart-page .cart-item {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 10px !important;
  }

  .cart-page .cart-item > img {
    width: 56px !important;
    height: 56px !important;
    max-width: none !important;
    object-fit: cover !important;
  }

  .cart-page .cart-item-body {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .cart-page .cart-item-top,
  .cart-page .cart-item-bottom,
  .cart-page .cart-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .cart-page .cart-item-top > div:first-child,
  .cart-page .cart-qty-form,
  .cart-page .cart-line-total,
  .cart-page .cart-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cart-page .cart-item-top strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .cart-page .cart-price,
  .cart-page .cart-line-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: left !important;
  }

  .cart-page .cart-qty-form {
    width: 100% !important;
  }

  .cart-page .cart-qty-controls {
    display: grid !important;
    grid-template-columns: 32px minmax(0, auto) 32px !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .cart-page .cart-qty-controls form {
    margin: 0 !important;
    display: inline-flex !important;
  }

  .cart-page .cart-qty-btn,
  .cart-page .cart-qty-controls .btn {
    width: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }

  .cart-page .cart-qty-value {
    min-width: 32px !important;
    padding: 5px !important;
  }

  .cart-page .cart-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  .cart-page .cart-item {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .cart-page .cart-item > img {
    width: 50px !important;
    height: 50px !important;
  }

  .cart-page .cart-item {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }
}

/* Admin: reduce rounded corners for a squarer look */
.admin-body,
.admin-login-body {
  --admin-radius-xs: 0;
  --admin-radius-sm: 2px;
  --admin-radius-md: 3px;
  --admin-radius-lg: 4px;
}

.admin-mobile-toggle,
.admin-nav a,
.admin-logout button,
.admin-btn,
.admin-inline-form button,
.admin-login-form button,
.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.admin-inline-form input,
.admin-inline-form select,
.admin-login-form input,
.admin-icon-btn,
.admin-edit-gallery-nav,
.admin-edit-thumb,
.admin-order-thumb,
.admin-variant-preview,
.admin-category-image,
.admin-category-product-option,
.admin-category-product-option img,
.admin-brand img,
.admin-login-brand img,
.admin-product-thumb,
.admin-product-item img {
  border-radius: var(--admin-radius-md);
}

.admin-profile,
.admin-hero,
.admin-stat,
.admin-panel,
.admin-login-panel,
.admin-sidebar-note,
.admin-metric-list div,
.admin-list-card,
.admin-feedback,
.admin-variant-card,
.admin-category-card,
.admin-product-row,
.admin-edit-gallery,
.admin-product-item,
.admin-toast,
.admin-login-error {
  border-radius: var(--admin-radius-lg);
}

.admin-hero-badge,
.admin-product-row-stats span,
.admin-status-pill {
  border-radius: var(--admin-radius-sm);
}

.admin-mobile-toggle span {
  border-radius: var(--admin-radius-xs);
}

/* Mobile fix: prevent overlap and keep compact list layout */
@media (max-width: 900px) {
  .admin-body {
    overflow-x: hidden;
  }

  .admin-mobile-toggle {
    top: calc(env(safe-area-inset-top) + 10px);
    left: 10px;
    width: 42px;
    height: 42px;
  }

  .admin-main {
    padding: calc(env(safe-area-inset-top) + 92px) 14px 16px;
  }

  .admin-sidebar {
    padding-top: calc(env(safe-area-inset-top) + 68px);
  }

  .admin-topbar {
    padding-left: 0;
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-topbar > :first-child {
    padding-left: 0;
    min-width: 0;
  }

  .admin-topbar h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
  }

  .admin-lead {
    margin-top: 8px;
  }

}

@media (max-width: 768px) {
  .admin-product-row-main {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
  }

  .admin-product-thumb,
  .admin-product-item img {
    width: 56px;
    height: 56px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .admin-main {
    padding-top: calc(env(safe-area-inset-top) + 88px);
  }
}

/* Account orders mobile: simpler cards + responsive tracking */
@media (max-width: 768px) {
  .account-card {
    padding: 14px;
  }

  .account-orders {
    gap: 10px;
  }

  .account-order-card {
    padding: 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .account-order-id strong {
    font-size: 16px;
  }

  .account-order-top small {
    font-size: 12px;
  }

  .order-badges {
    gap: 6px;
  }

  .account-page .account-orders .account-order-main {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 8px;
  }

  .account-page .account-orders .order-product-wrap {
    padding: 9px;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    background: #fafcff;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
  }

  .account-page .account-orders .account-order-thumb {
    width: 52px;
    height: 52px;
  }

  .account-page .account-orders .order-product {
    min-width: 0;
  }

  .account-page .account-orders .order-product strong {
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .account-page .account-orders .order-product small {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .account-page .account-orders .order-total {
    min-width: 0;
    width: 100%;
    text-align: left;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    background: #fff;
    padding: 9px;
  }

  .account-page .account-orders .order-total strong {
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .account-order-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 9px;
  }

  .account-order-quick small {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .account-order-details summary {
    padding: 10px 12px;
    font-size: 13px;
  }

  .account-order-meta,
  .account-order-address {
    padding-left: 12px;
    padding-right: 12px;
  }

  .account-order-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .account-order-actions .btn,
  .account-order-actions form,
  .account-order-actions form .btn {
    width: 100%;
    text-align: center;
  }

  .account-tracking-card {
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
  }

  .account-tracking-head {
    gap: 6px;
    margin-bottom: 8px;
  }

  .account-tracking-head strong {
    font-size: 16px;
  }

  .account-tracking-head small {
    font-size: 12px;
  }

  .tracking-live-link {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .tracking-message,
  .tracking-last {
    font-size: 13px;
  }

  .tracking-message strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .shipping-progress-chain {
    grid-template-columns: 1fr;
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
    overflow: visible;
  }

  .progress-chain-link {
    display: none;
  }

  .progress-chain-step {
    min-height: 34px;
    width: 100%;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 10px;
  }

  .progress-chain-dot {
    width: 20px;
    height: 20px;
  }

  .progress-chain-dot svg {
    width: 12px;
    height: 12px;
  }

  .progress-chain-label {
    font-size: 12px;
    white-space: normal;
  }

  .tracking-last {
    margin-top: 8px;
  }

  .tracking-manifest {
    margin-top: 10px;
    gap: 7px;
  }

  .tracking-manifest li {
    padding: 8px 9px;
  }

  .tracking-time {
    overflow-wrap: anywhere;
  }

  .tracking-desc {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .card-price-row {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 2px;
  }

  .card-price-badges {
    width: 62px;
    gap: 1px;
  }

  .card-discount-tag {
    min-height: 15px;
    padding: 0 4px;
    font-size: 7.5px;
  }

  .card-free-shipping-tag,
  .card-free-shipping-tag img {
    width: 30px;
  }

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

  .order-product strong {
    font-size: 13px;
  }

  .order-total strong {
    font-size: 18px;
  }
}
