:root {
  --ivory: #faf6ef;
  --ink: #252720;
  --muted: #6c635b;
  --line: #e3d8c9;
  --accent: #6e1f2f;
  --beige: #efe3d3;
  --gold: #c9a45c;
  --white: #fff;
  --error: #9b3832;
  --space: clamp(20px, 5vw, 76px);
  --max: 1440px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --motion: 180ms;
  --shadow: 0 8px 24px #25272015;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a,
button {
  transition:
    background var(--motion),
    color var(--motion);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(29px, 3vw, 46px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 18px;
  font-weight: 500;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 30;
}
.skip:focus {
  top: 12px;
}
.announcement {
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 6px 16px;
}
.header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 20px;
}
.wordmark {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1;
  display: block;
}
.wordmark span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.27em;
  margin-top: 9px;
  font-weight: 400;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
.desktop-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.header-actions {
  display: flex;
  gap: 12px;
}
.icon-link {
  display: flex;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
#bag-count {
  position: absolute;
  top: 0;
  right: -4px;
  font-size: 10px;
}
.mobile-nav {
  display: none;
}
.wrap {
  padding: 60px var(--space);
  max-width: var(--max);
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  min-height: 620px;
  background: var(--beige);
}
.hero-copy {
  padding: clamp(35px, 6vw, 95px) var(--space);
  align-self: center;
}
.hero-copy h1 {
  font-size: clamp(46px, 5.8vw, 88px);
  max-width: 600px;
  line-height: 0.99;
}
.hero-copy h1 em {
  color: var(--accent);
  font-weight: 400;
}
.hero-copy p {
  max-width: 350px;
  color: var(--muted);
  margin: 25px 0 35px;
}
.hero-image {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background: #c8c8bc;
}
.hero-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center 35%;
}
.hero-caption {
  position: absolute;
  bottom: 22px;
  left: 25px;
  background: var(--ivory);
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  min-height: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
}
.btn.secondary:hover {
  background: #e7e7dd;
}
.btn.small {
  padding: 9px 15px;
  min-height: 44px;
}
.text-link {
  border-bottom: 1px solid;
  padding-bottom: 4px;
  font-size: 12px;
}
.intro-strip {
  padding: 19px var(--space);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  overflow: hidden;
  background: #e5e3db;
}
.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 400ms;
}
.category-card:hover img {
  transform: scale(1.025);
}
.category-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--ivory);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
}
.product-card {
  min-width: 0;
}
.product-photo {
  position: relative;
  background: var(--beige);
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product-photo > a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  transition:
    opacity var(--motion),
    transform 280ms ease;
}
.product-photo:hover img {
  opacity: 0.92;
}
.wish-button {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ivory);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.wish-button[aria-pressed="true"] {
  color: #974b4b;
}
.product-info {
  padding-top: 14px;
}
.product-info .brand {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-info h3 {
  font-size: 14px;
  margin: 4px 0;
  line-height: 1.5;
}
.price {
  font-size: 13px;
}
.price del {
  color: var(--muted);
  margin-left: 8px;
}
.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
  flex-wrap: wrap;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 11px;
  min-height: 42px;
  font-size: 12px;
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  display: inline-block;
  border-radius: 50%;
  flex: none;
}
.swatch-dot.unknown {
  background: #d6d6cf;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    #fff 3px,
    #fff 5px
  );
}
.demo-tag {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.editorial {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #dde0d6;
}
.editorial img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.editorial-copy {
  padding: 55px;
  align-self: center;
}
.editorial-copy p {
  color: var(--muted);
  max-width: 350px;
}
.brand-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-list a {
  border: 1px solid var(--line);
  padding: 18px 26px;
  font-family: var(--serif);
  font-size: 24px;
}
.store-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  border-top: 1px solid var(--line);
}
.store-detail {
  align-self: center;
}
.store-detail p {
  max-width: 400px;
}
.footer {
  background: var(--beige);
  padding: 60px var(--space) 25px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 30px;
  font-size: 12px;
}
.footer h2 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a:not(.wordmark) {
  display: block;
  margin-bottom: 7px;
}
.footer p {
  color: var(--muted);
}
.footer .wordmark {
  margin-bottom: 16px;
}
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid #cdd1c3;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.store-map {
  display: block;
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  background: var(--ivory);
  margin: 14px 0;
}
.footer a.store-directions {
  display: flex;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .footer-store {
    grid-column: 1/-1;
  }
}
.page-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: clamp(38px, 4vw, 58px);
  margin-bottom: 12px;
}
.page-heading p {
  color: var(--muted);
  max-width: 650px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filters label {
  flex: 1;
  min-width: 130px;
}
.filters input,
.filters select {
  width: 100%;
}
.filters .search-field {
  flex: 2;
  min-width: 200px;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  min-height: 45px;
  width: 100%;
  border-radius: 0;
  margin-top: 6px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0 8px 0 0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
.detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 55px;
}
.gallery-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  max-height: 640px;
  background: var(--beige);
  object-fit: contain;
  padding: 14px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery-thumbs button {
  width: 68px;
  height: 80px;
  border: 1px solid var(--line);
  background: var(--beige);
  padding: 4px;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-zoom {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}
.gallery-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.detail-info {
  padding: 14px 0;
}
.detail-info h1 {
  font-size: clamp(33px, 4vw, 55px);
  margin: 12px 0 20px;
}
.detail-info .detail-price {
  font-size: 23px;
}
.detail-info .description {
  color: var(--muted);
  margin: 25px 0;
}
.variant-group {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.variant-group h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.size-button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 16px;
  min-width: 50px;
}
.size-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.stock-label {
  font-size: 12px;
  color: var(--accent);
  margin: 15px 0;
}
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.detail-actions label {
  width: 80px;
  margin-bottom: 0;
}
.detail-actions .btn {
  flex: 1;
}
.muted {
  color: var(--muted);
}
.notice {
  padding: 15px 18px;
  background: #f2e7dc;
  border-left: 3px solid var(--accent);
  font-size: 12px;
  margin-bottom: 25px;
}
.error {
  color: var(--error);
}
.error-box {
  padding: 16px;
  border: 1px solid var(--error);
  color: var(--error);
  margin: 16px 0;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  border: 1px solid var(--line);
  grid-column: 1/-1;
}
.empty h2 {
  font-size: 30px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 45px;
}
.panel {
  border: 1px solid var(--line);
  padding: 28px;
  background: #fafaf6;
}
.panel h2 {
  font-size: 29px;
}
.cart-line {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line img {
  width: 100px;
  height: 125px;
  object-fit: contain;
  background: #eae9e1;
}
.cart-line h2 {
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 7px;
}
.cart-line input {
  width: 75px;
}
.cart-line .remove {
  border: 0;
  background: none;
  padding: 10px 0;
  text-decoration: underline;
  font-size: 12px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.summary-line.total {
  font-size: 20px;
}
.summary-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.narrow {
  max-width: 680px;
  margin: auto;
}
.auth-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.auth-tabs button {
  padding: 12px 25px;
  border: 1px solid var(--line);
  background: none;
}
.auth-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.account-tabs,
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.account-tabs a,
.admin-tabs a {
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.account-tabs a.active,
.admin-tabs a.active {
  background: var(--ink);
  color: #fff;
}
.order-card,
.request-card {
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 18px;
}
.order-card h2,
.request-card h2 {
  font-size: 23px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  background: #eceee6;
  padding: 22px;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  margin-bottom: 25px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  background: #fafaf6;
}
td,
th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
td input {
  min-width: 75px;
}
table img {
  width: 50px;
  height: 60px;
  object-fit: contain;
}
td .btn {
  white-space: nowrap;
}
details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
}
.variant-editor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  padding: 18px;
  margin: 15px 0;
}
.variant-editor .full {
  grid-column: 1/-1;
}
.review {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.review h3 {
  font-size: 14px;
}
.policy {
  max-width: 800px;
}
.policy p,
.policy li {
  color: var(--muted);
}
.policy h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.policy ul {
  padding-left: 1.2em;
  line-height: 1.7;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
}
.loading {
  padding: 100px;
  text-align: center;
}
.status-pill {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 30px);
  width: max-content;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease-out,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 320ms;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
dialog {
  border: 1px solid var(--line);
  padding: 20px;
  width: min(800px, 95vw);
  max-height: 95dvh;
  background: var(--ivory);
}
dialog::backdrop {
  background: #0009;
}
dialog img {
  max-height: 80dvh;
  width: 100%;
  object-fit: contain;
}
dialog .close {
  border: 0;
  padding: 12px;
  background: var(--ink);
  color: white;
  float: right;
  margin-bottom: 10px;
}
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 16px;
    font-size: 12px;
  }
  .header {
    gap: 14px;
  }
  .wordmark {
    font-size: 26px;
  }
  .hero {
    min-height: 540px;
  }
  .hero-image {
    min-height: 480px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail {
    gap: 30px;
  }
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .header {
    height: 78px;
    padding: 0 20px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .mobile-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-copy {
    padding: 45px 25px 40px;
  }
  .hero-copy h1 {
    font-size: 57px;
    max-width: 400px;
  }
  .hero-copy p {
    margin: 20px 0 25px;
  }
  .hero-image {
    min-height: 390px;
  }
  .hero-image img {
    object-position: center 35%;
  }
  .intro-strip {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wrap {
    padding: 40px 20px;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-label {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px;
    font-size: 13px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }
  .product-photo {
    aspect-ratio: 3/4;
  }
  .product-photo img {
    object-fit: contain;
    padding: 6px;
    transform: none;
  }
  .product-info h3 {
    font-size: 12px;
  }
  .product-info .brand {
    font-size: 10px;
  }
  .price {
    font-size: 12px;
  }
  .editorial {
    grid-template-columns: 1fr;
  }
  .editorial img {
    height: 300px;
  }
  .editorial-copy {
    padding: 32px 24px;
  }
  .store-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-heading {
    align-items: center;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-main {
    aspect-ratio: 4/5;
    max-height: 65dvh;
    object-fit: contain;
    padding: 10px;
  }
  .detail-info {
    padding-top: 0;
  }
  .detail-info h1 {
    font-size: 39px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .panel {
    padding: 22px;
  }
  .footer {
    padding: 40px 20px 20px;
    gap: 30px 20px;
  }
  .footer-bottom {
    font-size: 10px;
    gap: 20px;
  }
  .cart-line {
    grid-template-columns: 75px 1fr auto;
    gap: 12px;
  }
  .cart-line img {
    width: 75px;
    height: 95px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .variant-editor {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-thumbs button {
    width: 58px;
    height: 68px;
  }
  .filters {
    gap: 8px;
  }
  .filters label {
    min-width: 120px;
  }
  .filters .search-field {
    flex-basis: 100%;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .wish-button {
    width: 44px;
    height: 44px;
    right: 6px;
    top: 6px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .detail-actions {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .wordmark {
    font-size: 22px;
  }
  .header-actions {
    gap: 0;
  }
  .header {
    padding: 0 14px;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    gap: 8px;
    padding: 12px 14px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .btn {
    padding: 12px 15px;
  }
  .cart-line {
    grid-template-columns: 65px 1fr;
  }
  .cart-line > strong {
    grid-column: 2;
  }
  .hero-image {
    min-height: 330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Family-store navigation and editorial sections extend the shared product layout. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header {
  height: auto;
  min-height: 88px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 25px;
}
.header-search {
  display: flex;
  flex: 1;
  max-width: 570px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
}
.header-search input {
  margin: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}
.header-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 20px;
  font-size: 12px;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 12px var(--space);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: var(--ivory);
  position: relative;
  z-index: 9;
}
.primary-nav > a {
  padding: 5px 0;
}
.primary-nav > a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.category-menu {
  border: 0;
  padding: 0;
  position: relative;
}
.category-menu summary {
  padding: 5px 0;
  list-style: none;
}
.category-menu summary::after {
  content: "⌄";
  margin-left: 12px;
}
.category-menu-links {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 3px;
}
.category-menu-links a {
  padding: 9px 12px;
}
.category-menu-links a:hover {
  background: var(--beige);
}
.family-hero {
  grid-template-columns: 0.9fr 1.2fr;
  min-height: 620px;
}
.family-hero .hero-copy {
  padding-right: 30px;
}
.family-hero .hero-copy h1 {
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.family-hero .hero-copy h1 em {
  font-style: normal;
}
.family-hero .hero-image {
  min-height: 580px;
}
.family-hero .hero-image img {
  object-position: center;
  object-fit: cover;
}
.hero-caption {
  font-size: 9px;
  background: #faf6efde;
}
.btn {
  background: var(--accent);
  border-color: var(--accent);
}
.btn:hover {
  background: #4c1420;
  border-color: #4c1420;
}
.btn.secondary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.secondary:hover {
  background: var(--beige);
}
.category-type-art {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  background: var(--beige);
  color: var(--accent);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.category-type-art > span {
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 40px);
  line-height: 1.2;
}
.category-type-art small {
  font-size: 8px;
  letter-spacing: 0.19em;
  margin-top: 20px;
}
.categories .category-card:nth-child(7) .category-type-art {
  background: #e8ddd1;
}
.categories .category-card:nth-child(8) .category-type-art {
  background: #eddfdc;
}
.section-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.brand-directory {
  background: #f4eee5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-search {
  display: flex;
  max-width: 550px;
  margin: 0 0 30px;
  gap: 12px;
}
.brand-search input {
  margin: 0;
}
.brand-search .btn {
  white-space: nowrap;
}
.quiet-empty {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}
.quiet-empty p {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}
.quiet-empty span {
  font-size: 13px;
}
.available-sizes {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.catalogue-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  align-items: end;
}
.catalogue-filters label {
  min-width: 0;
  margin: 0;
}
.catalogue-filters .search-field {
  grid-column: span 2;
  min-width: 0;
}
.catalogue-filters .text-link {
  justify-self: start;
  align-self: center;
}
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.occasion-grid a {
  padding: 26px 20px;
  border-top: 1px solid var(--gold);
  background: #f0e7dc;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.occasion-grid a:hover {
  background: var(--beige);
}
.occasion-number {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.occasion-grid h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  margin: 18px 0;
}
.occasion-grid a > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.social-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.social-section > div:last-child {
  max-width: 400px;
}
.collection-fields {
  border: 1px solid var(--line);
  margin: 20px 0;
  padding: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.collection-fields legend {
  font-size: 14px;
}
.collection-fields label {
  margin: 0;
}
@media (max-width: 1100px) {
  .family-hero {
    grid-template-columns: 1fr 1.15fr;
    min-height: 520px;
  }
  .family-hero .hero-image {
    min-height: 500px;
  }
  .family-hero .hero-copy h1 {
    font-size: 49px;
  }
  .header-search {
    max-width: 420px;
  }
  .occasion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .header {
    padding: 12px 20px;
    gap: 10px;
    position: relative;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
  .header-actions {
    margin-left: auto;
  }
  .primary-nav {
    padding: 8px 20px;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .primary-nav > a,
  .primary-nav summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .category-menu-links {
    left: 0;
    min-width: 210px;
    font-size: 13px;
  }
  .family-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .family-hero .hero-copy {
    padding: 38px 24px 35px;
  }
  .family-hero .hero-copy h1 {
    font-size: clamp(40px, 10vw, 59px);
    max-width: none;
  }
  .family-hero .hero-copy p {
    max-width: 330px;
  }
  .family-hero .hero-image {
    min-height: 380px;
  }
  .family-hero .hero-image img {
    object-position: 50% 50%;
  }
  .intro-strip {
    padding: 16px 20px;
    gap: 12px;
  }
  .intro-strip > a:last-child {
    display: none;
  }
  .category-type-art > span {
    font-size: 29px;
  }
  .catalogue-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalogue-filters .search-field {
    grid-column: 1/-1;
  }
  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .occasion-grid a {
    min-height: 155px;
    padding: 20px 16px;
  }
  .occasion-grid a:last-child {
    grid-column: 1/-1;
    min-height: 130px;
  }
  .occasion-grid h3 {
    font-size: 23px;
  }
  .social-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .brand-search {
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand-search input {
    flex: 1;
    min-width: 150px;
  }
  .brand-search .btn {
    font-size: 10px;
    padding: 12px;
  }
  .available-sizes {
    font-size: 11px;
  }
  .category-type-art {
    padding: 18px;
  }
  .hero-caption {
    left: 15px;
    bottom: 15px;
  }
  .categories .category-card {
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .primary-nav {
    gap: 8px;
    padding: 7px 14px;
    font-size: 9px;
  }
  .header {
    padding: 12px 14px;
  }
  .family-hero .hero-image {
    min-height: 320px;
  }
  .category-type-art > span {
    font-size: 24px;
  }
}
.our-brands {
  scroll-margin-top: 150px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.our-brands .section-heading {
  align-items: start;
}
.our-brands h2 {
  max-width: 820px;
}
.brand-subheading {
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 28px;
  max-width: 650px;
}
.store-brand-search {
  max-width: 480px;
  margin-bottom: 28px;
}
.store-brand-search label {
  margin-bottom: 0;
}
.store-brand-search input {
  background: #fffaf4;
}
.store-brand-search > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.store-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.store-brand-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 80px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--beige);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
}
.store-brand-tile > span:last-child {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
}
.store-brand-tile:hover {
  border-color: var(--gold);
  background: #e9dac7;
}
.store-brand-tile[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .store-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .our-brands .section-heading {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .our-brands .section-heading h2 {
    font-size: 34px;
  }
  .store-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .store-brand-tile {
    min-height: 68px;
    padding: 15px 12px;
    font-size: 17px;
    gap: 8px;
  }
  .brand-subheading {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .store-brand-tile {
    font-size: 16px;
    padding: 13px 10px;
  }
}

/* Staff stock controls use the same panels and colours as the shop. */
.inventory-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.inventory-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.inventory-filters label {
  min-width: 0;
}
.inventory-preview {
  max-height: 360px;
  overflow: auto;
}
#stock-editor,
#store-sale {
  margin: 24px 0;
  scroll-margin-top: 100px;
}
#sale-lines input {
  min-width: 90px;
  max-width: 150px;
}
#csv-result {
  overflow-wrap: anywhere;
}
.inventory-dashboard table {
  min-width: 700px;
}
.inventory-dashboard .variant-inventory table {
  min-width: 950px;
}
.inventory-dashboard td {
  max-width: 300px;
  overflow-wrap: anywhere;
}

/* Campaign labels stay in the original images; controls sit below the artwork. */
.campaign-carousel {
  background: var(--beige);
  outline-offset: -3px;
}
.campaign-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-width: 1448px;
  margin-inline: auto;
  background: #e4d3c0;
}
.campaign-slide {
  display: block;
  width: 100%;
  height: 100%;
}
.campaign-slide[hidden] {
  display: none;
}
.campaign-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.campaign-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--space);
  border-bottom: 1px solid #d7c1a9;
}
.campaign-cta {
  color: var(--accent);
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.campaign-pagination,
.campaign-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}
.campaign-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.campaign-pagination button {
  display: grid;
  place-items: center;
}
.campaign-pagination span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.campaign-pagination [aria-current="true"] span {
  background: var(--accent);
  width: 20px;
  border-radius: 10px;
}
.campaign-arrows button {
  font-size: 20px;
}
.campaign-arrows [data-play] {
  font-size: 11px;
  border-left: 1px solid #d7c1a9;
  padding: 0 12px;
}
.campaign-intro {
  padding: 32px var(--space);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.campaign-intro h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.campaign-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.campaign-intro .btn {
  flex-shrink: 0;
}
.primary-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.primary-category-card {
  background: var(--beige);
  border-bottom: 1px solid var(--gold);
}
.primary-category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 6/5;
  object-fit: contain;
  background: #eee9e1;
  transition: filter var(--motion);
}
.primary-category-card:hover img {
  filter: brightness(1.03);
}
.primary-category-card .category-label {
  padding: 18px 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.primary-category-card small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.additional-shopping {
  padding-top: 10px;
}
.additional-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.additional-category-grid .category-card {
  border-bottom: 1px solid var(--line);
  background: var(--beige);
}
.additional-category-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #e4d3c0;
}
.additional-category-grid .category-label {
  padding: 12px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .campaign-controls {
    flex-wrap: wrap;
  }
  .campaign-pagination {
    gap: 0;
  }
  .additional-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .campaign-stage {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .campaign-controls {
    padding: 8px 16px;
    gap: 0;
  }
  .campaign-cta {
    flex: 1;
  }
  .campaign-pagination {
    order: 3;
    grid-column: 1/-1;
    justify-content: center;
  }
  .campaign-pagination button {
    min-width: 44px;
  }
  .campaign-intro {
    padding: 18px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .campaign-intro h1 {
    max-width: 340px;
    font-size: 27px;
  }
  .primary-category-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .primary-category-card:last-child {
    grid-column: 1/-1;
    width: calc((100% - 12px) / 2);
    justify-self: center;
  }
  .primary-category-card .category-label {
    padding: 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .additional-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .primary-shopping .section-heading {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary-category-card img {
    transition: none;
  }
}
.occasion-grid a {
  padding: 0 0 20px;
  overflow: hidden;
}
.occasion-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--beige);
}
.occasion-grid .occasion-number,
.occasion-grid h3,
.occasion-grid a > span:last-child {
  margin-left: 16px;
  margin-right: 16px;
}
.occasion-grid .occasion-number {
  margin-top: 14px;
}
.primary-category-card .category-label,
.additional-category-grid .category-label {
  position: static;
  background: var(--ivory);
}

.product-info .card-cart {
  display: flex;
  margin-top: 12px;
  min-height: 44px;
  font-size: 12px;
}

/* Shared shrink rules keep forms and shopping panels inside their grid tracks. */
#main {
  overflow-wrap: anywhere;
}
.detail > *,
.two-columns > *,
.form-grid > *,
.cart-line > *,
.stats > * {
  min-width: 0;
}
button,
summary {
  min-height: 44px;
}
.product-info .swatches a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.table-wrap {
  max-width: 100%;
}
@media (max-width: 760px) {
  .header .wordmark {
    font-size: clamp(18px, 4.8vw, 26px);
    letter-spacing: 0.15em;
  }
  .primary-nav {
    font-size: 12px;
    gap: 8px 16px;
    justify-content: flex-start;
  }
  .primary-nav > a,
  .primary-nav summary {
    padding-inline: 4px;
  }
  .product-info h3 {
    font-size: 14px;
  }
  .price {
    font-size: 14px;
  }
  .cart-line {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .cart-line > strong {
    grid-column: 2;
  }
}
@media (max-width: 600px) {
  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .header {
    gap: 8px;
  }
  .header .wordmark {
    font-size: 18px;
    letter-spacing: 0.15em;
  }
}

/* Quiet editorial controls sit over the unchanged campaign artwork. */
.campaign-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #faf6eff2;
  color: var(--accent);
  box-shadow: 0 2px 8px #25272012;
}
.campaign-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.campaign-previous {
  left: clamp(12px, 2vw, 28px);
}
.campaign-next {
  right: clamp(12px, 2vw, 28px);
}
.campaign-arrow:hover {
  background: var(--white);
}
.campaign-pagination span {
  transition:
    width 180ms ease,
    background 180ms ease;
}
.campaign-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.campaign-arrows {
  justify-self: end;
}
.campaign-intro > div {
  max-width: 920px;
}
.icon-link:hover {
  background: var(--beige);
}
@media (prefers-reduced-motion: no-preference) {
  .campaign-slide:not([hidden]) {
    animation: campaign-reveal 320ms ease-out;
  }
}
@keyframes campaign-reveal {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-photo:hover img {
    transform: scale(1.025);
  }
}
@media (max-width: 760px) {
  .campaign-arrow {
    width: 44px;
    height: 44px;
  }
  .campaign-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .campaign-intro {
    padding: 24px 20px;
    gap: 16px;
  }
  .campaign-intro h1 {
    max-width: 440px;
    font-size: clamp(27px, 6.6vw, 36px);
  }
}

/* ===== Homepage UI phase 1 (apple-design): Cormorant Garamond headings, Jost UI and category titles ===== */
:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --display: "Jost", system-ui, sans-serif;
  --card: #fcf9f4;
  --blush: #f3e6e1;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.015em; /* tracking tightens as type grows; body text stays at 0 */
  line-height: 1.08;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em; /* small caps text is opened up instead */
  text-transform: uppercase;
}
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--gold);
}
em {
  color: var(--accent);
}

/* --- Header: slim, sticky, one translucent layer with solid fallbacks --- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  height: 76px;
  min-height: 0;
  padding: 0 clamp(16px, 2.4vw, 40px);
  background: rgb(250 246 239 / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: var(--ivory);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .header {
    background: var(--ivory);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .header {
    background: var(--ivory);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--ink);
  }
}
.wordmark {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.wordmark span {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.header .primary-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0px, 0.5vw, 10px);
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  position: static;
  font-size: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px 0 6px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  border-radius: 10px;
  transition: color 120ms ease-out;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 280ms var(--ease);
}
.nav-item.is-open .nav-toggle svg {
  transform: rotate(180deg);
}
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
.find-action:focus-visible,
.chip:focus-visible,
.everyone-card:focus-visible,
.store-brand-tile:focus-visible,
.trust-strip a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-panel {
  position: absolute;
  z-index: 40;
  min-width: 230px;
  padding: 8px;
  background: rgb(255 253 249 / 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px #25272016;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 160ms ease-out,
    transform 300ms var(--ease);
}
.nav-panel.is-open {
  opacity: 1;
  transform: none;
}
.nav-panel[hidden] {
  display: none;
}
.nav-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition:
    background 100ms ease-out,
    transform 100ms ease-out;
}
.nav-panel a:hover {
  background: var(--beige);
}
.nav-panel a:active {
  transform: scale(0.98);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav-panel {
    background: #fffdf9;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.header-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  padding-left: clamp(8px, 1.4vw, 20px);
  border-left: 1px solid var(--line);
}
.icon-link {
  transition: transform 100ms ease-out;
}
.icon-link:active {
  transform: scale(0.92);
}

/* --- Search band --- */
.find-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100% - 2 * var(--space), 820px);
  margin: 20px auto 8px;
  padding: 6px 6px 6px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    border-color 120ms ease-out,
    box-shadow 160ms ease-out;
}
.find-bar:hover {
  border-color: #cdbba3;
}
.find-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #6e1f2f26;
}
.find-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.find-bar input {
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
}
.find-bar input:focus {
  outline: none;
}
.find-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 500 15px var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 100ms ease-out,
    background 120ms ease-out;
}
.find-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 280ms var(--ease);
}
.find-action:hover {
  background: #591826;
}
.find-action:hover svg {
  transform: translateX(3px);
}
.find-action:active {
  transform: scale(0.97);
}
.find-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0 var(--space) 16px;
  font-size: 13px;
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--muted);
}
.quick-links a:hover,
.quick-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* --- Shop by category --- */
.everyone .section-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}
.everyone .section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
}
.everyone .section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.everyone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
  max-width: 920px;
  margin-inline: auto;
}
.everyone-card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  transition:
    transform 300ms var(--ease),
    box-shadow 300ms var(--ease);
}
.everyone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #2527201a;
}
.everyone-card:active {
  transform: scale(0.985);
  transition-duration: 100ms;
}
.everyone-media {
  position: relative;
  display: block;
  margin: 0; /* spacing lives on the card: WebKit sizes an aspect-ratio flex item from its width plus its margins */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 14px 14px; /* arch top */
  background: var(--beige);
}
.everyone-media img {
  position: absolute; /* fills the 4:5 arch in every engine; a percentage height inside an aspect-ratio box is not reliable in WebKit */
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 4% 40%; /* the campaign photos carry headline text on their right; frame the people on the left */
  border-radius: 0;
  transition: transform 500ms var(--ease);
}
.everyone-card:hover .everyone-media img {
  transform: scale(1.04);
}
.everyone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 18px;
}
.everyone-label strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.everyone-label small {
  color: var(--muted);
  font-size: 13px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
  padding: 6px 0;
  list-style: none;
  background: var(--blush);
  border-radius: 18px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  min-width: 0;
}
.trust-strip li + li {
  border-left: 1px solid #d9c3bd;
}
.trust-strip a,
.trust-strip li:not(:has(a)) {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.trust-strip svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-strip strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.trust-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.trust-strip a {
  border-radius: 12px;
  transition: opacity 120ms ease-out;
}
.trust-strip a:hover strong {
  color: var(--accent);
}

/* --- Trusted brands --- */
.brands-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 500;
  color: var(--accent);
}
.brands-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.brand-filters {
  display: flex;
  gap: 10px;
  margin: 24px 0 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.brand-filters::-webkit-scrollbar {
  display: none;
}
.chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 14px var(--sans);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background 140ms ease-out,
    color 140ms ease-out,
    border-color 140ms ease-out,
    transform 100ms ease-out;
}
.chip:hover {
  border-color: var(--accent);
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip:active {
  transform: scale(0.96);
}
.brands-panel {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--beige);
  border-radius: 22px;
}
.brands-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px;
  min-height: 420px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgb(246 236 224 / 0.97) 46%,
      rgb(246 236 224 / 0.3)
    ),
    url("/img/family-editorial.jpg") center / cover;
}
.brands-promo h3 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
}
.brands-promo p {
  margin: 0;
  max-width: 24ch;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brands-promo .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 100ms ease-out;
}
.brands-promo .btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brands-promo .btn:active {
  transform: scale(0.97);
}
.store-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.store-brand-tile {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition:
    border-color 140ms ease-out,
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease);
}
.store-brand-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #25272014;
}
.store-brand-tile:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}
.store-brand-tile[hidden] {
  display: none;
}
.store-brand-search {
  margin-bottom: 12px;
}
.store-brand-search input {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}

