/* ============================================
   the3bunnies.co — design tokens
   ============================================ */
:root {
  --ivory: #F1ECF7;
  --ivory-deep: #E6DDF0;
  --ink: #3D2E4D;
  --ink-soft: #6B5C78;
  --green: #4E9484;
  --green-deep: #3D7568;
  --clay: #B85A6D;
  --clay-soft: #E39AA6;
  --gold: #C9A227;
  --white: #FDFBFF;
  --nav-bg: rgba(240, 236, 246, 0.92);
  --btn-green: #9CC8BC;
  --eyebrow-pink: #D99DA7;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1140px;
  --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 400; }
h3 { font-size: 1.3rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow-pink);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Stitched divider — signature element ---------- */
.stitch {
  width: 100%;
  height: 14px;
  margin: 0 auto;
  background-image: repeating-linear-gradient(
    to right,
    var(--gold) 0px,
    var(--gold) 8px,
    transparent 8px,
    transparent 16px
  );
  background-position: center;
  background-repeat: repeat-x;
  background-size: 16px 2px;
  opacity: 0.65;
}

.stitch-section {
  padding: 6px 0 0;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 40, 35, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.logo .logo-text { display: none; }
.logo.no-image .logo-text { display: inline; }
.logo.no-image img { display: none; }

.logo .logo-text span { color: var(--clay); }

nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}

nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

nav a:hover, nav a.active { color: var(--ink); }

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  nav ul {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(43,40,35,0.08);
  }
  nav ul.open { max-height: 80vh; overflow-y: auto; }
  nav ul li { padding: 16px 28px; border-top: 1px solid rgba(43,40,35,0.06); }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: flex-end; }
  .logo { margin-right: auto; }
  .cart-icon-btn { margin-right: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 50px 0 40px; }
}

.hero-art {
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg { width: 62%; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-buy {
  background: var(--btn-green);
  color: var(--ink);
  width: 100%;
  text-align: center;
  border: none;
}
.btn-buy:hover { background: var(--green-deep); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--white);
  border: 1px solid rgba(43,40,35,0.08);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(43,40,35,0.08);
}

.pillar-card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.pillar-card p { color: var(--ink-soft); margin: 12px 0 18px; font-size: 0.96rem; }

.pillar-card a.link {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(43,40,35,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-thumb {
  aspect-ratio: 4/3;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb svg { width: 40%; opacity: 0.85; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.product-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 { margin-bottom: 6px; }

.product-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qty-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(43,40,35,0.18);
  border-radius: var(--radius);
}

.qty-stepper button {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper button:hover { background: var(--ivory-deep); }

.qty-stepper input {
  width: 34px;
  text-align: center;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.qty-stepper input:focus { outline: none; }

/* ---------- Story / About block ---------- */
.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px;
}
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; padding: 32px; }
}

.story-art {
  aspect-ratio: 1/1;
  background: var(--ivory-deep);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-art svg { width: 55%; }

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}
.contact-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(43,40,35,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--ivory);
}

footer p, footer a {
  color: rgba(242,236,225,0.72);
  font-size: 0.9rem;
}

footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(242,236,225,0.14);
  padding-top: 22px;
  font-size: 0.78rem;
  color: rgba(242,236,225,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (subpages) ---------- */
.page-hero { padding: 60px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero p.lede { margin: 0 auto; text-align: center; }

/* ---------- Product card click affordance ---------- */
.product-thumb { cursor: pointer; position: relative; }
.product-thumb::after {
  content: "View details";
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(43,40,35,0.72);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-thumb:hover::after { opacity: 1; }

h3.product-title-link { cursor: pointer; }
h3.product-title-link:hover { color: var(--clay); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,40,35,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
@media (max-width: 760px) {
  .modal-box { grid-template-columns: 1fr; }
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--white);
  border: 1px solid rgba(43,40,35,0.15);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
}

/* Carousel */
.carousel {
  position: relative;
  background: var(--ivory-deep);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-deep);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-slide svg { width: 42%; opacity: 0.85; }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(43,40,35,0.15);
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  gap: 7px;
  justify-content: center;
}
.carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--white); }

.carousel-note {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.carousel-note.show { display: flex; }

/* Modal body */
.modal-info {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.modal-info h2 { margin-bottom: 12px; }
.modal-info .product-price { margin: 16px 0; }
.modal-details {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ---------- Inline content links (inside paragraphs) ---------- */
p a, .lede a, .product-desc a, .modal-details a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: var(--clay-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
p a:hover, .lede a:hover, .product-desc a:hover, .modal-details a:hover {
  color: var(--green-deep);
  text-decoration-color: var(--green-deep);
}

/* ---------- Cart icon (nav) ---------- */
.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 4px;
  margin-right: 20px;
}
.cart-icon-btn:hover { color: var(--clay); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--clay);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Cart drawer ---------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,40,35,0.45);
  z-index: 300;
  display: none;
}
.cart-drawer-overlay.open { display: block; }

.cart-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  box-shadow: -12px 0 32px rgba(43,40,35,0.15);
  overflow-y: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cart-drawer-header h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.cart-close {
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink);
}

.cart-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }

.cart-items { display: flex; flex-direction: column; gap: 18px; flex: 1; }

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(43,40,35,0.08);
  padding-bottom: 16px;
}
.cart-item-thumb {
  width: 56px; height: 56px;
  background: var(--ivory-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.92rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.cart-item-qty button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(43,40,35,0.18);
  background: none; cursor: pointer; font-size: 0.85rem; line-height: 1;
}
.cart-item-remove {
  background: none; border: none; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer;
}
.cart-item-remove:hover { color: var(--clay); }

.cart-footer { margin-top: 18px; border-top: 1px solid rgba(43,40,35,0.1); padding-top: 16px; }
.cart-total-row {
  display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.15rem;
}
.cart-note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- Instagram grid ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  background: var(--ivory-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ig-tile:hover img { transform: scale(1.05); }
.ig-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61,46,77,0);
  transition: background 0.25s ease;
}
.ig-tile:hover::after { background: rgba(61,46,77,0.18); }

