* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fffced;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  min-height: 132px;
  padding: 30px 48px;
  background: #ffffff;
  border-bottom: 1px solid rgba(18, 13, 18, 0.08);
  color: #120d12;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(185px, 16vw, 254px);
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 2.6vw, 48px);
  white-space: nowrap;
}

.primary-nav a {
  color: #120d12;
  font-size: clamp(15px, 1.1vw, 21px);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.primary-nav a:hover {
  color: #4a9f43;
}

.primary-nav a.is-active {
  color: #120d12;
  text-decoration: underline;
  text-decoration-color: #fff200;
  text-decoration-thickness: 5px;
  text-underline-offset: 9px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 1.6vw, 30px);
}

.icon-button,
.language-button,
.language-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #120d12;
  font: inherit;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 27px;
  width: 15px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.account-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1px;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.account-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 28px;
  height: 14px;
  border: 3px solid currentColor;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: 0;
}

.heart-icon {
  font-size: 46px;
  font-weight: 300;
  line-height: 28px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 23px;
  height: 15px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transform: rotate(18deg);
}

.cart-wheels {
  position: absolute;
  left: 11px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 16px 0 0 currentColor;
}

.language-switcher {
  position: relative;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 68px;
  height: 42px;
  padding: 0 2px;
  color: #120d12;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  display: none;
  min-width: 164px;
  padding: 12px 0;
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(18, 13, 18, 0.16);
}

.language-menu::before {
  content: "";
  position: absolute;
  right: 33px;
  top: -10px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid #d7dbe2;
  border-top: 1px solid #d7dbe2;
  transform: rotate(45deg);
}

.language-switcher.is-open .language-menu {
  display: block;
}

.language-menu button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 10px 28px;
  color: #5c626c;
  font-size: 22px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover {
  color: #120d12;
  background: #fff9b8;
}

.image-page {
  width: 100%;
}

.image-page img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.legal {
  padding: 14px 18px 18px;
  background: #fff200;
  text-align: center;
}

.legal a {
  color: #160f18;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.shop-body {
  background: #ffffff;
  color: #120d12;
}

.shop-shell {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 58px);
  width: min(1840px, 100%);
  margin: 0 auto;
  padding: 48px 54px 72px;
}

.shop-sidebar {
  align-self: start;
  position: sticky;
  top: 156px;
}

.filter-section {
  padding: 0 0 34px;
  margin: 0 0 30px;
  border-bottom: 1px solid #d9d9d0;
}

.filter-section h2 {
  margin: 0 0 20px;
  color: #120d12;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  gap: 17px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #29242a;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.filter-list a::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
}

.filter-list li:first-child a::after {
  content: "";
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #29242a;
  font-size: 16px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fff200;
}

.shop-content {
  min-width: 0;
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 28px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid #d9d9d0;
}

.shop-kicker {
  margin: 0 0 12px;
  color: #4a9f43;
  font-size: 14px;
  font-weight: 900;
}

.shop-heading h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

.shop-summary {
  margin: 0;
  color: #514b54;
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.55;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 34px;
}

.view-as,
.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #29242a;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.view-button {
  width: 32px;
  height: 32px;
  border: 1px solid #a7a7a0;
  background:
    linear-gradient(90deg, transparent 30%, #777 30% 42%, transparent 42% 58%, #777 58% 70%, transparent 70%),
    linear-gradient(#777 0 0) 50% 8px / 18px 3px no-repeat,
    linear-gradient(#777 0 0) 50% 15px / 18px 3px no-repeat,
    linear-gradient(#777 0 0) 50% 22px / 18px 3px no-repeat;
  cursor: pointer;
}

.view-button.is-selected {
  border-color: #120d12;
  box-shadow: inset 0 0 0 2px #120d12;
}

.select-wrap select {
  min-width: 132px;
  height: 50px;
  padding: 0 42px 0 18px;
  border: 1px solid #cfcfc8;
  background: #ffffff;
  color: #120d12;
  font: inherit;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 34px;
}

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

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin: 0 0 18px;
  overflow: hidden;
  background: #f4f4ef;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.product-art::before {
  width: 52%;
  height: 52%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 58px 42px 0 rgba(255, 255, 255, 0.38), -48px -40px 0 rgba(255, 255, 255, 0.28);
}

.product-art::after {
  inset: auto 10% 10% auto;
  width: 30%;
  height: 18%;
  background: rgba(18, 13, 18, 0.12);
  transform: rotate(-10deg);
}

.product-art span {
  position: relative;
  z-index: 1;
  max-width: 70%;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #120d12;
  font-size: clamp(15px, 1.2vw, 23px);
  font-weight: 950;
  line-height: 1.1;
}

.art-yellow { background: #fff200; }
.art-pink { background: #ff71ad; }
.art-blue { background: #59c9ff; }
.art-green { background: #5be36c; }
.art-purple { background: #a77cff; }
.art-orange { background: #ff9e1b; }
.art-coral { background: #ff6d4d; }
.art-sky { background: #86d9ff; }
.art-lime { background: #c6ff4a; }
.art-mint { background: #66e6c7; }
.art-red { background: #ff5d6c; }
.art-cream { background: #fff0bc; }

.product-card h2 {
  margin: 0 auto 8px;
  max-width: 92%;
  color: #120d12;
  font-size: clamp(17px, 1.25vw, 23px);
  line-height: 1.35;
  font-weight: 700;
}

.product-card p {
  margin: 0 0 12px;
  color: #6d6770;
  font-size: 15px;
  line-height: 1.4;
}

.product-card strong {
  display: block;
  margin: 0 0 15px;
  color: #120d12;
  font-size: 18px;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.swatches i {
  width: 26px;
  height: 26px;
  border: 1px solid #d9d9d0;
  border-radius: 50%;
  background: #fff200;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.swatches i:nth-child(2) { background: #ff71ad; }
.swatches i:nth-child(3) { background: #59c9ff; }
.swatches i:nth-child(4) { background: #5be36c; }
.swatches i:nth-child(5) { background: #a77cff; }

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px 28px;
    min-height: auto;
    padding: 22px 24px;
  }

  .brand-logo {
    width: clamp(176px, 26vw, 225px);
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 980px) {
  .shop-shell {
    grid-template-columns: 1fr;
    padding: 36px 24px 56px;
  }

  .shop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .filter-section {
    margin: 0;
  }

  .shop-heading {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 18px 16px;
  }

  .brand-logo {
    width: 132px;
  }

  .header-actions {
    gap: 12px;
  }

  .icon-button {
    width: 31px;
    height: 34px;
  }

  .search-icon::before {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .search-icon::after {
    left: 23px;
    top: 24px;
    width: 12px;
    height: 2px;
  }

  .account-icon::before,
  .account-icon::after,
  .cart-icon::before {
    border-width: 2px;
  }

  .cart-icon::after {
    height: 2px;
  }

  .heart-icon {
    font-size: 38px;
  }

  .cart-wheels {
    width: 5px;
    height: 5px;
    box-shadow: 13px 0 0 currentColor;
  }

  .language-button {
    min-width: 52px;
    font-size: 16px;
  }

  .language-menu {
    min-width: 132px;
  }

  .language-menu button {
    font-size: 18px;
    padding: 9px 20px;
  }

  .shop-shell {
    padding: 28px 16px 48px;
  }

  .shop-sidebar {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .view-as,
  .select-wrap {
    justify-content: space-between;
  }

  .select-wrap select {
    min-width: 150px;
  }

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