/* =========================
   GLOBAL RESET + VARIABLES
========================= */

:root{
  --text:#0f172a;
  --muted:#64748b;
  --blue:#1f5eff;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:#ffffff;
  color:var(--text);
}

/* =========================
   TOP BAR
========================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background:#ffffff;
  border-bottom:1px solid var(--border);
  padding:14px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brandLogo{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid var(--border);
  background:#fff;
}

.brandtext .title{
  font-weight:900;
  font-size:20px;
}

.brandtext .subtitle{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  gap:18px;
}

.navlink{
  text-decoration:none;
  font-weight:700;
  color:var(--text);
}

.navlink:hover{color:var(--blue);}

.right{
  display:flex;
  align-items:center;
  gap:14px;
}

.igTop{
  text-decoration:none;
  font-weight:800;
  color:var(--text);
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:12px;
}

.igTop:hover{color:var(--blue);}

/* =========================
   LAYOUT (WIDE, WHITE)
========================= */

.layout{
  max-width:1800px;
  margin:0 auto;
  padding:24px 28px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.sidebar{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  position: sticky;
  top: 86px;
  height: calc(100vh - 110px);
  overflow:auto;
  background:#fff;
}

.content{min-height: calc(100vh - 110px);}

/* =========================
   SEARCH + SORT
========================= */

.searchbox{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:12px;
  width:100%;
  background:#fff;
}

.searchbox input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
}

.searchicon{color:var(--muted);}

.contentTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
  gap: 14px;
}

