/* ============================================================
   PAWLY — Product showcase site
   Palette: warm coral (#D85A30) + forest green (#0F6E56)
   All colors are set via CSS variables for easy rebranding.
   ============================================================ */

:root {
  --coral: #D85A30;
  --coral-dark: #B9461F;
  --coral-light: #FBEDE7;
  --green: #0F6E56;
  --green-dark: #0A4D3C;
  --green-light: #E7F2EE;
  --ink: #24201D;
  --muted: #6E6660;
  --line: #E8E2DB;
  --paper: #FFFFFF;
  --cream: #FBF8F4;
  --amber: #BA7517;
  --shadow: 0 8px 28px rgba(36, 32, 29, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.4px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--coral); }
.nav-cta {
  background: var(--coral); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600 !important; transition: background .15s;
}
.nav-cta:hover { background: var(--coral-dark) !important; color: #fff !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  border: 2px solid transparent; text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 10px 22px rgba(216,90,48,.28); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 88px 24px 96px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--coral); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.1; margin: 0 0 20px;
  letter-spacing: -1.5px; font-weight: 700;
}
.hero h1 .accent { color: var(--coral); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.hero-art {
  position: relative; background: var(--green-light); border-radius: 30px;
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.hero-art img { width: 82%; height: 82%; object-fit: contain; border-radius: 20px; }
.hero-badge {
  position: absolute; background: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.hero-badge.one { top: 24px; left: -18px; }
.hero-badge.two { bottom: 26px; right: -16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- Trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner {
  max-width: var(--max); margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
}
.trust-item strong { display: block; font-size: 22px; color: var(--green); }
.trust-item span { font-size: 14px; color: var(--muted); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1px; margin: 0 0 12px; }
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px; background: var(--coral); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.badge.green { background: var(--green); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.card-title { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.3px; }
.card-desc { font-size: 14px; color: var(--muted); margin: 0 0 18px; flex: 1; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 21px; font-weight: 700; color: var(--ink); }
.card .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Features band ---------- */
.features { background: var(--green); color: #fff; }
.features .section-head h2 { color: #fff; }
.features .section-head p { color: rgba(255,255,255,.72); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.15);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--coral-light); }
.nl-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.nl-inner h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.7px; }
.nl-inner p { color: var(--muted); margin: 0; }
.nl-form { display: flex; gap: 10px; }
.nl-form input {
  flex: 1; padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-family: var(--font); outline: none; min-width: 0;
}
.nl-form input:focus { border-color: var(--coral); }
.nl-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 0;
  font-size: 17px; font-weight: 600; font-family: var(--font); color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: '+'; font-size: 24px; color: var(--coral); font-weight: 400; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 22px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--cream); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 10px; letter-spacing: -1px; }
.page-hero p { font-size: 17px; color: var(--muted); margin: 0; max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--coral); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); color: var(--muted);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--coral); color: var(--coral); }
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Product detail ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail-media { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; aspect-ratio: 1/1; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.detail-thumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.detail-thumb:hover { border-color: var(--coral); }
.detail-thumb.active { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(255,107,0,.15); }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 14px; letter-spacing: -1px; }
.detail-price { font-size: 30px; font-weight: 700; color: var(--coral); margin-bottom: 20px; }
.detail-desc { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.detail-features { list-style: none; padding: 0; margin: 0 0 28px; }
.detail-features li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; }
.detail-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 14px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; text-align: right; }

/* ---------- About / Contact ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: 28px; margin: 36px 0 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 20px; }
.contact-card p { color: var(--muted); margin: 0 0 20px; }
.contact-method { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-method .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--coral-light);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.contact-method strong { display: block; font-size: 15px; }
.contact-method span { font-size: 14px; color: var(--muted); word-break: break-all; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--coral); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 12px; letter-spacing: -0.8px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 0 28px; }
.cta-band .btn { background: #fff; color: var(--coral); }
.cta-band .btn:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: #1E1B19; color: rgba(255,255,255,.65); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge.one { left: 8px; }
  .hero-badge.two { right: 8px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
         flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px;
         border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .menu-toggle { display: block; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 16px; }
  .nl-inner { grid-template-columns: 1fr; padding: 44px 24px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

/* ============================================================
   CATALOG ADD-ON — added for multi-product (1000+ SKU) catalog
   Search / sidebar filters / sort / pagination / inquiry cart
   ============================================================ */

/* ---- Search bar in header ---- */
.header-search { display: flex; align-items: center; gap: 6px; }
.search-box {
  display: flex; align-items: center; background: var(--cream);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--coral); }
