/* =========================================================
   OMETONGPLACE — STYLESHEET
   Accent: #FF7431 · Glass (Apple-style) UI · Minimal chrome
========================================================= */

:root {
  --accent: #FF7431;
  --accent-dark: #E05A18;
  --accent-soft: rgba(255, 116, 49, .14);
  --ink: #15181F;
  --ink-soft: #666E7A;
  --inverse-ink: #fff;
  --line: rgba(21, 24, 31, .08);
  --bg-color: #F4F5F7;

  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-strong: rgba(255, 255, 255, .75);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-blur: 18px;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(21, 24, 31, .06);
  --shadow-md: 0 14px 40px rgba(21, 24, 31, .10);
  --shadow-glow: 0 10px 30px rgba(255, 116, 49, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* tight side gutters as requested */
  --gutter: clamp(14px, 3vw, 40px);
}

[data-theme="dark"] {
  --ink: #F4F5F7;
  --ink-soft: #A0AAB5;
  --inverse-ink: #15181F;
  --line: rgba(255, 255, 255, 0.1);

  --glass-bg: rgba(21, 24, 31, 0.55);
  --glass-bg-strong: rgba(21, 24, 31, 0.75);
  --glass-border: rgba(255, 255, 255, 0.15);
  --bg-color: #0B0D12;
}

[data-theme="dark"] .grid-toolbar select {
  background: var(--glass-bg-strong);
  color: var(--ink);
  color-scheme: dark;
}

[data-theme="dark"] .p-fav {
  background: rgba(21, 24, 31, 0.75);
}

[data-theme="dark"] .p-fav:hover {
  background: rgba(41, 44, 51, 0.9);
}

[data-theme="dark"] .p-add {
  background: var(--glass-bg-strong);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .p-add:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

[data-theme="dark"] .p-add.added {
  background: #22C55E;
  border-color: #22C55E;
  color: #fff;
}

[data-theme="dark"] .p-spec {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
}

/* .mobile-menu kept a hardcoded white background year-round — fine in
   light mode, but .mobile-menu a inherits var(--ink), which turns
   near-white in dark mode, making every link in the hamburger menu
   unreadable against that white panel. */
[data-theme="dark"] .mobile-menu {
  background: #15181F;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}

button,
input,
select {
  font-family: inherit;
}

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

img,
svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Ambient background blobs (so the glass has something to refract) ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}

.b1 {
  width: 520px;
  height: 520px;
  background: var(--accent);
  top: -160px;
  left: -120px;
}

.b2 {
  width: 420px;
  height: 420px;
  background: #3A6FF7;
  top: 280px;
  right: -140px;
  opacity: .22;
}

.b3 {
  width: 360px;
  height: 360px;
  background: #FFC24D;
  bottom: -140px;
  left: 35%;
  opacity: .25;
}

/* =========================================================
   BAR 1 — utility (Home / Contact / Suppliers / Manufacturers / Auth)
========================================================= */
.bar {
  position: sticky;
  top: 0;
  z-index: 200;
}

.bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 22px;
}

.bar-1 {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}

.bar-1 .bar-inner {
  height: 46px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
}

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

.logo-img-compact {
  display: none;
}

.bar1-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: auto;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 320px; height: 100vh;
  background: #fff; z-index: 1100; padding: 90px 30px 30px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .4s ease;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.bar1-links a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

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

.bar1-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

.link-btn {
  background: none;
  border: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 4px;
  transition: color .2s;
}

.link-btn:hover {
  color: var(--ink);
}

.btn-pill {
  background: var(--ink);
  color: var(--inverse-ink);
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  transition: transform .25s var(--ease), background .25s;
}

.btn-pill:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* =========================================================
   BAR 2 — marketplace (Products / Services / Transactions / Ad / Cart)
========================================================= */
.bar-2 {
  top: 46px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.bar-2 .bar-inner {
  height: 44px;
  gap: 6px;
}

.bar-2 a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s;
}

.bar-2 a svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-2 a:hover {
  background: rgba(21, 24, 31, .05);
  color: var(--ink);
}

.bar-2 a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.bar-2 a.active svg {
  stroke: #fff;
}

#cartLink {
  margin-left: auto;
}

.cart-count {
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: .66rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.bar-2 a.active .cart-count {
  background: #fff;
  color: var(--accent);
}

/* =========================================================
   SEARCH ZONE
========================================================= */
.search-zone {
  padding: 26px var(--gutter) 10px;
  max-width: 1440px;
  margin: 0 auto;
}

.search-glow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  padding: 5px 6px 5px 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.search-glow::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--accent), #FFC24D, #3A6FF7, var(--accent));
  opacity: 0;
  transition: opacity .35s var(--ease);
  animation: spin-ring 5s linear infinite;
}

.search-glow:focus-within::before {
  opacity: .55;
}

@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}

.ai-icon {
  color: var(--accent);
  fill: currentColor;
  flex-shrink: 0;
}

.search-glow input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: .95rem;
  padding: 12px 0;
  color: var(--ink);
}

.search-glow input::placeholder {
  color: var(--ink-soft);
}

.ai-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
  transition: transform .25s var(--ease);
}

