:root {
  --bg: #f4ede3;
  --bg-soft: #fbf7f1;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #12211f;
  --muted: #61706b;
  --line: rgba(18, 33, 31, 0.08);
  --teal: #0f766e;
  --teal-deep: #0c4e49;
  --amber: #f3a712;
  --terracotta: #d17a3a;
  --shadow-lg: 0 30px 80px rgba(25, 43, 40, 0.16);
  --shadow-md: 0 18px 45px rgba(25, 43, 40, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.16), transparent 26%),
    radial-gradient(circle at 100% 20%, rgba(243, 167, 18, 0.2), transparent 24%),
    linear-gradient(180deg, #fcf8f2 0%, #f0e6da 100%);
  font-family: "Manrope", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 60px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 26px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-md);
}

.logo,
.hero-metrics article,
.summary-total,
.cart-button {
  display: flex;
  align-items: center;
}

.logo {
  gap: 14px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
}

.logo strong,
.eyebrow,
.section-heading h2,
.hero-copy h1,
.product-card h3,
.category-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.logo small,
.section-heading p,
.hero-copy p,
.form-note {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
}

.cart-button,
.btn,
.chip,
.stepper button,
.icon-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cart-button {
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cart-button strong {
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.section {
  padding: 34px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 26px;
  align-items: center;
  min-height: 76vh;
}

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.hero-metrics,
.catalog-toolbar,
.checkout-shell,
.summary-header,
.cart-header,
.product-card__footer,
.product-card__media,
.category-card__body {
  display: flex;
}

.hero-actions {
  gap: 14px;
  margin: 26px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.btn:hover,
.chip:hover,
.cart-button:hover,
.stepper button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics article {
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  font-size: 1.15rem;
}

.hero-panel {
  position: relative;
  min-height: 540px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(150deg, #123531 0%, #0f766e 58%, #f3a712 140%);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  max-width: 280px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.floating-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.card-a {
  top: 38px;
  left: 32px;
}

.card-b {
  right: 28px;
  bottom: 36px;
}

.mini-label,
.card-tag,
.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-label {
  background: rgba(255, 255, 255, 0.14);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-one {
  width: 240px;
  height: 240px;
  left: 54%;
  top: 18%;
  background: rgba(243, 167, 18, 0.42);
}

.orb-two {
  width: 180px;
  height: 180px;
  left: 18%;
  bottom: 12%;
  background: rgba(255, 255, 255, 0.24);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
}

.category-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

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

.category-card,
.product-card,
.checkout-card,
.summary-card,
.empty-state {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.category-card {
  overflow: hidden;
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card__body {
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.catalog-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  box-shadow: var(--shadow-md);
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(243, 167, 18, 0.26));
  color: var(--teal-deep);
}

.search-box {
  min-width: min(100%, 320px);
}

.search-box input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

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

.product-card {
  overflow: hidden;
}

.product-card__media {
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  background:
    radial-gradient(circle at top right, rgba(243, 167, 18, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.product-card__media img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14));
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-deep);
}

.card-tag {
  background: rgba(243, 167, 18, 0.12);
  color: #885600;
}

.product-card__body {
  padding: 0 22px 18px;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  min-height: 66px;
}

.product-card__footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 22px;
}

.product-card__footer div {
  display: grid;
  gap: 4px;
}

.product-card__footer strong {
  font-size: 1.3rem;
}

.product-card__footer span {
  color: var(--muted);
  text-decoration: line-through;
}

.section-warm {
  position: relative;
  padding: 54px 28px;
  border-radius: 42px;
  background:
    radial-gradient(circle at top right, rgba(209, 122, 58, 0.18), transparent 18%),
    rgba(255, 249, 242, 0.88);
  box-shadow: var(--shadow-md);
}

.checkout-shell {
  gap: 20px;
  align-items: flex-start;
}

.checkout-card,
.summary-card {
  padding: 24px;
}

.checkout-card {
  flex: 1.1;
}

.summary-card {
  flex: 0.9;
  position: sticky;
  top: 108px;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
}

.checkout-form textarea {
  min-height: 112px;
  resize: vertical;
}

.form-note.is-error {
  color: #b44539;
}

.summary-header {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.summary-list,
.cart-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.cart-item img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0f7f5, #fff6e7);
}

.cart-item__body {
  display: grid;
  gap: 6px;
}

.cart-item__body span {
  color: var(--muted);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.stepper button,
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
}

.summary-total {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.summary-total strong {
  font-size: 1.45rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 24px;
  background: rgba(252, 247, 240, 0.94);
  backdrop-filter: blur(24px);
  box-shadow: -24px 0 80px rgba(18, 33, 31, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 30;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cart-footer {
  margin-top: 20px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 26, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.empty-state {
  padding: 34px;
  text-align: center;
}

.empty-state.compact {
  padding: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

@media (max-width: 1080px) {
  .hero,
  .category-grid,
  .product-grid,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

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

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

  .checkout-shell {
    display: grid;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .topbar,
  .nav,
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

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

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