.search-box input {
  border: 0; background: transparent; outline: none; padding: 9px 4px;
  font-size: 14px; font-family: var(--font); width: 200px; min-width: 0; color: var(--ink);
}
.search-box input::placeholder { color: #A9A19A; }
.search-box button {
  border: 0; background: var(--green); color: #fff; cursor: pointer;
  padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  font-family: var(--font); white-space: nowrap;
}
.search-box button:hover { background: var(--green-dark); }

/* ---- Category grid on home ---- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s;
  display: block;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--coral); box-shadow: var(--shadow); }
.cat-tile .ic {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-size: 30px; background: var(--cream);
}
.cat-tile strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cat-tile span { font-size: 12px; color: var(--muted); }
.cat-tile .count { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--coral); font-weight: 600; }

/* ---- Catalog layout: sidebar + content ---- */
.catalog-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalog-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-title-row h1 { margin: 0; font-size: 30px; letter-spacing: -0.8px; }
.catalog-title-row .count { color: var(--muted); font-size: 14px; }

/* ---- Sidebar filters ---- */
.sidebar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto;
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sidebar-head h3 { margin: 0; font-size: 16px; }
.sidebar-head button { background: none; border: 0; color: var(--coral); cursor: pointer; font-size: 12px; font-family: var(--font); }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.filter-opt {
  display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer;
  font-size: 14px; color: var(--ink);
}
.filter-opt input { width: 16px; height: 16px; accent-color: var(--coral); cursor: pointer; }
.filter-opt .num { margin-left: auto; color: var(--muted); font-size: 12px; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-family: var(--font); outline: none;
}
.range-row input:focus { border-color: var(--coral); }
.range-row span { color: var(--muted); }
.sidebar-toggle { display: none; width: 100%; padding: 12px; margin-bottom: 14px; }

/* ---- Sort bar ---- */
.sort-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--cream); border-radius: 10px; padding: 10px 14px; margin-bottom: 20px;
}
.sort-bar label { font-size: 13px; color: var(--muted); }
.sort-bar select {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: var(--font); background: #fff; cursor: pointer; outline: none;
}
.sort-bar .view-toggle { margin-left: auto; display: flex; gap: 6px; }
.view-toggle button {
  border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 8px;
  padding: 6px 11px; font-size: 15px; font-family: var(--font); color: var(--muted);
}
.view-toggle button.active { border-color: var(--green); color: var(--green); background: var(--green-light); }

/* ---- Product grid density + list view ---- */
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-grid.list-view { grid-template-columns: 1fr; }
.list-view .card { flex-direction: row; }
.list-view .card-media { width: 220px; aspect-ratio: 1 / 1; flex-shrink: 0; }
.list-view .card-body { padding: 20px 24px; }
.list-view .card-desc { max-width: 640px; }
.card-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.card-meta b { color: var(--ink); font-weight: 600; }
.card-actions { display: flex; gap: 8px; }
.btn-cart {
  background: var(--green-light); color: var(--green); border: 2px solid transparent;
  padding: 10px 14px; font-size: 14px;
}
.btn-cart:hover { background: var(--green); color: #fff; }
.btn-cart.added { background: var(--green); color: #fff; }
.price small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; font-family: var(--font); color: var(--ink);
}
.pagination button:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.pagination button.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .dots { color: var(--muted); padding: 0 4px; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ic { font-size: 46px; margin-bottom: 14px; opacity: .6; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); }

/* ---- Inquiry cart floating button + drawer ---- */
.cart-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  background: var(--green); color: #fff; border: 0; border-radius: 999px;
  padding: 15px 24px; font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; box-shadow: 0 10px 30px rgba(15,110,86,.32); display: flex; align-items: center; gap: 9px;
}
.cart-fab:hover { background: var(--green-dark); }
.cart-fab .badge-num {
  background: var(--coral); border-radius: 999px; min-width: 22px; height: 22px;
  display: grid; place-items: center; font-size: 12px; padding: 0 6px;
}
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(36,32,29,.42); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: #fff; z-index: 160; transform: translateX(100%); transition: transform .26s ease;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 20px; }
.cart-head button { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 66px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--cream); }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info strong { display: block; font-size: 14px; line-height: 1.35; }
.cart-line .info span { font-size: 12px; color: var(--muted); }
.cart-line .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px; }
.cart-line .remove:hover { color: var(--coral); }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-foot .btn { width: 100%; }
.cart-foot p { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.cart-email-row { margin-bottom: 14px; }
.cart-email-row input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 14px; color: var(--ink);
}
.cart-email-row input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,0,.12); }
.cart-email-row small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.cart-email-row .cart-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cart-email-row textarea,
.cart-email-row .cart-form-grid input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 14px; color: var(--ink);
  resize: vertical;
}
.cart-email-row textarea:focus,
.cart-email-row .cart-form-grid input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,0,.12); }
.inq-success, .inq-fallback { text-align: center; padding: 40px 20px; }
.inq-success .ic, .inq-fallback .ic { font-size: 44px; margin-bottom: 12px; }
.inq-success h3, .inq-fallback h3 { margin: 0 0 10px; font-size: 20px; }
.inq-success p, .inq-fallback p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.inq-success .btn, .inq-fallback .btn { width: 100%; display: block; }

/* ---- Product detail photo note + source note ---- */
.gallery-note { font-size: 13px; color: var(--muted); margin: 12px 2px 0; line-height: 1.6; }
.gallery-note a { color: var(--coral); font-weight: 600; }
.gallery-note a:hover { text-decoration: underline; }
.source-note { margin-top: 22px; padding: 14px 16px; background: var(--cream); border-radius: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.source-note a { color: var(--coral); font-weight: 600; }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; display: none; margin-bottom: 18px; }
  .sidebar.open { display: block; }
  .sidebar-toggle { display: block; }
  .header-search { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .list-view .card { flex-direction: column; }
  .list-view .card-media { width: 100%; aspect-ratio: 1/1; }
}
