/* ─── Variables ──────────────────────────────────────────────────────── */
:root {
  --bg:            #fdfaee;
  --bg-surface:    #ffffff;
  --bg-subtle:     #f7f2df;
  --text:          #2d3a24;
  --text-muted:    #6b7c69;
  --text-light:    #9aaa98;
  --border:        #e4dcc9;
  --border-focus:  #a89e84;

  --btn-bg:        #2d3a24;
  --btn-text:      #fdfaee;
  --btn-hover:     #3e5233;
  --btn-ghost-hover: rgba(45, 58, 36, 0.07);

  --badge-soldout-bg:    #aaaaaa;
  --badge-exclusive-bg:  #b8902a;
  --badge-low-bg:        #c97c2a;
  --badge-coming-bg:     #7a92a8;
  --badge-preorder-bg:   #8e72b0;

  --announce-bg:   #f0e8c8;
  --announce-text: #5a4a20;

  --preorder-bg:   #f5f0fc;
  --preorder-border: #c4b0e0;
  --preorder-text: #5a3e80;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(45, 58, 36, 0.08);
  --shadow:    0 2px 12px rgba(45, 58, 36, 0.10);
  --shadow-lg: 0 4px 24px rgba(45, 58, 36, 0.14);
  --nav-h:     60px;
  --max-w:     1200px;
  --transition: 0.18s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Announcement Banner ─────────────────────────────────────────── */
.announcement-banner {
  background: var(--announce-bg);
  color: var(--announce-text);
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 40px;
  position: relative;
  line-height: 1.4;
}
.announcement-banner[hidden] { display: none; }
.announcement-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--announce-text);
  opacity: 0.6;
  transition: opacity var(--transition);
  font-size: 18px;
  line-height: 1;
}
.announcement-close:hover { opacity: 1; }

/* ─── Navigation ─────────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background var(--transition);
  color: var(--text);
}
.cart-btn:hover { background: var(--btn-ghost-hover); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}
.hero-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Section Titles ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.section-link:hover { color: var(--text); border-color: var(--text); }

/* ─── Category Filter ────────────────────────────────────────────────── */
.category-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.category-btn {
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.category-btn:hover { color: var(--text); }
.category-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ─── Product Grid ───────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.featured-section {
  padding: 0 0 80px;
}
.shop-section {
  padding: 32px 0 80px;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  color: var(--text);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle);
}
.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image-wrap img {
  transform: scale(1.03);
}
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}
.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.product-card-body {
  padding: 14px 16px 18px;
}
.product-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ─── Badges ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.badge--soldout    { background: var(--badge-soldout-bg); }
.badge--exclusive  { background: var(--badge-exclusive-bg); }
.badge--low        { background: var(--badge-low-bg); }
.badge--coming     { background: var(--badge-coming-bg); }
.badge--preorder   { background: var(--badge-preorder-bg); }

/* ─── Empty / Loading States ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state p { font-size: 15px; }
.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}
.skeleton-img {
  aspect-ratio: 1;
  background: var(--bg-subtle);
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton-body { padding: 14px 16px 18px; }
.skeleton-line {
  height: 13px;
  border-radius: 4px;
  background: var(--bg-subtle);
  animation: pulse 1.4s ease-in-out infinite;
  margin-bottom: 8px;
}
.skeleton-line--short { width: 40%; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), opacity var(--transition),
              transform var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.btn--primary:not(:disabled):hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:not(:disabled):hover {
  border-color: var(--text);
  background: var(--btn-ghost-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 11px 14px;
}
.btn--ghost:not(:disabled):hover { color: var(--text); background: var(--btn-ghost-hover); }
.btn--full { width: 100%; }
.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }

/* ─── Product Detail Page ────────────────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 0 80px;
  align-items: start;
}
.product-images {}
.product-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 1;
  margin-bottom: 12px;
  cursor: zoom-in;
}
.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-main-img:hover img { transform: scale(1.02); }
.product-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--text); }
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}
.product-back:hover { color: var(--text); }
.product-back svg { width: 14px; height: 14px; }
.product-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.product-price {
  font-size: 22px;
  font-weight: 600;
}
.product-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  white-space: pre-line;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

/* Pre-order notice */
.preorder-notice {
  background: var(--preorder-bg);
  border: 1.5px solid var(--preorder-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.preorder-notice-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--preorder-text);
  margin-bottom: 6px;
}
.preorder-notice p {
  font-size: 13.5px;
  color: var(--preorder-text);
  line-height: 1.5;
}