/* --- Responsive --- */
@media (max-width: 1180px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    gap: 6px 12px;
  }
  .header .primary-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 calc(100% - 28px),
      transparent
    );
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .header .primary-nav::-webkit-scrollbar {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-strip li + li {
    border-left: 0;
  }
  .trust-strip li:nth-child(even) {
    border-left: 1px solid #d9c3bd;
  }
  .brands-panel {
    grid-template-columns: 1fr;
  }
  .brands-promo {
    min-height: 300px;
  }
}
@media (max-width: 700px) {
  .everyone .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .wordmark {
    font-size: 24px;
  }
  .wordmark span {
    display: none;
  }
}
@media (max-width: 560px) {
  .find-bar {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
  }
  .find-bar input {
    flex-basis: calc(100% - 34px);
  }
  .find-action {
    width: 100%;
    justify-content: center;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .trust-strip li:nth-child(even) {
    border-left: 0;
  }
  .trust-strip li + li {
    border-top: 1px solid #d9c3bd;
  }
}
@media (max-width: 400px) {
  .header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .wordmark {
    font-size: 20px;
    letter-spacing: 0.14em;
  }
  .header-actions {
    gap: 0;
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 480px) {
  .everyone-label {
    padding: 10px 4px 14px;
  }
  .everyone-label small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel,
  .nav-toggle svg,
  .everyone-card,
  .everyone-media img,
  .find-action svg,
  .store-brand-tile {
    transition-duration: 1ms;
  }
  .nav-panel {
    transform: none;
  }
  .everyone-card:hover,
  .store-brand-tile:hover {
    transform: none;
  }
  .everyone-card:hover .everyone-media img {
    transform: none;
  }
}

/* ===== Loading, feedback and motion (apple-design): respond on press, animate transform/opacity, stay interruptible ===== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--ivory);
  /* backwards fill: invisible for the first 160 ms, so a page that is ready quickly never shows it at all */
  animation: splash-in 260ms ease-out 160ms backwards;
}
#splash.is-done {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition: opacity 180ms ease-out;
}
.splash-mark {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.splash-word {
  font-family: var(--serif);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-left: 0.22em; /* balances the trailing letter-space so the word is optically centred */
  color: var(--accent);
  line-height: 1;
}
.splash-line {
  width: min(180px, 40vw);
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: splash-draw 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms backwards;
}
.splash-sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.splash-slow {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  animation: splash-in 400ms ease-out 8s backwards;
  opacity: 0;
  animation-fill-mode: forwards;
}
.splash-slow a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes splash-in {
  from {
    opacity: 0;
  }
}
@keyframes splash-draw {
  from {
    transform: scaleX(0);
  }
}
#progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: var(--accent);
  opacity: 0;
  transform-origin: left;
  transform: scaleX(0.1);
  transition: opacity 200ms ease-out;
  pointer-events: none;
}
html.is-busy #progress {
  opacity: 1;
  animation: progress 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes progress {
  0% {
    transform: translateX(-30%) scaleX(0.2);
  }
  60% {
    transform: translateX(30%) scaleX(0.7);
  }
  100% {
    transform: translateX(100%) scaleX(0.2);
  }
}
main {
  transition: opacity 200ms ease-out;
}
html.is-busy main {
  opacity: 0.6; /* previous content stays in place, so nothing jumps while the next arrives */
}

