/* ────────────────────────────────────────────
   NIKA ARTS STUDIO — Main Stylesheet
   Palette: warm cream, charcoal, terracotta
──────────────────────────────────────────── */

:root {
  --cream:     #FAFAF5;
  --cream-2:   #F2F0E8;
  --charcoal:  #1A2E1A;     /* deep forest green */
  --muted:     #6B7A5E;
  --terra:     #C9A227;     /* brand gold */
  --terra-dk:  #A8851E;     /* darker gold */
  --border:    #DDD9C8;
  --white:     #FFFFFF;
  --radius:    10px;
  --header-h:  72px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 2px solid var(--terra);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.logo-image {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.cart-icon {
  position: relative;
  color: var(--charcoal);
  text-decoration: none;
  display: flex; align-items: center;
}
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--terra);
  color: #fff;
  font-size: 10px; font-weight: 500;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82vh;
  align-items: center;
}
.hero-content {
  padding: 5rem 2rem 5rem 5rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-image {
  height: 100%;
  min-height: 82vh;
  background: var(--cream-2);
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder, .about-img-placeholder {
  width: 100%; height: 100%; min-height: 400px;
  background: var(--cream-2);
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--terra-dk); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.full-width { width: 100%; text-align: center; display: block; padding: 0.9rem; }
.btn-primary.danger {
  background: #dc2626;
}
.btn-primary.danger:hover {
  background: #b91c1c;
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid var(--terra);
  color: var(--terra);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--terra); color: #fff; }
.btn-outline.danger {
  border-color: #dc2626;
  color: #dc2626;
}
.btn-outline.danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ── SECTIONS ── */
.section {
  padding: 4rem 5rem;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 600;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.link-subtle {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.link-subtle:hover { color: var(--charcoal); }
.center-text { text-align: center; display: block; margin-top: 0.75rem; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-2);
  display: block;
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem;
}
.product-info {
  padding: 1rem;
}
.product-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.product-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.product-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--terra);
  margin-bottom: 0.25rem;
}
.product-stock {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.add-to-cart-btn {
  width: 100%;
  padding: 0.6rem;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart-btn:hover { background: var(--terra); }
.add-to-cart-btn.added { background: #2e7d52; }
.add-to-cart-btn:disabled {
  background: #b7b7a4;
  cursor: not-allowed;
}

/* ── PAGE SMALL HERO ── */
.page-hero-small {
  padding: 3rem 5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero-small h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 600;
}
.page-hero-small p {
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

/* ── ABOUT ── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 300;
}
.about-img-placeholder {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── CONTACT ── */
.contact-box {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.contact-box h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}
.contact-box p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── CART PAGE ── */
.cart-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--cream-2); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; background: var(--cream-2); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; }
.cart-item-price { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 0.5rem;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--charcoal);
  transition: background 0.15s;
}
.cart-item-qty button:hover { background: var(--cream-2); }
.cart-item-qty span { min-width: 20px; text-align: center; font-weight: 500; }
.cart-item-subtotal { font-weight: 500; min-width: 80px; text-align: right; }
.remove-btn {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.15s;
}
.remove-btn:hover { color: #c0392b; }
.empty-cart { text-align: center; padding: 4rem 0; }
.empty-cart p { color: var(--muted); margin-bottom: 1.5rem; }

.summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.summary-box h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.total-row {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: none;
  padding-top: 0.75rem;
  margin-bottom: 1rem;
}

/* ── CHECKOUT PAGE ── */
.checkout-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}
.checkout-form-col h3, .checkout-summary-col h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--terra); }
.form-group input[readonly] { background: var(--cream-2); color: var(--muted); }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.checkout-form {
  display: grid;
  gap: 0.8rem;
}
.field-note {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.checkout-summary-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.order-items { margin-bottom: 1rem; }
.order-item-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.payment-section { margin: 1.25rem 0 1rem; }
.payment-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
.payment-logos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-badge {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--cream);
}
.secure-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.error-msg {
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  color: #c0392b;
  font-size: 0.85rem;
}

