:root {
  --black: #111111;
  --soft-black: #1c1a17;
  --cream: #f6f0e8;
  --white: #ffffff;
  --gold: #c7a96b;
  --gold-soft: #eadfc8;
  --text: #29241f;
  --muted: #7c7268;
  --border: rgba(17, 17, 17, 0.12);

  --max-width: 1180px;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.12);

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 999;
  top: 16px;
  left: 16px;
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}

/* HERO */

.catalog-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-copy {
  padding: 96px max(32px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 34px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.05), rgba(17, 17, 17, 0.22)),
    radial-gradient(circle at 50% 42%, rgba(199, 169, 107, 0.32), transparent 34%),
    linear-gradient(135deg, #d9c7ad, #7d6b58);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  border-radius: 48% 48% 18% 18%;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(226,213,190,0.92));
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "AURA";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.14);
}

.hero-product-card {
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 240px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-product-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.hero-product-card strong {
  display: block;
  font-size: 1.3rem;
}

/* SECTIONS */

.section {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
  padding: 96px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2,
.newsletter h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-header p,
.newsletter p {
  color: var(--muted);
  margin-top: 14px;
}

/* TRUST */

.trust-section {
  width: min(100% - 32px, var(--max-width));
  margin: 72px auto 0;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-section p {
  color: rgba(255,255,255,0.64);
  margin-top: 4px;
}

/* COLLECTIONS */

.collection-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 22px;
}

.collection-card {
  min-height: 320px;
  border-radius: var(--radius);
  padding: 28px;
  background:
    linear-gradient(rgba(17,17,17,0.18), rgba(17,17,17,0.42)),
    linear-gradient(135deg, #cdbb9d, #6f6254);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.collection-card.large {
  min-height: 420px;
}

.collection-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.collection-card p {
  color: rgba(255,255,255,0.78);
}

/* FILTERS */

.premium-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.catalog-search input,
.premium-toolbar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  outline: none;
}

.catalog-search input:focus,
.premium-toolbar select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 169, 107, 0.16);
}

.catalog-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.results-count {
  color: var(--muted);
  font-weight: 800;
}

.clear-filters {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(17,17,17,0.08);
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  min-height: 280px;
  background:
    radial-gradient(circle at center, rgba(199,169,107,0.25), transparent 36%),
    linear-gradient(145deg, #f3eadc, #b49b78);
  position: relative;
}

.product-image::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 190px;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 42% 42% 18px 18px;
  background: linear-gradient(145deg, #fff, #dfd0b6);
  box-shadow: 0 20px 50px rgba(17,17,17,0.14);
}

.product-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255,255,255,0.78);
  color: var(--black);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

figcaption {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-info {
  padding: 22px;
}

.product-category {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.product-info h3 {
  font-size: 1.15rem;
  margin: 6px 0;
}

.product-brand {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.product-price {
  color: var(--text);
  font-weight: 900;
  margin-bottom: 16px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

.product-actions button {
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 13px 14px;
  font-weight: 900;
}

.favorite-btn {
  border: 1px solid var(--border) !important;
  background: var(--white) !important;
  color: var(--black) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 1.2rem;
}

.favorite-btn.active,
.favorite-btn:hover {
  color: var(--gold) !important;
}

/* NEWSLETTER CTA */

.newsletter {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 96px;
  border-radius: var(--radius);
  padding: 56px;
  background: var(--soft-black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}

/* MINI CART */

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.42);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
}

.cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--white);
  z-index: 90;
  transform: translateX(100%);
  transition: 0.3s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -20px 0 60px rgba(17,17,17,0.18);
}

.mini-cart.active {
  transform: translateX(0);
}

.mini-cart-header,
.mini-cart-footer {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.mini-cart-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-cart-header button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.6rem;
}

.cart-items {
  padding: 24px;
  overflow-y: auto;
}

.cart-empty {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3eadc, #b49b78);
}

.cart-item h3 {
  font-size: 0.95rem;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 15px;
  font-weight: 900;
}

/* FOOTER */

.store-footer {
  background: var(--black);
  color: var(--white);
  padding: 42px max(32px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.store-footer p,
.store-footer a {
  color: rgba(255,255,255,0.64);
}

.store-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .catalog-hero,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .trust-section,
  .premium-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .catalog-hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 72px 24px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .trust-section,
  .collection-grid,
  .premium-toolbar,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter,
  .store-footer {
    padding: 34px 24px;
  }

  .store-footer {
    flex-direction: column;
  }
}   
