
:root {
  --black: #111827;
  --black-2: #1f2937;
  --blue: #2563eb;
  --cyan: #08b9e8;
  --cream: #f7f5f0;
  --white: #ffffff;
  --soft: #fbfaf7;
  --text: #20242b;
  --muted: #727780;
  --border: #e7e5df;
  --success: #2e7d4f;
  --danger: #c44545;
  --shadow: 0 18px 55px rgba(15, 23, 42, .10);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  width: 285px;
  min-width: 285px;
  height: 74px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.site-logo {
  width: 280px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav a {
  position: relative;
  color: #686d76;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--black);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.mobile-menu-button {
  border: 0;
  background: transparent;
  color: var(--black);
}

.icon-button {
  font-size: 27px;
  width: 42px;
  height: 42px;
}

.bag-button,
.user-button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
}

.bag-button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 5px;
  background: var(--black);
  color: white;
  border-radius: 50%;
  font-size: 10px;
}

.user-button {
  background: var(--cream);
  border-color: transparent;
}

.mobile-menu-button {
  display: none;
  font-size: 24px;
  padding: 5px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 15px 4%;
  background: white;
}

.mobile-menu.active {
  display: grid;
}

.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

/* BUTTONS */

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--black);
  color: white;
}

.button-dark:hover {
  background: #273244;
}

.button-light {
  background: white;
  color: var(--black);
}

.full {
  width: 100%;
}

/* HERO */

.hero {
  padding: 78px 0 95px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-copy h1,
.shop-hero h1,
.payment-intro h1 {
  font-family: "Playfair Display", serif;
  color: var(--black);
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -3px;
  margin: 15px 0 24px;
}

.hero-copy h1 em,
.shop-hero h1 em,
.payment-intro h1 em,
.about-heading h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-text {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}

.text-link {
  font-size: 12px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--blue);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
  color: #777;
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.hero-image-wrap {
  height: 570px;
  overflow: hidden;
  background: #eef0f2;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: -30px;
  bottom: 35px;
  width: 240px;
  padding: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.floating-card span,
.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.floating-card strong {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  margin: 7px 0;
}

.floating-card small {
  color: var(--muted);
  font-size: 11px;
}

/* SECTIONS */

.section {
  padding: 90px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 35px;
}

.section-heading h2,
.about-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-top: 8px;
}

/* CATEGORIES */

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

.category-card {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #ddd;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,.72));
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: white;
}

.category-overlay span {
  font-size: 9px;
  opacity: .75;
}

.category-overlay h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 3px 0;
}

.category-overlay p {
  font-size: 11px;
  opacity: .8;
}

/* PRODUCT CARDS */

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

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #f0f0ee;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.045);
}

.product-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: white;
  padding: 6px 9px;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 800;
}

.add-cart {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--black);
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.add-cart:hover {
  background: var(--black);
  color: white;
}

.product-info {
  padding: 14px 1px 0;
}

.product-category {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.product-name {
  font-size: 14px;
  margin: 5px 0;
}

.product-price {
  font-size: 14px;
  font-weight: 800;
}

/* PROMO */

.promo-section {
  background: var(--black);
  color: white;
  padding: 80px 0;
}

.promo-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.promo-inner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 65px);
  line-height: .98;
  margin: 12px 0;
}

.promo-inner > div > p:last-child {
  color: #aeb5c0;
  max-width: 520px;
  font-size: 13px;
}

/* ABOUT */

.about-heading {
  max-width: 700px;
  margin-bottom: 55px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.benefit-grid article {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.benefit-grid span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.benefit-grid h3 {
  font-family: "Playfair Display", serif;
  font-size: 25px;
  margin: 18px 0 8px;
}

.benefit-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.footer-logo {
  width: 220px;
  min-width: 220px;
  height: 58px;
}

.footer-logo img {
  width: 215px;
  height: 53px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 12px;
}

.footer-links strong {
  margin-bottom: 7px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--black);
}

.copyright {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px;
  color: #999;
  font-size: 10px;
}

/* TOAST */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  background: var(--black);
  color: white;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 11px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* AUTH MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.modal.active {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, .58);
  backdrop-filter: blur(5px);
}

