/* Thin Line Engraving — base styles (from the shared store platform) */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --card: #ffffff;
  --ink: #232329;
  --muted: #71717c;
  --pink: #2e6da4;
  --pink-dark: #2e6da4;
  --pink-soft: #fff2f5;
  --line: #ececf1;
  --img-bg: #f4f4f6;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(24, 24, 32, 0.07);
  --shadow-lg: 0 22px 50px rgba(24, 24, 32, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ffd9e2; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 138, 0.32); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 138, 0.38); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(35, 35, 41, 0.22); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(35, 35, 41, 0.26); }
.btn-secondary:active { transform: scale(0.98); }
.btn-full { width: 100%; text-align: center; }
.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; color: var(--pink-dark);
  padding: 8px 0; font-size: 0.95rem;
}
.icon-btn {
  background: #f4f4f7; border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { background: #ececf1; }
.icon-btn:active { transform: scale(0.94); }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: linear-gradient(90deg, #1f4e79, #ff7d9c);
  color: #fff; text-align: center;
  padding: 10px 16px; font-size: .95rem; font-weight: 700; line-height: 1.4;
}
.promo-bar strong { font-weight: 900; }
.ship-hint { font-size: .9rem; font-weight: 800; color: var(--pink-dark); margin: 4px 0 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.logo { font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.logo-emoji { font-size: 1.6rem; }
.logo-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo-img.small { width: 30px; height: 30px; }
.main-nav { margin-left: auto; display: flex; gap: 20px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--pink-dark); }
.cart-btn {
  border: none; cursor: pointer; font-family: inherit;
  background: var(--ink); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 10px 18px; font-size: 1rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(35, 35, 41, 0.2);
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn:active { transform: scale(0.97); }
.cart-count {
  background: var(--pink); border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem; padding: 0 6px; margin-left: 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 78% 30%, #fff2f5 0%, rgba(255, 242, 245, 0) 70%);
}
.hero-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-text { flex: 1 1 320px; }
.hero-text h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 900; margin: 0 0 14px; letter-spacing: -0.025em; }
.hero-text p { font-size: 1.1rem; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.hero-art { flex: 1 1 240px; position: relative; min-height: 220px; }
.hero-blob {
  font-size: 6rem; position: absolute; left: 20%; top: 10%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 16px rgba(255,107,138,.18));
}
.hero-blob.small { font-size: 3.4rem; left: 62%; top: 52%; animation-delay: 1.2s; }
.hero-blob.small2 { font-size: 2.6rem; left: 8%; top: 58%; animation-delay: 2.1s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg);} 50% { transform: translateY(-10px) rotate(4deg);} }

