/* IHA Gallery — main stylesheet */
:root {
  --c1: #9fbeca;          /* main brand */
  --c2: #6c8da9;          /* secondary brand */
  --c1-soft: #e9f1f5;
  --c1-softer: #f4f8fa;
  --ink: #2b3a44;
  --muted: #7d8d97;
  --bg: #fbfaf8;
  --card: #ffffff;
  --line: #e3e9ec;
  --accent: #c9a886;
  --danger: #c0697a;
  --ok: #6da98e;
  --header-bg: rgba(251, 250, 248, 0.92);
  --footer-bg: #eef4f7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 58, 68, 0.08);
  --shadow-soft: 0 4px 14px rgba(43, 58, 68, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  color-scheme: light;
}

/* ------------------------------------------------------------ dark theme */
[data-theme="dark"] {
  --c1-soft: #25323b;
  --c1-softer: #1b242b;
  --ink: #e4ecf1;
  --muted: #8da0ab;
  --bg: #12181d;
  --card: #1b2329;
  --line: #2b3640;
  --header-bg: rgba(18, 24, 29, 0.9);
  --footer-bg: #0e1419;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
[data-theme="dark"] .btn-primary:hover { background: var(--c1); color: #12181d; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #161e24 0%, #1a242c 55%, #1c2830 100%); }
[data-theme="dark"] .owner-section { background: linear-gradient(160deg, var(--c1-softer) 0%, var(--bg) 60%, var(--c1-softer) 100%); }
[data-theme="dark"] .artist-hero { background: linear-gradient(135deg, #161e24, #1c2830); }
[data-theme="dark"] .hero-blob-1 { opacity: .3; }
[data-theme="dark"] .toast,
[data-theme="dark"] .toast.success,
[data-theme="dark"] .toast.error,
[data-theme="dark"] .toast.info {
  background: #232c34;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .toast { border-left: 3px solid var(--c1); }
[data-theme="dark"] .toast.success { border-left: 3px solid #7cc7a4; }
[data-theme="dark"] .toast.error { border-left: 3px solid #e08a9c; }
[data-theme="dark"] .toast.info { border-left: 3px solid var(--c1); }
[data-theme="dark"] .chip-ok, [data-theme="dark"] .chip-completed { background: #1e3a2f; color: #7cc7a4; }
[data-theme="dark"] .chip-wait, [data-theme="dark"] .chip-pending { background: #3a2f1e; color: #d4a96a; }
[data-theme="dark"] .chip-shipped { background: #252a4a; color: #97a0e8; }
[data-theme="dark"] .chip-cancelled { background: #41252c; color: #e08a9c; }
[data-theme="dark"] .collage-img, [data-theme="dark"] .artist-avatar { border-color: var(--card); }
[data-theme="dark"] .editor-area:focus { background: var(--card); }
[data-theme="dark"] #geo-map { background: var(--c1-softer); }
[data-theme="dark"] .star-input label { color: #46535c; }
[data-theme="dark"] .panel-nav { background: linear-gradient(176deg, #1f2a32 0%, #161f26 100%); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .data-table th { background: #20292f; }
[data-theme="dark"] .stat-card::after { opacity: .1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 2rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.pre-wrap { white-space: pre-wrap; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600; color: var(--ink);
  letter-spacing: .02em;
}
.main-nav { display: flex; gap: 22px; margin-left: 8px; }
.main-nav a { color: var(--ink); font-size: .95rem; letter-spacing: .04em; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--c2); transition: right .25s;
}
.main-nav a:hover::after { right: 0; }
.main-nav a.active { color: var(--c2); font-weight: 500; }
.main-nav a.active::after { right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-link { font-size: .92rem; color: var(--ink); }
.header-link.muted { color: var(--muted); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s;
}
.icon-btn:hover { background: var(--c1-soft); }
.badge {
  position: absolute; top: -2px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--c2); color: #fff; border-radius: 9px;
  font-size: .68rem; line-height: 17px; text-align: center; font-weight: 500;
}
.nav-toggle { display: none; }
#theme-toggle svg { display: none; }
[data-theme-mode="light"] #theme-toggle .icon-sun { display: block; }
[data-theme-mode="dark"] #theme-toggle .icon-moon { display: block; }
[data-theme-mode="auto"] #theme-toggle .icon-auto { display: block; }
html:not([data-theme-mode]) #theme-toggle .icon-auto { display: block; }

/* notifications dropdown */
.notif-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 330px; max-width: 86vw;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.dropdown-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.dropdown-empty { padding: 18px 16px; color: var(--muted); margin: 0; }
.dropdown-foot { display: block; text-align: center; padding: 10px; background: var(--c1-softer); font-size: .9rem; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif-item.unread { background: var(--c1-softer); }
.notif-item strong { display: block; font-weight: 500; font-size: .92rem; }
.notif-item p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.notif-item time { font-size: .75rem; color: var(--muted); }
.linklike { background: none; border: none; color: var(--c2); cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.linklike:hover { color: var(--ink); }
.linklike.remove { color: var(--danger); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; font-weight: 400; letter-spacing: .05em;
  transition: all .22s; text-align: center;
}
.btn-primary { background: var(--c2); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; border-color: var(--c2); color: var(--c2); }
.btn-ghost:hover { background: var(--c1-soft); color: var(--ink); }
.btn-small { padding: 7px 16px; font-size: .85rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.btn { font-family: var(--font-body); }

/* --------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, var(--c1-softer) 0%, var(--c1-soft) 55%, #dcebf1 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 92px 24px 96px; max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  color: var(--c2); margin: 0 0 14px;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 18px; font-weight: 500; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

/* ------------------------------------------------------- modern hero */
.hero-modern { position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero-blob-1 { width: 480px; height: 480px; top: -160px; right: -80px; background: radial-gradient(circle, var(--c1) 0%, transparent 70%); }
.hero-blob-2 { width: 380px; height: 380px; bottom: -140px; left: -120px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .3; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 84px;
}
.hero-grid .hero-cta { margin-bottom: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp .65s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-stats { display: flex; gap: 36px; margin-top: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--c2); line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hero-collage { position: relative; height: 430px; animation: fadeUp .8s .2s ease both; }
.collage-img {
  position: absolute; display: block; overflow: hidden;
  border-radius: 18px; box-shadow: var(--shadow); border: 5px solid #fff;
  transition: transform .35s ease;
}
.collage-img img { width: 100%; height: 100%; object-fit: cover; }
.collage-img:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.collage-1 { width: 62%; height: 64%; top: 0; left: 0; transform: rotate(-3deg); z-index: 2; }
.collage-2 { width: 48%; height: 48%; top: 18%; right: 0; transform: rotate(2.5deg); z-index: 3; }
.collage-3 { width: 52%; height: 42%; bottom: 0; left: 16%; transform: rotate(-1.5deg); z-index: 4; }

/* owner biography band */
.owner-section {
  background: linear-gradient(160deg, var(--c1-softer) 0%, #fff 60%, var(--c1-softer) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.owner-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; }
.owner-photo { position: relative; }
.owner-photo::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--c1); border-radius: var(--radius); z-index: 0;
}
.owner-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.owner-role { margin-top: -8px; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.owner-text .hero-cta { margin-top: 22px; }

/* category band */
.cat-band h2 { margin-bottom: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: .95rem; box-shadow: var(--shadow-soft);
  transition: transform .2s, border-color .2s;
}
.cat-chip:hover { transform: translateY(-2px); border-color: var(--c2); color: var(--c2); }
.cat-chip span {
  background: var(--c1-soft); color: var(--c2); border-radius: 999px;
  padding: 1px 9px; font-size: .75rem;
}

/* artist pages & bio editing */
.artist-hero { background: linear-gradient(135deg, var(--c1-softer), var(--c1-soft)); border-bottom: 1px solid var(--line); }
.artist-hero-inner { display: flex; gap: 32px; align-items: center; padding: 56px 24px; }
.artist-avatar {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: var(--shadow);
}
.artist-bio { font-size: 1.05rem; }
.bio-avatar-row { display: flex; gap: 22px; align-items: center; margin-bottom: 10px; }

/* category chip selector (product form) */
.cat-select {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; margin: 10px 0 6px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--c1-softer);
  max-height: 260px; overflow-y: auto;
  scrollbar-width: thin;
}
.cat-select-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-select-arrow { color: var(--muted); font-size: 1.1rem; line-height: 1; margin: 0 2px; }
.cat-chip-select { margin: 0; cursor: pointer; }
.cat-chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip-box {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: .88rem; color: var(--ink);
  transition: all .18s ease;
}
.cat-chip-box svg { width: 12px; height: 12px; display: none; }
.cat-chip-select:hover .cat-chip-box { border-color: var(--c2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.cat-chip-select input:checked + .cat-chip-box {
  background: linear-gradient(92deg, var(--c2), #87a9bd);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(108, 141, 169, 0.35);
}
.cat-chip-select input:checked + .cat-chip-box svg { display: inline; }
.cat-chip-select input:focus-visible + .cat-chip-box { outline: 2px solid var(--c2); outline-offset: 2px; }

/* image radio-grid picker (server-rendered, no JS) */
.library-picker { margin: 10px 0 12px; }
.library-picker-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; margin-bottom: 8px;
}
.photo-radio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px;
  max-height: 380px; overflow-y: auto;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--c1-softer);
  scrollbar-width: thin;
}
.photo-radio { cursor: pointer; margin: 0; }
.photo-radio input { position: absolute; opacity: 0; pointer-events: none; }
.photo-radio-box {
  position: relative; display: block;
  border-radius: 12px; overflow: hidden;
  border: 2.5px solid transparent;
  background: var(--card);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.photo-radio-box img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-radio:hover .photo-radio-box { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c1); }
.photo-radio:hover .photo-radio-box img { transform: scale(1.06); }
.photo-radio-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px; font-size: .68rem; color: #fff;
  background: linear-gradient(transparent, rgba(24, 31, 37, 0.72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .2s;
}
.photo-radio:hover .photo-radio-name,
.photo-radio input:checked + .photo-radio-box .photo-radio-name { opacity: 1; }
.photo-radio input:checked + .photo-radio-box {
  border-color: var(--c2);
  box-shadow: 0 8px 20px rgba(108, 141, 169, 0.4);
}
.photo-radio input:focus-visible + .photo-radio-box { outline: 2px solid var(--c2); outline-offset: 2px; }
.photo-radio-check {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c2); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.photo-radio-check svg { width: 12px; height: 12px; }
.photo-radio input:checked + .photo-radio-box .photo-radio-check { display: flex; }
.photo-radio-none .photo-radio-box {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--muted);
}
.photo-radio-none svg { width: 26px; height: 26px; }
.photo-radio-none em { font-style: normal; font-size: .75rem; }
.bio-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c1-soft); }

/* ------------------------------------------------------------ sections */
.section { padding: 64px 0; }
.section-tint { background: var(--c1-softer); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-link { font-size: .92rem; letter-spacing: .04em; }
.page-head-section { padding: 48px 0 8px; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.page-sub { margin-top: 0; }
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic; color: var(--c2); max-width: 720px; margin: 0 auto 24px;
}
.empty-note { padding: 40px 0; }

/* -------------------------------------------------------------- masonry */
.masonry { columns: 3 280px; column-gap: 20px; }
.masonry-lg { columns: 3 320px; }
.masonry-item {
  display: block; position: relative; margin: 0 0 20px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); break-inside: avoid;
}
.masonry-item img { width: 100%; transition: transform .5s ease; }
.masonry-item:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.masonry-item:nth-child(3n+2) img { aspect-ratio: 1 / 1; object-fit: cover; }
.masonry-item:nth-child(3n) img { aspect-ratio: 4 / 3; object-fit: cover; }
.masonry-item:hover img { transform: scale(1.045); }
.masonry-cap {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(43, 58, 68, .55));
  color: #fff; font-size: .95rem;
  opacity: 0; transition: opacity .3s;
}
.masonry-cap em { font-style: normal; font-size: .85rem; opacity: .9; }
.masonry-item:hover .masonry-cap { opacity: 1; }

/* ------------------------------------------------------- product cards */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.product-card { overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .5s; }
.product-card:hover .card-media img { transform: scale(1.05); }
.tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 11px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}
.tag-out { background: var(--muted); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); font-weight: 500; }
.card-rating { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.stars { color: #d8c7b6; letter-spacing: 2px; font-size: .95rem; }
.stars .star.on { color: var(--accent); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-weight: 500; }
.price s { font-weight: 300; margin-right: 4px; }

/* ----------------------------------------------------------------- shop */
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.shop-sidebar h3 { font-size: 1.3rem; margin-top: 28px; }
.search-form { display: flex; gap: 8px; margin-bottom: 10px; }
.search-form input { flex: 1; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list ul { list-style: none; padding-left: 16px; }
.cat-list a { display: block; padding: 5px 0; color: var(--ink); font-size: .95rem; }
.cat-list a.active { color: var(--c2); font-weight: 500; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.pagination { display: flex; gap: 8px; margin-top: 34px; }
.page {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: .9rem;
}
.page.current { background: var(--c2); border-color: var(--c2); color: #fff; }

/* --------------------------------------------------------- product page */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb span { color: var(--ink); }
.product-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .18s ease-out; will-change: transform; }
.gallery-main.zooming img { transform: scale(2.3); }
.gallery-main.zooming .tag { opacity: 0; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(43, 58, 68, 0.62); color: #fff;
  padding: 4px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em;
  pointer-events: none; transition: opacity .25s;
}
.gallery-main.zooming .zoom-hint { opacity: 0; }
@media (hover: none) {
  .gallery-main { cursor: default; }
  .gallery-main.zooming img { transform: none; }
  .zoom-hint { display: none; }
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--c2); }
.product-edit-btn { margin-bottom: 14px; }
.product-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 4px; }
.product-byline { margin-top: 0; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.price-big { font-size: 1.7rem; font-weight: 500; color: var(--c2); }
.product-short { font-size: 1.05rem; }
.add-form { margin: 20px 0; }
.qty-row { display: flex; gap: 12px; align-items: center; }
.qty-row input[type=number] { width: 76px; }
.stock-note { font-size: .85rem; margin-top: 8px; }
.soldout-note { background: var(--c1-softer); border-radius: var(--radius); padding: 16px 20px; }
.soldout-flag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.soldout-flag-lg { font-size: .95rem; padding: 7px 20px; }
.attr-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .93rem; }
.attr-table th, .attr-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.attr-table th { color: var(--muted); font-weight: 400; width: 38%; }
.product-cats { font-size: .9rem; }
.product-desc, .product-reviews, .related-block { margin-top: 60px; max-width: 860px; }
.related-block { max-width: none; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 11px; border-radius: 999px;
  background: #e2f1ea; color: var(--ok);
  font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}
.verified-badge svg { width: 11px; height: 11px; }
[data-theme="dark"] .verified-badge { background: #1e3a2f; color: #7cc7a4; }
.review-done { margin-top: 22px; background: var(--c1-softer); border-radius: var(--radius); padding: 14px 18px; }
.review-head { display: flex; gap: 12px; align-items: center; font-size: .92rem; }
.review-form { margin-top: 26px; max-width: 540px; display: flex; flex-direction: column; gap: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d8d8d8; cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }

/* ----------------------------------------------------------------- cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.cart-table th { text-align: left; font-weight: 500; font-size: .85rem; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-thumb { width: 74px; }
.cart-thumb img { width: 62px; height: 62px; min-width: 62px; flex: none; object-fit: cover; border-radius: 10px; }
/* Keep numeric/price cells on one line so a long price never wraps or distorts the row. */
.data-table td.num, .data-table .price { white-space: nowrap; }
.cart-title { color: var(--ink); font-weight: 400; }
.qty-input { width: 64px; }
.remove-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.remove-btn svg { width: 17px; height: 17px; }
.remove-btn:hover {
  color: #fff; background: var(--danger); border-color: var(--danger);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 105, 122, 0.35);
}
.cart-summary { padding: 22px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.05rem; }
.notice-card { padding: 20px 24px; margin-bottom: 26px; background: var(--c1-softer); }
.coupon-form { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.coupon-form input { flex: 1; min-width: 120px; }
.summary-divider { border: none; border-top: 1px solid var(--line); margin: 10px 0; }
.discount-row { color: var(--ok); }

/* support tickets */
.ticket-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.ticket-msg {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; max-width: 92%;
}
.ticket-msg.staff { background: var(--c1-softer); border-color: var(--c1); margin-left: 8%; }
.ticket-msg.internal { background: #fdf6ec; border-color: #e3cba4; border-style: dashed; }
[data-theme="dark"] .ticket-msg.internal { background: #2e2a20; border-color: #6b5a38; }
.ticket-msg-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .88rem; margin-bottom: 4px; }
.ticket-msg p { margin: 4px 0 0; font-size: .95rem; }
.ticket-attachment { max-width: 220px; border-radius: 10px; margin-top: 10px; box-shadow: var(--shadow-soft); }
.ticket-form { max-width: 720px; }

/* security: 2FA + sessions */
.totp-setup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.totp-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); min-width: 188px; min-height: 188px; }
.totp-qr img, .totp-qr canvas { display: block; }
.totp-secret code {
  background: var(--c1-softer); padding: 8px 12px; border-radius: 10px;
  font-size: .9rem; letter-spacing: .08em;
}
.totp-input { max-width: 160px; font-size: 1.2rem; letter-spacing: .35em; text-align: center; }
.twofa-request-form { margin-top: 16px; }
.twofa-request-form .linklike { font-size: .85rem; }

/* ------------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.checkout-form { padding: 28px; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pay-method {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: border-color .2s;
}
.pay-method:has(input:checked) { border-color: var(--c2); background: var(--c1-softer); }
.pay-method input { margin-top: 5px; }
.pay-method em { display: block; font-style: normal; font-size: .85rem; }
.pay-method.unavailable { opacity: .55; }
.transport-group { margin-bottom: 20px; }
.transport-price-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; margin-bottom: 8px; }

/* countries page: stacked full-width sections */
.countries-layout { display: flex; flex-direction: column; gap: 40px; }
.countries-layout section { min-width: 0; }
.country-form { max-width: 560px; }

/* coupon form: grouped grid layout */
.coupon-form { max-width: 720px; }
.coupon-form .form-grid { margin-bottom: 6px; }
.coupon-form h3 { margin-top: 22px; }
.coupon-form h3:first-of-type { margin-top: 4px; }
.coupon-form .form-actions { margin-top: 20px; }

/* product moderation */
.pending-row { padding: 10px 0; border-top: 1px solid var(--line); }
.pending-row:first-of-type { border-top: none; }
.pending-actions { display: flex; gap: 8px; align-items: center; }
.moderation-actions { margin: 10px 0 14px; }
.reject-form { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.reject-form textarea { margin-bottom: 10px; }
.country-form .transport-price-row:first-of-type { margin-top: 4px; }

/* ---------------------------------------------------------------- forms */
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], input[type=date], input[type=datetime-local],
input[type=time], select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--card); transition: border-color .2s, box-shadow .2s;
}

/* date/time pickers: themed calendar icon + consistent height */
input[type=date], input[type=datetime-local], input[type=time] {
  cursor: pointer; min-height: 42px;
}
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55;
  padding: 4px; border-radius: 6px;
  transition: opacity .2s, background .2s;
}
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover {
  opacity: 1; background: var(--c1-soft);
}
[data-theme="dark"] input[type=date]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type=datetime-local]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type=time]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(159, 190, 202, 0.25);
}
label { display: block; font-size: .9rem; margin-bottom: 4px; }
label input, label select, label textarea { margin-top: 5px; }
.field-hint { display: block; font-size: .78rem; margin-top: 4px; }
.strength-meter { display: flex; align-items: center; gap: 12px; margin-top: -4px; }
.strength-track { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.strength-bar { height: 100%; width: 0; border-radius: 999px; transition: width .25s ease, background .25s ease; }
.strength-bar.weak { background: var(--danger); }
.strength-bar.medium { background: #d4a96a; }
.strength-bar.good { background: var(--c2); }
.strength-bar.strong { background: var(--ok); }
.strength-label { font-size: .78rem; min-width: 86px; text-align: right; }
.confirm-hint { color: var(--danger); }
.cf-turnstile { margin: 4px 0; min-height: 65px; }
.test-email-form { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.form-grid .span2 { grid-column: span 2; }
.form-actions { display: flex; gap: 12px; margin-top: 26px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 0; }
.check input { width: auto; margin: 0; }
.check.indent { margin-left: 22px; }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 14px 0 22px; }
.check-row.wrap { max-width: 720px; }
.attr-row { display: grid; grid-template-columns: 1fr 1.4fr 30px; gap: 10px; margin-bottom: 10px; align-items: center; }
.image-manage { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.image-tile { width: 110px; }
.image-tile img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.image-tile .check { font-size: .8rem; margin-top: 4px; }
.file-label { margin: 12px 0 4px; }
.block-label { display: block; max-width: 640px; }
.inline-form { display: inline-block; }
.inline-form select { width: auto; }

/* ----------------------------------------------------------- auth pages */
.auth-section { display: flex; justify-content: center; padding: 80px 0; }
/* The container is a flex item: without an explicit width it shrink-wraps to
   its content, making each card a different size. Force full width so the
   card's max-width is the single source of truth. */
.auth-section .container { width: 100%; }
.auth-card { max-width: 420px; margin: 0 auto; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { margin-bottom: 0; }

/* animated sign-in scene */
.auth-animated {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 70px);
  align-items: center;
  background: linear-gradient(120deg, var(--c1-softer), #dcebf1, var(--c1-soft), #e9e2d8);
  background-size: 300% 300%;
  animation: auth-aurora 16s ease-in-out infinite alternate;
}
@keyframes auth-aurora {
  0% { background-position: 0% 30%; }
  100% { background-position: 100% 70%; }
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-blob {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5;
  animation: auth-drift 18s ease-in-out infinite alternate;
}
.auth-blob.b1 { width: 420px; height: 420px; top: -120px; left: -90px; background: radial-gradient(circle, var(--c1) 0%, transparent 70%); }
.auth-blob.b2 { width: 360px; height: 360px; bottom: -120px; right: -70px; background: radial-gradient(circle, var(--c2) 0%, transparent 70%); animation-delay: -6s; }
.auth-blob.b3 { width: 280px; height: 280px; top: 40%; left: 55%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .3; animation-delay: -12s; }
@keyframes auth-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -28px) scale(1.08); }
  100% { transform: translate(-24px, 22px) scale(0.96); }
}
.auth-frame {
  position: absolute; border-radius: 10px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 30px rgba(43, 58, 68, 0.18);
  opacity: .55;
  animation: auth-bob 9s ease-in-out infinite alternate;
}
.auth-frame.f1 { width: 90px; height: 116px; top: 14%; left: 9%; transform: rotate(-7deg); }
.auth-frame.f2 { width: 70px; height: 70px; top: 64%; left: 16%; transform: rotate(5deg); background: linear-gradient(135deg, var(--accent), var(--c1)); animation-delay: -2s; }
.auth-frame.f3 { width: 110px; height: 84px; top: 20%; right: 11%; transform: rotate(6deg); background: linear-gradient(135deg, var(--c2), var(--accent)); animation-delay: -4s; }
.auth-frame.f4 { width: 64px; height: 88px; bottom: 14%; right: 18%; transform: rotate(-5deg); animation-delay: -6s; }
.auth-frame.f5 { width: 52px; height: 52px; top: 46%; left: 5%; transform: rotate(10deg); opacity: .35; animation-delay: -8s; }
@keyframes auth-bob {
  0% { margin-top: 0; }
  100% { margin-top: -26px; }
}

.auth-card-modern {
  position: relative; z-index: 1;
  max-width: 450px; width: 100%;
  padding: 36px 38px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(43, 58, 68, 0.18);
  animation: confirm-pop .35s cubic-bezier(.34, 1.3, .64, 1) both;
  text-align: center;
}
.auth-card-modern label { text-align: left; }
.auth-card-modern input { background: rgba(255, 255, 255, 0.85); }
.auth-card-modern .totp-input { display: block; margin: 6px auto 0; }
.auth-card-modern .strength-meter { text-align: left; }
.auth-animated .container { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .auth-card-modern { padding: 30px 24px; }
}

.auth-lock {
  width: 58px; height: 58px; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 24px rgba(108, 141, 169, 0.4);
}
.auth-lock svg { width: 26px; height: 26px; }
.lock-shackle { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); transform-origin: 8px 11px; }
.auth-card-modern:focus-within .lock-shackle { transform: translateY(-2.5px) rotate(-8deg); }
.auth-card-modern:focus-within .auth-lock { animation: lock-nudge .5s ease; }
@keyframes lock-nudge {
  0%, 100% { transform: none; }
  40% { transform: scale(1.07); }
}

[data-theme="dark"] .auth-animated { background: linear-gradient(120deg, #131a20, #18222b, #1a2630, #161e25); background-size: 300% 300%; }
[data-theme="dark"] .auth-frame { border-color: rgba(255, 255, 255, 0.25); opacity: .35; }
[data-theme="dark"] .auth-card-modern {
  background: rgba(24, 31, 37, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .auth-card-modern input { background: rgba(15, 21, 26, 0.7); }

@media (prefers-reduced-motion: reduce) {
  .auth-animated, .auth-blob, .auth-frame, .auth-card-modern { animation: none; }
}

/* --------------------------------------------------------------- panels */
.panel { display: grid; grid-template-columns: 236px 1fr; gap: 36px; padding-top: 34px; padding-bottom: 70px; align-items: start; }

.panel-nav {
  display: flex; flex-direction: column;
  background: linear-gradient(176deg, #31434f 0%, #243038 70%, #20303b 100%);
  border-radius: 20px; padding: 16px 14px 12px;
  box-shadow: 0 16px 40px rgba(32, 48, 59, 0.28);
}
.panel-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  padding: 2px 10px 14px; letter-spacing: .03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 12px;
}
.panel-brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--accent));
  box-shadow: 0 0 0 4px rgba(159, 190, 202, 0.18);
}
.panel-nav-links { display: flex; flex-direction: column; gap: 2px; }
.panel-nav-links a {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 12px; border-radius: 11px;
  color: #aebfca; font-size: .9rem; letter-spacing: .01em;
  transition: background .18s, color .18s;
}
.panel-nav-links a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.panel-nav-links a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.panel-nav-links a.active {
  background: linear-gradient(92deg, var(--c2), #87a9bd);
  color: #fff; font-weight: 500;
  box-shadow: 0 6px 16px rgba(108, 141, 169, 0.35);
}
.panel-nav-links a.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto; font-style: normal;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: .68rem; line-height: 1;
  padding: 3px 7px; font-family: var(--font-body);
}
.panel-nav-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; font-weight: 600; text-transform: uppercase; font-size: .95rem;
}
.panel-nav-user-meta { display: flex; flex-direction: column; min-width: 0; }
.panel-nav-user-meta strong { color: #e8eff3; font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-nav-user-meta em { color: #8da0ab; font-size: .72rem; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.panel-exit { margin-left: auto; color: #8da0ab; display: inline-flex; padding: 6px; border-radius: 8px; }
.panel-exit:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.panel-exit svg { width: 16px; height: 16px; }

/* Content holder: the panel body is a raised card surface. */
.panel-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 34px 34px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.panel-body .data-table { box-shadow: none; }
.panel-body .card { box-shadow: none; }
.panel-body .stat-card:hover { box-shadow: var(--shadow-soft); }

.panel-title { font-size: 2.1rem; position: relative; padding-bottom: 10px; }
.panel-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c2), var(--c1));
}
.panel-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-body h2 { font-size: 1.5rem; margin-top: 38px; }
.panel-body > .search-form { max-width: 420px; margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }
.form-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; border-radius: 16px; }
.settings-form { max-width: 860px; }
.settings-form h3 { margin-top: 26px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.settings-form .tab-panel > h3:first-child { margin-top: 6px; }

/* tabs */
.tab-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.tab-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 10px 18px; margin-bottom: -2px;
  font-family: var(--font-body); font-size: .93rem; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--c2); border-bottom-color: var(--c2); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease both; }
.product-form h3 { margin-top: 30px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 22px 0 32px; }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 20px 16px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}
.stat-card::after {
  content: ''; position: absolute; right: -28px; top: -28px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1) 0%, transparent 70%);
  opacity: .16; pointer-events: none;
}
.stat-num { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; color: var(--c2); line-height: 1.15; }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

.data-table {
  width: 100%; font-size: .93rem; margin-bottom: 26px;
  border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.data-table th {
  text-align: left; font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 12px 14px;
  background: var(--c1-softer); border-bottom: 1px solid var(--line);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--c1-softer); }
.data-table .total-row td { font-size: 1rem; background: var(--c1-softer); }

.chip {
  display: inline-block; padding: 2px 11px; border-radius: 999px;
  font-size: .75rem; letter-spacing: .04em;
  background: var(--c1-soft); color: var(--c2);
}
.chip-ok, .chip-completed { background: #e2f1ea; color: var(--ok); }
.chip-wait, .chip-pending { background: #f7eee3; color: #b08a55; }
.chip-processing { background: var(--c1-soft); color: var(--c2); }
.chip-shipped { background: #e7e9f7; color: #7079c0; }
.chip-cancelled { background: #f6e4e8; color: var(--danger); }
.chip-info { background: var(--c1-softer); color: var(--muted); }

.filter-pills, .map-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.pill {
  padding: 6px 16px; border-radius: 999px; font-size: .85rem;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pill:hover { border-color: var(--c2); transform: translateY(-1px); }
.pill.active {
  background: linear-gradient(92deg, var(--c2), #87a9bd);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(108, 141, 169, 0.3);
}

#geo-map { background: var(--c1-softer); border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 14px; }

.timeline { list-style: none; padding: 0; margin: 0 0 22px; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--c1); margin-left: 6px; position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -6px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--c2);
}
.timeline p { margin: 4px 0 0; font-size: .9rem; }

.notif-list-page { list-style: none; padding: 0; margin: 0; }
.notif-list-page li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.notif-list-page li.unread { border-left: 4px solid var(--c2); }
.notif-list-page .notif-row-head { display: flex; justify-content: space-between; gap: 12px; }
.notif-list-page p { margin: 6px 0; font-size: .93rem; }
.notif-list-page.compact li { padding: 12px 14px; }
.notif-row-actions { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
.notif-row-actions .linklike { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.notif-readall-form { margin-bottom: 14px; display: flex; justify-content: flex-end; }
.notif-item .notif-mark { display: block; margin-top: 4px; color: var(--ok); font-size: .78rem; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.about-text p { font-size: 1.05rem; }
.about-text .hero-cta { margin-top: 30px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 52px 24px 36px; }
.footer-logo { font-size: 1.4rem; }
.site-footer h4 { font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: 3px 0; color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--c2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------ product reports */
.report-range { align-items: center; }
/* custom date-range picker as a single segmented control */
.report-custom {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 3px 3px 14px;
  box-shadow: var(--shadow-soft);
}
.report-custom.active { border-color: var(--c2); box-shadow: 0 4px 12px rgba(108, 141, 169, 0.25); }
.report-custom input[type=date] {
  width: auto; min-height: 0; padding: 6px 6px; font-size: .85rem;
  border: none; background: transparent; box-shadow: none; cursor: pointer;
}
.report-custom input[type=date]:focus { outline: none; box-shadow: none; }
.report-custom > .muted { padding: 0 2px; }
.report-custom button {
  border: none; cursor: pointer;
  background: linear-gradient(92deg, var(--c2), #87a9bd); color: #fff;
  border-radius: 999px; padding: 8px 20px; font-size: .85rem; font-weight: 500;
  font-family: var(--font-body); letter-spacing: .03em;
  transition: transform .15s, box-shadow .15s;
}
.report-custom button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108, 141, 169, 0.4); }
.report-chart { padding: 18px 20px 10px; margin-bottom: 28px; border-radius: 16px; }
.report-chart svg { width: 100%; height: auto; display: block; }
.report-bar {
  display: block; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  min-width: 3px;
}
.report-peaks { gap: 14px; }
.report-peak { display: flex; flex-direction: column; gap: 2px; }
.report-peak strong { font-weight: 500; }

/* ------------------------------------------------ modern image uploads */
.upload-zone {
  border: 2px dashed var(--c1); border-radius: 16px;
  background: var(--c1-softer); padding: 26px 20px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  margin: 10px 0 16px;
}
.upload-zone:hover { border-color: var(--c2); background: var(--c1-soft); }
.upload-zone.dragging {
  border-color: var(--c2); background: var(--c1-soft);
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(108, 141, 169, 0.15);
}
.upload-zone-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.upload-zone-inner svg { width: 30px; height: 30px; color: var(--c2); margin-bottom: 4px; }
.upload-zone-inner strong { font-weight: 500; }
.upload-zone-inner span { font-size: .8rem; }
.upload-zone-compact { padding: 14px 16px; }
.upload-zone-compact .upload-zone-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
.upload-zone-compact .upload-zone-inner svg { width: 20px; height: 20px; margin: 0; }
.upload-previews { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.upload-preview {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  max-width: 92px; font-size: .68rem; color: var(--muted);
}
.upload-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-soft); }
.upload-preview.noimg { font-size: 1.6rem; }
.upload-preview em { font-style: normal; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-upload-form { margin-bottom: 26px; }

/* product image roles */
.image-roles { display: flex; flex-direction: column; gap: 18px; margin: 8px 0 4px; }
.image-role { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--c1-softer); }
.image-role > label { display: block; font-weight: 500; margin-bottom: 8px; }

/* product image field + multi-select browse dialog */
.image-field-items { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.image-field-item { position: relative; display: inline-block; }
.image-field-item img {
  width: 92px; height: 92px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.image-field-item:first-child img { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(108,141,169,.3); }
.image-field-remove {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff;
  font-size: .85rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft);
}
.image-field-remove:hover { transform: scale(1.1); }

.browse-dialog { width: 860px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.browse-count { flex: 1; }
.browse-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.browse-tools .media-search { margin: 0; flex: 1; }
.browse-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px; overflow-y: auto; flex: 1; min-height: 200px;
  padding: 4px; align-content: start;
}
.browse-tile {
  position: relative; padding: 0; border: 2.5px solid transparent;
  border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--c1-softer);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.browse-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.browse-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--c1); }
.browse-tile.picked { border-color: var(--c2); box-shadow: 0 6px 16px rgba(108,141,169,.4); }
.browse-check {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c2); color: #fff; display: none;
  align-items: center; justify-content: center;
}
.browse-check svg { width: 13px; height: 13px; }
.browse-tile.picked .browse-check { display: flex; }
.browse-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line);
}
/* single-select: clicking a tile applies immediately, so hide the multi-select footer */
.browse-single .browse-foot { display: none; }
.browse-single #browse-selected { display: none; }
.browse-empty, .browse-loading { text-align: center; padding: 20px 0; }
.browse-sentinel { height: 1px; }

/* media-library image fields */
.media-field { margin: 8px 0 14px; }
.media-field-items { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.media-field-item { position: relative; display: inline-block; }
.media-field-item img {
  width: 86px; height: 86px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.media-field-remove {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff;
  font-size: .85rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.media-field-remove:hover { transform: scale(1.1); }
.media-field-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------- confirm dialog */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(24, 33, 40, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: toast-in .18s ease;
}
.confirm-overlay.closing { opacity: 0; transition: opacity .15s; }
.confirm-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 28px 30px 24px;
  width: 400px; max-width: 100%; text-align: center;
  animation: confirm-pop .22s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes confirm-pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.confirm-icon {
  width: 52px; height: 52px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--accent);
  background: rgba(201, 168, 134, 0.16);
}
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-title { margin-bottom: 4px; font-size: 1.45rem; }
.confirm-msg { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------------- toast */
#toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: .92rem; max-width: 340px;
  animation: toast-in .3s ease;
}
.toast.success { background: var(--c2); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.hide { opacity: 0; transition: opacity .4s; }

/* page transition shimmer */
/* ----------------------------------------------------- loading indicator */
/* Top progress bar (YouTube/GitHub style) shown during AJAX requests. */
#progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
#progress-bar.active { opacity: 1; }
#progress-bar .progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--accent));
  background-size: 200% 100%;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(108, 141, 169, 0.7), 0 0 4px var(--c2);
  transition: width .2s ease;
  animation: progress-glow 1.1s linear infinite;
}
#progress-bar.done .progress-fill { transition: width .25s ease; animation: none; }
@keyframes progress-glow { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* Content area while loading: dim + a sweeping shimmer so it reads as "working". */
#main.loading { position: relative; pointer-events: none; }
#main.loading::after {
  content: ''; position: absolute; inset: 0; z-index: 60; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(159, 190, 202, 0.10) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: content-shimmer 1.1s ease-in-out infinite;
}
#main { transition: opacity .2s; }
#main.loading { opacity: .6; }
@keyframes content-shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) {
  #progress-bar .progress-fill, #main.loading::after { animation: none; }
}
#main { transition: opacity .2s; }

/* ------------------------------------------------- profile & addresses */
.addr-card { padding: 16px 20px; margin-bottom: 14px; }
.addr-head { display: flex; gap: 10px; align-items: center; }
.addr-card p { margin: 8px 0; font-size: .93rem; }
.addr-actions { display: flex; gap: 16px; align-items: center; font-size: .88rem; }
.profile-card { max-width: 460px; }
.addr-pick { margin-bottom: 20px; }

/* ----------------------------------------------------- static pages CMS */
.page-content { font-size: 1.02rem; }
.page-content img { border-radius: var(--radius); box-shadow: var(--shadow-soft); margin: 18px 0; height: auto; }
.page-content h2, .page-content h3 { margin-top: 1.4em; }
.page-content blockquote {
  border-left: 3px solid var(--c1); margin: 1.2em 0; padding: 4px 0 4px 18px;
  color: var(--c2); font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
}
.page-content hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* editor */
.page-form { max-width: 900px; }
.editor { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--c1-softer);
  position: sticky; top: 0; z-index: 5;
}
.editor-toolbar button {
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 5px 10px; cursor: pointer; font-family: var(--font-body); font-size: .85rem; color: var(--ink);
}
.editor-toolbar button:hover { background: var(--c1-soft); }
.editor-toolbar button.active { background: var(--c2); color: #fff; }
.ed-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.editor-area {
  min-height: 320px; padding: 18px 22px; outline: none; font-size: .98rem; line-height: 1.65;
}
.editor-area img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.editor-area:focus { background: #fffdfb; }
.editor-source {
  width: 100%; border: none; border-radius: 0; padding: 18px 22px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85rem; min-height: 320px;
}
.editor-source:focus { box-shadow: none; }

/* media modal + library */
.media-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(43, 58, 68, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.media-dialog {
  width: 760px; max-width: 100%; max-height: 84vh; display: flex; flex-direction: column;
  padding: 20px 22px;
}
.media-head { display: flex; align-items: center; gap: 14px; }
.media-head h3 { margin: 0; flex: 1; }
.media-hint { margin: 6px 0 12px; font-size: .85rem; }
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px;
  overflow-y: auto;
}
.media-pick {
  position: relative;
  border: 2.5px solid transparent; border-radius: 12px; background: var(--card);
  padding: 0; cursor: pointer; overflow: hidden; text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.media-pick:hover { border-color: var(--c2); transform: translateY(-3px); box-shadow: var(--shadow); }
.media-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .3s ease; }
.media-pick:hover img { transform: scale(1.06); }
.media-pick span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px; font-size: .68rem; color: #fff;
  background: linear-gradient(transparent, rgba(24, 31, 37, 0.72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-body);
  opacity: 0; transition: opacity .2s;
}
.media-pick:hover span { opacity: 1; }
.media-grid.page-grid { overflow: visible; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }

/* media library: search + lazy grid */
.media-total {
  background: var(--c1-soft); color: var(--c2);
  padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
}
.media-search {
  position: relative; margin: 18px 0 20px; max-width: 420px;
}
.media-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.media-search input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: .95rem;
}
.media-tile { animation: fadeUp .3s ease both; }
.media-empty, .media-loading { padding: 24px 0; text-align: center; }
.media-sentinel { height: 1px; }
.media-tile { overflow: hidden; }
.media-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-tile-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.media-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-tile-actions { display: flex; gap: 12px; margin-top: 4px; }
.upload-form { display: flex; gap: 10px; align-items: center; }
.upload-form input[type=file] { width: auto; padding: 6px; background: var(--card); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .shop-layout, .cart-layout, .checkout-layout, .two-col, .order-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-collage { height: 320px; max-width: 480px; }
  .owner-grid { grid-template-columns: 1fr; gap: 36px; }
  .owner-photo { max-width: 340px; }
  .artist-hero-inner { flex-direction: column; text-align: center; gap: 16px; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .panel { grid-template-columns: 1fr; gap: 20px; }
  .panel-nav { border-radius: 16px; }
  .panel-body { padding: 20px 18px 24px; border-radius: 16px; }
  .panel-nav-links { flex-direction: row; flex-wrap: wrap; }
  .panel-nav-links a { padding: 8px 12px; }
  .panel-nav-links a span { font-size: .85rem; }
  .panel-brand { border-bottom: none; padding-bottom: 8px; margin-bottom: 4px; }
  .panel-nav-user { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-summary { position: static; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 24px; gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .nav-toggle { display: inline-flex; }
  .header-link { display: none; }
  .header-link:first-of-type { display: inline; }
  .hero-inner { padding: 60px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }

  /* Shop: collapse the tall vertical category list into compact wrapping pills. */
  .shop-sidebar { margin-bottom: 8px; }
  .shop-sidebar h3 { margin-top: 18px; margin-bottom: 10px; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .cat-list > li { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
  .cat-list ul { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 8px; margin: 0; }
  .cat-list a {
    padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); font-size: .88rem; line-height: 1;
  }
  .cat-list a.active { border-color: var(--c2); background: var(--c2); color: #fff; }

  /* Footer: two compact columns instead of one tall stack. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 24px; padding: 36px 20px 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