/* Press feedback: instant, on pointer down, via transform */
:where(
  .btn,
  .chip,
  .size-button,
  .swatch,
  .wish-button,
  .campaign-arrow,
  .gallery-zoom,
  .product-card .card-cart
):active {
  transform: scale(0.96);
}
:where(.btn, .chip, .size-button, .swatch, .wish-button) {
  transition:
    transform 100ms ease-out,
    background 140ms ease-out,
    border-color 140ms ease-out,
    opacity 140ms ease-out;
}
form[aria-busy="true"] :where(button[type="submit"], .btn, .find-action),
button.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.find-bar {
  position: relative;
  overflow: hidden;
}
.find-bar[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: progress 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.retry {
  margin-top: 20px;
  text-align: center;
}
#bag-count.bump {
  animation: bump 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wish-button.pop,
.wish-button-inline.pop {
  animation: pop 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}
@keyframes pop {
  40% {
    transform: scale(1.25);
  }
}
dialog[open] {
  animation: dialog-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 16px;
}
dialog[open]::backdrop {
  animation: splash-in 200ms ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-line,
  #splash {
    animation-duration: 1ms;
  }
  html.is-busy #progress {
    animation: none;
    transform: none;
    opacity: 0.6;
  }
  .find-bar[aria-busy="true"]::after {
    animation: none;
    transform: none;
    opacity: 0.6;
  }
  #bag-count.bump,
  .wish-button.pop,
  .wish-button-inline.pop {
    animation: none;
  }
  #toast {
    transform: translate(-50%, 0);
    transition: opacity 120ms linear;
  }
  dialog[open] {
    animation: splash-in 120ms linear;
  }
  :where(
    .btn,
    .chip,
    .size-button,
    .swatch,
    .wish-button,
    .campaign-arrow,
    .gallery-zoom
  ):active {
    transform: none;
    opacity: 0.8;
  }
  main {
    transition: none;
  }
}

