/* LYTO â€” Minimalist Storefront (#5E0A0D + Ash White) */
:root {
  --brand: #5E0A0D;
  --brand-dark: #470609;
  --ash: #5E0A0D;
  --ash-deep: #520809;
  --white: #FFFFFF;
  --surface: #4A0608;
  --ink: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(255, 255, 255, 0.2);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Proxima Nova", "proxima-nova", sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }

/* Top Bar */
.announcement {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--brand);
  color: var(--white);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}
.announcement span { opacity: .6; }

/* Minimal Header */
.site-header {
  height: 76px;
  padding: 0 max(5vw, calc((100vw - var(--container)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--ash);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color .25s ease;
}
.site-header.is-scrolled { background: var(--brand-dark); }
.site-header.is-scrolled .wordmark,
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .icon-button { color: var(--white); }
.site-header.is-scrolled .main-nav a:hover { color: rgba(255, 255, 255, 0.8); }
.site-header.is-scrolled .bag-button span {
  background: var(--white);
  color: var(--brand);
}
.wordmark {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--white);
}
.site-header .wordmark {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .2em;
}
.wordmark span { color: var(--white); opacity: 0.9; }
.wordmark-image {
  display: block;
  height: 24px;
  width: auto;
  opacity: 0.82;
}
.corner-logo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  height: 40px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 25;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
.corner-logo.is-at-footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}
.main-nav {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
  gap: 44px;
}
.main-nav a {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}
.main-nav a:hover { color: rgba(255, 255, 255, 0.75); }
.header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.icon-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 21px;
  padding: 4px;
  transition: color .25s ease;
}
.bag-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bag-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.bag-button span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 10px;
}
.mobile-menu-button { display: none; }

/* Search */
.search-panel {
  display: none;
  position: sticky;
  top: 76px;
  z-index: 19;
  padding: 16px max(5vw, calc((100vw - var(--container)) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.search-panel.open { display: flex; }
.search-panel input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  caret-color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
}
.search-panel input::placeholder { color: var(--muted); }
.text-button {
  border: 0;
  background: none;
  color: var(--white);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
body.search-active .hero,
body.search-active .shop-heading,
body.search-active .group-bar {
  display: none;
}
body.search-active .catalogue-section {
  padding-top: 20px;
  border-top: 0;
  scroll-margin-top: 132px;
}
body.search-active .category-group { margin-bottom: 24px; }

/* Home Hero */
.hero {
  max-width: var(--container);
  margin: auto;
  padding: 64px 5vw 80px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 7%;
}
.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero .eyebrow {
  margin-bottom: 12px;
  font-size: 8px;
  letter-spacing: .14em;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -.02em;
}
h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
}
h1 em, h2 em {
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  font-weight: 400;
}
.hero-description {
  max-width: 340px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.button-primary {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
.button-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}
.button-glass {
  gap: 10px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 28px rgba(30, 3, 4, 0.25),
    0 2px 8px rgba(30, 3, 4, 0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.button-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 16px 34px rgba(30, 3, 4, 0.28),
    0 4px 10px rgba(30, 3, 4, 0.2);
  transform: translateY(-1px);
}
.button-glass .button-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero-image-wrap {
  height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ash-deep);
}
.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .9s ease-in-out, transform 3s ease-out;
}
.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}
.image-caption {
  position: absolute;
  right: -14px;
  bottom: 20px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--white);
  font-size: 8px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

/* Catalogue */
.section {
  max-width: var(--container);
  margin: auto;
  padding: 72px 5vw 96px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
}
.shop-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-list {
  display: flex;
  gap: 6px;
}
.filter-chip {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 7px 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--white);
  color: var(--white);
}
#sortSelect {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 7px;
  background: #F3EDE5;
  padding: 7px 18px 7px 4px;
  color: var(--brand);
  font-size: 10px;
  outline-color: var(--white);
}

/* Category Follow-Through Sections */
.category-group {
  margin-bottom: 64px;
}
.category-group:last-of-type {
  margin-bottom: 0;
}
.group-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.group-bar h3 {
  font-size: 24px;
  color: var(--ink);
}
.group-bar span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 18px;
}
.product-card { min-width: 0; }
.product-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}
.product-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s, transform .65s cubic-bezier(.2,.7,.2,1);
}
.product-image-secondary {
  opacity: 0;
}
.product-image-wrap.show-product-card .product-image-primary {
  opacity: 0;
}
.product-image-wrap.show-product-card .product-image-secondary {
  opacity: 1;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}