.ai-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

/* =========================================================
   SPONSORED ADS — Featured Listing row + Category Spotlight card.
   Both always carry a visible "Sponsored" tag — a promoted result
   should never be mistaken for an organic one.
========================================================= */
.featured-ads-zone {
  padding: 0 var(--gutter) 6px;
  max-width: 1440px;
  margin: 0 auto;
}
.ad-card { text-decoration: none; }
.ad-sponsored-tag {
  background: rgba(21, 24, 31, .78);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
}
.rel-card .ad-sponsored-tag { position: absolute; top: 8px; left: 8px; }

.spotlight-slot { margin-bottom: 18px; }
.spotlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  background: rgba(255, 116, 49, .06);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.spotlight-card:hover { background: rgba(255, 116, 49, .12); }
.spotlight-card strong { font-family: var(--font-display); font-size: .95rem; }
.spotlight-card > span:not(.ad-sponsored-tag):not(.spotlight-cta) { font-size: .82rem; color: var(--ink-soft); }
.spotlight-cta { margin-left: auto; font-weight: 700; color: var(--accent-dark); font-size: .82rem; }

/* =========================================================
   RECENTLY VIEWED
   Same card look as product-details.html's "You may also like" row
   (.rel-card etc.), so a product looks identical whichever page
   shows it.
========================================================= */
.recently-viewed-zone {
  padding: 0 var(--gutter) 6px;
  max-width: 1440px;
  margin: 0 auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.rel-card {
  background: var(--glass-bg-strong, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.rel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(21, 24, 31, .3);
  border-color: var(--accent);
}
.rel-thumb {
  height: 140px;
  margin: 8px 8px 0;
  border-radius: calc(var(--radius-lg, 16px) - 4px);
  overflow: hidden;
  position: relative;
}
.rel-thumb svg, .rel-thumb img { width: 100%; height: 100%; }
.rel-price {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(21, 24, 31, .78);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  padding: 5px 10px;
  border-radius: 999px;
}
.rel-body { padding: 10px 14px 14px; }
.rel-title {
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rel-meta { font-size: .72rem; color: var(--ink-faint); }

/* =========================================================
   CATEGORY LIST
========================================================= */
.categories {
  padding: 18px 0 4px;
  max-width: 1440px;
  margin: 0 auto;
}

.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px var(--gutter) 10px;
  scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}

.cat-ic {
  font-size: .9rem;
}

.cat-chip:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cat-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--inverse-ink);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   PRODUCT GRID
========================================================= */
.grid-zone {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px var(--gutter) 70px;
}

.grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 4px 18px;
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.grid-toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .8rem;
  color: var(--ink);
  color-scheme: light;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
}

.price-filter-label {
  font-size: .78rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.price-filter input {
  width: 58px;
  border: none;
  background: none;
  font-size: .8rem;
  color: var(--ink);
  font-weight: 600;
  padding: 2px 0;
}

.price-filter input::-webkit-outer-spin-button,
.price-filter input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-filter input:focus {
  outline: none;
}

.moq-filter input {
  width: 72px;
}

.verified-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.verified-filter:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.verified-filter input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.verified-filter:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 116, 49, .08);
  color: var(--ink);
}

[data-theme="dark"] .moq-filter,
[data-theme="dark"] .verified-filter {
  background: var(--glass-bg-strong);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .verified-filter:has(input:checked) {
  background: rgba(255, 116, 49, .16);
  border-color: var(--accent);
}

.price-filter-sep {
  color: var(--ink-faint);
}

.clear-filters-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
}

.clear-filters-btn:hover {
  text-decoration: underline;
}

