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

:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --black: #111111;
  --muted: #555555;
  --line: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --soft-bg: #f1ece4;
  --hero-a: #e9e0d3;
  --hero-b: #f8f4ee;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Georgia, serif;
  background: var(--cream);
  color: var(--black);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  min-height: 54px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.shop-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 20px 80px;
}

.shop-hero {
  min-height: 280px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  overflow: hidden;
}

.shop-hero-overlay {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
}

.hero-search-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search-pill {
  width: min(520px, 100%);
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 14px;
}

.hero-search-pill input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 12px 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sort-form select {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
  color: var(--black);
  outline: none;
}

.results-line {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.product-image-wrap {
  display: block;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft-bg);
  margin-bottom: 14px;
}

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

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch.black {
  background: #111111;
}

.swatch.white {
  background: #ffffff;
}

.mini-cart {
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

.product-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
}

.product-name a {
  text-decoration: none;
  color: var(--black);
}

.product-price {
  margin: 0;
  font-size: 16px;
  color: #444444;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
}

.empty-state h2 {
  margin-bottom: 12px;
  font-weight: 400;
}

.empty-state p {
  margin-bottom: 18px;
  color: #666666;
}

.custom-footer {
  margin-top: 60px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 120px;
}

.custom-footer img {
  width: 100%;
  display: block;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    width: 94%;
    min-height: auto;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
  }

  .shop-page {
    padding-top: 130px;
  }

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

  .shop-hero {
    min-height: 220px;
    border-radius: 22px;
  }
}