.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.image-toggle {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(74, 6, 8, 0.92);
  color: var(--white);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.image-toggle:hover, .image-toggle:focus-visible {
  background: var(--white);
  color: var(--brand);
}
.quick-add {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100% - 20px);
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s;
}
.product-card:hover .quick-add, .quick-add:focus {
  opacity: 1;
  transform: translateY(0);
}
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-top: 13px;
}
.product-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}
.product-spec {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
}
.product-price {
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.empty-state {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
}

/* Minimal Contact Section */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 84px max(5vw, calc((100vw - var(--container)) / 2));
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-info .eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
}
.contact-lead {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details a {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}
.contact-link-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  vertical-align: -4px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input {
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus {
  border-bottom-color: var(--white);
}
.contact-form .button {
  align-self: flex-start;
  margin-top: 6px;
  gap: 10px;
  border-radius: 999px;
}
.contact-form .button-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--white);
  font-size: 11px;
}

/* Minimal Footer */
.site-footer {
  padding: 28px max(5vw, calc((100vw - var(--container)) / 2));
  background: var(--ash);
  border-top: 1px solid var(--line);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}
.footer-wordmark {
  font-size: 20px;
}
.footer-logo-image {
  display: block;
  height: 54px;
  width: auto;
  border-radius: 10px;
}

/* Bag Drawer & 5-Digit Order Code */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(20, 15, 15, .35);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  padding: 26px;
  background: var(--ash);
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-header .eyebrow { margin-bottom: 6px; }
.drawer-header h2 { font-size: 28px; }
.drawer-header h2 span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
}
#cartClose { font-size: 28px; }

.order-code-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  margin-top: 14px;
  background: var(--brand);
  color: var(--white);
}
.order-code-banner span {
  font-size: 9px;
  letter-spacing: .14em;
  opacity: .85;
}
.order-code-banner strong {
  font-size: 14px;
  letter-spacing: .16em;
}

.cart-items { flex: 1; overflow: auto; }
.cart-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  background: var(--ash-deep);
}
.cart-row h3 {
  margin: 2px 0 6px;
  font-size: 15px;
}
.cart-row p {
  margin: 0;
  color: var(--white);
  font-size: 11px;
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
}
.quantity-control button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
}
.quantity-control span { font-size: 10px; }
.remove-item {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.cart-empty {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cart-empty.show { display: flex; }
.cart-empty p {
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
}
.cart-empty a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.cart-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.drawer-field {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-field label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.drawer-field select, .drawer-field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  outline-color: var(--white);
}
.subtotal-breakdown {
  margin: 12px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subtotal-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-top: 4px;
}
.subtotal strong {
  color: var(--white);
  font-size: 15px;
}
.checkout-button { width: 100%; }

/* Toast */
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  padding: 12px 18px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll-Triggered Reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive / Mobile */
@media (max-width: 900px) {
  .site-header { height: 68px; }
  .search-panel { top: 68px; }
  .mobile-menu-button { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .wordmark { grid-column: 2; grid-row: 1; justify-self: center; font-size: 22px; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 22px 5vw;
    background: var(--ash);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .site-header.is-scrolled .main-nav a { color: var(--ink); }
  .site-header.is-scrolled .main-nav a:hover { color: rgba(255, 255, 255, 0.75); }
  .hero { grid-template-columns: 1fr; padding: 40px 5vw 56px; gap: 32px; }
  .hero-image-wrap { height: 380px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .quick-add { opacity: 1; transform: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .announcement { font-size: 8px; letter-spacing: .06em; }
  .site-header { padding: 0 18px; }
  .hero { padding: 36px 18px 48px; }
  h1 { font-size: 34px; }
  .hero-image-wrap { height: 340px; margin-right: 10px; }
  .section { padding: 56px 18px 72px; }
  .section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .shop-controls { width: 100%; }
  .filter-list { flex-wrap: wrap; }
  .product-grid { gap: 24px 12px; }
  .product-info { flex-direction: column; gap: 4px; }
  .contact-section { padding: 60px 18px; }
  .drawer-field select, .drawer-field input, .contact-form input, .search-panel input { font-size: 16px; }
  .cart-drawer { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}