/* ── SUCCESS PAGE ── */
.success-section {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.success-box {
  text-align: center;
  max-width: 420px;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.success-icon {
  width: 64px; height: 64px;
  background: #e8f5ee;
  color: #2e7d52;
  border-radius: 50%;
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.fail-icon {
  width: 64px; height: 64px;
  background: #fdf2f2;
  color: #c0392b;
  border-radius: 50%;
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-box h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 0.75rem; }
.success-box p { color: var(--muted); font-size: 0.95rem; }

/* ── ADMIN PAGE ── */
.admin-section {
  display: grid;
  gap: 1.5rem;
}
.admin-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-toolbar input,
.admin-form input,
.admin-form select,
.admin-table input,
.admin-table select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
}
.admin-session-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.admin-stats div,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-stats strong {
  font-family: var(--font-head);
  font-size: 1.55rem;
}
.admin-panel h3 {
  font-family: var(--font-head);
  margin-bottom: 1rem;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: center;
}
.admin-form.compact {
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: start;
}
.admin-settings-form {
  display: grid;
  gap: 0.85rem;
  max-width: 460px;
}
.admin-settings-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.admin-settings-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
}
.admin-settings-form .btn-primary {
  justify-self: start;
}
.admin-message {
  min-height: 1.4rem;
  margin-top: 0.75rem;
  color: #2e7d52;
  font-size: 0.9rem;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 0.88rem;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table small {
  color: var(--muted);
}
.admin-photo-cell {
  display: grid;
  gap: 0.5rem;
  width: 120px;
}
.admin-product-photo {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--cream-2);
}
.admin-product-photo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}
.admin-photo-input {
  max-width: 120px;
  font-size: 0.72rem;
}

.inventory-shell {
  display: grid;
  gap: 1rem;
}
.inventory-toolbar {
  position: sticky;
  top: 68px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.5fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(8px);
}
.inventory-search label,
.inventory-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.inventory-search input,
.inventory-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
}
.inventory-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.75rem;
}
.inventory-actions,
.inventory-row-actions,
.admin-modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.inventory-file-btn {
  cursor: pointer;
  margin: 0;
}
.inventory-file-btn input {
  display: none;
}
.cms-asset-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.cms-asset-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.cms-asset-preview[src=""],
.cms-asset-preview:not([src]) {
  display: none;
}
.inventory-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.75rem;
}
.inventory-summary div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  background: var(--white);
}
.inventory-summary span,
.panel-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}
.inventory-summary strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
}
.panel-heading,
.cloud-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.panel-heading h3,
.panel-heading p,
.cloud-panel p {
  margin: 0;
}
.cloud-panel p {
  color: var(--muted);
  margin-top: 0.25rem;
}
.product-create-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.small-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}
.inventory-table {
  min-width: 820px;
  table-layout: fixed;
}
.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  width: 92px;
}
.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2) {
  width: auto;
}
.inventory-table th:nth-child(3),
.inventory-table td:nth-child(3) {
  width: 150px;
}
.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4) {
  width: 110px;
}
.inventory-table th:nth-child(5),
.inventory-table td:nth-child(5) {
  width: 150px;
}
.inventory-table th:nth-child(6),
.inventory-table td:nth-child(6) {
  width: 120px;
}
.inventory-table th:nth-child(7),
.inventory-table td:nth-child(7) {
  width: 300px;
}
.inventory-table td {
  height: 92px;
}
.admin-table small {
  display: block;
  margin-top: 0.25rem;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-photo.compact {
  width: 58px;
  height: 58px;
}
.inventory-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 0.5rem;
  min-width: 270px;
}
.inventory-row-actions .small-btn {
  width: 100%;
  text-align: center;
}
.inventory-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.inventory-badge.ok {
  background: #e8f5ee;
  color: #21764b;
}
.inventory-badge.warn {
  background: #fff7d6;
  color: #8a5a00;
}
.inventory-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.inventory-badge.muted {
  background: var(--cream-2);
  color: var(--muted);
}
.inventory-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}
.inventory-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(37, 32, 29, 0.42);
}

.admin-modal-backdrop[hidden] {
  display: none;
}

.admin-modal {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.product-editor-modal {
  width: min(920px, 100%);
}
.product-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 1.25rem;
}
.product-editor-photo {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.product-editor-photo img,
#edit-product-image-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream-2);
}
#edit-product-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.product-editor-form {
  display: grid;
  gap: 0.75rem;
}
.product-editor-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.product-editor-form input,
.product-editor-form textarea,
.product-editor-form select,
.product-editor-photo input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.admin-modal h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.admin-modal p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bulk-image-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.bulk-image-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}

