:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #332c37;
  --muted: #5e5660;
  --accent: #635173;
  --accent-hover: #53435f;
  --line: #ddd5de;
  --display: 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, sans-serif; }
.gift-store { background: linear-gradient(180deg, #e8dcf1 0, #f2e9f6 210px, var(--paper) 630px); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible { outline: 3px solid #74618a; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 72px, 1280px); margin-inline: auto; }

.header {
  min-height: 77px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font: 790 clamp(1.23rem, 2.45vw, 1.9rem)/1 var(--display);
  letter-spacing: -.065em;
  text-decoration: none;
}
.brand-name { white-space: nowrap; }
.wordmark em { color: var(--accent); font-weight: 650; font-style: normal; }
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(38px, 4vw, 49px);
  height: auto;
  object-fit: contain;
}
.header nav, .header-end { display: flex; align-items: center; gap: 24px; }
.header nav a { text-decoration: none; font-size: .91rem; font-weight: 650; }
.header nav a:hover { text-decoration: underline; }
.header-end { justify-content: end; }
.currency { color: var(--muted); font-size: .75rem; font-weight: 750; }
.line-button, .pill, .close, .quantity {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
}
.line-button { color: var(--accent); border-color: var(--accent); font-weight: 700; white-space: nowrap; }
.line-button span { display: inline-grid; place-items: center; min-width: 1.35em; margin-left: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  width: min(100% - 40px, 1376px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #f1e8f7, #e7d9f0);
  color: var(--ink);
}
.hero-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 70px);
}
.gift-pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: #755488;
}
:is(.gift-pattern, .brand-gifts) i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size, 27px);
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  opacity: var(--fade, .27);
  transform: rotate(var(--tilt, -12deg));
}
:is(.gift-pattern, .brand-gifts) i::before,
:is(.gift-pattern, .brand-gifts) i::after {
  content: "";
  position: absolute;
  top: -34%;
  width: 34%;
  height: 32%;
  border: 1.5px solid currentColor;
}
:is(.gift-pattern, .brand-gifts) i::before {
  right: 50%;
  border-radius: 65% 55% 15% 60%;
  transform: rotate(19deg);
}
:is(.gift-pattern, .brand-gifts) i::after {
  left: 50%;
  border-radius: 55% 65% 60% 15%;
  transform: rotate(-19deg);
}
.brand-gifts {
  position: relative;
  flex: 0 0 74px;
  height: 47px;
  margin-inline-start: 5px;
  color: #755488;
  pointer-events: none;
}
.brand-gifts i:first-child {
  --x: 2px;
  --y: 13px;
  --size: 32px;
  --tilt: -14deg;
  --fade: .33;
}
.brand-gifts i:last-child {
  --x: 42px;
  --y: 8px;
  --size: 27px;
  --tilt: 17deg;
  --fade: .29;
}
.gift-pattern i:nth-child(1) { --x: 5%; --y: 8%; --size: 24px; --tilt: -20deg; }
.gift-pattern i:nth-child(2) { --x: 23%; --y: 5%; --size: 17px; --tilt: 13deg; }
.gift-pattern i:nth-child(3) { --x: 47%; --y: 8%; --size: 23px; }
.gift-pattern i:nth-child(4) { --x: 70%; --y: 4%; --size: 17px; --tilt: 18deg; }
.gift-pattern i:nth-child(5) { --x: 88%; --y: 10%; --size: 33px; --tilt: 14deg; }
.gift-pattern i:nth-child(6) { --x: 1%; --y: 28%; --size: 15px; --tilt: 12deg; }
.gift-pattern i:nth-child(7) { --x: 89%; --y: 31%; --size: 17px; --tilt: -17deg; }
.gift-pattern i:nth-child(8) { --x: 94%; --y: 48%; --size: 25px; --tilt: 18deg; }
.gift-pattern i:nth-child(9) { --x: 2%; --y: 58%; --size: 15px; }
.gift-pattern i:nth-child(10) { --x: 87%; --y: 69%; --size: 23px; --tilt: 16deg; }
.gift-pattern i:nth-child(11) { --x: 9%; --y: 88%; --size: 23px; --tilt: 16deg; }
.gift-pattern i:nth-child(12) { --x: 28%; --y: 93%; --size: 17px; }
.gift-pattern i:nth-child(13) { --x: 48%; --y: 88%; --size: 25px; --tilt: -17deg; }
.gift-pattern i:nth-child(14) { --x: 67%; --y: 94%; --size: 19px; --tilt: 13deg; }
.gift-pattern i:nth-child(15) { --x: 86%; --y: 89%; --size: 29px; --tilt: 19deg; }
.hero h1 {
  margin: 0;
  font: 735 clamp(3rem, 5.75vw, 6.15rem)/.98 var(--display);
  letter-spacing: -.075em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 345px; margin: 23px 0; color: var(--muted); }
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #f7eee1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 19px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 750;
}
.button:hover { background: var(--accent-hover); }
.hero .button { background: #dce5d9; border-color: #b8c5b5; color: #2d4236; }
.hero .button:hover { background: #d2dfcf; }

.catalog { padding-block: 61px 76px; scroll-margin: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 19px; }
.section-heading h2, .delivery h2, .dialog h2 {
  margin: 0;
  color: var(--ink);
  font: 755 clamp(2.3rem, 5.2vw, 4.6rem)/1 var(--display);
  letter-spacing: -.08em;
}
.section-heading span { white-space: nowrap; color: var(--muted); font-size: .85rem; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill { font-size: .88rem; font-weight: 630; }
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed=true] { color: white; background: var(--accent); border-color: var(--accent); }
.subcategories { margin-top: -12px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 29px 16px; }
.product { min-width: 0; }
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: var(--swatch);
  aspect-ratio: 1.12;
}
.photo-button img, .detail-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-button img { transition: transform .25s; }
.photo-button:hover img { transform: scale(1.05); }
.product h3 { margin: 0; font-size: 1rem; line-height: 1.28; }
.product h3 button { background: none; border: 0; padding: 0; text-align: left; font-weight: 760; }
.product h3 button:hover { text-decoration: underline; }
.product-title { display: flex; justify-content: space-between; align-items: start; gap: 7px; margin-top: 10px; }
.price { font-weight: 720; white-space: nowrap; }
.shipping { display: block; margin-top: 4px; color: var(--muted); font-size: .79rem; }

.delivery { background: #eaf0e7; }
.delivery-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding-block: 40px; }
.delivery h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.delivery h3 { margin: 0; font-size: 1.05rem; }
.delivery p { max-width: 460px; margin-bottom: 0; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 29px; }
.footer > span { color: var(--muted); font-size: .86rem; }
.dialog {
  width: min(calc(100% - 28px), 530px);
  max-height: 90dvh;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
}
.dialog::backdrop { background: #1a163789; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 16px; }
.dialog h2 { font-size: 2.2rem; }
.close { padding: 0 11px; font-size: 1.35rem; }
.detail-photo { aspect-ratio: 1.45; margin-bottom: 14px; border-radius: 12px; background: var(--swatch); }
.detail-note { color: var(--muted); font-size: .9rem; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row p { margin: 0; }
.quantity { padding: 1px 9px; }
.cart-total { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.bag .button { width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-admin { padding-block: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.order-admin h2 { font-size: 1rem; }
.order-admin p { margin: 4px 0; }
.order-admin label { display: inline-block; margin: 6px 8px 6px 0; }
#paging { padding-block: 16px; }
input { max-width: 100%; padding: 6px; font: inherit; }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-title { flex-wrap: wrap; gap: 2px 8px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 63px; grid-template-columns: auto 1fr auto; gap: 9px; }
  .header nav { gap: 12px; justify-content: center; }
  .wordmark { gap: 4px; line-height: 1.02; }
  .brand-mark { width: 38px; }
  .brand-name em { display: block; font-size: .83em; }
  .brand-gifts { flex-basis: 51px; height: 41px; margin-inline-start: 0; }
  .brand-gifts i:first-child { --x: 0px; --y: 13px; --size: 25px; }
  .brand-gifts i:last-child { --x: 28px; --y: 8px; --size: 21px; }

  .header nav a { font-size: .79rem; }
  .header-end .currency { display: none; }
  .line-button { padding: 5px 8px; font-size: .84rem; }
  .line-button span { margin-left: 0; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 20px);
    border-radius: 18px;
  }
  .hero-photo { grid-row: 1; height: auto; }
  .hero-copy { padding: 26px 20px 27px; }
  .gift-pattern i { width: calc(var(--size) * .81); opacity: .23; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.5rem); }
  .hero-copy p { margin: 12px 0 15px; font-size: .9rem; }
  .hero .button { padding: 8px 14px; font-size: .88rem; }
  .catalog { padding-block: 31px 49px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  .price { font-size: .9rem; }
  .delivery-inner { grid-template-columns: 1fr; gap: 21px; }
  .footer { flex-wrap: wrap; }
  .categories { gap: 6px; }
  .pill { padding: 6px 10px; font-size: .82rem; }
}
@media (max-width: 360px) {
  .header nav { gap: 8px; }
  .header nav a { font-size: .72rem; }
  .wordmark { font-size: 1.12rem; }
  .brand-mark { width: 34px; }
  .brand-gifts { flex-basis: 44px; }
  .brand-gifts i:first-child { --size: 23px; }
  .brand-gifts i:last-child { --x: 24px; --size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