/* ===== Hero banner (edge-to-edge, in the style of a fashion retailer's home banner), reveal animations, brand logos ===== */
.campaign-carousel {
  position: relative;
  background: #e9dccb;
}
.campaign-stage {
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 82svh;
  overflow: hidden;
  background: #e4d3c0;
}
.campaign-slide {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.campaign-slide[hidden] {
  display: none;
}
.campaign-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* full-bleed; each slide sets its own focal point so faces and the headline stay in frame */
  object-position: 50% 30%;
}
.campaign-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgb(20 12 12 / 0.38), transparent);
  pointer-events: none;
}
@media (max-width: 760px) {
  .campaign-stage {
    aspect-ratio: 4 / 3; /* phones show the whole artwork, uncropped */
    max-height: none;
  }
  .campaign-slide img {
    object-position: center;
  }
}
/* Controls sit on the banner: a quiet "Explore" pill, dots, and a small pause control */
.campaign-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  border: 0;
  background: none;
  pointer-events: none;
}
.campaign-controls > * {
  pointer-events: auto;
}
.campaign-cta {
  justify-self: start;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 100ms ease-out,
    background 140ms ease-out;
}
.campaign-cta:hover {
  background: #fff;
}
.campaign-cta:active {
  transform: scale(0.96);
}
.campaign-pagination button {
  min-width: 44px; /* full touch target; the visible dot stays small */
}
.campaign-pagination span {
  width: 8px;
  height: 8px;
  border: 0;
  background: rgb(255 255 255 / 0.55);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
  transition:
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease-out;
}
.campaign-pagination [aria-current="true"] span {
  width: 26px;
  border-radius: 8px;
  background: #fff;
}
.campaign-controls .campaign-arrows button {
  justify-self: end;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(20 12 12 / 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
}
.campaign-arrows [data-play] {
  border-left: 0;
}
@media (prefers-reduced-transparency: reduce) {
  .campaign-controls .campaign-arrows button {
    background: #3a2a2a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.campaign-arrow {
  opacity: 0.92;
}
/* The headline strip below the banner is kept slim */
.campaign-intro {
  padding: 18px var(--space);
  border-bottom: 1px solid var(--line);
}
.campaign-intro h1 {
  font-size: clamp(22px, 2.4vw, 32px);
}
.campaign-intro p {
  margin-top: 2px;
}
.campaign-intro h1,
.campaign-intro p,
.campaign-intro .btn {
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.campaign-intro p {
  animation-delay: 90ms;
}
.campaign-intro .btn {
  animation-delay: 180ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Scroll reveal: elements already in view are shown at once; others ease in once, staggered a little within a group */
.js-reveal [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal] {
  transition:
    opacity 600ms ease-out,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.everyone-card[data-reveal].in:hover {
  transition-delay: 0s;
}

/* Header gains depth once the page scrolls */
.header {
  transition: box-shadow 240ms ease-out;
}
.header.is-scrolled {
  box-shadow: 0 6px 22px #2527201a;
}

/* Brand tiles with a supplied logo */
.store-brand-tile.has-logo {
  padding: 10px 14px;
}
.store-brand-tile img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
  transition:
    filter 240ms ease-out,
    opacity 240ms ease-out;
}
/* An SVG without its own width/height (Puma) would otherwise collapse to 0x0. */
.store-brand-tile img[src$=".svg"] {
  height: 40px;
}
.store-brand-tile:hover img,
.store-brand-tile:focus-visible img {
  filter: none;
  opacity: 1;
}
/* White-on-transparent logos need a dark tile. */
.store-brand-tile.logo-on-dark {
  background: #252720;
}
.store-brand-tile.logo-on-dark img {
  filter: none;
  opacity: 1;
}
@media (prefers-contrast: more) {
  .store-brand-tile img {
    filter: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-intro h1,
  .campaign-intro p,
  .campaign-intro .btn {
    animation: none;
  }
  [data-reveal] {
    transition: none;
  }
}
@media (max-width: 560px) {
  /* Phones: dots keep full 44px touch targets, so the pause control moves to its own row and the slide itself is the link */
  .campaign-controls {
    grid-template-columns: 1fr;
    justify-items: center;
    bottom: 4px;
  }
  .campaign-cta {
    display: none;
  }
  .campaign-arrows {
    order: -1;
    justify-self: end;
  }
  .campaign-controls {
    padding: 0 8px;
  }
  .campaign-pagination button {
    flex: 0 0 44px;
    min-width: 44px;
  }
}

.campaign-pagination button {
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

/* ===== 3D layer (optional; removing scene3d.js leaves the banner exactly as before) ===== */
.scene3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none; /* clicks fall through to the slide link underneath */
}
.campaign-stage[data-scene3d="on"] .scene3d {
  opacity: 1;
}
.campaign-stage[data-scene3d="on"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: 2;
  background: linear-gradient(0deg, rgb(20 12 12 / 0.38), transparent);
  pointer-events: none;
}
.campaign-arrow,
.campaign-controls {
  z-index: 3;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #categories .everyone-grid {
    perspective: 1100px;
  }
  .everyone-card {
    transform-style: preserve-3d;
    will-change: transform;
  }
  .everyone-card:hover {
    transform: translateY(-4px) rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
  }
  .everyone-card:hover .everyone-media {
    transform: translateZ(26px);
    box-shadow: 0 18px 28px #25272022;
  }
  .everyone-media {
    transition:
      transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 300ms ease-out;
  }
}

/* Active filters and the no-match state */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
}
.chip-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  transition:
    border-color 140ms ease-out,
    transform 100ms ease-out;
}
.chip-remove:hover {
  border-color: var(--accent);
}
.chip-remove:active {
  transform: scale(0.96);
}
.empty .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
}

/* ===== Men / Women / Kids mega-menus and the combined catalogue filters ===== */
.nav-panel.mega {
  /* nested backdrop blur does not apply inside the blurred header, so the panel is nearly opaque to keep text behind it from showing through */
  background: rgb(255 253 249 / 0.985);
  min-width: min(560px, calc(100vw - 24px));
  padding: 18px 22px 20px;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px 32px;
}
.mega-col h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-col:first-child {
  columns: 2;
  column-gap: 20px;
}
.mega-col:first-child h3 {
  column-span: all;
}
.mega-col a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  break-inside: avoid;
  padding: 9px 10px;
  margin: 0 -10px;
}
.mega-col small {
  color: var(--muted);
  font-size: 12px;
}
.nav-panel.mega > a {
  padding: 10px 4px;
}
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.result-count {
  margin: 0;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
}
.swatch-more {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}
.shop-bar .sort {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.shop-bar select,
.f-price input,
.f-search {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.filter-open {
  display: none;
}
.shop-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 92px; /* below the 76px sticky header */
  max-height: calc(100vh - 108px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
}
.filter-head,
.filter-foot {
  display: none;
}
.f-group {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.f-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
}
.f-group > summary::-webkit-details-marker,
.f-more > summary::-webkit-details-marker {
  display: none;
}
.f-group > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.f-group[open] > summary::after {
  transform: rotate(-135deg);
}
.f-body {
  display: grid;
  gap: 2px;
  padding: 2px 0 12px;
}
.f-sub h4 {
  margin: 8px 0 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 100ms ease-out;
}
.opt:hover {
  background: var(--beige);
}
.opt[hidden] {
  display: none;
}
.opt input,
.size-chip input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
}
.opt-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.opt-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.opt.is-empty,
.size-chip.is-empty {
  opacity: 0.55;
}
.f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-chip {
  position: relative;
}
.size-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.size-chip span {
  pointer-events: none; /* the invisible checkbox above it takes every click */
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  transition:
    background 100ms ease-out,
    border-color 100ms ease-out,
    transform 100ms ease-out;
}
.size-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.size-chip input:active + span {
  transform: scale(0.96);
}
.size-chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.f-more > summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.f-more[open] > summary {
  display: none;
}
.f-search {
  width: 100%;
  margin-bottom: 6px;
}
.f-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.f-price label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.f-hint,
.f-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.shop-results .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.filter-scrim {
  display: none;
}
@media (max-width: 959px) {
  .filter-open {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .shop-bar .sort {
    margin-left: auto;
  }
  .shop-bar .result-count {
    order: 3;
    flex-basis: 100%;
  }
  .shop-layout {
    display: block;
  }
  .filter-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    padding: 0;
    overflow: hidden;
    background: var(--ivory);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 48px #25272026;
    transform: translateY(105%);
    visibility: hidden;
    transition:
      transform 360ms var(--ease),
      visibility 0s linear 360ms;
  }
  .filter-panel.is-open {
    transform: none;
    visibility: visible;
    transition:
      transform 360ms var(--ease),
      visibility 0s;
  }
  .filter-head,
  .filter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
  }
  .filter-head h2 {
    margin: 0;
    font-size: 24px;
  }
  .filter-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--beige);
    font-size: 24px;
    line-height: 1;
  }
  .filter-form {
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 20px;
  }
  .filter-foot {
    border-top: 1px solid var(--line);
    background: rgb(250 246 239 / 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .filter-foot .btn:first-child {
    flex: 1;
  }
  .f-note {
    padding: 0 20px 14px;
  }
  .filter-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 75;
    background: #252720;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease-out;
  }
  .filter-scrim.is-open {
    opacity: 0.42;
    pointer-events: auto;
  }
  html.filters-locked {
    overflow: hidden;
  }
  .shop-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .nav-panel.mega {
    left: 12px !important;
    right: 12px;
    width: auto;
    min-width: 0;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .mega-col:first-child {
    columns: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .filter-panel,
  .filter-panel.is-open {
    transition: none;
  }
  .filter-scrim,
  .f-group > summary::after,
  .size-chip span {
    transition: opacity 120ms linear;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .filter-foot {
    background: var(--ivory);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ===== Continue with Google ===== */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 4px;
}
.google-button[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.brands-deal-in {
  margin: 32px 0 12px;
}

/* ---- Admin: a full-page dashboard (storefront chrome hidden, side menu, cards). Only active under body.admin-page. ---- */
.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-pill[hidden] {
  display: none;
}
body.admin-page .announcement,
body.admin-page .header,
body.admin-page .quick-links,
body.admin-page .find-bar,
body.admin-page .footer {
  display: none;
}
body.admin-page #main {
  padding: 0;
}
.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--ivory);
}
.admin-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 16px;
  background: #2a1218;
  color: #f4e9e4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.18em;
  color: #fff;
  padding: 4px 12px 18px;
}
.admin-brand small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.admin-group {
  margin: 18px 12px 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b99d96;
}
.admin-side a:not(.admin-brand) {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #eadcd6;
  transition: background var(--motion) ease;
}
.admin-side a:not(.admin-brand):hover {
  background: #ffffff14;
}
.admin-side a.active {
  background: var(--accent);
  color: #fff;
}
.admin-side-foot {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid #ffffff1f;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #b99d96;
  overflow-wrap: anywhere;
}
.admin-side-foot a {
  padding: 0 !important;
  color: #fff !important;
}
.admin-main {
  padding: 28px clamp(16px, 3vw, 44px) 60px;
  min-width: 0;
}
.admin-top h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
}
.admin-main .stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-main .stat,
.admin-main .order-card,
.admin-main .request-card,
.admin-main .panel,
.admin-main .table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.admin-main .stat {
  padding: 20px;
}
.admin-main .stat strong {
  font-size: 28px;
}
.admin-main .order-card {
  padding: 20px;
}
.admin-main .table-wrap {
  overflow-x: auto;
}
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
  }
  .admin-group {
    display: none;
  }
  .admin-brand {
    flex-direction: row;
    gap: 10px;
    align-items: baseline;
    padding: 4px 8px;
  }
  .admin-side-foot {
    margin: 0;
    padding: 0 8px;
    border: 0;
    flex-basis: 100%;
    grid-auto-flow: column;
  }
}

