:root {
  --ink: #12110f;
  --paper: #f3efe6;
  --mist: #e7e1d4;
  --stone: #8a8478;
  --forest: #2f4a3b;
  --forest-deep: #1f3228;
  --line: rgba(18, 17, 15, 0.12);
  --danger: #8b2e2e;
  --ok: #2f4a3b;
  --display: "Fraunces", Georgia, serif;
  --sans: "Sora", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(18, 17, 15, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #f7f4ee;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 17, 15, 0.07);
}
.header-bar {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.55rem 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 3px;
}
.brand span { white-space: nowrap; }
.header-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.header-menu > a,
.menu-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  color: #4a4640;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.header-menu > a:hover,
.menu-drop-btn:hover,
.header-menu > a.is-active {
  color: var(--ink);
}
.header-menu > a.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--ink);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.32rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.tag-hot { background: #111; }
.tag-feat { background: var(--forest); }
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.65;
}
.menu-drop { position: relative; }
.menu-drop-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(18, 17, 15, 0.1);
  box-shadow: var(--shadow);
  padding: 0.45rem 0;
  display: none;
  z-index: 60;
}
.menu-drop.is-open .menu-drop-panel { display: block; }
.menu-drop-panel a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}
.menu-drop-panel a:hover { background: #f6f4ef; }
.mega-panel {
  display: none;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.4rem;
  min-width: min(760px, 70vw);
  padding: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
.menu-drop.is-open .mega-panel { display: grid; }
.mega-block {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 0.25rem;
}
.mega-block-title {
  font-family: var(--display);
  font-size: 1.05rem !important;
  margin-bottom: 0.2rem;
  padding-left: 0.35rem !important;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.header-search {
  display: grid;
  grid-template-columns: 1fr 34px;
  width: 168px;
  height: 36px;
  border: 1px solid rgba(18, 17, 15, 0.12);
  background: #faf8f4;
  overflow: hidden;
}
.header-search input[type="search"] {
  border: 0;
  height: 36px;
  padding: 0 0.7rem;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  min-width: 0;
  width: 100%;
}
.header-search input[type="search"]::placeholder {
  color: #9a948a;
}
.search-btn {
  border: 0;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.search-btn svg {
  width: 15px;
  height: 15px;
}
.search-btn:hover { color: var(--forest); }
.header-utils {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}
.util-link,
.account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border: 0;
  background: transparent;
  padding: 0;
}
.util-link svg,
.account-btn svg {
  width: 19px;
  height: 19px;
}
.util-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  padding: 0 3px;
}
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(18, 17, 15, 0.12);
  background: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(18, 17, 15, 0.08);
  background: #fff;
  padding: 0.5rem 1rem 1rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(18, 17, 15, 0.06);
  font-size: 0.95rem;
}
.site-header.is-open .mobile-nav {
  display: block;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f6f3ec;
  background: #141312;
}
.hero-media {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background:
    url("../img/home/hero.jpg") center/cover no-repeat;
  animation: heroMove 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,9,0.82) 0%, rgba(10,10,9,0.48) 45%, rgba(10,10,9,0.3) 100%),
    linear-gradient(180deg, rgba(10,10,9,0.18) 0%, rgba(10,10,9,0.5) 100%);
  animation: shadePulse 12s ease-in-out infinite alternate;
}
.hero-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 0;
}
.hero-frame {
  max-width: 34rem;
  justify-self: start;
  text-align: left;
  animation: rise 850ms ease both;
}
.hero-brand {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(246,243,236,0.9);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.hero-copy {
  max-width: 26rem;
  margin: 0 0 1.5rem;
  color: rgba(246,243,236,0.84);
  font-size: 1.02rem;
  line-height: 1.6;
}
.hero-logo-panel {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  animation: logoFloat 7s ease-in-out infinite;
}
.hero-logo-panel img {
  width: clamp(110px, 16vw, 168px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
.hero-logo-panel span {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #f6f3ec;
  color: #12110f;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: #fff; }
.btn-dark {
  background: #12110f;
  color: #f6f3ec;
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(246,243,236,0.55);
  color: #f6f3ec;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.shop-dirs {
  width: min(1320px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 3.5rem 0 1.25rem;
}
.shop-dirs-head {
  margin-bottom: 1.35rem;
}
.shop-dirs-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  font-weight: 500;
}
.shop-dirs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-height: 72vh;
}
.shop-dir {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #ddd6c8;
  color: #fff;
}
.shop-dir img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}
.shop-dir::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.68) 100%);
}
.shop-dir-label {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.shop-dir-label strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
}
.shop-dir-label span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  padding-bottom: 0.1rem;
}
.shop-dir:hover img { transform: scale(1.05); }

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}
.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin: 0;
}
.section-head p {
  margin: 0.4rem 0 0;
  color: var(--stone);
  max-width: 28rem;
}
.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.12rem;
  white-space: nowrap;
}
.split-story {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 460px;
  background: #efe8da;
}
.split-story-media {
  overflow: hidden;
  min-height: 420px;
}
.split-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-story-copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: 2.5rem;
}
.split-story-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
}
.split-story-copy p {
  margin: 0;
  color: #5a554c;
  line-height: 1.65;
  max-width: 28rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.product {
  display: block;
  animation: rise 700ms ease both;
}
.product:nth-child(2) { animation-delay: 80ms; }
.product:nth-child(3) { animation-delay: 140ms; }
.product:nth-child(4) { animation-delay: 200ms; }
.product-media {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--mist);
  position: relative;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.product:hover .product-media img { transform: scale(1.06); }
.product-meta { padding: 0.85rem 0.05rem 0; }
.product-cat {
  color: var(--stone);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-name {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0.3rem 0 0.35rem;
  font-weight: 500;
}
.product-price {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-size: 0.92rem;
}
.compare {
  color: var(--stone);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.shop-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.shop-hero-band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.shop-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.2rem 0 0.35rem;
  font-weight: 500;
}
.shop-sub {
  margin: 0;
  color: var(--stone);
  font-size: 0.92rem;
}
.shop-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(320px, 100%);
  border: 1px solid rgba(18,17,15,0.14);
  background: #fff;
  flex: 0 0 auto;
}
.shop-search input {
  border: 0;
  height: 44px;
  padding: 0 0.9rem;
  background: transparent;
  outline: none;
}
.shop-search button {
  border: 0;
  padding: 0 1rem;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.shop-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
}
.shop-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.shop-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 0.55rem;
}
.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.shop-chips .chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: #4d4941;
  font-size: 0.84rem;
  line-height: 1.2;
}
.shop-chips .chip.active,
.shop-chips .chip:hover {
  background: var(--ink);
  color: #f7f3eb;
  border-color: var(--ink);
}
.shop-grid { margin-top: 0.5rem; }

