:root {
  --bg: #f8f2ec;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffaf6;
  --text: #2d211b;
  --muted: #7b675c;
  --line: rgba(125, 94, 74, 0.18);
  --shadow: 0 20px 60px rgba(82, 49, 33, 0.12);
  --success: #2d7a55;
  --error: #a84e43;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 143, 74, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(117, 83, 58, 0.10), transparent 30%),
    linear-gradient(135deg, #f8f1e8 0%, #f2e7d9 45%, #eadbc9 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; margin: 0 0 0.5rem; line-height: 1; }
p { color: var(--muted); line-height: 1.7; }
input, textarea, select, button { font: inherit; }
label { color: var(--text); }

.page-shell, .admin-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer, .panel, .sidebar-panel, .product-card, .banner-card, .category-card, .stat-card, .login-card, .admin-sidebar {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-header, .site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 24px; border-radius: 24px; margin: 24px 0;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand strong { display: block; font-size: 1.2rem; }
.brand small { color: var(--muted); }
.site-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 250, 246, 0.9);
  border: 1px solid var(--line);
  padding: 6px;
}
.admin-brand .site-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.login-logo {
  margin: 0 auto 6px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.login-brand-mark {
  margin: 0 auto 6px;
  width: 60px;
  height: 60px;
}
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #e7c9aa); color: white; font-family: "Cormorant Garamond", serif; font-size: 1.6rem;
}
.top-nav, .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.top-nav a, .admin-sidebar nav a { color: var(--muted); font-weight: 600; }
.top-nav a:hover, .admin-sidebar nav a:hover, .inline-link { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; color: var(--accent); font-weight: 700; margin-bottom: 0.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(122, 90, 67, 0.18); cursor: pointer;
  background: linear-gradient(135deg, #b88b68, #d7b08d);
  color: #fffaf5;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(126, 88, 60, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
  filter: saturate(0.96) brightness(1.02);
  box-shadow: 0 20px 34px rgba(126, 88, 60, 0.22);
}
.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 12px 22px rgba(126, 88, 60, 0.18);
}
.button:focus-visible {
  outline: 2px solid rgba(184, 139, 104, 0.28);
  outline-offset: 3px;
}
.button-outline {
  background: rgba(255, 250, 246, 0.94);
  color: var(--text);
  border: 1px solid rgba(122, 90, 67, 0.18);
  box-shadow: 0 12px 24px rgba(114, 79, 56, 0.08);
}
.button-outline:hover {
  background: rgba(255, 248, 241, 1);
}
.button-danger { background: linear-gradient(135deg, #a84e43, #ce786b); }
.button-small { padding: 10px 14px; }
.hero, .hero-stack {
  display: grid; gap: 28px; align-items: stretch; margin: 20px 0 36px;
}
.hero-copy, .product-summary, .panel, .sidebar-panel, .login-card { padding: 28px; border-radius: 28px; }
.hero-copy h1 { font-size: clamp(3rem, 8vw, 5.2rem); margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-spotlight {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(82, 49, 33, 0.22);
}
.hero-spotlight img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: scale(1.03);
}
.hero-spotlight video,
.banner-card video,
.brand-story-visual video,
.category-card video,
.product-card video,
.blog-card video,
.exhibition-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 14, 10, 0.18), rgba(24, 14, 10, 0.66)),
    radial-gradient(circle at top center, rgba(255, 235, 219, 0.20), transparent 34%);
}
.hero-copy-centered {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.hero-copy-centered h1,
.hero-copy-centered p {
  color: #fff7f0;
}
.hero-copy-centered .eyebrow {
  color: #f0cfb3;
}
.hero-copy-centered p:last-of-type {
  max-width: 700px;
}
.hero-outline-button {
  color: #fff7f0;
  border-color: rgba(255, 240, 229, 0.42);
  background: rgba(255, 250, 246, 0.08);
}
.hero-banner-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 240, 229, 0.18);
  backdrop-filter: blur(16px);
  background: rgba(255, 247, 240, 0.10);
}
.hero-banner-note h2,
.hero-banner-note p,
.light-link {
  color: #fff7f0;
}
.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 12px;
}
.banner-card { min-height: 260px; border-radius: 28px; overflow: hidden; position: relative; }
.banner-card-premium {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.banner-card-premium img {
  min-height: 0;
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end;
  padding: 24px; background: linear-gradient(180deg, transparent, rgba(31, 21, 16, 0.74));
}
.banner-overlay h2, .banner-overlay p, .banner-overlay a { color: white; }
.banner-copy {
  color: #fff7f1;
  line-height: 1.7;
  margin-top: 4px;
  display: block;
}
.section-header {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin: 38px 0 18px;
}
.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.motion-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.motion-enabled .product-card,
.motion-enabled .category-card,
.motion-enabled .subcategory-card,
.motion-enabled .blog-card,
.motion-enabled .exhibition-card,
.motion-enabled .banner-card,
.motion-enabled .panel {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    opacity 0.7s ease;
}
.motion-enabled .product-card:hover,
.motion-enabled .category-card:hover,
.motion-enabled .subcategory-card:hover,
.motion-enabled .blog-card:hover,
.motion-enabled .exhibition-card:hover,
.motion-enabled .banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(82, 49, 33, 0.16);
  border-color: rgba(176, 122, 85, 0.26);
}
.motion-enabled .hero-spotlight img,
.motion-enabled .banner-card img,
.motion-enabled .product-card img,
.motion-enabled .category-card img,
.motion-enabled .subcategory-card img {
  transition: transform 0.75s ease;
}
.motion-enabled .hero-spotlight:hover img,
.motion-enabled .banner-card:hover img,
.motion-enabled .product-card:hover img,
.motion-enabled .category-card:hover img,
.motion-enabled .subcategory-card:hover img {
  transform: scale(1.045);
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled [data-reveal],
  .motion-enabled .product-card,
  .motion-enabled .category-card,
  .motion-enabled .subcategory-card,
  .motion-enabled .blog-card,
  .motion-enabled .exhibition-card,
  .motion-enabled .banner-card,
  .motion-enabled .panel,
  .motion-enabled .hero-spotlight img,
  .motion-enabled .banner-card img,
  .motion-enabled .product-card img,
  .motion-enabled .category-card img,
  .motion-enabled .subcategory-card img,
  .button {
    transition: none !important;
    transform: none !important;
  }
}
.compact { margin-top: 0; }
.card-grid { display: grid; gap: 22px; }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.category-card, .product-card { overflow: hidden; border-radius: 24px; }
.category-card img, .product-card img { width: 100%; height: 260px; object-fit: cover; }
.category-card div, .product-card-body { padding: 20px; }
.product-card-body h3 {
  margin-bottom: 10px;
}
.product-card-description {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}
.product-card-footer, .price-block { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-block { flex-direction: column; align-items: start; }
.card-action-area { display: grid; gap: 8px; justify-items: end; }
.price-block span, .product-price span { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.shop-layout, .cart-layout, .product-detail, .admin-grid, .admin-shell { display: grid; gap: 24px; }
.shop-layout, .cart-layout { grid-template-columns: 300px 1fr; }
.product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
.product-visual img { border-radius: 32px; min-height: 640px; object-fit: cover; box-shadow: var(--shadow); }
.product-media-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.product-visual { display: grid; gap: 18px; }
.sidebar-panel { border-radius: 28px; height: fit-content; }
.filter-group { display: grid; gap: 8px; margin-top: 18px; }
.active-filter { color: var(--accent); font-weight: 700; }
.stack-form { display: grid; gap: 12px; }
.stack-form input, .stack-form textarea, .stack-form select,
.inline-form input, .cart-row input {
  width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.88);
}
.stack-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 94, 74, 0.22);
  background: rgba(255, 250, 246, 0.96);
  color: #2d211b;
  font-weight: 700;
}
.stack-form label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8a5a3b;
  flex: 0 0 auto;
}
.inline-form { display: flex; gap: 12px; margin-top: 18px; }
.panel { border-radius: 28px; }
.cart-table { display: grid; gap: 16px; margin-bottom: 20px; }
.cart-row {
  display: grid; grid-template-columns: 84px 1.2fr 110px 120px auto; gap: 16px;
  align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 20px;
}
.cart-row img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; }
.cart-total { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.flash-stack { display: grid; gap: 12px; margin-bottom: 18px; }
.flash { padding: 14px 18px; border-radius: 16px; color: white; }
.flash.success { background: var(--success); }
.flash.error { background: var(--error); }
.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(176, 122, 85, 0.12);
  border: 1px solid rgba(176, 122, 85, 0.2);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}