.bulk-image-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.bulk-image-row input {
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
}

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

/* ── FOOTER ── */
.site-footer {
  padding: 2rem 5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream-2);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--charcoal); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-image { min-height: 300px; }
  .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .cart-section { grid-template-columns: 1fr; }
  .checkout-section { grid-template-columns: 1fr; }
  .checkout-summary-col { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .inventory-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }
  .inventory-controls,
  .inventory-summary,
  .product-editor-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 2.5rem 1.5rem; }
  .page-hero-small { padding: 2rem 1.5rem 1rem; }
  .site-footer { padding: 1.5rem; }
  .site-header { padding: 0 1rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .order-card { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
}

/* ==============================================================
   PREMIUM ANIMATIONS & TRANSITIONS
   ============================================================== */

/* 1. Seamless scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* 2. Soft Page Load Fade-in */
body {
  animation: softFadeIn 0.8s ease-out forwards;
}

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

/* 3. Scroll Reveal Base Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px); /* Starts slightly lower */
  /* 'cubic-bezier' gives that expensive, buttery-smooth deceleration */
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0); /* Glides into natural position */
}

/* 4. Luxury Image Zoom (For About Section & Hero) */
.hero img, .about-image img {
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.hero:hover img, .about-image:hover img {
  transform: scale(1.03); /* Extremely subtle zoom */
}

/* 5. Product Card Hover Depth */
.product-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden; /* Keeps the zooming image inside the borders */
}

.product-card:hover {
  transform: translateY(-8px); /* Card lifts up */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08); /* Soft shadow appears underneath */
}

.product-img {
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.05); /* Image slightly scales up while card lifts */
}

.product-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-card > div:not(.product-card-actions) {
  padding: 0 1rem;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 4.4rem;
}

.product-card-desc {
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 3rem;
  max-height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-actions {
  display: grid;
  grid-template-columns: minmax(72px, 0.72fr) minmax(132px, 1.28fr);
  gap: 0.6rem;
  padding: 1rem;
  margin-top: auto;
  align-items: stretch;
}

.product-card-actions .btn-outline,
.product-card-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  white-space: nowrap;
  line-height: 1.1;
}

.btn-primary:disabled {
  background: #b7b7a4;
  cursor: not-allowed;
}
.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-note {
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: start;
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--cream-2);
}

.product-detail-info h1,
.policy-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.product-detail-price {
  color: var(--terra);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.stock-note {
  margin: 1rem 0;
  color: var(--muted);
}

.product-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.narrow-section {
  max-width: 760px;
  margin: 0 auto;
}

.tracking-form {
  display: grid;
  gap: 0.8rem;
}

.tracking-result {
  margin-top: 1.5rem;
}

.status-grid,
.dashboard-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.status-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  background: var(--cream);
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}

.account-orders-panel {
  grid-column: 1 / -1;
}

.order-card {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr auto;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.policy-page {
  max-width: 860px;
  margin: 0 auto;
}

.policy-page h2 {
  margin-top: 1.5rem;
  font-family: var(--font-head);
}

/* ==============================================================
   TOAST NOTIFICATIONS (CART POP-UP)
   ============================================================== */
.toast-container {
  position: fixed;
  top: 80px; /* Positions it right below your header */
  right: 20px; /* Aligns it under the cart icon */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* Lets clicks pass through it */
}

.toast {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  /* Slides in quickly, waits, then fades out softly */
  animation: slideInRight 0.4s cubic-bezier(0.2, 1, 0.3, 1) forwards, 
             fadeOut 0.4s cubic-bezier(0.2, 1, 0.3, 1) 2.6s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@media (max-width: 600px) {
  .product-card-actions {
    grid-template-columns: minmax(64px, 0.72fr) minmax(116px, 1.28fr);
    gap: 0.45rem;
    padding: 0.85rem;
  }
  .product-card-actions .btn-outline,
  .product-card-actions .btn-primary {
    min-height: 40px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.82rem;
  }
  .product-card-meta {
    display: block;
  }
}