/* ---- Admin dashboard (hero + KPI cards + charts). Motion is switched off for prefers-reduced-motion. ---- */
.dash-hero {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(900px 340px at 85% 10%, #b8445d55, transparent 60%),
    radial-gradient(600px 300px at 10% 110%, #c9a45c33, transparent 60%),
    linear-gradient(135deg, #3b1320, #6e1f2f 55%, #4a1626);
  box-shadow: 0 24px 60px #3b132033;
}
.dash-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.dash-hero .eyebrow {
  color: #e3c27a;
}
.dash-hero h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  color: #fff;
}
.dash-hero p {
  margin: 0 0 22px;
  color: #f1dcd5;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #3b1320;
  font-size: 13px;
  font-weight: 500;
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease;
}
.dash-btn.ghost {
  background: #ffffff1c;
  color: #fff;
  border: 1px solid #ffffff40;
  backdrop-filter: blur(6px);
}
.dash-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #0003;
}
.dash-stage {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: 0;
}
.admin-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 700px) {
  .dash-stage {
    inset: auto 0 0 auto;
    width: 55%;
    height: 55%;
    opacity: 0.7;
  }
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #fbf4ee);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: kpi-in 520ms var(--ease, ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px #6e1f2f22;
}
.kpi-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #6e1f2f12;
  color: var(--accent);
}
.kpi-ico svg {
  width: 20px;
  height: 20px;
}
.kpi strong {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
@keyframes kpi-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dash-card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dash-card.wide {
  grid-column: 1 / -1;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.dash-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}
.dash-card-head span,
.dash-card-head a {
  font-size: 12px;
  color: var(--muted);
}
.dash-card-head a {
  color: var(--accent);
}
.spark {
  width: 100%;
  height: 130px;
  display: block;
  overflow: visible;
}
.spark-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: spark-draw 1.2s 0.2s ease forwards;
}
@keyframes spark-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.spark-days {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.split-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--beige);
}
.split-bar i {
  display: block;
  min-width: 6px;
  transform-origin: left;
  animation: bar-grow 700ms var(--ease, ease) both;
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}
.split-legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.split-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.split-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.split-legend b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.latest {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest li {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.latest li:first-child {
  border-top: 0;
}
.latest-ref {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.latest-amt {
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: var(--c, #999);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .latest li {
    grid-template-columns: 1fr auto;
  }
  .latest-who {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kpi,
  .split-bar i,
  .spark-line {
    animation: none;
  }
  .spark-line {
    stroke-dashoffset: 0;
  }
  .dash-btn,
  .kpi {
    transition: none;
  }
}

/* ---- Site editor ---- */
.site-editor {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.site-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-panel h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
}
.site-panel label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.site-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.site-colours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.site-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-swatch input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.site-swatch code {
  font-size: 12px;
  color: var(--ink);
}
.site-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-sections li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  cursor: grab;
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease;
}
.site-sections li:hover {
  box-shadow: 0 6px 16px #6e1f2f1a;
}
.site-sections li.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}
.site-sections .grip {
  color: var(--muted);
}
.site-sec-name {
  flex: 1;
  font-size: 14px;
}
.mini {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.eye {
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  grid-auto-flow: column;
}
.site-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.site-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.site-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-preview {
  position: sticky;
  top: 16px;
}
.site-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.site-frame {
  height: min(78vh, 820px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  transition: all 320ms var(--ease, ease);
}
.site-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transition: width 320ms var(--ease, ease);
}
.site-frame[data-device="phone"] iframe {
  width: 390px;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .site-editor {
    grid-template-columns: 1fr;
  }
  .site-preview {
    position: static;
  }
}

/* ---- Dashboard extra motion: drifting light, cursor spotlight, staggered cards, sliding menu highlight ---- */
.dash-hero::before,
.dash-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
}
.dash-hero::before {
  width: 280px;
  height: 280px;
  left: 30%;
  top: -90px;
  background: #d9657e55;
  animation: drift-a 14s ease-in-out infinite alternate;
}
.dash-hero::after {
  width: 240px;
  height: 240px;
  right: 8%;
  bottom: -100px;
  background: #c9a45c44;
  animation: drift-b 17s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(70px, 50px) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-90px, -40px) scale(1.2);
  }
}
.dash-hero-copy > * {
  animation: rise 700ms var(--ease, ease) both;
}
.dash-hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}
.dash-hero-copy > :nth-child(3) {
  animation-delay: 170ms;
}
.dash-hero-copy > :nth-child(4) {
  animation-delay: 250ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.dash-card {
  animation: rise 640ms var(--ease, ease) both;
}
.dash-grid > :nth-child(1) {
  animation-delay: 320ms;
}
.dash-grid > :nth-child(2) {
  animation-delay: 400ms;
}
.dash-grid > :nth-child(3) {
  animation-delay: 480ms;
}
.kpi::after,
.dash-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    #c9a45c30,
    transparent 60%
  );
  transition: opacity 240ms ease;
}
.kpi:hover::after,
.dash-card:hover::after {
  opacity: 1;
}
.dash-card {
  position: relative;
}
.kpi::before {
  background-size: 200% 100%;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.latest li {
  animation: rise 520ms var(--ease, ease) both;
}
.latest li:nth-child(2) {
  animation-delay: 60ms;
}
.latest li:nth-child(3) {
  animation-delay: 120ms;
}
.latest li:nth-child(4) {
  animation-delay: 180ms;
}
.latest li:nth-child(5) {
  animation-delay: 240ms;
}
.latest li:nth-child(6) {
  animation-delay: 300ms;
}
.spark circle {
  animation: pop 500ms 1s var(--ease, ease) both;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}
.admin-side a:not(.admin-brand) {
  position: relative;
}
.admin-side a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  animation: rise 360ms var(--ease, ease) both;
}
.admin-side a:not(.admin-brand):hover {
  transform: translateX(3px);
}
.admin-side a:not(.admin-brand) {
  transition:
    background var(--motion) ease,
    transform var(--motion) ease;
}
@media (prefers-reduced-motion: reduce) {
  .dash-hero::before,
  .dash-hero::after,
  .dash-hero-copy > *,
  .dash-card,
  .latest li,
  .spark circle,
  .kpi::before,
  .admin-side a.active::before {
    animation: none;
  }
  .admin-side a:not(.admin-brand):hover {
    transform: none;
  }
}

/* ======== Admin v2: light dashboard in the CHEHAK palette (sidebar with icons, search bar, hero, cards) ======== */
body.admin-page {
  background:
    radial-gradient(900px 500px at 100% 0%, #f3e4dc 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, #f6ecdd 0%, transparent 60%),
    #faf6ef;
}
.admin-shell {
  grid-template-columns: 268px minmax(0, 1fr);
  background: transparent;
}
.admin-side {
  background: linear-gradient(180deg, #2c0f19 0%, #3a1320 100%);
  padding: 26px 14px 18px;
}
.admin-side a:not(.admin-brand) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
}
.admin-side a:not(.admin-brand) svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.admin-side a.active {
  background: linear-gradient(90deg, #7a2335, #5d1a2a);
  box-shadow: 0 8px 20px #0004;
}
.nav-badge {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #8c2a3e;
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.admin-side a.active .nav-badge {
  background: #3a1320;
}
.admin-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 0;
  border-top: 1px solid #ffffff1f;
}
.admin-user .avatar,
.r-av {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8c2a3e, #c25b6e);
  color: #fff;
  font-size: 14px;
  flex: none;
}
.admin-user b {
  display: block;
  font-size: 14px;
  color: #fff;
}
.admin-user small {
  color: #b99d96;
}
.admin-main {
  padding: 22px clamp(16px, 2.6vw, 40px) 60px;
}
.admin-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.admin-search {
  flex: 0 1 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: #ffffffcc;
  border: 1px solid #e9ddd0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px #6e1f2f0d;
}
.admin-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  flex: none;
}
.admin-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  min-width: 0;
}
.admin-search kbd {
  font: 11px var(--sans);
  padding: 3px 7px;
  border-radius: 7px;
  background: #f2e9de;
  color: var(--muted);
}
.admin-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #6e1f2f1f;
}
.admin-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffffcc;
  border: 1px solid #e9ddd0;
}
.admin-bell svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-bell i {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6293e;
  border: 2px solid #fff;
  animation: pulse-dot 2s ease-in-out infinite;
}
.admin-bell i[hidden] {
  display: none;
}
@keyframes pulse-dot {
  50% {
    transform: scale(1.35);
  }
}
.admin-view {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: #2c0f19;
  color: #fff;
  font-size: 14px;
}
.admin-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
}
/* hero */
.d2-hero {
  position: relative;
  min-height: 300px;
  margin-bottom: 20px;
  padding: 18px 4px 10px;
}
.d2-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.d2-hero .eyebrow {
  color: #a9742f;
  letter-spacing: 0.18em;
}
.d2-hero h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: #1d1d1b;
}
.d2-hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.d2-hero p {
  margin: 0 0 22px;
  color: var(--ink);
}
.dash-btn.dark {
  background: #4a1626;
  color: #fff;
}
.d2-hero .dash-btn.ghost {
  background: #ffffff99;
  color: #7a4b50;
  border: 1px solid #e5d6cb;
}
.d2-stage {
  position: absolute;
  inset: -10px 120px -6px 44%;
  z-index: 1;
  border-radius: 28px;
  background:
    radial-gradient(420px 260px at 55% 40%, #6e1f2f1f, transparent 70%),
    linear-gradient(120deg, #ffffff00, #f3e3da);
  overflow: hidden;
}
.d2-facts {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a2a2a;
}
.d2-facts b {
  font-size: 15px;
  margin-right: 6px;
}
/* kpis */
.kpi2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico spark" "num num" "label delta";
  align-items: end;
  row-gap: 2px;
  background: #ffffffd9;
  border: 1px solid #efe4d8;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.kpi::before {
  display: none;
}
.kpi-ico {
  grid-area: ico;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f6e4e2;
}
.kpi-spark {
  grid-area: spark;
  justify-self: end;
  align-self: center;
  width: 110px;
  height: 34px;
}
.kpi-spark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: spark-draw 1.4s 0.3s ease forwards;
}
.kpi strong {
  grid-area: num;
  margin-top: 10px;
  font-size: clamp(30px, 2.6vw, 38px);
}
.kpi-label {
  grid-area: label;
  font-size: 14px;
  color: #6c5f58;
  letter-spacing: 0;
}
.kpi-delta {
  grid-area: delta;
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
}
.kpi-delta.up {
  color: #2f8a4c;
}
.kpi-delta.down {
  color: #c4313f;
}
/* cards */
.d2-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.d2-row.r1 {
  grid-template-columns: 1.55fr 1fr 0.95fr;
}
.d2-row.r2 {
  grid-template-columns: 1fr 1.15fr 1.5fr;
}
.d2-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 20px;
  background: #ffffffe6;
  border: 1px solid #efe4d8;
  box-shadow: 0 10px 30px #6e1f2f0d;
  animation: rise 640ms var(--ease, ease) both;
}
.d2-row.r1 > :nth-child(2) {
  animation-delay: 90ms;
}
.d2-row.r1 > :nth-child(3) {
  animation-delay: 160ms;
}
.d2-row.r2 > :nth-child(1) {
  animation-delay: 220ms;
}
.d2-row.r2 > :nth-child(2) {
  animation-delay: 290ms;
}
.d2-row.r2 > :nth-child(3) {
  animation-delay: 360ms;
}
.d2-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    #c9a45c24,
    transparent 60%
  );
  transition: opacity 240ms ease;
}
.d2-card:hover::after {
  opacity: 1;
}
.d2-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.d2-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
}
.d2-head a {
  font-size: 13px;
  color: var(--accent);
}
.small {
  font-size: 12px;
}
.range select {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e9ddd0;
  background: #fbf6f1;
  font: inherit;
  font-size: 13px;
}
.legend {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  margin-bottom: 4px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.legend b {
  margin-left: 8px;
}
.combo {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.combo text {
  font-size: 11px;
  fill: #8a7d75;
}
.cbar {
  fill: #5d1a2a;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-up 700ms var(--ease, ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes bar-up {
  from {
    transform: scaleY(0);
  }
}
.cline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: spark-draw 1.3s 0.4s ease forwards;
}
.cdot {
  animation: pop 500ms 1.1s var(--ease, ease) both;
  transform-box: fill-box;
  transform-origin: center;
}
.donut-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
}
.donut {
  width: 100%;
  height: auto;
}
.donut circle {
  animation: donut-in 900ms var(--ease, ease) both;
}
@keyframes donut-in {
  from {
    opacity: 0;
    stroke-width: 6;
  }
}
.donut-n {
  font: 600 30px var(--serif);
  fill: #1d1d1b;
}
.donut-l {
  font-size: 11px;
  fill: var(--muted);
}
.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.donut-legend b {
  margin-left: auto;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8f1ea;
  border: 1px solid #efe4d8;
  font-size: 13px;
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease,
    background var(--motion) ease;
}
.quick:first-child {
  background: #f3d9dc;
  border-color: #e8b9c0;
}
.quick:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 26px #6e1f2f1f;
}
.q-ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: #5d1a2a;
}
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.bars li {
  display: grid;
  grid-template-columns: 76px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #f3e9df;
  overflow: hidden;
}
.bar u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d1a2a, #c9a45c);
  transform-origin: left;
  animation: bar-grow 900ms var(--ease, ease) both;
}
.heat {
  display: grid;
  grid-template-columns: 96px repeat(var(--cols, 6), 1fr);
  gap: 5px;
  align-items: center;
  font-size: 12px;
}
.heat small {
  text-align: center;
  color: var(--muted);
}
.heat-row {
  color: var(--ink);
}
.cell {
  display: block;
  height: 30px;
  border-radius: 8px;
  background: #f3e9df;
  position: relative;
  overflow: hidden;
}
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #7a2335;
  opacity: var(--a, 0);
  animation: fade-in 700ms ease both;
}
.cell em {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  mix-blend-mode: normal;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.heat-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.heat-key i {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3e9df, #7a2335);
}
.recent {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.3fr) auto auto 28px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #f0e6da;
  animation: rise 520ms var(--ease, ease) both;
}
.recent li:first-child {
  border-top: 0;
}
.recent li:nth-child(2) {
  animation-delay: 60ms;
}
.recent li:nth-child(3) {
  animation-delay: 120ms;
}
.recent li:nth-child(4) {
  animation-delay: 180ms;
}
.recent li:nth-child(5) {
  animation-delay: 240ms;
}
.r-main b,
.r-amt b {
  display: block;
  font-size: 14px;
}
.r-main small,
.r-amt small {
  color: var(--muted);
  font-size: 12px;
}
.r-amt {
  text-align: right;
}
.r-more {
  color: var(--muted);
  letter-spacing: 2px;
}
@media (max-width: 1280px) {
  .kpi2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .d2-row.r1,
  .d2-row.r2 {
    grid-template-columns: 1fr 1fr;
  }
  .d2-row.r1 > :first-child,
  .d2-row.r2 > :last-child {
    grid-column: 1 / -1;
  }
  .d2-facts {
    display: none;
  }
  .d2-stage {
    inset: -10px 0 -6px 50%;
  }
}
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-user {
    display: none;
  }
  .admin-bar {
    flex-wrap: wrap;
  }
  .admin-search {
    flex-basis: 100%;
    order: 3;
  }
  .d2-row.r1,
  .d2-row.r2 {
    grid-template-columns: 1fr;
  }
  .d2-hero {
    min-height: 0;
  }
  .d2-stage {
    position: relative;
    inset: auto;
    height: 200px;
    margin-top: 16px;
  }
  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .recent li {
    grid-template-columns: 42px 1fr auto;
  }
  .recent .pill,
  .r-more {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbar,
  .cline,
  .cdot,
  .donut circle,
  .bar u,
  .cell::before,
  .kpi-spark path,
  .admin-bell i,
  .d2-card,
  .recent li {
    animation: none;
  }
  .cline,
  .kpi-spark path {
    stroke-dashoffset: 0;
  }
}

