:root {
  --cream: #f8f3e9;
  --paper: #fffdf7;
  --ink: #173632;
  --muted: #6f7d78;
  --coral: #e66f54;
  --sand: #e9cfa8;
  --aqua: #b8ded6;
  --display: "Italiana", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.shipping-bar {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: white;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.shop-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(23, 54, 50, 0.16);
  background: rgba(248, 243, 233, 0.92);
  backdrop-filter: blur(16px);
}

.shop-brand { display: inline-flex; align-items: center; gap: 0.72rem; justify-self: start; }
.shop-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
}
.shop-brand-mark::before,
.shop-brand-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--cream);
}
.shop-brand-mark::before { left: 1px; }
.shop-brand-mark::after { right: 1px; }
.shop-brand-copy { display: flex; flex-direction: column; }
.shop-brand-copy strong { font-family: var(--display); font-size: 1.13rem; font-weight: 400; }
.shop-brand-copy span { margin-top: 0.18rem; font-size: 0.53rem; font-weight: 600; letter-spacing: 0.23em; text-transform: uppercase; }

.shop-nav { display: flex; gap: clamp(1.3rem, 2.8vw, 3rem); }
.shop-nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}
.shop-nav a:hover::after,
.shop-nav a[aria-current="page"]::after { right: 0; }

.bag-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border: 0;
  background: none;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.bag-count { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: white; }

.shop-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}
.shop-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 7vw, 8rem);
}
.shop-eyebrow { margin: 0 0 1.4rem; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.shop-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(4.5rem, 8vw, 8.5rem); font-weight: 400; line-height: 0.84; letter-spacing: -0.05em; }
.shop-hero h1 em { color: var(--coral); font-weight: 400; }
.shop-intro { max-width: 520px; margin: 2rem 0 0; font-size: 1rem; line-height: 1.75; }
.shop-hero-art { position: relative; min-height: 460px; overflow: hidden; background: var(--aqua); }
.shop-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(23,54,50,.12), transparent 55%); }
.sale-hero { background: var(--coral); color: #fffaf0; }
.sale-hero h1 em { color: var(--sand); }
.sale-hero .shop-hero-art { background: #243e3a; }

.concept-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.5rem;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.concept-note strong { font-size: 0.61rem; letter-spacing: 0.16em; text-transform: uppercase; }

.collection-section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading p { margin: 0 0 0.8rem; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; line-height: 0.95; }
.section-heading > span { max-width: 360px; padding-bottom: 0.7rem; color: var(--muted); font-size: 0.86rem; line-height: 1.6; text-align: right; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.5rem); }
.product-card { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--delay) ease, transform 600ms var(--delay) ease; }
.shop-ready .product-card { opacity: 1; transform: translateY(0); }
.product-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d9dfd5; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.product-card:hover .product-image-wrap img { transform: scale(1.035); }
.product-badge,
.save-badge { position: absolute; top: 1rem; padding: 0.55rem 0.72rem; background: var(--paper); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.product-badge { left: 1rem; }
.save-badge { right: 1rem; background: var(--coral); color: white; }
.product-info { padding: 1.4rem 0 0; }
.product-colors { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.61rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.product-info h2 { margin: 0; font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2.25rem); font-weight: 400; }
.product-description { min-height: 3.2em; margin: 0.8rem 0 1.25rem; color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
.product-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(23,54,50,.16); }
.product-price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; }
.product-price strong { font-size: 0.94rem; }
.product-price s { color: var(--muted); font-size: 0.73rem; }
.add-button { padding: 0.75rem 1rem; border: 1px solid var(--ink); background: transparent; font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.add-button:hover { background: var(--ink); color: white; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(23,54,50,.16); border-bottom: 1px solid rgba(23,54,50,.16); }
.service-strip article { min-height: 190px; padding: 2.5rem clamp(1.2rem, 3vw, 3rem); border-right: 1px solid rgba(23,54,50,.16); }
.service-strip article:last-child { border-right: 0; }
.service-strip span { color: var(--coral); font-family: var(--display); font-size: 1.2rem; }
.service-strip h3 { margin: 1rem 0 0.5rem; font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.service-strip p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.shop-footer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 4rem clamp(1.25rem, 4vw, 4.5rem); background: var(--ink); color: var(--cream); }
.shop-footer h2 { max-width: 600px; margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; line-height: 0.95; }
.footer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-self: end; font-size: 0.78rem; line-height: 1.7; }
.footer-details strong { display: block; margin-bottom: 0.5rem; font-size: 0.61rem; letter-spacing: 0.15em; text-transform: uppercase; }