[data-theme="dark"] .grid-toolbar select,
[data-theme="dark"] .price-filter {
  background: var(--glass-bg-strong);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .price-filter input {
  color: var(--ink);
}

@media (max-width: 640px) {
  .grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-filters {
    justify-content: space-between;
  }
}

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

.marketplace-empty {
  text-align: center;
  padding: 64px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.marketplace-empty svg {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.5;
  margin: 0 auto 20px;
}

.marketplace-empty-heading {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.marketplace-empty-text {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.marketplace-empty-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.marketplace-empty-cta-primary {
  background: var(--accent);
  padding: 11px 22px;
  font-size: .84rem;
}

.marketplace-empty-cta-primary:hover {
  background: var(--accent-dark);
}

.p-card {
  position: relative;
  cursor: pointer;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.p-thumb {
  position: relative;
  height: 180px;
  margin: 8px 8px 0;
  border-radius: calc(var(--radius-lg) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p-thumb svg {
  width: 100%;
  height: 100%;
}

.p-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(21, 24, 31, .78);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px) url(#navLiquidGlass) saturate(160%);
  -webkit-backdrop-filter: blur(8px) url(#navLiquidGlass) saturate(160%);
}

.p-price-badge small {
  font-family: var(--font-body);
  font-weight: 500;
  opacity: .8;
  font-size: .66rem;
}

.p-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  /* Intentionally a fixed dark color, not var(--ink) — this badge's
     background stays white-ish in both themes (so it stays readable
     over any product photo), but its text color used to follow
     var(--ink), which turns near-white in dark mode and made the
     "Verified"/"New" text disappear against its own background. */
  color: #15181F;
  font-size: .64rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.p-badge-out {
  background: rgba(239, 68, 68, .92);
  color: #fff;
}

.p-card.p-out-of-stock .p-thumb {
  opacity: .55;
}

.p-spec-lowstock {
  color: #C0392B;
  background: rgba(239, 68, 68, .1);
}

[data-theme="dark"] .p-spec-lowstock {
  color: #F5A3A3;
  background: rgba(239, 68, 68, .16);
}

.p-bulk-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.p-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px) url(#navLiquidGlass) saturate(160%);
  -webkit-backdrop-filter: blur(8px) url(#navLiquidGlass) saturate(160%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-fav svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  width: 15px;
  height: 15px;
}

.p-fav:hover {
  background: #fff;
}

.p-fav.saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.p-body {
  padding: 12px 16px 16px;
}

.p-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.p-title {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.p-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  margin-top: 1px;
}

.p-rating svg {
  fill: var(--accent);
  stroke: none;
}

.p-reviews {
  font-weight: 500;
  color: var(--ink-faint);
}

.p-rating-new {
  color: var(--accent);
  background: rgba(255, 116, 49, .1);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
}

.p-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  color: var(--ink-soft);
  margin: 4px 0 10px;
}

.p-meta svg {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  flex-shrink: 0;
}

.p-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.p-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(21, 24, 31, .045);
  padding: 4px 8px;
  border-radius: 999px;
}

.p-spec svg {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
}

.p-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .84rem;
  transition: background .25s, color .25s;
}

.p-add svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.p-add:hover {
  background: var(--ink);
  color: #fff;
}

.p-add.added {
  background: #22C55E;
  border-color: #22C55E;
  color: #fff;
}

.p-add:disabled,
.p-buy-now:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.p-add:disabled:hover {
  background: #fff;
  color: var(--ink);
}

.p-actions-row {
  display: flex;
  gap: 8px;
}

.p-actions-row .p-add {
  flex: 1;
}

.p-buy-now {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: .84rem;
  box-shadow: 0 8px 20px rgba(255, 116, 49, .3);
  transition: transform .25s, box-shadow .25s;
}

.p-buy-now svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
}

.p-buy-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 116, 49, .4);
}

.p-buy-now:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
  .bar1-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .bar-2 a span {
    display: none;
  }

  .bar-2 .bar-inner {
    justify-content: space-between;
  }

  .bar-2 a {
    padding: 7px 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 520px) {
  .bar-1 .bar-inner {
    height: 44px;
  }

  .logo-img-full {
    display: none;
  }

  .logo-img-compact {
    display: block;
    height: 26px;
    width: auto;
  }

  .search-glow {
    padding-left: 14px;
  }

  .ai-btn span {
    display: none;
  }

  .ai-btn {
    padding: 11px 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-thumb {
    height: 110px;
  }
}

/* =========================================================
   GLASS BUTTON EFFECT
========================================================= */
.btn-pill, .ai-btn, .cat-chip, .p-add, .grid-toolbar select, .price-filter, .clear-filters-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.btn-pill::before, .ai-btn::before, .cat-chip::before, .p-add::before, .grid-toolbar select::before, .price-filter::before, .clear-filters-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 55%);
  opacity: .6;
  mix-blend-mode: overlay;
}
.btn-pill:active, .ai-btn:active, .cat-chip:active, .p-add:active {
  transform: scale(.92);
  transition: transform .12s var(--ease);
}

/* ===== "View full details" link on each product card ===== */
.p-details-link {
  display: block;
  text-align: center;
  margin-top: 9px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}

.p-details-link:hover {
  text-decoration: underline;
}

/* ===== Subcategory filter row (appears under a chosen category) ===== */
.subcat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--gutter) 12px;
  scrollbar-width: none;
}

.subcat-scroll::-webkit-scrollbar {
  display: none;
}

.subcat-chip {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.subcat-chip:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.subcat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Horizontal scroll controls for the chip rows =====
   The rows scroll but the scrollbar is hidden, so without these a
   mouse user has no way to reach chips past the right edge. */
.scroller-wrap {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.scroll-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scroll-arrow[hidden] {
  display: none;
}

.scroll-arrow.left { left: 2px; }
.scroll-arrow.right { right: 2px; }

/* Fades hint that there is more to either side */
.scroller-wrap::before,
.scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 4;
}

.scroller-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.scroller-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.scroller-wrap.fade-left::before { opacity: 1; }
.scroller-wrap.fade-right::after { opacity: 1; }

/* ---------- Shared loading/error state (loadingState.js) ---------- */
.ometong-load-state{text-align:center;padding:32px 16px;font-size:.85rem;color:var(--ink-faint);}
.ometong-load-state--error{color:var(--ink-soft);}
.ometong-load-state--error .link-inline{background:none;border:none;color:var(--accent);font-weight:700;cursor:pointer;font-size:.85rem;margin-left:6px;padding:0;}
.ometong-load-state--error .link-inline:hover{text-decoration:underline;}
