/* The Crazy Bag Lady — self-hosted rebuild */
:root {
  --ink: #000;
  --grey: #555;
  --light: #f7f7f7;
  --line: #e5e5e5;
  --accent: #000;
  --sale: #c0392b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo img { height: 84px; width: auto; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  font-size: 15px; letter-spacing: .08em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav a.active { border-bottom-color: var(--ink); font-weight: 500; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--ink); color: #fff; border-radius: 50%;
  font-size: 11px; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; display: inline-block; padding: 0 3px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; }
.hero img { width: 100%; height: 62vh; min-height: 380px; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  padding: 0 8vw; text-align: right;
}
.hero-overlay h4 {
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 600; letter-spacing: .35em; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  margin: 4px 0;
}
.btn {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 12px 34px; letter-spacing: .2em; font-size: 14px;
  border: 1px solid var(--ink); cursor: pointer; transition: all .2s;
}
.btn:hover { background: #fff; color: var(--ink); opacity: 1; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--ink); color: #fff; }
.btn[disabled] { background: #aaa; border-color: #aaa; cursor: not-allowed; }
.hero-overlay .btn { margin-top: 22px; background: rgba(255,255,255,.92); color: var(--ink); border-color: #fff; }
.hero-overlay .btn:hover { background: var(--ink); color: #fff; }

/* ---------- Home copy ---------- */
.notice {
  text-align: center; font-weight: 600; letter-spacing: .04em;
  max-width: 820px; margin: 46px auto 0; padding: 0 20px; font-size: 15px;
}
.home-copy { max-width: 820px; margin: 34px auto 70px; padding: 0 20px; text-align: center; }
.home-copy p { margin-bottom: 22px; }
.home-copy a { text-decoration: underline; }

/* ---------- Page headings ---------- */
.page-title {
  text-align: center; font-size: 28px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  margin: 55px 0 35px;
}

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 40px; margin-bottom: 70px; }
.filter h3 {
  font-size: 14px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.filter ul { list-style: none; }
.filter li { margin: 7px 0; }
.filter button {
  background: none; border: none; font: inherit; font-size: 15px;
  cursor: pointer; padding: 0; color: var(--grey);
}
.filter button.active { color: var(--ink); font-weight: 600; }
.shop-toolbar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.shop-toolbar select {
  font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); background: #fff;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { position: relative; }
.card .imgwrap { position: relative; overflow: hidden; background: var(--light); aspect-ratio: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover img { transform: scale(1.04); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ink); color: #fff; font-size: 11px;
  letter-spacing: .08em; padding: 4px 10px;
}
.card h3 { font-size: 15px; font-weight: 500; margin-top: 12px; text-align: center; }
.card .price { text-align: center; font-size: 15px; color: var(--grey); margin-top: 3px; }
.card .oos { color: var(--sale); letter-spacing: .05em; }
.card .cta { text-align: center; margin-top: 10px; }
.card .cta .btn { padding: 8px 20px; font-size: 12px; }
.giftcards { text-align: center; margin: 55px 0 70px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 55px 0 70px; }
.product-layout .imgwrap { background: var(--light); }
.product-info h1 { font-size: 26px; font-weight: 500; letter-spacing: .04em; }
.product-info .sku { color: var(--grey); font-size: 13px; margin-top: 4px; }
.product-info .price { font-size: 22px; margin: 16px 0 4px; }
.product-info .price small { font-size: 13px; color: var(--grey); letter-spacing: .1em; }
.product-desc { margin: 18px 0; white-space: pre-line; color: #222; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; margin-bottom: 6px; }
.field select, .field input[type=text], .field input[type=number], .field input[type=email], .field textarea {
  width: 100%; max-width: 320px; font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1px solid #bbb; background: #fff;
}
.qty-row { display: flex; align-items: center; gap: 0; max-width: 130px; border: 1px solid #bbb; }
.qty-row button { width: 38px; height: 42px; background: #fff; border: none; font-size: 18px; cursor: pointer; }
.qty-row input { width: 54px; height: 42px; border: none; text-align: center; font: inherit; }
.oos-label { color: var(--sale); font-size: 18px; letter-spacing: .1em; margin: 20px 0; }
details.dims { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
details.dims summary {
  cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; list-style: none;
}
details.dims summary::after { content: "+"; float: right; }
details.dims[open] summary::after { content: "–"; }
details.dims .dims-body { padding: 0 0 16px; white-space: pre-line; color: #222; font-size: 15px; }
.handmade-note { font-size: 13px; color: var(--grey); margin-top: 10px; }
.added-msg { color: #1d7a34; font-size: 14px; margin-top: 10px; display: none; }

/* ---------- About ---------- */
.about-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.about-imgs img { aspect-ratio: 1; object-fit: cover; }
.prose { max-width: 780px; margin: 0 auto 60px; }
.prose p { margin-bottom: 22px; }
.prose a { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-form { max-width: 560px; margin: 0 auto 70px; }
.contact-form .field input, .contact-form .field textarea { max-width: 100%; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-alt { text-align: center; color: var(--grey); font-size: 14px; margin-top: 18px; }

/* ---------- Shipping ---------- */
.policy { max-width: 720px; margin: 0 auto 60px; }
.policy h2 {
  font-size: 20px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
  margin: 45px 0 18px; text-align: center;
}
.policy p { margin-bottom: 16px; }

/* ---------- Cart ---------- */
.cart-wrap { max-width: 860px; margin: 0 auto 80px; }
.cart-line {
  display: grid; grid-template-columns: 90px 1fr auto auto auto;
  gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-line img { width: 90px; height: 90px; object-fit: cover; background: var(--light); }
.cart-line .opt { font-size: 13px; color: var(--grey); }
.cart-line .remove { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--grey); }
.cart-summary { margin-top: 24px; text-align: right; }
.cart-summary .row { margin: 6px 0; font-size: 16px; }
.cart-summary .total { font-size: 20px; font-weight: 600; }
.checkout-form { margin-top: 45px; border-top: 2px solid var(--ink); padding-top: 30px; }
.checkout-form h2 { font-size: 18px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.checkout-form .field input, .checkout-form .field textarea, .checkout-form .field select { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.empty-cart { text-align: center; color: var(--grey); margin: 60px 0; }
.order-note { font-size: 13px; color: var(--grey); margin-top: 14px; }

/* ---------- Footer ---------- */
footer { background: var(--light); border-top: 1px solid var(--line); margin-top: 30px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 50px 20px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
footer h4 { font-size: 14px; letter-spacing: .2em; font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin: 8px 0; font-size: 15px; }
.subscribe { display: flex; gap: 0; margin-top: 10px; }
.subscribe input {
  flex: 1; font: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid #bbb; border-right: none; background: #fff; min-width: 0;
}
.subscribe .btn { padding: 10px 16px; font-size: 12px; letter-spacing: .1em; }
.copyright { text-align: center; font-size: 13px; color: var(--grey); padding: 18px 0 26px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 26px; font-size: 14px;
  letter-spacing: .05em; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 20px 20px;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .logo img { height: 64px; }
  .shop-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 70px 1fr auto; grid-auto-rows: auto; }
  .cart-line img { width: 70px; height: 70px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-overlay { align-items: center; text-align: center; }
}