/* ======== Admin v3: pixel-matched to the approved dashboard mock (these rules override v1/v2 above) ======== */
body.admin-page {
  background:
    radial-gradient(1000px 520px at 78% -8%, #f2e3da 0%, transparent 62%),
    #fbf7f1;
}
.admin-shell {
  grid-template-columns: 262px minmax(0, 1fr);
  transition: grid-template-columns 260ms var(--ease, ease);
}
.admin-side {
  padding: 28px 16px 20px;
  background: linear-gradient(185deg, #2b0e17 0%, #36121e 55%, #2a0d16 100%);
  gap: 3px;
}
.admin-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 6px 22px 10px;
}
.admin-brand {
  padding: 0;
  font-size: 31px;
  letter-spacing: 0.24em;
}
.admin-brand small {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.26em;
}
.side-collapse {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #e9d9d3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background var(--motion) ease,
    transform 260ms var(--ease, ease);
}
.side-collapse:hover {
  background: #ffffff14;
}
.admin-group {
  margin: 22px 12px 8px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: #c9a9a0;
}
.admin-side a:not(.admin-brand) {
  min-height: 46px;
  font-size: 15.5px;
  color: #f4e8e3;
  padding: 0 16px;
  border-radius: 12px;
}
.admin-side a:not(.admin-brand) svg {
  width: 20px;
  height: 20px;
  opacity: 1;
}
.admin-side a.active {
  background: linear-gradient(90deg, #752335 0%, #67192b 100%);
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.admin-side a.active::before {
  display: none;
}
.nav-badge {
  min-width: 27px;
  height: 27px;
  padding: 0;
  line-height: 27px;
  border-radius: 50%;
  background: #7e2a3c;
  font-size: 13px;
}
.admin-user {
  gap: 13px;
  padding: 18px 6px 0;
}
.admin-user .avatar {
  width: 46px;
  height: 46px;
  background: #8b2b3d;
  font-size: 15px;
}
.admin-user b {
  font-size: 15px;
}
.admin-shell.collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}
.admin-shell.collapsed .admin-side a span,
.admin-shell.collapsed .admin-group,
.admin-shell.collapsed .admin-brand small,
.admin-shell.collapsed .admin-brand,
.admin-shell.collapsed .admin-user div,
.admin-shell.collapsed .nav-badge {
  display: none;
}
.admin-shell.collapsed .admin-brand-row {
  justify-content: center;
  padding: 0 0 18px;
}
.admin-shell.collapsed .side-collapse {
  transform: rotate(180deg);
}
.admin-shell.collapsed .admin-side a:not(.admin-brand) {
  justify-content: center;
  padding: 0;
}
.admin-main {
  position: relative;
  padding: 0 clamp(18px, 2.4vw, 44px) 56px;
}
.admin-bar {
  position: relative;
  z-index: 4;
  height: 78px;
  margin: 0;
}
.admin-search {
  flex: 0 0 min(470px, 44%);
  margin: 0 0 0 clamp(0px, 22%, 330px);
  min-height: 46px;
  background: #fffdfb;
  border: 1px solid #ece2d8;
  border-radius: 14px;
  box-shadow: 0 2px 8px #6e1f2f0a;
}
.admin-search input {
  font-size: 15px;
}
.admin-bell {
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
}
.admin-bell i {
  top: 8px;
  right: 9px;
  width: 10px;
  height: 10px;
  background: #e03b4d;
}
.admin-view {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #321019;
  font-size: 14.5px;
}
/* hero */
.d2-hero {
  min-height: 238px;
  margin: 0 0 0;
  padding: 18px 0 0;
}
.d2-photo {
  position: absolute;
  top: -78px;
  right: clamp(110px, 9%, 170px);
  width: min(548px, 40%);
  aspect-ratio: 548 / 316;
  background: url("/img/admin-hero.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  z-index: 0;
  animation: photo-in 900ms var(--ease, ease) both;
}
@keyframes photo-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
.d2-hero-copy {
  max-width: none;
}
.d2-hero .eyebrow {
  font-size: 13.5px;
  letter-spacing: 0.2em;
  color: #a8742f;
}
.d2-hero h2 {
  margin: 14px 0 10px;
  font-size: clamp(44px, 4.7vw, 70px);
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  font-feature-settings: "lnum" 1;
}
.d2-hero h2 em {
  color: #6c1d2f;
}
.d2-hero p {
  margin: 0 0 24px;
  font-size: 16.5px;
}
.d2-hero .dash-btn {
  min-height: 48px;
  padding: 0 28px;
  font-size: 15px;
}
.dash-btn.dark {
  background: linear-gradient(180deg, #5a1a2b, #461322);
  box-shadow: 0 8px 18px #46132240;
}
.d2-hero .dash-btn.ghost {
  background: #fffdfbb3;
  border: 1px solid #e4d8cd;
  color: #8e6e6c;
  backdrop-filter: none;
}
.d2-facts {
  right: 0;
  top: 62px;
  gap: 28px;
  text-align: right;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: #3a2b2b;
}
.d2-facts li {
  white-space: nowrap;
}
.d2-facts b {
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-right: 8px;
}
/* kpi cards */
.kpi2 {
  width: 90%;
  gap: 16px;
  margin-bottom: 18px;
}
.kpi {
  min-height: 130px;
  padding: 18px 20px 14px;
  background: #fffdfbcc;
  border: 1px solid #f0e5db;
  border-radius: 18px;
  box-shadow: 0 8px 22px #6e1f2f0a;
}
.kpi-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f6dcdc;
}
.kpi-ico svg {
  width: 19px;
  height: 19px;
}
.kpi-spark {
  width: 100px;
  height: 36px;
}
.kpi strong {
  margin-top: 6px;
  font-size: 37px;
  font-weight: 600;
  font-feature-settings: "lnum" 1;
}
.kpi-label {
  font-size: 15px;
  color: #6f625b;
}
.kpi-delta {
  font-size: 14px;
}
/* cards */
.d2-row {
  gap: 16px;
  margin-bottom: 16px;
}
.d2-row.r1 {
  grid-template-columns: 1.4fr 1fr 0.76fr;
}
.d2-row.r2 {
  grid-template-columns: 1fr 0.96fr 1.5fr;
}
.d2-card {
  padding: 20px 22px 18px;
  border-radius: 18px;
  background: #fffdfbd9;
  border: 1px solid #f0e5db;
  box-shadow: 0 8px 24px #6e1f2f0a;
}
.d2-head h3 {
  font-size: 25px;
  font-weight: 600;
}
.d2-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #8a7d75;
}
.d2-btn {
  padding: 8px 14px;
  border: 1px solid #e6dacf;
  border-radius: 10px;
  background: #fffdfb;
  color: #3a2b2b !important;
  font-size: 13px;
}
.range select {
  background: #fffdfb;
  border: 1px solid #e6dacf;
  border-radius: 10px;
  min-height: 34px;
  font-size: 13px;
}
.legend {
  justify-content: flex-end;
  font-size: 13.5px;
  margin: 2px 0 2px;
}
.legend b {
  font-weight: 600;
}
.cbar {
  fill: #5a1a2a;
}
.donut-wrap {
  grid-template-columns: 176px 1fr;
  gap: 22px;
}
.donut-n {
  font-size: 34px;
  font-weight: 600;
  font-feature-settings: "lnum" 1;
}
.donut-legend {
  gap: 13px;
  font-size: 14px;
}
.donut-legend i {
  width: 10px;
  height: 10px;
}
.donut-legend b {
  font-weight: 600;
}
.quick-grid {
  gap: 12px;
}
.quick {
  min-height: 66px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f7f0e9;
  border: 1px solid #f0e5db;
  font-size: 14px;
}
.quick:first-child {
  background: #f1d4d8;
  border-color: #e4b3ba;
}
.q-ico {
  width: 24px;
  height: 24px;
  color: #4b1a28;
}
.bars {
  gap: 17px;
}
.bars li {
  grid-template-columns: 78px 1fr 54px;
  font-size: 15px;
}
.bar {
  height: 13px;
  background: #f2e7dd;
}
.bar u {
  background: linear-gradient(90deg, #5a1a2a 0%, #8c3a48 55%, #d2b384 100%);
}
.heat {
  grid-template-columns: 98px repeat(var(--cols, 6), 1fr);
  gap: 6px;
  font-size: 13px;
}
.heat small {
  font-size: 11.5px;
}
.cell {
  height: 28px;
  border-radius: 6px;
  background: #f1dcd8;
}
.cell::before {
  background: #7a2335;
}
.cell[style*="--a:0"]::before {
  opacity: 0;
}
.recent li {
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) auto 92px 34px;
  gap: 14px;
  padding: 11px 0;
}
.r-thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6b1d2e, #4a1626);
  overflow: hidden;
  color: #e9d2a1;
}
.r-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r-thumb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.r-main b,
.r-who b,
.r-amt b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r-who b {
  font-weight: 500;
}
.r-main small,
.r-who small,
.r-amt small {
  font-size: 12.5px;
  color: #8a7d75;
}
.pill.soft {
  background: var(--bg);
  color: var(--fg);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
}
.r-more {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e6dacf;
  border-radius: 10px;
  color: #6f625b;
  background: #fffdfb;
}
@media (max-width: 1280px) {
  .kpi2 {
    width: 100%;
  }
  .d2-photo {
    right: 0;
    width: 44%;
    opacity: 0.55;
  }
  .recent li {
    grid-template-columns: 46px minmax(0, 1fr) auto 92px 34px;
  }
  .r-who {
    display: none;
  }
}
@media (max-width: 900px) {
  .admin-search {
    margin: 0;
  }
  .d2-hero h2 {
    white-space: normal;
  }
  .d2-photo {
    display: none;
  }
  .recent li {
    grid-template-columns: 46px 1fr 92px;
  }
  .recent .pill {
    display: none;
  }
}
/* v3 refinements: photo sits left of the bell/View-store buttons exactly like the mock; roomy hero; quick actions never squeeze */
.d2-photo {
  right: clamp(120px, 15%, 226px);
  width: min(548px, 38%);
}
.d2-hero {
  min-height: 262px;
}
.d2-hero h2 {
  font-size: clamp(42px, 4.3vw, 70px);
}
.d2-row.r1 {
  grid-template-columns: 1.4fr 1fr minmax(300px, 0.76fr);
}
.quick {
  font-size: 13.5px;
  padding: 10px 12px;
  gap: 8px;
}
.quick span {
  white-space: nowrap;
}
.admin-bell i {
  right: 10px;
}
@media (max-width: 900px) {
  .admin-bar {
    height: auto;
    padding: 12px 0 10px;
    gap: 10px;
  }
  .admin-search {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }
  .admin-view {
    margin-left: 0;
  }
}
.admin-main input,
.admin-main select,
.admin-main textarea {
  max-width: 100%;
  min-width: 0;
}
.admin-main .filters label {
  min-width: 0;
  max-width: 100%;
}
.donut-legend i,
.split-legend i {
  display: inline-block;
}
.cell em {
  display: none;
}
.cell[data-b="0"] {
  background: #f2dfd9;
}
.cell[data-b="1"] {
  background: #ecb3b5;
}
.cell[data-b="2"] {
  background: #cd6c7b;
}
.cell[data-b="3"] {
  background: #7a2335;
}
.cell::before {
  display: none;
}
.pill.soft {
  display: inline-block;
  border-radius: 999px;
  text-align: center;
  min-width: 92px;
}

/* ================= Storefront v4: header, hero, cards, brands, tiles (matches the approved homepage design) ================= */
:root {
  --maroon-deep: #3b1320;
  --maroon: #6c1d2f;
  --blush: #f3e2dc;
  --sand: #e8d5c8;
}
.announcement {
  background: var(--maroon-deep);
  color: #f3dcc9;
  letter-spacing: 0.14em;
}
.header {
  display: grid;
  grid-template-columns: auto minmax(260px, 560px) 1fr;
  grid-template-areas: "brand search actions" "brand nav actions";
  align-items: center;
  column-gap: clamp(18px, 3vw, 44px);
  row-gap: 0;
  height: auto;
  padding: 14px clamp(16px, 3vw, 56px) 6px;
  justify-content: initial;
  background: rgb(250 246 239 / 0.94);
}
.header .wordmark {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--maroon);
}
.header .wordmark span {
  font: 500 10.5px var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #8a7569;
}
.header .find-bar {
  grid-area: search;
  width: 100%;
  margin: 0;
  padding: 0 18px;
  min-height: 48px;
  background: #fffdfb;
  border: 1px solid #eadfd3;
  border-radius: 14px;
  box-shadow: 0 2px 10px #6e1f2f0a;
}
.header .find-bar input {
  height: 46px;
  font-size: 14.5px;
}
.header .find-action {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header .header-actions {
  grid-area: actions;
  justify-self: end;
  align-self: start;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  padding: 0;
  border: 0;
  margin-top: 4px;
}
.hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink);
  min-height: 44px;
  transition: color var(--motion) ease;
}
.hdr-link:hover {
  color: var(--maroon);
}
.hdr-link svg,
.cart-pill svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6f1f31, #571626);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 18px #571626;
  box-shadow: 0 8px 18px #57162640;
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease;
}
.cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px #57162655;
}
.cart-pill b {
  font-weight: 500;
}
#bag-count {
  position: static;
  background: none;
  color: inherit;
  min-width: 0;
  height: auto;
  padding: 0;
}
.header .primary-nav {
  grid-area: nav;
  justify-self: center;
  flex: none;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding: 10px 0 6px;
  font-size: 14px;
}
.header .nav-link {
  font-weight: 500;
  padding: 0;
  gap: 4px;
  position: relative;
}
.header .nav-icon {
  display: none;
}
.header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease, ease);
}
.header .nav-link:hover::after,
.header .nav-link:focus-visible::after {
  transform: scaleX(1);
}
.header .nav-toggle {
  min-width: 24px;
}
@media (max-width: 980px) {
  .header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "search search" "nav nav";
    row-gap: 10px;
    padding-top: 10px;
  }
  .hdr-link span {
    display: none;
  }
  .header .header-actions {
    align-self: center;
    gap: 6px;
  }
  .cart-pill {
    padding: 0 14px;
  }
  .header .primary-nav {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0 6px;
    scrollbar-width: none;
  }
}
.quick-links {
  display: none;
}