.count{font-weight:900; color: #0f172a;}

.sort{
  display:flex;
  align-items:center;
  gap:10px;
}

.sort select{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
}

/* =========================
   FACETS
========================= */

.facet{margin-top:16px; border-top:1px solid var(--border); padding-top:16px;}
.facetHeader{display:flex; align-items:center; justify-content:space-between;}
.facetTitle{font-weight:900; font-size:13px;}
.facetToggle{border:1px solid var(--border); background:#fff; padding:4px 8px; border-radius:10px; cursor:pointer;}
.facetBody{margin-top:10px; display:flex; flex-direction:column; gap:10px;}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
}

.badgeCount{
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
}

.actions{margin-top:16px; padding-top:16px; border-top:1px solid var(--border);}
.btn{
  width:100%;
  border:none;
  background: var(--blue);
  color:white;
  font-weight:900;
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.btn:hover{filter:brightness(.97)}
.hint{margin-top:10px; font-size:12px; color:var(--muted); line-height:1.35;}
code{background:#f1f5ff; border:1px solid #dbe3ff; padding:2px 6px; border-radius:8px;}

/* =========================
   GRID (BROWSE PAGE)
========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:22px;
}

.card{
  text-decoration:none;
  color:inherit;
}

.thumb{
  background:transparent;
  aspect-ratio:3 / 4;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  padding:0;         /* prevents edge crop look */
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:contain;   /* show whole card on browse */
}

.cardBody{
  padding-top:12px;
}

.cardTitle{
  font-weight:900;
  font-size:20px;
  line-height:1.25;
  text-transform:uppercase;
}

.cardSub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.pills{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.pill{font-size:12px; font-weight:800; border:1px solid var(--border); padding:4px 10px; border-radius:999px; background:#fff;}

.price{
  margin-top:14px;
  font-weight:900;
  font-size:20px;
  color:#1f3f88;
}

.empty{
  margin-top: 20px;
  border: 1px dashed var(--border);
  padding: 18px;
  border-radius: 16px;
  color: var(--muted);
}

/* =========================
   DETAIL PAGE
========================= */

.detailTop{margin-bottom:18px;}
.backlink{
  text-decoration:none;
  font-weight:700;
  color:var(--blue);
}

/* === PRODUCT LAYOUT === */

.product{
  display:grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap:56px;
  max-width:1760px;
  margin:0 auto;
}

/* =========================
   MEDIA (IMAGES)
========================= */

.media{
  display:grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap:18px;
  width:100%;
  min-width:0;
}

.thumbs{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.thumbBtn{
  width:132px;
  height:132px;
  border:1px solid var(--border);
  background:#ffffff;
  padding:12px;              /* breathing room */
  cursor:pointer;
}

.thumbBtn img{
  width:100%;
  height:100%;
  object-fit:contain;        /* SHOW WHOLE CARD */
  display:block;
}

.thumbBtn[aria-current="true"]{
  outline:2px solid var(--blue);
}

.mainImgWrap{
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  min-height:620px;
  border:1px solid var(--border);
  width:100%;
  min-width:0;
}

.mainImgWrap img{
  width:100%;
  height:auto;
  max-height:78vh;      /* tall enough, but keeps it wide */
  object-fit:contain;
}

/* =========================
   INFO PANEL
========================= */

.info{
  max-width:520px;
}

.h1{
  font-size:28px;
  font-weight:900;
  line-height:1.15;
  margin:0 0 10px;
}

.h2{
  font-size:14px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:10px;
}

.bigPrice{
  font-size:26px;
  font-weight:900;
  color:#1f3f88;
  margin-bottom:18px;
}

/* =========================
   NOTICE / TRADE CTA
========================= */

.notice{
  border:1px solid var(--border);
  padding:16px;
  border-radius:14px;
  background:#f8fafc;
  font-size:14px;
  line-height:1.45;
}

.notice ul{
  margin:10px 0 0 18px;
}

.notice li{
  margin:6px 0;
}

/* Quick Instagram contact button */
.quickContactRow{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

.quickContactBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  border:1px solid var(--border);
  background: var(--blue);
  color:#ffffff;
}

.quickContactBtn:hover{filter:brightness(.97)}

.quickContactBtn.ghost{
  background:#ffffff;
  color: var(--text);
}

/* =========================
   DETAILS TABLE
========================= */

.kv{
  margin-top:22px;
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:10px;
}

.k{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
}

.v{
  font-size:13px;
  font-weight:700;
}

/* =========================
   FIXED SOCIALS DOCK
========================= */

.socialDock{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.socialIcon{
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .08s ease;
}

.socialIcon:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.socialIcon img{
  width: 22px;
  height: 22px;
  display:block;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 980px){
  .layout{grid-template-columns:1fr; padding: 16px;}
  .sidebar{position:relative; top:0; height:auto;}
  .product{grid-template-columns:1fr; gap:28px;}
  .media{grid-template-columns:1fr;}
  .thumbs{flex-direction:row; overflow-x:auto;}
  .thumbBtn{width:86px; height:86px; padding:8px; flex: 0 0 auto;}
  .mainImgWrap{min-height:420px;}
  .info{max-width:none;}
  .h1{font-size:22px;}
}


/* ====== DETAIL MODE: remove sidebar column so product pages are FULL WIDTH ====== */
body.detailMode .layout{
  grid-template-columns: 1fr;
}
body.detailMode .sidebar{ display:none; }

/* =========================
   FAQ (Contact-style card + accordions)
========================= */

.faqCardSimple{
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.faqHeaderSimple{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faqTitleSimple{
  font-weight: 950;
  font-size: 22px;
  margin-bottom: 2px;
}

.faqIntroSimple{
  color: var(--muted);
  line-height: 1.6;
  font-weight: 750;
  font-size: 13px;
}

.faqActionsSimple{
  margin-top: 4px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faqListSimple{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.faqGroupTitle{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Accordion rows (the “Shopify-like” toggles) */
.faqQ{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}

.faqQ:hover{
  border-color: #d7dce3;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transform: translateY(-1px);
}

.faqQ summary{
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  user-select: none;
}

.faqQ summary::-webkit-details-marker{ display:none; }

.faqQ summary::after{
  content: "▾";
  opacity: .6;
  transition: transform .15s ease, opacity .15s ease;
}

.faqQ[open] summary{
  background: #f8fafc;
}

.faqQ[open] summary::after{
  transform: rotate(180deg);
  opacity: .85;
}

.faqA{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  background: #ffffff;
}

.faqA ul{
  margin: 8px 0 0 18px;
}

.faqA li{
  margin: 4px 0;
}