.cart-backdrop { position: fixed; z-index: 49; inset: 0; background: rgba(10,27,25,.52); opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s 250ms; }
.cart-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cart-drawer { position: fixed; z-index: 50; top: 0; right: 0; width: min(470px, 94vw); height: 100%; display: flex; flex-direction: column; padding: 2rem; background: var(--paper); transform: translateX(102%); visibility: hidden; transition: transform 450ms cubic-bezier(.76,0,.24,1), visibility 0s 450ms; }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(23,54,50,.16); }
.cart-head h2 { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.cart-head button { width: 42px; height: 42px; border: 1px solid rgba(23,54,50,.2); border-radius: 50%; background: transparent; font-size: 1.3rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem 0; }
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(23,54,50,.12); }
.cart-line img { width: 74px; height: 86px; object-fit: cover; }
.cart-line div { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.78rem; }
.cart-line div strong { font-family: var(--display); font-size: 1.1rem; font-weight: 400; }
.cart-line button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.empty-cart { display: grid; place-items: center; height: 100%; text-align: center; }
.empty-cart p { margin: 0; font-family: var(--display); font-size: 2rem; }
.empty-cart span { color: var(--muted); font-size: 0.78rem; }
.cart-summary { padding-top: 1.5rem; border-top: 1px solid rgba(23,54,50,.16); }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 0.86rem; }
.shipping-free { margin: 0.8rem 0 1.2rem; color: var(--muted); font-size: 0.72rem; }
.checkout-button { width: 100%; min-height: 54px; border: 0; background: var(--ink); color: white; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.checkout-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.64rem; line-height: 1.5; text-align: center; }

@media (max-width: 900px) {
  .shop-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: 76px auto;
  }
  .shop-brand { grid-column: 1; grid-row: 1; }
  .bag-button { grid-column: 2; grid-row: 1; }
  .shop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    gap: 1.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    border-top: 1px solid rgba(23, 54, 50, 0.12);
    scrollbar-width: none;
  }
  .shop-nav::-webkit-scrollbar { display: none; }
  .shop-nav a { flex: 0 0 auto; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero-copy { min-height: 480px; }
  .shop-hero-art { min-height: 420px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip article { border-right: 0; border-bottom: 1px solid rgba(23,54,50,.16); }
  .shop-footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shipping-bar { font-size: 0.57rem; }
  .shop-header { min-height: auto; padding: 0 1rem; }
  .shop-brand-copy strong { font-size: 1rem; }
  .bag-button { font-size: 0; }
  .bag-count { font-size: 0.7rem; }
  .shop-hero-copy { min-height: 430px; padding: 4rem 1.2rem; }
  .shop-hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .shop-hero-art { min-height: 330px; }
  .concept-note { align-items: flex-start; flex-direction: column; gap: 0.3rem; text-align: left; }
  .collection-section { padding: 4rem 1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > span { text-align: left; }
  .product-grid { grid-template-columns: 1fr; gap: 3rem; }
  .product-image-wrap { aspect-ratio: 5 / 6; }
  .product-description { min-height: 0; }
  .service-strip article { min-height: 160px; }
  .shop-footer { padding: 3.5rem 1.2rem; }
  .footer-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
