/* =========================================================
   CrazyOffer.in — B2B Marketplace
   Brand palette taken from the logo: Black / Red / White
   ========================================================= */
:root {
  --brand-black: #111111;
  --brand-black-2: #1c1c1c;
  --brand-red: #e1141b;
  --brand-red-dark: #b80f15;
  --brand-red-soft: #fdeced;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --bg: #f6f6f6;
  --card: #ffffff;
  --whatsapp: #1fa855;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.04);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand-black); line-height: 1.25; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.link { color: var(--brand-red); font-weight: 500; }
.link-arrow { color: var(--brand-black); font-weight: 600; font-size: 13px; border-bottom: 2px solid var(--brand-red); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand-red); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 6px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; transition: .2s; width: 100%; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); }
.btn-outline { border: 1.5px solid var(--brand-black); color: var(--brand-black); background: #fff; }
.btn-outline:hover { background: var(--brand-black); color: #fff; }
.btn-whatsapp { border: 1.5px solid var(--whatsapp); color: var(--whatsapp); background: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp); color: #fff; }
.btn-whatsapp .fill { fill: currentColor; stroke: none; }
.btn-ghost { color: var(--ink-2); height: 36px; font-size: 13px; }
.btn-ghost:hover { color: var(--brand-red); }
.btn-dark { background: var(--brand-black); color: #fff; height: 38px; font-size: 13px; }
.btn-dark:hover { background: var(--brand-red); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-top: 4px solid var(--brand-red); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-top { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { height: 48px; width: auto; mix-blend-mode: multiply; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; height: 44px; border: 1.5px solid var(--brand-black); border-radius: 30px; padding: 0 4px 0 16px; }
.search .ico { color: var(--muted); width: 18px; }
.search input { flex: 1; border: 0; outline: 0; padding: 0 10px; font: inherit; font-size: 13px; background: transparent; }
.search button { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-red); color: #fff; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.header-links { display: flex; gap: 24px; margin-left: auto; }
.header-links a { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink); }
.header-links a:hover { color: var(--brand-red); }
.header-links .login { padding-left: 20px; border-left: 1px solid var(--line); }
.menu-toggle { display: none; }

.header-nav { background: var(--brand-black); color: #fff; }
.nav-inner { display: flex; align-items: center; height: 46px; }
.nav-list { display: flex; list-style: none; gap: 34px; height: 100%; }
.nav-list a { display: flex; align-items: center; gap: 8px; height: 100%; font-size: 13.5px; font-weight: 500; border-bottom: 3px solid transparent; }
.nav-list a:hover { border-color: var(--brand-red); }
.nav-list .all-cat { font-weight: 600; background: var(--brand-red); padding: 0 16px; margin-left: -24px; border: 0; }
.caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.verified-badge { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.verified-badge svg { fill: var(--brand-red); stroke: var(--brand-red); }
.verified-badge .tick { stroke: #fff; fill: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding: 16px 0; }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ---------- PDP hero ---------- */
.pdp-hero { display: grid; grid-template-columns: 1.45fr 1.1fr 0.9fr 0.85fr; gap: 24px; align-items: start; }

.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { position: relative; border: 2px solid transparent; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: #eee; }
.thumbs button.active { border-color: var(--brand-red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); font-size: 18px; }
.main-image { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #eee; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.tag-chip { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; align-items: center; background: #fff; padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); z-index: 2; }
.tag-chip svg { width: 15px; height: 15px; color: var(--brand-red); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.gal-nav:hover { background: var(--brand-red); color: #fff; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.view-larger { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 6px; align-items: center; background: #fff; padding: 6px 10px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.view-larger svg { width: 15px; height: 15px; }

.product-info h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.crumbs-inline { font-size: 12px; color: var(--muted); }
.crumbs-inline span { margin: 0 8px; color: var(--line); }
.rating { display: flex; gap: 6px; align-items: center; margin: 10px 0 14px; font-size: 12.5px; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 15px; }
.stars .half { background: linear-gradient(90deg, #f5a623 50%, #ddd 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.desc { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights > div { text-align: center; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.highlights > div + div { border-left: 1px solid var(--line); }
.hl-ico { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-red-soft); color: var(--brand-red); }
.hl-ico svg { width: 22px; height: 22px; }
.key-specs > div { display: grid; grid-template-columns: 140px 1fr; padding: 7px 0; font-size: 13px; }
.key-specs dt { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.key-specs dt svg { width: 17px; height: 17px; color: var(--brand-red); }
.key-specs dd { color: var(--ink-2); }
.key-specs dd::before { content: ": "; }

.pricing-card, .inquiry-card { padding: 18px; }
.pricing-card h3, .inquiry-card h3 { font-size: 15px; margin-bottom: 12px; }
.pricing-card h3 small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 11.5px; }
.tiers { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 13px; }
.tiers tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.tiers tr:last-child { border-bottom: 0; }
.tiers td { padding: 10px 12px; white-space: nowrap; }
.tiers td:last-child { text-align: right; font-family: var(--font-head); font-weight: 700; }
.tiers tr.active { background: var(--brand-red-soft); }
.tiers tr.active td:last-child { color: var(--brand-red); }
.tiers .best { color: var(--brand-red); font-size: 12.5px; }
.moq { margin: 14px 0 10px; font-size: 13px; font-weight: 600; }
.moq strong { color: var(--brand-red); }
.meta-list { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.meta-list li { display: flex; gap: 10px; font-size: 12.5px; }
.meta-list svg { width: 18px; height: 18px; color: var(--ink-2); margin-top: 1px; }
.meta-list span { display: block; color: var(--muted); font-size: 11.5px; }
.cta-stack { display: grid; gap: 10px; }

.inquiry-card form { display: grid; gap: 12px; margin-top: 12px; }
.inquiry-card label { display: block; font-size: 12px; font-weight: 500; }
.req { color: var(--brand-red); }
.inquiry-card input, .inquiry-card select, .inquiry-card textarea { margin-top: 5px; width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; font: inherit; font-size: 12.5px; font-weight: 400; background: #fff; outline: 0; transition: border .15s; }
.inquiry-card textarea { resize: vertical; }
.inquiry-card input:focus, .inquiry-card select:focus, .inquiry-card textarea:focus { border-color: var(--brand-black); }
.inquiry-card .invalid { border-color: var(--brand-red); background: #fff8f8; }
.hint { display: block; margin-top: 4px; font-weight: 400; font-size: 11px; color: var(--muted); }
.form-msg { font-size: 12.5px; text-align: center; }
.form-msg.ok { color: var(--whatsapp); }
.form-msg.err { color: var(--brand-red); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; background: var(--brand-black); color: #fff; border-radius: var(--radius); padding: 18px 0; }
.trust-strip > div { display: flex; gap: 14px; align-items: center; justify-content: center; }
.trust-strip > div + div { border-left: 1px solid #333; }
.trust-strip svg { width: 30px; height: 30px; color: var(--brand-red); }
.trust-strip strong { display: block; font-family: var(--font-head); font-size: 13.5px; }
.trust-strip span { font-size: 11.5px; color: #aaa; }

/* ---------- Tabs & supplier ---------- */
.details-wrap { padding: 0 0 24px; }
.tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 16px 18px; font-size: 13.5px; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--brand-black); }
.tab.active { color: var(--brand-black); font-weight: 600; border-color: var(--brand-red); }
.details-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; padding: 24px 20px 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.tab-panel h2 { font-size: 17px; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { width: 32%; text-align: left; font-weight: 500; padding: 10px 6px; }
.spec-table td { color: var(--ink-2); padding: 10px 6px; }
.spec-table em { color: var(--muted); font-style: normal; font-size: 12px; margin-left: 4px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { padding-left: 26px; position: relative; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-red-soft); color: var(--brand-red); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.supplier-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.supplier-card h3 { font-size: 15px; margin-bottom: 14px; }
.supplier-head { display: flex; gap: 14px; margin-bottom: 16px; }
.supplier-logo { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-black); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; border: 3px solid var(--brand-red); flex-shrink: 0; }
.supplier-head h4 { font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v-pill { font-family: var(--font-body); background: var(--brand-red-soft); color: var(--brand-red); font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.supplier-head p { font-size: 12.5px; }
.loc { display: flex; gap: 6px; align-items: center; margin: 6px 0 2px; }
.loc svg { width: 15px; height: 15px; color: var(--brand-red); }
.supplier-stats { display: grid; gap: 10px; margin-bottom: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.supplier-stats > div { display: grid; grid-template-columns: 1fr 1.2fr; font-size: 12.5px; gap: 6px; }
.supplier-stats dt { display: flex; gap: 8px; align-items: center; }
.supplier-stats dt svg { width: 16px; height: 16px; color: var(--ink-2); }
.supplier-stats dd { color: var(--ink-2); }
.supplier-stats em { color: var(--muted); font-style: normal; font-size: 11px; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 28px; align-items: center; margin: 28px 0; overflow: hidden; }
.story img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.story-text h2 { font-size: 20px; margin-bottom: 10px; }
.story-text h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--brand-red); margin-top: 8px; }
.story-text p { color: var(--ink-2); font-size: 13px; line-height: 1.75; margin-bottom: 14px; }
.story-points { list-style: none; display: grid; gap: 18px; border-left: 1px solid var(--line); padding: 0 24px; }
.story-points li { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.story-points svg { width: 26px; height: 26px; color: var(--brand-red); }

/* ---------- Logistics ---------- */
.logistics { padding: 18px 20px; }
.logistics h2 { font-size: 16px; margin-bottom: 16px; }
.logistics-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.logistics-grid > div { display: flex; gap: 12px; padding: 0 16px; }
.logistics-grid > div:first-child { padding-left: 0; }
.logistics-grid > div + div { border-left: 1px solid var(--line); }
.logistics-grid svg { width: 26px; height: 26px; color: var(--brand-red); }
.logistics-grid strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.logistics-grid span { font-size: 12px; color: var(--ink-2); }

/* ---------- Product & supplier grids ---------- */
.similar { margin: 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; transition: .2s; }
.p-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #d5d5d5; }
.p-img { position: relative; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #eee; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.wish { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wish svg { width: 14px; height: 14px; }
.wish.on svg { fill: var(--brand-red); stroke: var(--brand-red); }
.p-body { padding: 10px 4px 4px; }
.p-body h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.p-body .cat { font-size: 11.5px; color: var(--muted); }
.p-body .cat span { margin: 0 6px; color: var(--line); }
.p-body .moq-s { font-size: 11.5px; color: var(--ink-2); margin: 2px 0; }
.p-body .price { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.p-body .price small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 11.5px; }

.supplier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.s-card .top { display: flex; gap: 12px; align-items: center; }
.s-card .supplier-logo { width: 46px; height: 46px; font-size: 13px; border-width: 2px; }
.s-card h4 { font-size: 14px; }
.s-card p { font-size: 12px; color: var(--muted); }
.s-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.s-card .tags span { font-size: 11px; background: var(--bg); padding: 3px 8px; border-radius: 20px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-black); color: #fff; margin-top: 40px; border-top: 4px solid var(--brand-red); }
.footer-inner { display: flex; align-items: center; gap: 40px; padding: 34px 24px; }
.footer-brand { display: grid; gap: 4px; padding-right: 40px; border-right: 1px solid #333; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 32px; letter-spacing: -0.5px; line-height: 1; }
.wordmark span { color: var(--brand-red); }
.tagline { font-family: var(--font-head); font-size: 10.5px; letter-spacing: 3px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.tagline i { color: var(--brand-red); font-style: normal; }
.footer-links { display: flex; gap: 32px; font-size: 13px; }
.footer-links a:hover { color: var(--brand-red); }
.footer-note { margin-left: auto; font-style: italic; font-size: 13px; color: #ccc; text-align: right; padding-left: 40px; border-left: 1px solid #333; }
.footer-bottom { border-top: 1px solid #262626; padding: 14px 24px; font-size: 12px; color: #888; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.open { display: grid; }
.modal-box { position: relative; background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; padding: 24px; max-height: 90vh; overflow: auto; }
.modal-box img { width: 100%; border-radius: 6px; }
.modal-box h3 { margin-bottom: 8px; }
.modal-box p { color: var(--ink-2); margin-bottom: 6px; }
.modal-close { position: absolute; top: 6px; right: 12px; font-size: 26px; color: var(--muted); }
.modal-close:hover { color: var(--brand-red); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .pdp-hero { grid-template-columns: 1.2fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .header-links a:not(.login) { display: none; }
  .nav-list li:nth-child(n+6) { display: none; }
}
@media (max-width: 900px) {
  .details-grid, .story { grid-template-columns: 1fr; }
  .story-points { border-left: 0; padding: 0 20px 20px; }
  .story-text { padding: 0 20px; }
  .logistics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .logistics-grid > div { padding: 0 !important; border: 0 !important; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust-strip > div { border: 0 !important; justify-content: flex-start; padding-left: 20px; }
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand, .footer-note { border: 0; padding: 0; margin: 0; text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .verified-badge { display: none; }
}
@media (max-width: 680px) {
  .container { padding: 0 14px; }
  .header-top { gap: 12px; height: auto; padding: 10px 14px; flex-wrap: wrap; }
  .logo img { height: 34px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .header-links { display: none; }
  .menu-toggle { display: grid; margin-left: auto; }
  .nav-list { overflow-x: auto; gap: 22px; }
  .nav-list .all-cat { margin-left: -14px; }
  .pdp-hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 60px; }
  .product-grid, .supplier-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-strip, .logistics-grid { grid-template-columns: 1fr; }
}
