:root {
  --gold: #c9a962;
  --gold-bright: #e0c878;
  --gold-dim: rgba(201, 169, 98, 0.15);
  --black: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: #1a1a1a;
  --border-hover: rgba(201, 169, 98, 0.45);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --muted-2: #5a5a5a;
  --danger: #ef4444;
  --success: #22c55e;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Syne", system-ui, sans-serif;
  --radius: 2px;
  --glass: rgba(8, 8, 8, 0.78);
  --max: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Kill browser default light button chrome */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  background-color: transparent;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid transparent;
  color: #a3a3a3;
  border-radius: var(--radius);
  cursor: pointer;
}
.icon-btn:hover {
  color: #fff;
  border-color: #262626;
}
.icon-btn.is-active,
.icon-btn[aria-pressed="true"] {
  color: var(--gold);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  border-bottom: 1px solid transparent;
  color: #a3a3a3;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  cursor: pointer;
  text-align: left;
}
.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
}
.filter-btn.is-active {
  border-bottom-color: var(--gold);
}

.pager-btn {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #262626;
  background: transparent !important;
  color: #a3a3a3;
  font-size: 0.75rem;
  cursor: pointer;
}
.pager-btn:hover {
  color: #fff;
}
.pager-btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

select.input-field,
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #000 !important;
  color: #fff;
  border: 1px solid #262626;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

/* Bordered icon/control buttons that relied on Tailwind */
button.border,
button[class*="border-neutral"],
button.w-9,
button.w-10,
button.w-11,
button.w-6,
button.w-8 {
  background: transparent !important;
  background-color: transparent !important;
}
#arrivals-prev,
#arrivals-next,
#btn-close-add,
#qty-minus,
#qty-plus {
  background: transparent !important;
  color: #a3a3a3;
}
#arrivals-prev:hover,
#arrivals-next:hover,
#btn-close-add:hover,
#qty-minus:hover,
#qty-plus:hover {
  color: #fff;
}

::selection {
  background: var(--gold);
  color: #000;
}

::-webkit-scrollbar {
  width: 0.375rem;
  height: 0.375rem;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 0.25rem;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.font-display {
  font-family: var(--font-display);
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-gradient {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(201, 169, 98, 0.1) 0%,
    rgba(0, 0, 0, 1) 68%
  );
}

.perspective-1000 {
  perspective: 1000px;
}
.preserve-3d {
  transform-style: preserve-3d;
}
.tilt-card {
  transition: transform 0.12s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.custom-checkbox {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid #333;
  border-radius: 0.125rem;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 0.25rem;
  height: 0.5rem;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
}

.text-gold {
  color: var(--gold);
}
.bg-gold {
  background: var(--gold);
}
.border-gold {
  border-color: var(--gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid #333;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: #7f1d1d !important;
  background-color: #7f1d1d !important;
  color: #fecaca !important;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid #991b1b;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.btn-danger:hover {
  background: #991b1b !important;
  color: #fff !important;
}

.input-field {
  width: 100%;
  background: #000;
  border: 1px solid #262626;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}
.input-field:focus {
  border-color: var(--gold);
}

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Toast */
#toast-root {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface-2);
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--gold);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.35s ease;
}
.toast.toast-success {
  border-left-color: var(--success);
}
.toast.toast-error {
  border-left-color: var(--danger);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(8, 8, 8, 0.95);
  border-top: 1px solid #222;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
}
#cookie-banner.hidden {
  display: none;
}

/* Mobile nav */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(100%, 20rem);
  background: #050505;
  border-right: 1px solid #1a1a1a;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}
#mobile-nav.open #mobile-nav-panel {
  transform: translateX(0);
}

/* Search overlay */
#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
}
#search-overlay.open {
  display: flex;
}
#search-form {
  position: relative;
  width: 100%;
}
#search-form .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
  pointer-events: none;
  z-index: 1;
}
#search-input {
  width: 100%;
  padding: 1rem 3.25rem 1rem 3.25rem;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #fff;
  font-size: 1rem;
  border-radius: var(--radius);
}
#search-input::placeholder {
  color: #737373;
}
#btn-search-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: transparent !important;
  color: #a3a3a3;
}
#btn-search-close:hover {
  color: #fff;
}

/* Cart drawer */
#cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 24rem;
  background: #050505;
  border-left: 1px solid #1a1a1a;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
#cart-drawer.open {
  transform: translateX(0);
}

.page-hero {
  padding: 8rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
    ellipse at 30% 0%,
    rgba(201, 169, 98, 0.08),
    transparent 55%
  );
}

.product-card img,
.arrival-card img {
  transition: transform 0.7s ease, filter 0.5s ease, opacity 0.5s ease;
  filter: grayscale(1);
  opacity: 0.85;
}
.product-card:hover img,
.arrival-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0);
  opacity: 1;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }

.countdown-box {
  min-width: 3.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 169, 98, 0.25);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}
.lookbook-grid .lb-a {
  grid-column: span 7;
  grid-row: span 2;
}
.lookbook-grid .lb-b {
  grid-column: span 5;
}
.lookbook-grid .lb-c {
  grid-column: span 5;
}
.lookbook-grid .lb-d {
  grid-column: span 4;
}
.lookbook-grid .lb-e {
  grid-column: span 4;
}
.lookbook-grid .lb-f {
  grid-column: span 4;
}
@media (max-width: 768px) {
  .lookbook-grid .lb-a,
  .lookbook-grid .lb-b,
  .lookbook-grid .lb-c,
  .lookbook-grid .lb-d,
  .lookbook-grid .lb-e,
  .lookbook-grid .lb-f {
    grid-column: span 12;
    grid-row: auto;
  }
}

.insta-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}
@media (max-width: 768px) {
  .insta-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-shell {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #020202;
}
.admin-shell.active {
  display: flex;
}

.step-dot.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
