@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800&family=Fraunces:ital,wght@0,800;1,800&family=Shrikhand&display=swap');

:root {
  color-scheme: light;
  --paper: #fffdf5;
  --cream: #fff9ee;
  --ink: #342424;
  --cherry: #970a2b;
  --olive: #424c18;
  --line: #e9bdba;
  --display: Shrikhand, Georgia, serif;
  --serif: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.5 'DM Sans', system-ui, sans-serif; }
a { color: var(--cherry); }
img { display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.announcement {
  padding: 9px 12px;
  border-bottom: 3px solid #770220;
  background: var(--cherry);
  color: #ffecce;
  text-align: center;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 1.3rem/.96 var(--display); text-decoration: none; transform: rotate(-2deg); }
.brand img { flex: none; object-fit: contain; }
.brand strong { display: block; margin-left: 8px; color: #ba1b47; font-weight: inherit; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-link { text-align: right; font-size: .85rem; font-weight: 800; }
.bag-toggle { flex: none; padding: 6px 12px; border: 2px dashed var(--cherry); background: #f9dbe0; color: var(--cherry); }
.bag-count { display: inline-block; min-width: 1.55em; padding-inline: 4px; border-radius: 2em; background: #f2c5cd; text-align: center; }
h1, h2 { font-family: var(--serif); line-height: 1.15; }
h1 { margin: .15em 0; font: clamp(2.4rem, 6vw, 4.5rem)/1.14 var(--display); color: var(--cherry); }
.eyebrow { color: var(--cherry); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; }

.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background: radial-gradient(circle at 72% 25%, #ffd5e0, transparent 46%), #fff3e6;
  text-align: center;
}
.shop-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 13px;
  background: radial-gradient(circle at 12px -6px, transparent 17px, var(--cream) 18px) repeat-x;
  background-size: 27px 14px;
}
.shop-hero .container { position: relative; }
.shop-hero h1 { max-width: 910px; margin: .13em auto .22em; font-size: clamp(3rem, 6.5vw, 5.9rem); }
.shop-hero h1 em { color: var(--olive); font-style: normal; }
.shop-hero p { margin: 0 auto; max-width: 550px; }
.hero-cherries { position: absolute; width: clamp(88px, 11vw, 145px); height: auto; left: max(1%, calc((100vw - 1260px) / 2)); top: 17%; transform: rotate(-18deg); }
.shop-finds { padding-block: 18px 70px; }
.notice { padding: 13px 16px; background: #f2ead7; border-left: 4px solid var(--olive); border-radius: 0 12px 12px 0; color: var(--olive); }
.lucky-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0; }
.lucky-bar p { margin: 0; color: var(--olive); font: italic 800 1.35rem var(--serif); }
.lucky-button:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
.lucky-button { color: var(--cherry); background: #f6cad4; border: 2px dashed var(--cherry); box-shadow: 4px 5px 0 #e8acb7; }
.filters { display: flex; flex-wrap: wrap; gap: 11px; margin: 0 0 28px; }
.filters button {
  padding: 8px 14px;
  border: 2px solid #b94761;
  border-radius: 7px 25px 9px 22px;
  background: var(--paper);
  color: var(--cherry);
  box-shadow: 3px 4px 0 #edd0d1;
  font-size: .82rem;
  transform: rotate(-2deg);
}
.filters button:nth-child(2n) { transform: rotate(2deg); }
.filters button[aria-pressed="true"] { background: var(--cherry); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #eab0b6;
  border-radius: 13px 13px 22px 22px;
  background: var(--paper);
  box-shadow: 5px 6px 0 #eec9c6;
}
.card-photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 11px 11px 0 0; background: #f3e6d7; }
.card-photo img { width: 100%; height: 100%; object-fit: contain; }
.card-photo .tag {
  position: absolute;
  top: 12px;
  left: 10px;
  padding: 5px 8px;
  transform: rotate(-6deg);
  border: 1px dashed var(--cherry);
  background: #fff7eb;
  color: var(--cherry);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.category-tag {
  align-self: start;
  padding: 3px 8px;
  border-radius: 4px 11px 4px 9px;
  background: #eeefce;
  color: var(--olive);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card[data-category="wear"] .category-tag, .card[data-category="americana"] .category-tag {
  background: #f9dbe0;
  color: var(--cherry);
}
.card h2 { margin: 8px 0; font-size: 1.28rem; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .89rem; margin: 0 0 16px; }
.price { margin: auto 0 0; font-weight: 900; color: var(--cherry); }
.price small { display: block; color: var(--ink); font-size: .72rem; font-weight: 600; }
.bag-add { align-self: start; margin-top: 9px; padding-inline: 12px; box-shadow: 3px 3px 0 #dfafbc; font-size: .84rem; }
.fulfillment-note, .shipping { margin: 12px 0 0; font-size: .85rem; }
.shipping { border-top: 1px dashed var(--line); }
.shipping summary { padding-block: 11px; color: var(--cherry); font-weight: 800; cursor: pointer; }
.shipping form label { display: block; margin-bottom: 4px; font-weight: 750; }
.shipping-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.shipping-row input { flex: 1 1 6ch; min-height: 44px; }
.shipping-row button { max-width: 100%; padding: 8px 10px; }
.shipping .hint { margin-bottom: 0; }
.bag-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 460px);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 5vw, 27px);
  border: 0;
  border-left: 5px solid #c52049;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -15px 0 40px #2e111233;
  overscroll-behavior: contain;
}
.bag-drawer::backdrop { background: #24100f85; }
body:has(.bag-drawer[open]) { overflow: hidden; }
.bag-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bag-heading h2 { margin: 0; color: var(--cherry); font: 1.85rem var(--display); }
.bag-close { min-width: 44px; padding: 8px; background: #f9dbe0; color: var(--cherry); }
.bag-items { margin: 0; padding: 0; list-style: none; }
.bag-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.bag-items h3 { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.bag-items button { padding: 0 8px 0 0; background: transparent; color: var(--cherry); font-size: .84rem; text-decoration: underline; }
.bag-subtotal { display: flex; justify-content: space-between; gap: 10px; margin-block: 20px; font-weight: 800; }
.bag-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.continue-shopping { border: 1px solid var(--cherry); background: var(--paper); color: var(--cherry); }
.bag-empty { padding: 20px 0; text-align: center; font: italic 800 1.1rem var(--serif); }
.bag-empty::before { content: ''; display: block; width: 54px; height: 54px; margin: 0 auto 12px; background: url('/brand/cherries.svg') center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .bag-drawer[open] { animation: bag-slide-in .24s ease-out; }
  @keyframes bag-slide-in { from { transform: translateX(100%); } }
}
.card.lucky-pick { outline: 4px dotted var(--cherry); outline-offset: 5px; }
.card.lucky-pick::after {
  content: 'Lucky pick!';
  position: absolute;
  top: -13px;
  right: 9px;
  transform: rotate(6deg);
  padding: 3px 8px;
  border: 1px dashed var(--olive);
  border-radius: 4px;
  background: #e7ecaa;
  color: var(--olive);
  font: 800 .72rem var(--serif);
}
.site-footer { padding: 32px 0; background: #352221; color: #fff9e9; }
.site-footer strong { color: #ffd6db; font: 1.35rem var(--display); }
.site-footer p { margin: 8px 0 0; }

.workspace { max-width: 780px; padding-block: 38px 68px; }
.workspace > .eyebrow { margin: 0; }
.editor, .listings, .quote-panel {
  max-width: 660px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px 23px 16px 22px;
  box-shadow: 5px 6px 0 #eec9c6;
}
.editor, .quote-panel { padding: 20px; margin: 18px 0; }
.quote-panel h2 { margin-top: 0; }
.checkout-shipping label { display: block; margin-bottom: 5px; font-weight: 750; }
.checkout-items { margin: 0; padding: 0; list-style: none; }
.checkout-items li, .checkout-totals div { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.checkout-items span { overflow-wrap: anywhere; }
.checkout-totals { border-top: 1px dashed var(--line); padding-top: 8px; }
.checkout-totals dd { margin: 0; }
@media (min-width: 720px) {
  .checkout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
}
.editor label { display: grid; gap: 4px; margin-bottom: 16px; font-weight: 750; }
.editor input, .editor textarea, .editor select, .shipping-row input { min-width: 0; width: 100%; padding: 10px; font: inherit; color: var(--ink); border: 1px solid #876f65; border-radius: 8px; background: white; }
.package-fields { min-inline-size: 0; margin: 0 0 16px; padding: 0 12px; border: 1px dashed #b94761; border-radius: 10px; }
.package-fields legend { padding-inline: 5px; font-weight: 800; }
.package-fields > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 0 12px; }
.hint { font-size: .88rem; }
.editor-photo { max-width: min(100%, 350px); max-height: 300px; margin-top: 18px; border-radius: 10px; }
.button, button { display: inline-block; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 50px; background: var(--cherry); color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.listings { padding: 0; list-style: none; }
.listings li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px; overflow-wrap: anywhere; }
.listings li + li { border-top: 1px solid var(--line); }

@media (min-width: 951px) {
  .card:nth-child(2n) { transform: rotate(1deg); }
  .card:nth-child(3n) { transform: rotate(-1.2deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .26s, box-shadow .26s; }
  .card:hover { transform: translateY(-6px); box-shadow: 8px 11px 0 #efbdc4; }
}
@media (max-width: 950px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cherries { left: -24px; top: 10px; opacity: .5; }
}
@media (max-width: 570px) {
  .container { width: calc(100% - 32px); }
  .header-actions { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 36px; height: 40px; }
  .shop-hero { padding: 54px 0 42px; }
  .shop-hero h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .hero-cherries { width: 65px; left: -17px; top: 4px; opacity: .42; }
  .grid { gap: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 7px 7px 11px; margin-inline: -7px; }
  .filters button { flex: 0 0 auto; white-space: nowrap; }
  .card-body { padding: 12px; }
  .card h2 { font-size: 1.04rem; }
}
@media (max-width: 350px) {
  .grid { grid-template-columns: 1fr; }
}
