:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #1b1714;
  --muted: #7b7268;
  --line: rgba(27, 23, 20, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --accent: #111111;
  --gold: #c7a74d;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0,0,0,0.035), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.04), transparent 28%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8b6b2e, #d8b35a);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand-meta small,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--muted);
}

.brand-meta small {
  color: rgba(255,255,255,0.55);
}

.brand-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.nav a:hover {
  color: var(--gold);
}

.section {
  padding: 26px 0 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.search {
  min-width: 0;
  max-width: 420px;
  width: 100%;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  box-shadow: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.filter-btn.active,
.filter-btn:hover,
.switch-btn.active,
.mini-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #efe8df;
  overflow: hidden;
  min-width: 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
}

.badge.stock.in {
  background: rgba(31, 122, 69, 0.88);
  color: #fff;
}

.badge.stock.low {
  background: #d4a017;
  color: #fff;
}

.badge.stock.out {
  background: rgba(182, 66, 66, 0.9);
  color: #fff;
}

.product-body {
  padding: 18px 18px 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-top h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-code {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6px;
}

.product-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  min-height: 48px;
}

.product-prices,
.product-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.product-prices div,
.product-meta div {
  font-size: 14px;
  color: var(--text);
}

.product-prices strong,
.product-meta strong {
  font-weight: 700;
}

.product-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}

.product-extra span {
  color: var(--muted);
}

.view-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
  min-width: 0;
}

.switch-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  cursor: pointer;
  position: relative;
  transition: transform 0.16s ease;
}

.color-dot:hover {
  transform: scale(1.08);
}

.color-dot.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid var(--gold);
}

.color-dot.out::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.8px;
  background: rgba(255,255,255,0.95);
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 10px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.color-name {
  font-size: 13px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.mini-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s ease;
}

/* About / Contact */
.info-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-top: 14px;
}

.info-card,
.contact-card,
.small-card {
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 28px;
}

.info-card h3 {
  margin: 10px 0 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.info-card p {
  margin: 14px 0 0;
  line-height: 1.8;
  font-size: 15px;
  color: var(--muted);
}

.contact-card {
  padding: 32px;
  background: linear-gradient(145deg, #1f1a17, #382f28);
  color: #fff;
}

.contact-card h3 {
  margin: 10px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: 14px;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.55);
}

.contact-actions-large {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.22s ease;
  cursor: pointer;
}

.btn-light {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: none;
}

.btn-dark {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 26, 23, 0.18);
}

.btn-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

footer {
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .info-grid,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .mini-btn {
    width: 100%;
  }

  .view-switch {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 16px));
  }

  .search input {
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 12px;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .filter-btn {
    min-height: 38px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 12px;
    text-align: center;
  }

  .product-body {
    padding: 14px;
  }

  .product-top h3 {
    font-size: 20px;
  }

  .product-desc,
  .product-prices div,
  .product-meta div,
  .product-extra div,
  .color-name {
    font-size: 13px;
  }

  .badge-row {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .badge {
    font-size: 10px;
    padding: 8px 10px;
  }

  .colors {
    gap: 10px;
  }

  .color-dot {
    width: 24px;
    height: 24px;
  }

  .contact-actions,
  .contact-actions-large,
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .mini-btn {
    width: 100%;
  }
}
/* FORCE FIX — search bar */
.search {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.search input {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

@media (max-width: 560px) {
  .search {
    max-width: 100% !important;
  }

  .search input {
    height: 42px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
  }

  .filters {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .filter-btn {
    min-height: 36px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
}

#backToTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 100;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

.loading-message {
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.product-card.low-stock {
  border: 1px solid rgba(212, 160, 23, 0.55);
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.12);
}

.stock-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stock-note.low {
  color: #b58500;
}

.stock-note.out {
  color: #b64242;
}

.product-card.out-of-stock {
  opacity: 0.72;
  border: 1px solid rgba(182, 66, 66, 0.35);
}

.product-card.out-of-stock .product-media img {
  filter: grayscale(35%);
}
.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.media-nav:hover {
  background: rgba(17, 17, 17, 0.9);
}

.media-nav-left {
  left: 10px;
}

.media-nav-right {
  right: 10px;
}

@media (max-width: 560px) {
  .media-nav {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .media-nav-left {
    left: 8px;
  }

  .media-nav-right {
    right: 8px;
  }
}
