/* ===================================================================
   Rumblerow — vitreous enamelware storefront
   Style: clean porcelain canvas, bright flashy glaze accents, serif
   display headings. Mobile is functional, not over-engineered.
   =================================================================== */

:root {
  --ink: #1B2330;          /* heading ink */
  --ink-soft: #4A5363;     /* body text */
  --bg: #FBFAFC;           /* page background */
  --panel: #FFFFFF;        /* cards */
  --porcelain: #EFEDF2;    /* enamel off-white */
  --line: #E4E1EA;         /* hairlines */
  --accent: #1F35A8;       /* cobalt — brand anchor */
  --accent-ink: #FFFFFF;
  --raspberry:#C9255C; --cobalt:#1F35A8; --teal:#0D8A8C; --plum:#6B2E96;
  --coral:#E8543F; --emerald:#107A55; --cerise:#E0307C; --navy:#1B2B57;
  --slate:#46536B;
  --serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", sans-serif;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(27,35,48,.08);
  --wrap: 1520px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--accent); margin: 0 0 .8em; }

/* --------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: .18s ease; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #172b85; }
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wide { width: 100%; padding: 1.05em; font-size: 1.05rem; }

/* ----------------------------------------------- announcement bar */
.ann { background: var(--ink); color: #fff; overflow: hidden; font-size: .82rem; }
.ann__track { max-width: var(--wrap); margin: 0 auto; padding: 7px 20px; text-align: center; }
.ann__item { display: none; letter-spacing: .02em; }
.ann__item.is-on { display: inline-block; }

/* ----------------------------------------------------- header */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; flex: 0 0 auto; }
.nav { position: static; flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; gap: 18px; align-items: center; justify-content: center; }
.nav__list a { font-size: .88rem; font-weight: 600; color: var(--ink-soft); padding: 6px 2px; position: relative; white-space: nowrap; }
.nav__list a:hover { color: var(--ink); }
.nav__list a.is-active { color: var(--accent); }
.nav__list a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.head__tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.tool { font-size: .9rem; font-weight: 600; color: var(--ink); }
.tool--hide { color: var(--ink-soft); display: none; }
.cart { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.cart__n { background: var(--accent); color: #fff; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; padding: 0 5px; }
.head__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.head__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* mega nav */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 0; display: none; gap: 48px;
  max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.nav:hover .mega { display: flex; }
.mega__col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.mega__col li { margin-bottom: 7px; }
.mega__col a { color: var(--ink-soft); font-size: .92rem; }
.mega__col a:hover { color: var(--ink); }

/* ------------------------------------------------------- hero */
.hero { background: linear-gradient(160deg, #fff 0%, #F4F2F8 100%); padding: 46px 0 52px; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero__lede { font-size: 1.08rem; max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.4em 0 1.2em; }
.hero__ticks { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink); font-weight: 600; font-size: .9rem; }
.hero__ticks li { position: relative; padding-left: 18px; }
.hero__ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.hero__art { position: relative; }
.hero__art img { width: 100%; max-width: 580px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--porcelain); }
.hero__chips { position: absolute; top: 7%; right: 4%; display: flex; flex-direction: column; gap: 12px; }
.hero__chip { width: 34px; height: 34px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 3px #fff, 0 3px 10px rgba(27,35,48,.18); }
.hero__chip.is-on::after { inset: -8px; border-color: var(--ink); border-width: 2px; }

/* band + sections */
.band { background: var(--ink); color: #fff; }
.band--picks .band__lead { max-width: var(--wrap); margin: 0 auto; padding: 20px; text-align: center; font-size: 1.05rem; color: #fff; }
.sec { padding: 50px 0; }
.sec__head { margin-bottom: 26px; }
.sec__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec__sub { color: var(--ink-soft); max-width: 60ch; }
.count { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }

/* ------------------------------------------------ product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.prod { position: relative; }
.prod__a { display: block; }
.prod__media { aspect-ratio: 4 / 5; background: var(--porcelain); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prod__a:hover .prod__media img { transform: scale(1.04); }
.prod__body { padding: 12px 4px 0; }
.prod__t { font-size: 1.02rem; margin-bottom: 2px; }
.prod__p { color: var(--ink); font-weight: 700; margin: 0; }
.prod__sw { display: flex; gap: 6px; margin-top: 9px; }
.prod__sw .sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 18px; border-radius: var(--radius);
  color: #fff; background: linear-gradient(135deg, var(--a, var(--accent)), var(--b, var(--cobalt))); box-shadow: var(--shadow); transition: .18s; }
.tile:hover { transform: translateY(-3px); }
.tile__t { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.tile__n { font-size: .82rem; opacity: .9; }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.svc h3 { color: var(--accent); font-size: 1.05rem; }

/* journal posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: .18s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post h3 { font-size: 1.18rem; }
.post p { color: var(--ink-soft); flex: 1; }
.post__pat { align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pc, var(--accent)); border: 1px solid currentColor; padding: 3px 10px; border-radius: 999px; }
.post__more { font-weight: 700; color: var(--accent); font-size: .88rem; }

/* CTA strip */
.cta { background: linear-gradient(135deg, var(--raspberry), var(--plum)); color: #fff; margin-top: 8px; }
.cta__in { max-width: var(--wrap); margin: 0 auto; padding: 54px 20px; text-align: center; }
.cta__in h2 { color: #fff; }
.cta__in p { max-width: 52ch; margin: 0 auto 1.2em; opacity: .95; }

/* ----------------------------------------------- collection hero */
.chero { background: linear-gradient(160deg, #fff, #F4F2F8); border-bottom: 1px solid var(--line); padding: 38px 0; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .7; }
.chero__sub { color: var(--ink-soft); max-width: 60ch; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.f { border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; font: 600 .85rem/1 var(--sans); cursor: pointer; }
.f:hover { border-color: var(--accent); color: var(--accent); }
.f.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----------------------------------------------- product detail */
.pd__top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 30px; }
.pd__main { aspect-ratio: 4 / 5; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd__thumbs .pthumb { width: 74px; height: 92px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--porcelain); padding: 0; }
.pd__thumbs .pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs .pthumb.is-on { border-color: var(--accent); }
.pd__info h1 { margin-bottom: .2em; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.pd__pat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pc, var(--accent)); border: 1px solid currentColor; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.pd__price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 0 0 .4em; }
.pd__blurb { font-size: 1.05rem; }
.pd__opt { margin: 18px 0; }
.pd__optlabel { display: block; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--sw, #CCC); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; }
.swatch.is-on { border-color: var(--ink); }
.swatch.is-on::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid var(--ink); border-radius: 50%; }
.pd__assure { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: .9rem; }
.pd__assure li { padding-left: 18px; position: relative; }
.pd__assure li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.acc details { border-top: 1px solid var(--line); padding: 14px 0; }
.acc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.acc p { margin: 10px 0 0; }

/* ----------------------------------------------- prose / text pages */
.sec--prose { max-width: 760px; }
.sec--prose h2 { margin-top: 1.6em; }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.tbl thead th { background: var(--porcelain); color: var(--ink); }
.tablewrap { overflow-x: auto; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact h2 { font-size: 1.1rem; margin: 0 0 4px; }
.cform { display: flex; flex-direction: column; gap: 12px; }
.cform label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.cform input, .cform textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform__note, .news__note { font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.news__note { color: var(--emerald); }
.cform__note { color: var(--emerald); }

/* ----------------------------------------------- footer */
.foot { background: var(--ink); color: #C9CFDD; margin-top: 60px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 50px 20px 30px; }
.foot__logo { font-family: var(--serif); font-size: 1.6rem; color: #fff; font-weight: 700; margin: 0 0 10px; }
.foot__blurb { font-size: .92rem; max-width: 34ch; }
.news { margin-top: 16px; }
.news__label { display: block; font-size: .82rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.news__row { display: flex; gap: 8px; }
.news__row input { flex: 1; padding: 10px 12px; border-radius: 999px; border: 0; font: inherit; min-width: 0; }
.news__row button { border: 0; background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.foot__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.foot__col li { margin-bottom: 8px; }
.foot__col a:hover { color: #fff; }
.foot__mid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); }
.foot__paywrap { display: flex; align-items: center; gap: 12px; }
.foot__paycap { font-size: .82rem; color: #fff; font-weight: 600; }
.foot__secure { font-size: .82rem; color: #C9CFDD; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay__i { background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; padding: 5px 9px; border-radius: 6px; }
.foot__legal { padding: 18px 20px 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #98A1B5; }
.foot__legal a { color: #C9CFDD; }
.foot__co { color: #C9CFDD; }

/* ----------------------------------------------- cart */
.cart__line { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart__thumb { width: 90px; height: 112px; border-radius: 10px; overflow: hidden; background: var(--porcelain); }
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__meta { display: flex; flex-direction: column; gap: 4px; }
.cart__title { font-weight: 700; color: var(--ink); }
.cart__col { font-size: .85rem; color: var(--ink-soft); }
.cart__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart__qty button { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink); }
.cart__price { font-weight: 700; color: var(--ink); }
.cart__remove { background: none; border: 0; color: var(--coral); cursor: pointer; font-size: .85rem; margin-top: 6px; text-decoration: underline; }
.cart__empty { padding: 40px 0; text-align: center; color: var(--ink-soft); }
.cart__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; flex-wrap: wrap; gap: 14px; }
.cart__total { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.notice { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.notice h2 { margin-top: 0; }
.notice__small { font-size: .88rem; color: var(--ink-soft); }
.nf { text-align: center; padding: 80px 20px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 100; }
.toast[data-show] { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------- responsive */
@media (min-width: 1560px) { .tool--hide { display: inline; } }

@media (max-width: 1199px) {
  .head__burger { display: flex; }
  .tool--hide { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease; flex: 0 0 auto; }
  .head.is-open .nav { max-height: 80vh; overflow: auto; box-shadow: var(--shadow); }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 20px 16px; align-items: stretch; justify-content: flex-start; }
  .nav__list a { padding: 13px 0; border-bottom: 1px solid var(--line); white-space: normal; font-size: .95rem; }
  .nav__list a.is-active::after { display: none; }
  .mega { display: none !important; }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .pd__top { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .tiles, .svc, .posts { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .cart__line { grid-template-columns: 64px 1fr; }
  .cart__price { grid-column: 2; }
}