.brand-filters {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}
.shop-count {
  margin: 0 0 1rem;
  color: var(--stone);
  font-size: 0.88rem;
}
.chip {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  color: var(--stone);
}
.chip.active, .chip:hover {
  background: var(--ink);
  color: #f7f3eb;
  border-color: var(--ink);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.product-detail-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow);
}
.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rise 800ms ease both;
}
.detail-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0.4rem 0 0.8rem;
  font-weight: 500;
}
.detail-copy p { color: #4d4941; line-height: 1.7; }
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}
.size-row label {
  border: 1px solid var(--line);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
}
.size-row input { display: none; }
.size-row input:checked + span,
.size-row label:has(input:checked) {
  background: var(--ink);
  color: #f7f3eb;
  border-color: var(--ink);
}

.panel {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}
.form-grid {
  display: grid;
  gap: 0.9rem;
}
.form-grid.two { grid-template-columns: 1fr 1fr; }
label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #4d4941;
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }

.flash {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}
.flash.ok { border-color: rgba(47,74,59,0.35); color: var(--ok); }
.flash.err { border-color: rgba(139,46,46,0.35); color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 3rem 0 0;
  background: #efe9de;
}
.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  color: #5a554c;
  font-size: 0.92rem;
  padding-bottom: 2rem;
}
.footer-about p {
  margin: 0.55rem 0 0;
  max-width: 16rem;
  line-height: 1.6;
}
.footer-note {
  color: #7a7468;
  font-size: 0.86rem;
}
.footer-brand {
  font-family: var(--display);
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}
.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.footer-col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-col a {
  color: #5a554c;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-contact p {
  margin: 0;
  line-height: 1.55;
}
.footer-contact strong {
  display: inline-block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.footer-bottom {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(18, 17, 15, 0.1);
  padding: 1rem 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #7a7468;
  font-size: 0.84rem;
}
/* Admin */
.admin-body {
  background: #10140f;
  color: #ebe6db;
  min-height: 100vh;
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #141a14, #0d110d);
}
.admin-side a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: rgba(235,230,219,0.72);
  margin-bottom: 0.25rem;
}
.admin-side a:hover, .admin-side a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.admin-main { padding: 1.5rem; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  padding: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  margin-top: 0.35rem;
}
.admin-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
}
.admin-panel .table th, .admin-panel .table td {
  border-bottom-color: rgba(255,255,255,0.08);
}
.admin-panel input, .admin-panel select, .admin-panel textarea {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.12);
  color: #ebe6db;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(700px 300px at 20% 10%, rgba(47,74,59,0.35), transparent 60%),
    #10140f;
}
.auth-card {
  width: min(420px, 100%);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.auth-card h1 {
  font-family: var(--display);
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroMove {
  from { transform: translate3d(-2.5%, -1%, 0) scale(1.06); }
  to { transform: translate3d(2.5%, 1.5%, 0) scale(1.14); }
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}
@keyframes heroPan {
  from { transform: translate3d(-2%, -1%, 0) scale(1.06); }
  to { transform: translate3d(2%, 1%, 0) scale(1.12); }
}
@keyframes shadePulse {
  from { opacity: 0.92; }
  to { opacity: 1; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .form-grid.two, .stats, .admin-shell { grid-template-columns: 1fr; }
  .header-menu { display: none; }
  .nav-toggle { display: grid; }
  .header-search { width: 140px; }
  .hero { min-height: 74vh; }
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-logo-panel { justify-self: start; }
  .shop-dirs-grid { grid-template-columns: 1fr; min-height: auto; }
  .shop-dir { min-height: 58vh; }
  .split-story { grid-template-columns: 1fr; }
  .shop-hero-band { flex-direction: column; align-items: stretch; }
  .shop-search { width: 100%; }
  .shop-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand span { display: none; }
  .header-search { width: 120px; }
  .hero-title { font-size: 2.3rem; }
}


.user-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(800px 360px at 15% 10%, rgba(47,74,59,0.18), transparent 60%),
    #f7f4ee;
}
.user-auth-card {
  width: min(440px, 100%);
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(18,17,15,0.1);
  box-shadow: var(--shadow);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.auth-title {
  font-family: var(--display);
  font-size: 1.9rem;
  margin: 0 0 0.35rem;
  font-weight: 500;
}
.auth-sub {
  margin: 0 0 1.2rem;
  color: var(--stone);
}
.auth-switch {
  margin: 1.1rem 0 0;
  color: var(--stone);
  font-size: 0.92rem;
}
.auth-switch a { text-decoration: underline; color: var(--ink); }
.profile-chip {
  gap: 0.35rem !important;
  width: auto !important;
  padding: 0 0.55rem !important;
  border: 1px solid rgba(18,17,15,0.12);
}
.profile-name {
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}
.pay-box {
  border: 1px solid var(--line);
  padding: 0.9rem;
  background: rgba(255,255,255,0.5);
  display: grid;
  gap: 0.55rem;
}
.pay-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.pay-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f1eb;
}
.pin-status {
  display: block;
  margin-top: 0.25rem;
  color: var(--forest);
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  .checkout-grid, .account-grid { grid-template-columns: 1fr; }
}