.auth-modal {
  position: relative;
  z-index: 1;
  width: min(440px, 92%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #555;
  line-height: 1;
}

.auth-modal > .modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
}

.auth-brand {
  width: 190px;
  height: 52px;
  margin-bottom: 25px;
}

.auth-brand img {
  width: 190px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 12px 5px;
  color: #999;
  font-size: 12px;
  font-weight: 700;
}

.auth-tab.active {
  color: var(--black);
  border-bottom: 2px solid var(--blue);
}

.auth-form h2 {
  font-family: "Playfair Display", serif;
  font-size: 31px;
  margin: 5px 0;
}

.form-intro {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 20px;
}

.auth-form label,
.payment-card label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 13px;
}

.auth-form input,
.payment-card input,
.payment-card textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--border);
  outline: none;
  background: white;
  color: var(--text);
  padding: 12px 13px;
  border-radius: 3px;
  font-size: 12px;
}

.auth-form input:focus,
.payment-card input:focus,
.payment-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.switch-text {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 17px;
}

.switch-text button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

/* CART */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10,14,22,.45);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  z-index: 1300;
  width: min(430px, 92vw);
  height: 100vh;
  background: white;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 72px;
  height: 85px;
  object-fit: cover;
}

.cart-item h4 {
  font-size: 12px;
  margin-bottom: 4px;
}

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

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  margin-top: 10px;
}

.quantity button {
  width: 26px;
  height: 27px;
  border: 0;
  background: white;
}

.quantity span {
  font-size: 11px;
  font-weight: 700;
}

.remove-item {
  grid-column: 2;
  width: max-content;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 10px;
  padding: 0;
}

.cart-bottom {
  padding: 22px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.cart-note {
  color: #999;
  font-size: 10px;
  margin: 6px 0 16px;
}

/* SEARCH */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  background: rgba(255,255,255,.97);
  padding: 70px 8%;
}

.search-overlay.active {
  display: block;
}

.search-box {
  max-width: 900px;
  margin: auto;
}

.search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--black);
  outline: 0;
  padding: 20px 0;
  font-size: clamp(28px, 5vw, 48px);
  background: transparent;
}

.search-box > p {
  color: #999;
  font-size: 11px;
  margin-top: 12px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .brand {
    width: 235px;
    min-width: 235px;
  }

  .site-logo {
    width: 230px;
    height: 60px;
  }

  .desktop-nav {
    gap: 17px;
  }

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

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

@media (max-width: 850px) {
  .navbar {
    min-height: 76px;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .brand {
    width: 200px;
    min-width: 200px;
    height: 57px;
  }

  .site-logo {
    width: 195px;
    height: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-image-wrap {
    height: 470px;
  }

  .floating-card {
    left: 15px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(92%, 500px);
  }

  .navbar {
    min-height: 68px;
  }

  .brand {
    width: 175px;
    min-width: 175px;
    height: 50px;
  }

  .site-logo {
    width: 172px;
    height: 47px;
  }

  .nav-actions {
    gap: 3px;
  }

  .icon-button {
    width: 36px;
    font-size: 23px;
  }

  .bag-button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .user-button {
    display: none;
  }

  .hero {
    padding: 55px 0 65px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-actions,
  .promo-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-image-wrap {
    height: 390px;
  }

  .floating-card {
    width: 210px;
    padding: 17px;
    bottom: 18px;
  }

  .section {
    padding: 65px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .product-grid,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 320px;
  }

  .product-image {
    height: 310px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 400px) {
  .brand {
    width: 150px;
    min-width: 150px;
  }

  .site-logo {
    width: 148px;
    height: 44px;
  }

  .icon-button {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 360px;
  }
}
