:root {
  --color-background: #ffffff;
  --color-foreground: #2e2a39;
  --color-button: #ddba7a;
  --color-button-text: #fdfbf7;
  --color-dark: #2e2a39;
  --color-magenta: #9b046f;
  --color-green: #2f5a3f;
  --color-line: rgba(46, 42, 57, 0.14);
  --page-width: 1600px;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.skip {
  left: 12px;
  position: fixed;
  top: -60px;
  z-index: 100;
}

.skip:focus {
  background: white;
  border: 1px solid var(--color-line);
  padding: 10px;
  top: 12px;
}

.page-width {
  margin: 0 auto;
  max-width: var(--page-width);
  padding-left: 50px;
  padding-right: 50px;
}

.announcement {
  background: white;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  padding: 10px 20px;
  text-align: center;
}

.header {
  background: white;
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__inner {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 190px 1fr auto;
  min-height: 94px;
}

.header__logo img {
  height: 72px;
  object-fit: contain;
  width: 104px;
}

.header__nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
}

.header__nav a,
.header__actions,
.footer__bottom {
  font-size: 14px;
}

.header__nav a.active,
.header__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header__actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: end;
}

.plain {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.cart-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.cart-link span {
  align-items: center;
  background: var(--color-button);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 5px;
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
}

.shopify-section {
  border-bottom: 1px solid transparent;
}

.hero-image img {
  height: min(66vw, 900px);
  object-fit: cover;
  width: 100%;
}

.image-with-text {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 36px;
  padding-top: 36px;
}

.image-with-text.reverse .image-with-text__media {
  order: 2;
}

.image-with-text__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.image-with-text__content {
  padding: 60px;
}

.h1,
h1,
h2,
h3 {
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

h1,
.h1 {
  font-size: clamp(42px, 5.2vw, 78px);
}

h2 {
  font-size: clamp(32px, 4vw, 58px);
}

h3 {
  font-size: 24px;
}

p {
  line-height: 1.55;
  margin: 0;
}

.rte {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.button {
  align-items: center;
  background: var(--color-button);
  border: 1px solid var(--color-button);
  border-radius: 999px;
  color: var(--color-button-text);
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
}

.button.secondary {
  background: white;
  color: var(--color-foreground);
}

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

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section-title {
  padding: 54px 50px 24px;
  text-align: center;
}

.product-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 48px;
  padding-top: 20px;
}

.product-card {
  min-width: 0;
  text-align: left;
}

.product-card__media {
  background: #f7f4f2;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
}

.product-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

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

.product-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.price {
  margin-bottom: 14px;
}

.price span {
  color: rgba(46, 42, 57, 0.72);
  font-size: 14px;
}

.banner {
  position: relative;
}

.banner img {
  max-height: 760px;
  object-fit: cover;
  width: 100%;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: disc;
  margin: 24px 0 0;
  padding-left: 24px;
}

.community {
  padding-bottom: 70px;
}

.collection-title {
  padding-bottom: 34px;
  padding-top: 70px;
}

.collection-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: 260px 1fr;
}

.filters {
  border: 1px solid var(--color-line);
  padding: 22px;
}

.filters h2 {
  font-family: var(--font-body);
  font-size: 18px;
}

.filter-button {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: 0;
  display: block;
  margin-top: 10px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.filter-button.active {
  border-color: var(--color-foreground);
}

.product-page {
  align-items: start;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 70px;
  padding-top: 54px;
}

.gallery {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 110px 1fr;
}

.thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.thumbs button {
  background: white;
  border: 1px solid var(--color-line);
  padding: 0;
}

.thumbs button.active {
  border-color: var(--color-foreground);
}

.thumbs img,
.main-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.main-image {
  align-self: start;
  background: #f7f4f2;
}

.product-info {
  display: grid;
  gap: 20px;
  align-content: start;
}

.variant-select,
input,
textarea {
  border: 1px solid var(--color-line);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.accordion {
  border-top: 1px solid var(--color-line);
}

.accordion details {
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
}

.accordion summary {
  cursor: pointer;
}

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

.about-hero img {
  height: 100%;
  object-fit: cover;
}

.about-copy {
  align-content: center;
  display: grid;
  gap: 24px;
  padding: 70px;
  text-align: center;
}

.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 60px;
}

.team-card {
  border: 1px solid var(--color-line);
  padding: 30px;
}

.team-card img {
  aspect-ratio: 4 / 3;
  background: #f7f4f2;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.policy,
.cart-page,
.contact-page {
  padding-bottom: 70px;
  padding-top: 70px;
}

.contact-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}

.contact-card {
  border: 1px solid var(--color-line);
  padding: 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

textarea {
  min-height: 150px;
}

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item {
  align-items: center;
  border: 1px solid var(--color-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 1fr auto;
  padding: 16px;
}

.cart-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.qty {
  align-items: center;
  border: 1px solid var(--color-line);
  display: inline-flex;
}

.qty button {
  background: white;
  border: 0;
  min-height: 36px;
  min-width: 36px;
}

.qty span {
  min-width: 36px;
  text-align: center;
}

.cart-summary {
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: 16px;
  justify-items: end;
  margin-top: 28px;
  padding-top: 24px;
}

.newsletter {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-bottom: 8px;
  padding-top: 44px;
  text-align: center;
}

.newsletter__form {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 48px;
  margin-top: 14px;
}

.newsletter__form button {
  background: transparent;
  border: 1px solid var(--color-line);
}

.footer {
  border-top: 1px solid var(--color-line);
}

.footer__bottom {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 48px;
  padding-top: 34px;
}

.footer__bottom div {
  display: flex;
  gap: 18px;
}

.toast {
  background: var(--color-foreground);
  border-radius: 999px;
  bottom: 24px;
  color: white;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 990px) {
  .page-width {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 80px;
  }

  .menu-button {
    display: block;
  }

  .header__logo {
    justify-self: center;
  }

  .header__nav {
    background: white;
    border-bottom: 1px solid var(--color-line);
    display: none;
    flex-direction: column;
    gap: 18px;
    left: 0;
    padding: 28px;
    position: fixed;
    right: 0;
    top: 128px;
  }

  .header__nav.open {
    display: flex;
  }

  .login {
    display: none;
  }

  .image-with-text,
  .product-page,
  .collection-layout,
  .about-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-with-text.reverse .image-with-text__media {
    order: 0;
  }

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

@media (max-width: 640px) {
  .announcement {
    font-size: 12px;
  }

  .header__actions {
    font-size: 13px;
  }

  .header__logo img {
    height: 58px;
    width: 82px;
  }

  .hero-image img {
    height: 58vh;
  }

  .image-with-text__content,
  .about-copy {
    padding: 34px 24px;
  }

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

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

  .thumbs {
    display: flex;
    overflow-x: auto;
  }

  .thumbs button {
    min-width: 84px;
  }

  .cart-item {
    grid-template-columns: 76px 1fr;
  }

  .cart-controls {
    grid-column: 1 / -1;
  }

  .newsletter__form,
  .footer__bottom {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    align-items: start;
    display: grid;
  }
}