/* hero */
.campaign-carousel {
  position: relative;
  margin: 8px clamp(16px, 3vw, 56px) 0;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(100deg, #f7efe6 0%, #f3e6dc 46%, #3b1320 46.1%);
}
.campaign-stage {
  position: relative;
  max-width: none;
  width: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: clamp(420px, 38vw, 540px);
  overflow: visible;
  background: none;
}
.campaign-slide {
  position: relative;
  display: grid;
  grid-template-columns: 40% 28% 32%;
  width: 100%;
  height: auto;
  min-height: clamp(420px, 38vw, 540px);
  animation: hero-in 700ms var(--ease, ease) both;
}
.campaign-slide[hidden] {
  display: none;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
}
.hs-left {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(28px, 3.4vw, 64px) 0 clamp(52px, 4vw, 72px)
    clamp(58px, 6vw, 96px);
  min-width: 0;
}
.hs-eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 20px);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8d6f60;
}
.hs-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: #17110f;
  font-feature-settings: "lnum" 1;
}
.hs-title span,
.hs-title em {
  display: block;
}
.hs-title em {
  font-style: normal;
  color: var(--maroon);
}
.hs-text {
  max-width: 360px;
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #6c5f58;
}
.hs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.hs-btn,
.hs-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform var(--motion) ease,
    box-shadow var(--motion) ease,
    background var(--motion) ease;
}
.hs-btn {
  background: linear-gradient(180deg, #5d1a2b, #471323);
  color: #fff;
  box-shadow: 0 10px 22px #47132340;
}
.hs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px #47132355;
}
.hs-btn svg,
.hs-ghost svg,
.hs-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hs-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #4a3a35;
}
.hs-link i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c8b3a5;
  border-radius: 50%;
  transition:
    background var(--motion) ease,
    transform var(--motion) ease;
}
.hs-link:hover i {
  background: var(--maroon);
  color: #fff;
  transform: translateX(3px);
}
.hs-photo {
  position: relative;
  z-index: 1;
  margin: 0 -8% 0 -9%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 22%,
    #000 78%,
    transparent 100%
  );
}
.hs-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photo-drift 14s ease-in-out infinite alternate;
}
@keyframes photo-drift {
  to {
    transform: scale(1.045) translateY(-1.5%);
  }
}
.hs-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 56px) clamp(24px, 3vw, 56px) 60px
    clamp(26px, 3vw, 54px);
  color: #fff;
  background:
    radial-gradient(520px 320px at 90% 20%, #8f2e3f66, transparent 70%),
    linear-gradient(90deg, #45121f 0%, #4f1624 55%, #6e2430 100%);
}
.hs-right::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 12%;
  width: 26%;
  height: 56%;
  opacity: 0.22;
  background: radial-gradient(ellipse at 50% 100%, #fff 0, transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}
.hs-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, #e9d3b0, transparent);
}
.hs-right h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.05;
  color: #fff;
}
.hs-right p {
  margin: 0 0 24px;
  max-width: 320px;
  font-size: 13px;
  color: #f0d8d2;
}
.hs-ghost {
  align-self: flex-start;
  min-height: 46px;
  border: 1px solid #ffffff80;
  color: #fff;
  background: transparent;
}
.hs-ghost:hover {
  background: #ffffff1f;
  transform: translateY(-2px);
}
.hs-values {
  position: absolute;
  right: clamp(18px, 2.4vw, 40px);
  bottom: 62px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f2dcd5;
}
.campaign-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border: 0;
  border-radius: 50%;
  background: #ffffffcc;
  color: #4a1626;
  box-shadow: 0 8px 22px #0002;
  cursor: pointer;
  transition:
    transform var(--motion) ease,
    background var(--motion) ease;
}
.campaign-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.campaign-previous {
  left: 16px;
}
.campaign-next {
  right: 16px;
}
.campaign-arrow:hover {
  background: #fff;
  transform: scale(1.08);
}
.campaign-controls {
  position: absolute;
  left: clamp(58px, 6vw, 96px);
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  background: none;
}
.hs-progress {
  width: 30px;
  height: 2px;
  background: #4a1626;
}
.hs-counter {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: #4a3a35;
}
.campaign-pagination {
  display: flex;
  gap: 8px;
}
.campaign-pagination button {
  width: 22px;
  min-height: 22px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.campaign-pagination span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #4a162633;
  transition: background var(--motion) ease;
}
.campaign-pagination [aria-current="true"] span {
  background: #4a1626;
}
.campaign-play {
  border: 0;
  background: none;
  padding: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6c5f58;
  cursor: pointer;
}
@media (max-width: 900px) {
  .campaign-carousel {
    background: #f4e8de;
    border-radius: 22px;
  }
  .campaign-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hs-left {
    padding: 28px 24px 12px;
  }
  .hs-photo {
    height: 260px;
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hs-right {
    padding: 24px 24px 76px;
  }
  .hs-values {
    display: none;
  }
  .campaign-arrow {
    top: 150px;
    width: 42px;
    height: 42px;
  }
  .campaign-controls {
    left: 24px;
    bottom: 14px;
  }
  .hs-counter {
    color: #fff;
  }
  .hs-progress {
    background: #fff;
  }
  .campaign-pagination span {
    background: #ffffff55;
  }
  .campaign-pagination [aria-current="true"] span {
    background: #fff;
  }
  .campaign-play {
    color: #f0d8d2;
  }
}

/* trust strip */
.hp-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 clamp(16px, 3vw, 56px);
  padding: 22px 8px 10px;
}
.hp-trust li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-trust a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.hp-trust li:not(:has(a)) {
  gap: 14px;
}
.hp-trust svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.hp-trust b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #2a1a18;
}
.hp-trust span {
  font-size: 12px;
  color: #8a7d75;
}
.hp-trust a:hover b {
  color: var(--maroon);
}
@media (max-width: 1100px) {
  .hp-trust {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .hp-trust li {
    justify-content: flex-start;
  }
}

/* Men / Women / Kids cards */
.hp-cards {
  padding-top: 18px;
  padding-bottom: 6px;
}
.hp-cards-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr 1.04fr;
  gap: 16px;
}
.hp-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(100deg, #e9d6c9, #ddbfae);
  color: var(--maroon);
  isolation: isolate;
  transition:
    transform 320ms var(--ease, ease),
    box-shadow 320ms var(--ease, ease);
}
.hp-card.hp-men {
  background: linear-gradient(100deg, #3a1219, #5a1c25);
  color: #fff;
}
.hp-card img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 58%;
  object-fit: cover;
  z-index: -1;
  transition: transform 700ms var(--ease, ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
.hp-card.hp-kids img {
  width: 62%;
}
.hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px #3b132030;
}
.hp-card:hover img {
  transform: scale(1.06);
}
.hp-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  max-width: 54%;
  padding: 22px 0 22px 26px;
}
.hp-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1;
}
.hp-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  opacity: 0.82;
}
.hp-card.hp-men p {
  color: #f1dcd5;
  opacity: 1;
}
.hp-shop,
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
}
.hp-shop i,
.hp-pill i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform var(--motion) ease;
}
.hp-shop svg,
.hp-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-card:hover .hp-shop i,
.hp-tile:hover .hp-pill i {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .hp-cards-grid {
    grid-template-columns: 1fr;
  }
  .hp-card {
    min-height: 150px;
  }
}

