:root {
  --purple: #8b6fa8;
  --purple-dark: #604b75;
  --purple-light: #eee8f4;
  --yellow: #e4bc58;
  --cream: #faf8f5;
  --white: #ffffff;
  --text: #27232b;
  --muted: #746f78;
  --border: #e8e3ea;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
}

/* Announcement */

.announcement {
  background: var(--purple-dark);
  color: white;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
}

/* Header */

.site-header {
  min-height: 78px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
  color: var(--purple-dark);
}

.logo span {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo small {
  margin-top: 6px;
  letter-spacing: 5px;
  font-size: 9px;
  color: var(--yellow);
}

.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 14px;
}

.main-nav a {
  padding: 28px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav .active {
  color: var(--purple);
}

.main-nav .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: var(--yellow);
}

.customer-menu {
  position: relative;
  flex: 0 0 auto;
}

.customer-menu-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--purple-dark);
  background: var(--white);
}

.customer-menu-toggle:hover,
.customer-menu-toggle[aria-expanded="true"] {
  border-color: var(--purple);
  background: var(--purple-light);
}

.menu-icon {
  width: 22px;
  display: grid;
  gap: 4px;
}

.menu-icon i {
  height: 2px;
  display: block;
  border-radius: 4px;
  background: currentColor;
}

.menu-label {
  font-size: 13px;
  font-weight: 700;
}

.bag-count {
  background: var(--purple);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  padding: 3px 6px;
  margin-left: 3px;
}

.customer-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 22px 55px rgba(39, 35, 43, .2);
}

.customer-menu-panel[hidden] {
  display: none;
}

.customer-menu-heading {
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--border);
}

.customer-menu-heading strong,
.customer-menu-heading span,
.customer-menu-panel a strong,
.customer-menu-panel a small {
  display: block;
}

.customer-menu-heading strong {
  color: var(--purple-dark);
  font-size: 16px;
}

.customer-menu-heading span,
.customer-menu-panel a small {
  color: var(--muted);
  font-size: 12px;
}

.customer-menu-panel nav {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.customer-menu-panel a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border-radius: 10px;
}

.customer-menu-panel a:hover,
.customer-menu-panel a:focus-visible {
  outline: none;
  background: var(--purple-light);
}

.customer-menu-panel a > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--purple-dark);
  background: var(--purple-light);
  font-size: 19px;
}

.customer-menu-panel svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-menu-panel a strong {
  font-size: 13px;
}

.customer-menu-panel a small b {
  color: var(--purple-dark);
}

/* Hero */

.hero {
  --hero-image: url("/assets/mavella-homepage-hero.png");
  min-height: clamp(590px, 72vh, 760px);
  display: flex;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(35, 25, 43, .84) 0%, rgba(47, 32, 57, .68) 42%, rgba(47, 32, 57, .22) 76%, rgba(47, 32, 57, .08) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(760px, 72%);
  padding: 90px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #f3d989;
}

.eyebrow {
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  max-width: 650px;
  color: white;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .22);
}

.hero-text {
  color: rgba(255, 255, 255, .9);
  max-width: 520px;
  margin: 28px 0;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
}

.button.primary {
  background: var(--purple);
  color: white;
}

.button.primary:hover {
  background: var(--purple-dark);
}

.button.secondary {
  border: 1px solid var(--purple);
  color: var(--purple-dark);
  background: transparent;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, .78);
  color: white;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(4px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */

.section {
  padding: 90px 6%;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
}

.row-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.row-heading > a {
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 14px;
}

/* Retail / Wholesale */

.shopping-paths {
  background: white;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.path-card {
  min-height: 330px;
  border-radius: 20px;
  padding: 42px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease;
}

.path-card:hover {
  transform: translateY(-4px);
}

.retail-card {
  background: var(--purple-light);
}

.wholesale-card {
  background: #f7edcf;
}

.path-card span {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}

.path-card h3 {
  font-size: 42px;
  margin: 8px 0;
}

.path-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Categories */

.categories {
  background: var(--cream);
}

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

.category-card h3 {
  font-size: 22px;
  margin-top: 16px;
}

.category-card p {
  color: var(--muted);
  font-size: 14px;
}

.category-image {
  height: 370px;
  border-radius: 16px;
  background: #e9e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Products */

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

.product-image {
  height: 330px;
  background: #f1eef2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  position: relative;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  font-size: 18px;
}

.product-type {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

.product-card h3 {
  font-size: 16px;
  margin: 3px 0;
}

.price {
  font-weight: 700;
  color: var(--purple-dark);
}

/* Delivery */

.delivery-banner {
  margin: 20px 6% 90px;
  border-radius: 22px;
  background: var(--purple-dark);
  color: white;
  padding: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.delivery-banner .eyebrow {
  color: #efd886;
}

.delivery-banner h2 {
  font-size: 38px;
  margin-bottom: 10px;
}

.delivery-banner p:not(.eyebrow) {
  max-width: 650px;
  color: #e5ddec;
}

.button.light {
  background: white;
  color: var(--purple-dark);
  white-space: nowrap;
}

/* Store location */

.store-location {
  width: min(1180px, calc(100% - 12%));
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr);
  margin: 0 auto 90px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(55, 43, 65, .1);
}

.store-location[hidden] {
  display: none;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(34px, 5vw, 64px);
  background: linear-gradient(145deg, var(--purple-light), var(--white));
}

.location-copy h2 {
  color: var(--purple-dark);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.location-intro {
  max-width: 430px;
  margin: 18px 0 20px;
  color: var(--muted);
}

.location-details {
  display: grid;
  gap: 3px;
  margin-bottom: 26px;
}

.location-details strong {
  font-size: 16px;
}

.location-details span {
  color: var(--muted);
  font-size: 14px;
}

.location-map {
  min-height: 430px;
  position: relative;
  background: #ece8ee;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  border: 0;
}

.map-click-target {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.map-click-target:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: -5px;
}

/* Footer */

footer {
  background: #211c25;
  color: white;
  padding: 65px 6%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

footer h4 {
  margin-bottom: 15px;
}

footer a,
footer p {
  display: block;
  color: #c9c2cd;
  font-size: 14px;
  margin: 8px 0;
}

.footer-logo span {
  color: white;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 20px;
}

/* Responsive */

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
    background-position: 58% center;
    background-image:
      linear-gradient(90deg, rgba(35, 25, 43, .88) 0%, rgba(47, 32, 57, .72) 58%, rgba(47, 32, 57, .32) 100%),
      var(--hero-image);
  }

  .hero-content {
    padding: 70px 6%;
    width: min(720px, 88%);
  }

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

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

@media (max-width: 650px) {
  .site-header {
    padding: 0 20px;
  }

  .menu-label {
    display: none;
  }

  .customer-menu-toggle {
    padding: 9px 10px;
  }

  .customer-menu-panel {
    position: fixed;
    top: 112px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
  }

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

  .hero-content {
    width: 100%;
    padding: 72px 20px;
  }

  .section {
    padding: 65px 20px;
  }

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

  .category-image,
  .product-image {
    height: 420px;
  }

  .delivery-banner {
    margin: 10px 20px 60px;
    padding: 35px 25px;
    flex-direction: column;
    align-items: flex-start;
  }

  .store-location {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    margin-bottom: 60px;
  }

  .location-copy {
    padding: 36px 25px;
  }

  .location-map,
  .location-map iframe {
    min-height: 340px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 50px 25px;
  }
}