/* ---------- Shop ---------- */
.shop-section { padding: 32px 0 56px; }
.shop-head { text-align: center; margin-bottom: 8px; }
.shop-section h2 { font-size: 2rem; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin: 8px 0 28px; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  animation: rise 0.55s ease backwards;
}
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(5) { animation-delay: 0.24s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.36s; }
.product-card:nth-child(8) { animation-delay: 0.42s; }
.product-card:nth-child(9) { animation-delay: 0.48s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #e0e0e8; }
.product-card .p-img { aspect-ratio: 1; background: var(--img-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .p-img img { transform: scale(1.04); }
.product-card .p-body { padding: 18px; }
.product-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.product-card .blurb { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.product-card .p-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.add-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 800;
  background: var(--pink); color: #fff; border-radius: 999px; padding: 10px 20px;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 138, 0.28);
}
.add-btn:hover { background: var(--pink-dark); transform: translateY(-1px); }
.add-btn:active { transform: scale(0.96); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 6px 13px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(35, 35, 41, 0.25);
}

/* ---------- Perks / About / Contact ---------- */
.perks { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.perks-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.perk span {
  font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--pink-soft); margin-bottom: 4px;
}
.perk h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.perk p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.about, .contact { padding: 56px 0; text-align: center; }
.about-inner p, .contact-inner p { max-width: 60ch; margin: 0 auto 26px; color: var(--muted); font-size: 1.05rem; }
.about h2, .contact h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; }

/* ---------- Cards / checkout ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 28px; }
.checkout-inner { padding: 36px 20px 60px; max-width: 1080px; }
.checkout-inner h2 { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-summary h3, .checkout-pay h3 { margin-top: 0; letter-spacing: -0.01em; }
.co-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--img-bg); border: 1px solid var(--line); }
.co-item .co-name { flex: 1; font-weight: 700; font-size: 0.95rem; }
.co-item .co-qty { color: var(--muted); font-size: 0.85rem; }
.ship-options h4 { margin: 18px 0 10px; }
.ship-radio {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  margin-bottom: 8px; cursor: pointer; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ship-radio:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.ship-radio input { accent-color: var(--pink); }
.ship-radio .s-price { margin-left: auto; font-weight: 800; }
.totals { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.row { display: flex; justify-content: space-between; padding: 5px 0; }
.row.grand { font-weight: 900; font-size: 1.25rem; margin-top: 8px; letter-spacing: -0.01em; }
.notice {
  background: #fff8e6; border: 1px solid #f0d48a; border-radius: 14px;
  padding: 14px 16px; font-size: 0.92rem; margin: 12px 0;
}
.notice code { background: #fff; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.secure-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

/* ---------- Success ---------- */
.success-inner { padding: 60px 20px; max-width: 560px; }
.success-card { text-align: center; }
.success-emoji { font-size: 3.5rem; }
.order-meta { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; text-align: center; background: var(--bg-soft); }
.footer-brand { font-weight: 900; font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Cart drawer ---------- */
.drawer-overlay, .modal-overlay {
  position: fixed; inset: 0; background: rgba(35, 35, 41, 0.4);
  backdrop-filter: blur(2px);
  z-index: 90; opacity: 1;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 92vw);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(24, 24, 32, 0.12);
  transform: translateX(0); transition: transform .25s ease;
  border-left: 1px solid var(--line);
}
.cart-drawer[hidden], .drawer-overlay[hidden], .modal-overlay[hidden] { display: none; }
[hidden] { display: none !important; }

/* ---------- Promo code ---------- */
.promo-box { margin: 4px 0 12px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .95rem; background: #fff;
  transition: border-color 0.15s ease;
}
.promo-row input:focus { outline: none; border-color: var(--pink); }
.btn-small { padding: 10px 18px; font-size: .95rem; white-space: nowrap; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #e9f8ef; border: 1px solid #bfe6cd; border-radius: 12px; padding: 10px 12px; font-size: .92rem;
}
.promo-error { color: #c0392b; font-size: .85rem; margin: 6px 2px 0; }
.promo-discount span:last-child { color: #1e8e4e; font-weight: 800; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; letter-spacing: -0.01em; }
.drawer-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.drawer-empty .big { font-size: 3rem; display: block; margin-bottom: 12px; }
.d-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.d-item img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--img-bg); border: 1px solid var(--line); }
.d-item .d-info { flex: 1; }
.d-item .d-name { font-weight: 800; font-size: 0.95rem; }
.d-item .d-price { color: var(--muted); font-size: 0.88rem; }
.qty-stepper { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 8px; margin-top: 6px; }
.qty-stepper button { border: none; background: var(--bg-soft); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-weight: 900; font-size: 1rem; line-height: 1; transition: background 0.15s ease; }
.qty-stepper button:hover { background: var(--line); }
.qty-stepper span { font-weight: 800; min-width: 20px; text-align: center; }
.d-remove { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; transition: color 0.15s ease; }
.d-remove:hover { color: var(--pink-dark); }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot .btn { margin: 10px 0 6px; }
.drawer-foot .link-btn { display: block; margin: 0 auto; }

/* ---------- Modal ---------- */
.modal-overlay { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { max-width: 760px; width: 100%; max-height: 90dvh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.9); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-img { background: var(--img-bg); border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-info h3 { margin: 6px 0 4px; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.015em; }
.modal-info .price { margin-bottom: 10px; }
.modal-info p { color: var(--muted); }
.details { padding-left: 20px; color: var(--muted); font-size: 0.93rem; margin: 0 0 18px; }
.details li { margin-bottom: 4px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; }
.qty-row .qty-stepper { margin-top: 0; }
.modal .badge { position: static; display: inline-block; margin-bottom: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; z-index: 200;
  box-shadow: 0 10px 28px rgba(24, 24, 32, 0.28);
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast[hidden] { display: none; }
.toast-logo { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Inline brand logo (replaces the old cupcake emoji) ---------- */
.inline-logo { width: 1.15em; height: 1.15em; border-radius: 50%; vertical-align: -0.22em; display: inline-block; }

/* ---------- Hamburger + slide-out mobile nav ---------- */
.hamburger { display: none; }
.mobile-nav, .mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
  /* Header: hamburger left, logo centered, cart right */
  .header-inner { flex-wrap: nowrap; gap: 8px; padding: 10px 14px; align-items: center; }
  .hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px; flex-shrink: 0;
    background: none; border: none; cursor: pointer; padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    display: block; width: 22px; height: 2.5px; border-radius: 3px;
    background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header .logo {
    order: 2; margin: 0 auto; font-size: 1.12rem; gap: 8px;
    white-space: nowrap; overflow: hidden;
  }
  .site-header .logo-img { width: 36px; height: 36px; }
  .site-header .logo-word { display: inline; }
  .main-nav { display: none; }
  .cart-btn {
    order: 3; margin-left: 0; flex-shrink: 0;
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; position: relative;
  }
  a.cart-btn.cart-link { text-decoration: none; }
  .cart-count {
    position: absolute; top: -5px; right: -5px; margin: 0;
    min-width: 21px; height: 21px; font-size: 0.72rem;
    border: 2px solid #fff; padding: 0 4px;
  }

  /* Slide-out panel */
  .mobile-nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 120;
    background: rgba(35, 35, 41, 0.45);
    opacity: 0; transition: opacity 0.28s ease;
  }
  .mobile-nav-overlay.open { opacity: 1; }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100dvh; width: min(320px, 86vw);
    background: #fff; z-index: 130;
    border-right: 1px solid var(--line);
    box-shadow: 16px 0 48px rgba(24, 24, 32, 0.16);
    transform: translateX(-106%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.35, 1);
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 16px; border-bottom: 1px solid var(--line);
  }
  .mobile-nav-head .logo-img { width: 44px; height: 44px; }
  .mobile-nav-who { flex: 1; min-width: 0; }
  .mobile-nav-who strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
  .mobile-nav-who .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-nav-links { overflow-y: auto; padding: 8px 0 20px; }
  .mobile-nav-links a {
    display: flex; align-items: center;
    padding: 15px 20px; min-height: 52px;
    color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.02rem;
    border-bottom: 1px solid #f4f4f7;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mobile-nav-links a:active { background: var(--pink-soft); color: var(--pink-dark); }

  /* Compact hero */
  .hero { padding: 32px 0 24px; }
  .hero-text h1 { font-size: 1.85rem; margin-bottom: 10px; }
  .hero-text p { font-size: 0.98rem; margin-bottom: 20px; }
  .hero-art { min-height: 170px; flex-basis: 100%; order: 2; }
  .hero-text { flex-basis: 100%; }

  /* Shop */
  .shop-section { padding: 20px 0 36px; }
  .shop-section h2 { font-size: 1.6rem; }
  .section-sub { font-size: 0.92rem; margin-bottom: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-card .p-body { padding: 12px; }
  .product-card h3 { font-size: 0.9rem; }
  .product-card .blurb { font-size: 0.78rem; margin-bottom: 10px; }
  .price { font-size: 1.02rem; }
  .add-btn { padding: 10px 14px; font-size: 0.85rem; min-height: 40px; }
  .badge { font-size: 0.62rem; padding: 4px 10px; top: 8px; left: 8px; }

  /* Sections */
  .perks { padding: 28px 0; }
  .perk span { width: 56px; height: 56px; font-size: 1.6rem; }
  .about, .contact { padding: 36px 0; }
  .about h2, .contact h2 { font-size: 1.45rem; }
  .about-inner p, .contact-inner p { font-size: 0.98rem; }

  /* Checkout / cards */
  .checkout-inner { padding: 24px 14px 44px; }
  .checkout-inner h2 { font-size: 1.55rem; }
  .card { padding: 20px; border-radius: 18px; }
  .co-item img { width: 48px; height: 48px; }
  .ship-radio { font-size: 0.92rem; }

  /* Cart drawer takes full width on phones */
  .cart-drawer { width: 100vw; max-width: 420px; }
  .drawer-head, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .drawer-items { padding: 8px 16px; }

  /* Dashboards */
  .dash-wrap { padding: 24px 14px 48px; }
  .dash-head h1 { font-size: 1.55rem; }
  .data-table { font-size: 0.83rem; }
  .data-table th, .data-table td { padding: 9px 8px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-link-box { flex-direction: column; }
  .ref-link-box .btn { width: 100%; }

  /* Product modal */
  .modal-overlay { padding: 12px; }
  .modal-info h3 { font-size: 1.2rem; }

  /* Forms: 16px+ prevents iOS auto-zoom on focus */
  .field input, .field select, .field textarea,
  .promo-row input, .ref-link-box input { font-size: 16px; }

  /* Bigger touch targets */
  .qty-stepper button { width: 34px; height: 34px; }
  .icon-btn { width: 44px; height: 44px; }
  .tab-btn { padding: 10px 16px; font-size: 0.9rem; }

  /* Toast */
  .toast { bottom: 14px; font-size: 0.88rem; padding: 12px 18px; max-width: calc(100vw - 32px); }
  .success-inner { padding: 40px 14px; }
}

@media (max-width: 380px) {
  .product-grid { gap: 10px; }
  .product-card .p-body { padding: 10px; }
  .product-card h3 { font-size: 0.84rem; }
  .hero-text h1 { font-size: 1.65rem; }
  .site-header .logo { font-size: 1.02rem; }
}

/* Never allow horizontal scrolling from stray wide content */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img { max-width: 100%; }

/* Newsletter signup band */
.newsletter-band { padding: 40px 0 4px; }
.newsletter-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--pink-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.newsletter-card h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.01em; }
.newsletter-card p { margin: 0; }
.newsletter-form { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.newsletter-form input[type="email"] { flex: 1 1 240px; max-width: 340px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--pink); }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { margin: 12px 0 0 !important; font-weight: 700; color: var(--pink-dark); }

/* ============================================================
   THIN LINE ENGRAVING — dark / thin-blue-line theme overrides
   ============================================================ */
:root {
  --pink: #2e6da4;
  --pink-dark: #1f4e79;
  --pink-soft: #eaf2f9;
  --ink: #18222e;
  --muted: #5d6b7c;
  --line: #dde5ec;
  --img-bg: #e8edf2;
}
::selection { background: #bcd6ee; }
.promo-bar { background: linear-gradient(90deg, #0d1520, #1f4e79 55%, #2e6da4); letter-spacing: .01em; }
.site-header { background: rgba(13, 21, 32, 0.96); border-bottom: 3px solid #2e6da4; }
.site-header .logo, .site-header .logo-word { color: #fff; }
.site-header .main-nav a { color: #dbe7f3; }
.site-header .main-nav a:hover { color: #fff; }
.hamburger span { background: #fff; }
.cart-btn { background: #2e6da4; box-shadow: 0 6px 16px rgba(13,21,32,.35); }
.cart-count { background: #fff; color: #1f4e79; }
.hero { background: linear-gradient(160deg, #0d1520 0%, #16263a 70%, #1f4e79 130%); color: #eaf2f9; padding: 72px 0 64px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { color: #b9cddd; max-width: 56ch; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #7fb0d8; margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-badge-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 28px; display: grid; gap: 8px; max-width: 340px; margin-left: auto;
}
.hero-badge-card .hbc-line { height: 6px; background: #3a7bd5; border-radius: 3px; margin-bottom: 8px; }
.hero-badge-card strong { color: #fff; letter-spacing: .12em; }
.hero-badge-card span { color: #9fc3e5; font-size: .92rem; }
.shop-section { padding: 48px 0 8px; }
.shop-section.alt { background: #f2f6fa; }
.shop-section h2 { margin-bottom: 4px; }
.search-box { position: relative; max-width: 560px; margin: 18px 0 14px; }
.search-box input {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; background: #fff;
}
.search-box input:focus { outline: none; border-color: #2e6da4; box-shadow: 0 0 0 3px rgba(46,109,164,.15); }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; z-index: 60;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px rgba(24,24,32,.14); overflow: hidden;
}
.search-suggest button {
  display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: none;
  background: #fff; font: inherit; cursor: pointer; text-align: left;
}
.search-suggest button:hover { background: #f2f6fa; }
.search-suggest img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.search-suggest span { flex: 1; font-size: .9rem; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.cat-tab {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px;
  font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); font-size: .93rem;
}
.cat-tab:hover { border-color: #2e6da4; }
.cat-tab.active { background: #0d1520; color: #fff; border-color: #0d1520; }
.filter-bar { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-item { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--muted); }
.filter-item select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.filter-item input[type="range"] { accent-color: #2e6da4; }
.filter-item.check input { width: auto; accent-color: #2e6da4; }
.product-card { position: relative; }
.product-card .p-cat { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #2e6da4; margin-bottom: 4px; }
.badge-out { background: #3c4756 !important; }
.compare-at { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: .9em; margin-left: 6px; }
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.94); font-size: 1.1rem; cursor: pointer; color: #8a97a5;
}
.wish-btn.on { color: #c0392b; border-color: #e6b0aa; }
.product-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.stock-note { font-weight: 800; font-size: .88rem; color: #1e7a45; margin: 4px 0; }
.stock-note.low { color: #b07d10; }
.stock-note.out { color: #a93226; }
.d-meta { font-size: .82rem; color: var(--muted); }
.notify-form { display: flex; gap: 8px; margin: 8px 0; }
.notify-form input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.reviews-block { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.review { padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.review p { margin: 4px 0 0; }
.review-title { font-weight: 800; }
.verified { background: #e9f8ef; color: #1e7a45; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.related-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.related-item { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 8px; cursor: pointer; font: inherit; text-align: left; display: grid; gap: 4px; }
.related-item img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.related-item span { font-size: .8rem; }
.nl-popup-overlay {
  position: fixed; inset: 0; background: rgba(9, 14, 22, .6); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.nl-popup { max-width: 420px; width: 100%; text-align: center; position: relative; }
.nl-popup h3 { font-size: 1.6rem; margin: 6px 0 8px; letter-spacing: .02em; }
.nl-popup input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 10px; }
.contact-form { display: grid; gap: 12px; max-width: 640px; margin: 18px auto 0; text-align: left; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.modal-info .field select, .modal-info .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.site-footer { background: #0d1520; color: #b9cddd; }
.site-footer .muted { color: #7d93ab; }
.site-footer .footer-brand { color: #fff; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; }
.footer-links a { color: #b9cddd; text-decoration: none; font-weight: 700; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.newsletter-band { background: #eef3f8; }
.pill-processing, .pill-packed { background: #e8f0fe; color: #1f4e79; }
.pill-delivered { background: #e9f8ef; color: #1e7a45; }
.pill-refunded, .pill-partially_refunded { background: #fdecec; color: #a93226; }
.pill-pending { background: #f1f1f4; color: #5d6b7c; }
.content-page h3 { margin-top: 22px; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
@media (max-width: 640px) {
  .hero-badge-card { margin: 20px 0 0; }
  .btn-ghost { margin: 10px 0 0; }
  .notify-form { flex-direction: column; }
}

/* v2 product gallery thumbnails */
.modal-gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gal-thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; cursor: pointer; width: 56px; height: 56px; }
.gal-thumb.on { border-color: #2e6da4; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