/* ─── Lightbox ───────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.88);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ─── Cart Page ──────────────────────────────────────────────────────── */
.cart-page {
  padding: 48px 0 80px;
}
.cart-page-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.cart-items-list { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:first-child { border-top: 1px solid var(--border); }
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body {}
.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}
.cart-item-price { font-size: 13.5px; color: var(--text-muted); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  background: none;
}
.qty-btn:hover { border-color: var(--text); background: var(--btn-ghost-hover); }
.qty-value { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--text-light);
  font-size: 13px;
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-top: -2px;
}
.cart-item-remove:hover { color: #c0392b; }
.cart-item-subtotal {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.cart-summary {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.cart-summary-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-row.total {
  font-weight: 600;
  font-size: 15px;
  padding-top: 14px;
}
.cart-summary-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 14px 0;
  line-height: 1.5;
}
.cart-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.cart-empty p { margin-bottom: 24px; font-size: 15px; }

/* ─── Success / Cancel Pages ─────────────────────────────────────────── */
.result-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.result-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.result-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.result-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* ─── Policy Pages ───────────────────────────────────────────────────── */
.policy-page {
  padding: 48px 0 80px;
  max-width: 680px;
}
.policy-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.policy-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-line;
}

/* ─── Admin Panel ────────────────────────────────────────────────────── */
.admin-body {
  background: #f5f7f4;
  min-height: 100vh;
}
.admin-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.admin-nav-badge {
  font-size: 12px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.admin-nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 56px);
}
.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}
.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.admin-tab-btn svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.7; }
.admin-tab-btn:hover { background: var(--btn-ghost-hover); color: var(--text); }
.admin-tab-btn.active {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
}
.admin-tab-btn.active svg { opacity: 1; }

.admin-main { padding: 28px 32px; overflow-y: auto; }

/* Tab panels */
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Products panel */
.admin-products-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.admin-product-list {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.admin-product-list-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-product-list-title {
  font-size: 13.5px;
  font-weight: 600;
}
.admin-product-items {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.admin-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.admin-product-item:last-child { border-bottom: none; }
.admin-product-item:hover { background: var(--bg-subtle); }
.admin-product-item.active { background: var(--bg-subtle); }
.admin-product-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-subtle);
  flex-shrink: 0;
}
.admin-product-item-info { flex: 1; min-width: 0; }
.admin-product-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.admin-product-item-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-product-item-status.active { background: #4caf50; }
.admin-product-item-status.inactive { background: var(--text-light); }

/* Admin form */
.admin-form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.admin-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label-note {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 158, 132, 0.18);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.form-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--btn-bg);
}
.form-price-input { position: relative; }
.form-price-input .currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.form-price-input .form-input { padding-left: 26px; }

/* Image manager */
.image-manager { margin-top: 6px; }
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.image-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
}
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.image-item-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--border-focus);
  background: var(--bg-subtle);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone-text {
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Category manager (settings) */
.category-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.category-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 8px 10px;
  border: 1px solid var(--border);
}
.category-drag-handle {
  cursor: grab;
  color: var(--text-light);
  padding: 0 4px;
  font-size: 16px;
}
.category-list-item .form-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13.5px;
}
.category-remove-btn {
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color var(--transition);
}
.category-remove-btn:hover { color: #c0392b; }

/* Featured picker */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.featured-pick {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}
.featured-pick input[type="checkbox"] {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  accent-color: var(--btn-bg);
  cursor: pointer;
  z-index: 1;
}
.featured-pick.selected { border-color: var(--btn-bg); }
.featured-pick-img {
  aspect-ratio: 1;
  background: var(--bg-subtle);
  overflow: hidden;
}
.featured-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-pick-label {
  font-size: 11px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

/* Admin actions bar */
.admin-form-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.admin-form-actions .btn--ghost.danger { color: #c0392b; }
.admin-form-actions .btn--ghost.danger:hover { background: rgba(192, 57, 43, 0.07); }

/* Status indicator */
.admin-status {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: none;
}
.admin-status.success { background: #e8f5e9; color: #2e7d32; display: block; }
.admin-status.error   { background: #fdecea; color: #c62828; display: block; }
.admin-status.info    { background: var(--bg-subtle); color: var(--text-muted); display: block; }

/* Login panel */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  max-width: 380px;
  width: 100%;
}
.admin-login-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.admin-login-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .admin-products-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-direction: row; padding: 0; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .admin-tab-btn { padding: 14px 20px; border-bottom: none; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .loading-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 24px 32px; }
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .cart-item-img { width: 64px; height: 64px; }
  .result-card { padding: 40px 24px; }
  .admin-main { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
  .loading-grid { grid-template-columns: 1fr; }
}