/* brands row */
.our-brands {
  padding-top: 26px;
  padding-bottom: 10px;
}
.our-brands #store-brand-tiles .store-brand-grid,
.our-brands #store-brand-all .store-brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 4px 2px 8px;
}
.our-brands .store-brand-tile {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  min-height: 0;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #3a2b2b;
  box-shadow: 0 8px 22px #6e1f2f14;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 260ms var(--ease, ease),
    box-shadow 260ms var(--ease, ease);
}
.our-brands a.store-brand-tile:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 30px #6e1f2f26;
}
.our-brands .store-brand-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.our-brands .store-brand-tile.logo-on-dark {
  background: #2b2423;
}
.brands-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 12px;
}
.brands-head .brands-deal-in {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  color: #2a1a18;
}
.brands-line {
  flex: 0 0 38px;
  height: 1px;
  background: #cdbba9;
}
.brands-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3a1320;
}
.brands-all svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion) ease;
}
.brands-all:hover svg {
  transform: translateX(4px);
}

/* four category tiles */
.hp-tiles {
  padding-top: 8px;
  padding-bottom: 18px;
}
.hp-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hp-tile {
  position: relative;
  display: grid;
  min-height: 190px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, #ead8cb, #dfc4b3);
  color: var(--maroon);
  transition:
    transform 320ms var(--ease, ease),
    box-shadow 320ms var(--ease, ease);
}
.hp-tile.hp-t-nightwear {
  background: linear-gradient(100deg, #3d1320, #5d1d29);
  color: #fff;
}
.hp-tile img {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 700ms var(--ease, ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.hp-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px #3b132030;
}
.hp-tile:hover img {
  transform: scale(1.07) rotate(0.6deg);
}
.hp-tile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  max-width: 56%;
  padding: 22px 0 22px 22px;
}
.hp-tile h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.05;
}
.hp-tile p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.8;
}
.hp-pill {
  align-self: flex-start;
  padding: 7px 8px 7px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12.5px;
}
@media (max-width: 1100px) {
  .hp-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .hp-tiles-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- custom cursor (public/js/cursor.js) + gold glow ---- */
html.has-cursor,
html.has-cursor *:not(input):not(textarea):not(select):not(iframe) {
  cursor: none;
}
html.has-cursor iframe,
html.has-cursor select {
  cursor: auto;
}
.cur-ring,
.cur-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
html.has-cursor .cur-ring,
html.has-cursor .cur-dot {
  opacity: 1;
}
html.cursor-off .cur-ring,
html.cursor-off .cur-dot {
  opacity: 0;
}
.cur-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid #6e1f2f99;
  border-radius: 50%;
  box-shadow: 0 0 18px #c9a45c33;
  transition:
    opacity 200ms ease,
    width 240ms var(--ease, ease),
    height 240ms var(--ease, ease),
    margin 240ms var(--ease, ease),
    background 240ms ease,
    border-color 240ms ease;
}
.cur-ring.is-link {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: #c9a45c26;
  border-color: #c9a45c;
}
.cur-ring.is-down {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: #c9a45c40;
}
.cur-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #c9a45c;
  box-shadow:
    0 0 0 2px #ffffffcc,
    0 0 12px #c9a45c;
}
.cur-spark {
  position: fixed;
  z-index: 100001;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4, #c9a45c 60%, #a8742f);
  box-shadow: 0 0 10px #e3c27a;
  pointer-events: none;
}
.gold-sweep {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100002;
  height: 3px;
  transform-origin: left;
  background: linear-gradient(
    90deg,
    transparent,
    #e3c27a 20%,
    #fff3c4 50%,
    #e3c27a 80%,
    transparent
  );
  box-shadow:
    0 0 18px #e3c27a,
    0 6px 26px #e3c27a66;
  pointer-events: none;
}
/* Gold glow that follows the pointer across cards (the pointer position comes from cursor.js). */
.hp-card,
.hp-tile,
.product-card,
.store-brand-tile,
.kpi,
.d2-card,
.quick,
.order-card,
.site-panel {
  position: relative;
}
.hp-card::after,
.hp-tile::after,
.product-card::after,
.store-brand-tile::after,
.quick::after,
.order-card::after,
.site-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    #e3c27a40,
    transparent 62%
  );
  transition: opacity 260ms ease;
  z-index: 1;
}
.hp-card:hover::after,
.hp-tile:hover::after,
.product-card:hover::after,
.store-brand-tile:hover::after,
.quick:hover::after,
.order-card:hover::after,
.site-panel:hover::after {
  opacity: 1;
}
body.admin-page .kpi:hover,
body.admin-page .d2-card:hover,
body.admin-page .quick:hover,
body.admin-page .order-card:hover {
  border-color: #d9bd86;
  box-shadow:
    0 14px 34px #6e1f2f1f,
    0 0 0 1px #e3c27a99,
    0 0 26px #e3c27a40;
}
body.admin-page .admin-side a:not(.admin-brand):hover {
  background:
    radial-gradient(
      160px circle at var(--mx, 50%) var(--my, 50%),
      #e3c27a40,
      transparent 70%
    ),
    linear-gradient(90deg, #ffffff12, #e3c27a1f);
  box-shadow: inset 0 0 0 1px #e3c27a55;
}
body.admin-page a:active,
body.admin-page button:active {
  filter: drop-shadow(0 0 8px #e3c27a);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cur-ring,
  .cur-dot {
    display: none;
  }
}

/* v4 fixes after review: header actions, hero overlays, section widths, card text, one scrolling brand row */
.hdr-link.icon-link,
.cart-pill.icon-link {
  width: auto;
  height: auto;
  min-width: 0;
}
.header .header-actions .cart-pill {
  flex: none;
  white-space: nowrap;
}
.campaign-slide::before,
.campaign-slide::after,
.campaign-stage::before,
.campaign-stage::after {
  display: none;
}
.hp-cards,
.our-brands,
.hp-tiles {
  width: auto;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(16px, 3vw, 56px);
  border-top: 0;
}
.hp-card-copy {
  max-width: 50%;
}
.hp-card p {
  font-size: 12.5px;
}
.hp-card img {
  width: 54%;
}
.hp-card.hp-kids img {
  width: 58%;
}
.hp-tile-copy {
  max-width: 52%;
}
.hp-tile img {
  width: 58%;
}
.hp-tile p {
  font-size: 12px;
}
.our-brands .store-brand-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.our-brands .store-brand-grid::-webkit-scrollbar {
  display: none;
}
.our-brands .store-brand-tile {
  flex: none;
  scroll-snap-align: start;
}
.brands-head {
  gap: 14px;
}
.brands-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #d9c9bb;
  border-radius: 50%;
  background: #fffdfb;
  color: #3a1320;
  cursor: pointer;
  transition:
    background var(--motion) ease,
    transform var(--motion) ease;
}
.brands-arrow:hover {
  background: #3a1320;
  color: #fff;
  transform: scale(1.06);
}
.brands-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brands-all {
  margin-left: auto;
}
.our-brands #store-brand-all .store-brand-grid {
  flex-wrap: nowrap;
  overflow-x: auto;
}
.hp-tile-copy {
  max-width: 50%;
}
.hp-tile img {
  width: 56%;
}
@media (max-width: 900px) {
  .campaign-arrow,
  .hs-counter,
  .hs-progress {
    display: none;
  }
  .hs-right {
    padding-bottom: 96px;
  }
  .campaign-controls {
    left: 50%;
    transform: translateX(-50%);
  }
}

.header .find-action {
  position: static;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  flex: none;
}
.header .find-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header .find-bar {
  padding-right: 6px;
}
.header > * {
  min-width: 0;
}
.header .find-bar input {
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .campaign-controls {
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .header .wordmark {
    font-size: 26px;
    letter-spacing: 0.12em;
  }
  .header .wordmark span {
    letter-spacing: 0.3em;
  }
  .cart-pill {
    padding: 0 12px;
    font-size: 12.5px;
  }
  .header .header-actions {
    gap: 2px;
  }
}
@media (max-width: 1240px) {
  .hdr-link span {
    display: none;
  }
  .header {
    grid-template-columns: auto minmax(200px, 520px) 1fr;
    column-gap: 22px;
  }
  .header .header-actions {
    gap: 10px;
  }
}
/* ---- Stock upload ---- */
.upload-grid {
  display: grid;
  gap: 16px;
  max-width: 1100px;
}
.drop {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 150px;
  margin: 14px 0;
  padding: 18px;
  border: 2px dashed #d9c2a3;
  border-radius: 16px;
  background: #fbf6ef;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--motion) ease,
    background var(--motion) ease;
}
.drop:hover,
.drop.over {
  border-color: #c9a45c;
  background: #fff7e6;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop-title {
  font-family: var(--serif);
  font-size: 22px;
}
.drop:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.plain {
  padding-left: 1.1em;
  line-height: 1.7;
}