/* ---------- Product options (pet portraits) ---------- */
.product-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
@media (max-width: 620px) { .product-grid--two { grid-template-columns: 1fr; } }

.modal-options:empty { display: none; }
.option-group { margin: 14px 0 6px; }
.option-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill { position: relative; }
.option-pill input { position: absolute; opacity: 0; pointer-events: none; }
.option-pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(43,40,35,0.18);
  border-radius: var(--radius);
  font-size: 0.88rem;
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.option-pill:hover span { border-color: var(--green); }
.option-pill input:checked + span { background: var(--btn-green); border-color: var(--green); }
.option-pill input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- Product detail sections (visible copy under the grid) ---------- */
.detail-block { padding: 56px 0; }
.detail-block h2 { margin-bottom: 18px; }
.detail-block p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; margin-bottom: 16px; }
.detail-block .detail-price { font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; margin: 22px 0 18px; }
.good-to-know {
  background: var(--white);
  border: 1px solid rgba(43,40,35,0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 22px 0 6px;
}
.good-to-know h3 { font-size: 1.05rem; margin-bottom: 10px; }
.good-to-know ul { margin: 0 0 0 18px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }
.good-to-know li { margin-bottom: 4px; }
.good-to-know a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
html { scroll-padding-top: 90px; }
.detail-block .good-to-know + .btn { margin-top: 22px; }

/* ---------- Note box (placeholder helper) ---------- */
.dev-note {
  background: rgba(185,154,91,0.12);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.dev-note strong { color: var(--ink); }

/* ---- Mobile: keep all popup text visible and scrollable ---- */
@media (max-width: 760px) {
   .modal-overlay {
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-box {
    display: block;
    max-height: none;
    overflow: visible;
    margin-bottom: 16px;
  }

  .modal-info {
    padding: 30px 24px 40px;
  }
.wrap[style*="grid-template-columns"] {
    display: block !important;
  }
}

.hero-art,
.story-art {
  background: transparent;
  overflow: hidden;
}

.hero-art img,
.story-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

