/* Ruby Phyllis storefront — mirrors the Squarespace template: white page, centred script logo,
   letter-spaced display serif, single-column feature list on home, two-up grid on category pages. */
:root {
  --ink: #000;
  --muted: #555;
  --line: #e6e6e6;
  --bg: #fff;
  --font: "Marcellus", "Minerva Modern", "Cormorant Garamond", Georgia, serif;
  --track: 0.11em;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: var(--track);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; letter-spacing: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 99; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: 46px 24px 22px; transition: padding .25s ease;
}
.header-inner { position: relative; max-width: 1140px; margin: 0 auto; }
.logo { display: block; width: 280px; max-width: 62vw; margin: 0 auto; transition: width .25s ease; }
.logo img { width: 100%; height: auto; }
.cart-link {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px; font-size: 15px;
}
.cart-link svg { width: 20px; height: 20px; }
.main-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  max-width: 620px; margin: 40px auto 0; padding: 0; list-style: none;
  text-transform: uppercase; font-size: 15px; transition: margin .25s ease;
}
.main-nav a { padding: 2px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; }
/* Header keeps its full size on desktop; only a hairline appears once you scroll. */
.site-header.compact { box-shadow: 0 1px 0 var(--line); }
.nav-toggle { display: none; }
.announcement { text-align: center; font-size: 12px; padding: 8px 16px; background: #000; color: #fff; text-transform: uppercase; }

/* ---------- Layout ---------- */
main { min-height: 50vh; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-wrap { padding-top: 40px; }
.page-title { text-align: center; text-transform: uppercase; font-weight: 400; font-size: 22px; margin: 24px 0 40px; }

/* ---------- Home ---------- */
.hero { max-width: 860px; margin: 26px auto 70px; padding: 0 24px; }
.hero img { width: 100%; height: auto; }
.feature-list { max-width: 810px; margin: 0 auto; padding: 0 24px; display: grid; gap: 64px; }
.feature a { display: block; }
.feature img { width: 100%; height: auto; background: #f4f4f4; }
.feature .cap { text-align: center; font-size: 11.5px; line-height: 1.6; margin-top: 12px; }
.feature .cap .cat { font-size: 10.5px; color: var(--muted); }

/* ---------- Grid (category pages) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.card a { display: block; }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: #f4f4f4; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.card .ph img.alt { position: absolute; inset: 0; opacity: 0; }
.card a:hover .ph img.alt { opacity: 1; }
.card h2 { font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1.35; margin: 22px 0 4px; letter-spacing: .04em; }
.card .price { font-size: 12px; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: #000;
  font-size: 10.5px; padding: 3px 9px; text-transform: uppercase;
}
.price s { color: var(--muted); margin-left: 6px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Product page ---------- */
.product { max-width: 1500px; margin: 0 auto; padding: 20px 60px 80px; }
.crumbs { font-size: 12.5px; margin-bottom: 18px; }
.crumbs a:hover { text-decoration: underline; }
.p-grid { display: grid; grid-template-columns: 44px minmax(0, 670px) minmax(0, 1fr); gap: 16px 0; align-items: start; }
.details { padding-left: 54px; }
.thumbs { display: grid; gap: 8px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: #000; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; background: #f4f4f4; margin-left: 10px; }
.stage img { width: 100%; height: auto; }
.stage .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
  width: 48px; height: 72px; color: #000; opacity: .75;
}
.stage .arrow:hover { opacity: 1; }
.stage .prev { left: 6px; } .stage .next { right: 6px; }
.stage .arrow svg { width: 26px; height: 54px; }
.details h1 { font-weight: 400; text-transform: uppercase; font-size: 44px; line-height: 1.38; margin: 0 0 18px; letter-spacing: .03em; }
.details .price { font-size: 17px; margin-bottom: 22px; }
.details .desc p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.75; }
.btn {
  display: block; width: 100%; background: #000; color: #fff; border: 1px solid #000; cursor: pointer;
  text-transform: uppercase; font-size: 12.5px; padding: 15px 18px; text-align: center;
}
.btn:hover { background: #222; }
.btn[disabled] { background: #fff; color: #000; cursor: default; }
.btn.ghost { background: #fff; color: #000; }
.bnpl { font-size: 12px; margin: -12px 0 22px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); text-transform: uppercase; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
#paypal-buttons { min-height: 46px; }
.added-msg { font-size: 12.5px; margin-top: 12px; min-height: 1.6em; }
.added-msg a { text-decoration: underline; }

/* ---------- Cart ---------- */
.cart { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 90px; aspect-ratio: 4/5; object-fit: cover; background: #f4f4f4; }
.cart-row .t { text-transform: uppercase; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 12px; }
.cart-sum { margin-top: 26px; display: grid; gap: 10px; }
.sum-line { display: flex; justify-content: space-between; }
.cart select { font: inherit; letter-spacing: inherit; padding: 8px; border: 1px solid #000; background: #fff; }
.note { font-size: 12px; color: var(--muted); }
.error { color: #a40000; font-size: 13px; }

/* ---------- Text pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; font-size: 14px; }
.prose h2 { font-weight: 400; text-transform: uppercase; font-size: 16px; margin: 34px 0 8px; }
.prose p { margin: 0 0 14px; }
.about-img { max-width: 760px; margin: 0 auto 34px; padding: 0 24px; }
.stockists { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.stockists strong { font-weight: 400; text-transform: uppercase; display: block; }
.gallery { columns: 3 280px; column-gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.gallery img { width: 100%; margin: 0 0 16px; break-inside: avoid; background: #f4f4f4; }
form.contact { display: grid; gap: 14px; }
form.contact label { display: grid; gap: 4px; font-size: 12.5px; text-transform: uppercase; }
form.contact input, form.contact textarea {
  font: inherit; letter-spacing: normal; border: 1px solid #bbb; padding: 10px 12px; background: #fff; width: 100%;
}
form.contact textarea { min-height: 160px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 90px 24px 70px; font-size: 14px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; }
.foot-social { margin-top: 18px; font-size: 12px; text-transform: uppercase; }
.foot-social a { text-decoration: underline; text-underline-offset: 3px; }
.fine { margin-top: 26px; font-size: 11px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product { padding: 10px 24px 60px; }
  .p-grid { grid-template-columns: 1fr; gap: 14px; }
  .thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 56px; justify-content: start; }
  .stage { order: 1; margin-left: 0; }
  .details { order: 3; margin-top: 18px; padding-left: 0; }
  .details h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .site-header { padding: 22px 16px 14px; }
  .logo { width: 190px; }
  .main-nav { font-size: 13px; gap: 2px 12px; margin-top: 18px; }
  /* Phones only: shrink the header on scroll so it doesn't fill the small screen */
  .site-header.compact { padding-top: 10px; padding-bottom: 10px; }
  .site-header.compact .logo { width: 120px; }
  .site-header.compact .main-nav { margin-top: 8px; }
  .grid { gap: 36px 14px; }
  .card h2 { font-size: 13px; margin-top: 12px; }
  .wrap { padding: 0 14px; }
  .feature-list { gap: 44px; padding: 0 14px; }
  .cart-row { grid-template-columns: 70px 1fr auto; }
  .cart-row img { width: 70px; }
  .cart-row .rm { grid-column: 2; }
}