.detail-pill { margin-bottom: 14px; }
.empty-state { padding: 32px; border-radius: 24px; border: 1px dashed var(--line); text-align: center; }
.brand-story-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin: 42px 0;
}
.brand-story-copy blockquote {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(176, 122, 85, 0.35);
  font-size: 1.15rem;
  color: var(--text);
}
.brand-story-visual img,
.blog-card img,
.exhibition-card img,
.blog-hero-image {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.brand-story-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand-story-visual img {
  height: 100%;
  min-height: 0;
}
.brand-story-copy {
  display: grid;
  align-content: center;
}
.exhibition-grid,
.blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.exhibition-card,
.blog-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
}
.exhibition-card img,
.blog-card img { height: 260px; }
.contact-band {
  margin: 42px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}
.custom-order-band {
  background: linear-gradient(135deg, rgba(255, 249, 243, 0.96), rgba(247, 237, 225, 0.96));
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.custom-order-left {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.custom-order-showcase {
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(82, 49, 33, 0.18);
  min-height: 100%;
  background: linear-gradient(145deg, rgba(235, 220, 205, 0.9), rgba(248, 240, 231, 0.96));
}
.custom-order-showcase img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.custom-order-copy-block {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.custom-order-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.custom-order-duo img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 24px;
}
.contact-list {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.contact-list a {
  font-weight: 700;
  color: var(--text);
}
.custom-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.home-custom-order-form {
  width: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
}
.custom-order-form-head {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(125, 94, 74, 0.12);
}
.custom-order-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.custom-order-mini-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(125, 94, 74, 0.12);
  color: var(--text);
  font-size: 0.92rem;
}
.custom-order-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}
.custom-order-copy {
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.94), rgba(244, 233, 220, 0.94));
}
.custom-order-points {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.custom-order-points div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(125, 94, 74, 0.12);
}
.custom-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.custom-price-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(125, 94, 74, 0.12);
  display: grid;
  gap: 6px;
}
.custom-price-card small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.custom-price-card span {
  color: var(--accent);
  font-weight: 700;
}
.custom-price-card p {
  margin: 0;
  font-size: 0.92rem;
}
.custom-price-estimate {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(125, 94, 74, 0.12);
  color: var(--text);
  font-weight: 700;
}
.product-custom-box,
.accent-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(125, 94, 74, 0.14);
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.94), rgba(247, 240, 231, 0.94));
}
.compact-stack {
  gap: 8px;
}
.admin-notes-copy p {
  margin: 0 0 6px;
}
.admin-notes-copy small {
  color: var(--muted);
}
.blog-detail {
  display: grid;
  gap: 24px;
}
.story-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
  margin: 20px 0 36px;
}
.story-hero-media,
.story-block-media {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 420px;
}
.story-hero-media img,
.story-hero-media video,
.story-block-media img,
.story-block-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-hero-copy blockquote {
  margin: 20px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(176, 122, 85, 0.35);
  color: var(--text);
  font-size: 1.08rem;
}
.story-sections {
  display: grid;
  gap: 28px;
  margin-bottom: 38px;
}
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.story-block.reverse .story-block-media {
  order: 2;
}
.story-block.reverse .story-block-copy {
  order: 1;
}
.story-block-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.blog-hero-image { max-height: 560px; }
.blog-copy {
  max-width: 980px;
  margin: 0 auto;
}
.rich-copy {
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-wrap;
}
.media-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1a120d;
}
.media-frame video {
  width: 100%;
  display: block;
  max-height: 420px;
}
.admin-body, .login-body { min-height: 100vh; display: grid; align-items: center; }
.admin-shell { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
.admin-sidebar { border-radius: 28px; padding: 20px 24px; position: static; }
.admin-sidebar nav { margin-top: 20px; }
.admin-main { min-width: 0; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.admin-top-actions .button {
  min-width: 124px;
}
.admin-top-actions .button-danger {
  background: linear-gradient(135deg, #a84e43, #ce786b) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(168, 78, 67, 0.24);
}
.logout-button {
  background: linear-gradient(135deg, #a84e43, #ce786b) !important;
  color: #fff !important;
  border: 0 !important;
}
.admin-top-actions .button-outline {
  background: rgba(255, 250, 246, 0.96);
  color: var(--text) !important;
}
.admin-nav-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.96);
  border: 1px solid rgba(125, 94, 74, 0.18);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: 24px; }
.stat-card strong { display: block; font-size: 2rem; margin-top: 8px; }
.admin-grid { grid-template-columns: 380px 1fr; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.settings-span-2 {
  grid-column: 1 / -1;
}
.admin-form-panel form,
.admin-grid .panel form {
  min-width: 0;
}
.admin-action-bar {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(248, 242, 236, 0), rgba(248, 242, 236, 0.95) 32%, #f4e6d9);
}
.admin-action-bar .button {
  min-width: 180px;
  box-shadow: 0 14px 28px rgba(138, 90, 59, 0.22);
}
.admin-main .button:not(.button-outline):not(.button-danger) {
  background: linear-gradient(135deg, #2f8a5a, #57b57a);
  box-shadow: 0 14px 28px rgba(47, 138, 90, 0.22);
}
.checkout-redirect-card {
  max-width: 720px;
  margin: 36px auto;
  text-align: center;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.action-row { display: flex; gap: 10px; align-items: center; }
.action-row form { margin: 0; }
.login-card { width: min(460px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: 14px; }
.admin-login-button {
  min-height: 50px;
  font-size: 1rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-login-button-solid {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 2px solid #2d734b;
  background: linear-gradient(135deg, #3a9862, #6cc18a);
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(58, 152, 98, 0.30);
}
.button-danger,
.logout-button {
  background: linear-gradient(135deg, #a33d38, #d3625c) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(163, 61, 56, 0.24);
}
.action-row .button-danger {
  min-width: 96px;
}

@media (max-width: 1180px) {
  .admin-sidebar {
    padding: 18px;
  }
  .admin-topbar {
    align-items: flex-start;
  }
  .admin-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    width: 100%;
  }
  .admin-main {
    width: 100%;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .panel,
  .sidebar-panel,
  .login-card,
  .hero-copy,
  .product-summary {
    padding: 22px;
  }
  .stack-form input,
  .stack-form textarea,
  .stack-form select {
    min-height: 48px;
    font-size: 16px;
  }
  .stack-form textarea {
    min-height: 120px;
  }
  .button {
    min-height: 46px;
  }
  th, td {
    padding: 12px 10px;
  }
  .action-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .hero, .hero-stack, .shop-layout, .cart-layout, .product-detail, .admin-shell, .admin-grid { grid-template-columns: 1fr; }
  .site-header, .site-footer { flex-direction: column; align-items: start; }
  .cart-row { grid-template-columns: 1fr; }
  .product-visual img { min-height: 380px; }
  .admin-sidebar { position: static; }
  .custom-order-layout { grid-template-columns: 1fr; }
  .custom-order-actions { justify-content: flex-start; }
  .custom-order-band { grid-template-columns: 1fr; }
  .custom-order-left { grid-template-columns: 1fr; }
  .custom-order-showcase { width: 100%; }
  .custom-order-showcase img { min-height: 320px; }
  .custom-order-duo,
  .custom-price-grid {
    grid-template-columns: 1fr;
  }
  .hero-spotlight,
  .hero-spotlight img {
    min-height: 0;
  }
  .hero-copy-centered {
    padding: 28px;
  }
  .hero-banner-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
    flex-direction: column;
    align-items: start;
  }
  .hero-side-grid {
    grid-template-columns: 1fr;
  }
  .banner-card-premium,
  .banner-card-premium img {
    min-height: 0;
  }
  .brand-story-section,
  .contact-band,
  .story-hero,
  .story-block {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }
  .story-block.reverse .story-block-media,
  .story-block.reverse .story-block-copy {
    order: initial;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-span-2 {
    grid-column: auto;
  }
  .admin-nav-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .admin-nav-tabs {
    grid-template-columns: 1fr;
  }
}





/* ✅ Subcategory should behave like fixed product cards */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 240px));
  justify-content: start;
  gap: 22px;
}

.subcategory-card {
  overflow: hidden;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.subcategory-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.subcategory-card div {
  padding: 20px;
}
.mobile-header-actions,
.mobile-menu-panel,
.admin-mobile-toggle,
.admin-mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .page-shell,
  .admin-shell {
    width: min(100%, calc(100% - 24px));
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-visual img {
    min-height: 440px;
  }
  .custom-order-band,
  .custom-order-left,
  .story-hero,
  .story-block,
  .brand-story-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .brand {
    min-width: 0;
  }
  .brand div small {
    display: none;
  }
  .top-nav {
    display: none;
  }
  .mobile-header-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    align-items: center;
    gap: 8px;
  }
  .mobile-header-link,
  .mobile-cart-link,
  .mobile-menu-toggle,
  .admin-mobile-toggle {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(122, 90, 67, 0.18);
    background: rgba(255, 250, 246, 0.94);
    color: var(--text);
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  .mobile-hamburger-toggle {
    flex-direction: column;
    gap: 4px;
  }
  .mobile-hamburger-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }
  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: end center;
    background: rgba(27, 18, 12, 0.24);
    padding: 16px;
  }
  .mobile-menu-panel[hidden] {
    display: none !important;
  }
  .mobile-menu-card {
    width: min(100%, 420px);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 250, 246, 0.98), rgba(244, 233, 220, 0.98));
    border: 1px solid rgba(122, 90, 67, 0.16);
    box-shadow: 0 28px 64px rgba(36, 22, 14, 0.2);
    padding: 18px;
  }
  .mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .mobile-menu-close {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
  }
  .mobile-menu-links {
    display: grid;
    gap: 8px;
  }
  .mobile-menu-links a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(122, 90, 67, 0.1);
  }

  .hero-spotlight {
    aspect-ratio: 4 / 5;
  }
  .hero-copy-centered {
    padding: 22px;
    align-content: end;
    justify-items: start;
    text-align: left;
  }
  .hero-copy-centered h1 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }
  .hero-copy-centered p:last-of-type {
    max-width: 100%;
  }
  .hero-banner-note {
    position: static;
    margin: 14px;
  }
  .hero-side-grid,
  .blog-grid,
  .exhibition-grid {
    grid-template-columns: 1fr;
  }
  .category-grid,
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .product-card img,
  .category-card img,
  .subcategory-card img,
  .blog-card img,
  .exhibition-card img {
    height: 220px;
  }
  .product-card-description {
    margin-bottom: 14px;
    font-size: 0.95rem;
  }
  .product-card-body,
  .category-card div,
  .subcategory-card div {
    padding: 16px;
  }
  .product-card-body h3,
  .category-card h3,
  .subcategory-card h3 {
    font-size: 1.45rem;
  }
  .card-action-area {
    justify-items: stretch;
  }
  .card-action-area .button {
    width: 100%;
  }
  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .cart-layout,
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    order: 2;
  }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .inline-form {
    flex-direction: column;
  }

  .admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }
  .admin-top-actions {
    display: none;
  }
  .admin-mobile-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  .admin-mobile-only {
    display: inline-flex;
  }
  .admin-nav-tabs {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }
  .admin-nav-tabs.menu-open {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .admin-shell {
    width: min(100%, calc(100% - 18px));
  }
  .site-header {
    padding: 12px;
    gap: 10px;
  }
  .site-logo {
    width: 54px !important;
    height: 54px !important;
  }
  .mobile-header-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    grid-column: 1 / -1;
  }
  .mobile-header-link,
  .mobile-cart-link,
  .mobile-menu-toggle {
    min-width: 0;
    font-size: 0.84rem;
    padding: 10px 8px;
  }
  .mobile-hamburger-toggle span {
    width: 15px;
  }
  .site-header,
  .site-footer,
  .panel,
  .sidebar-panel,
  .product-card,
  .banner-card,
  .category-card,
  .subcategory-card,
  .blog-card,
  .exhibition-card,
  .login-card {
    border-radius: 22px;
  }
  .hero-copy-centered {
    padding: 18px;
  }
  .hero-copy-centered .hero-actions {
    width: 100%;
  }
  .hero-copy-centered .button,
  .hero-copy-centered .button-outline {
    width: 100%;
  }
  .category-grid,
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card img,
  .category-card img,
  .subcategory-card img {
    height: 132px;
  }
  .product-card-body,
  .category-card div,
  .subcategory-card div {
    padding: 12px;
  }
  .meta {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }
  .product-card-body h3,
  .category-card h3,
  .subcategory-card h3 {
    font-size: 1.08rem;
    line-height: 1.05;
    margin-bottom: 6px;
  }
  .product-card-description,
  .category-card p,
  .subcategory-card p {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .price-block strong {
    font-size: 0.86rem;
  }
  .price-block span {
    font-size: 0.7rem;
  }
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .card-action-area {
    width: 100%;
    justify-items: stretch;
  }
  .button-small {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .cart-pill {
    font-size: 0.68rem;
    text-align: center;
  }
  .custom-price-grid {
    grid-template-columns: 1fr;
  }
  .admin-nav-tabs {
    grid-template-columns: 1fr;
  }
}
