@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --cream: #f7f2ea;
  --paper: #fff9f0;
  --ink: #1c1c1c;
  --ink-soft: #2d2b29;
  --red: #e0161d;
  --orange: #ff7a1a;
  --gold: #f2b100;
  --stroke: rgba(16, 16, 16, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(900px 600px at 10% -10%, rgba(255, 122, 26, 0.2), transparent 60%),
    radial-gradient(900px 600px at 90% -20%, rgba(224, 22, 29, 0.18), transparent 60%),
    var(--cream);
  font-family: "Space Grotesk", sans-serif;
}

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

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 249, 240, 0.95);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-contact {
  padding: 12px 22px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: white;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

.logo img { height: 44px; width: auto; }

.logo span {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a { color: var(--ink-soft); }

.header-search {
  flex: 1;
  max-width: 360px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}

.search-btn {
  border: none;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.search-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.search-btn {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.search-suggest.open { display: block; }

.suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: center;
}

.suggest-item:last-child { border-bottom: none; }

.suggest-item:hover { background: rgba(0,0,0,0.04); }

.suggest-name {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.suggest-price {
  font-size: 13px;
  color: #6a635f;
  white-space: nowrap;
  flex: 0 0 auto;
}

.mobile-search-bar {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--stroke);
  padding: 8px 0;
}

.mobile-search-bar.open {
  display: block !important;
}

.mobile-search-bar .search-form {
  width: 100%;
}

.search-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: white;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 80;
  display: none;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 86vw);
  background: var(--paper);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 90;
  padding: 24px;
  display: none;
  gap: 18px;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}

.mobile-actions {
  display: grid;
  gap: 10px;
}

.close-btn {
  border: 1px solid var(--stroke);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.mobile-only { display: none; }

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.hero-copy {
  font-size: 18px;
  max-width: 520px;
  color: #3a3430;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--red), var(--orange));
  color: white;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  position: relative;
}

.cart-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.cart-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #fff;
  stroke-width: 0.5;
}

.cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mini-cart {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.mini-cart::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid var(--stroke);
  border-top: 1px solid var(--stroke);
  transform: rotate(45deg);
}

.mini-cart.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mini-cart-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.mini-cart-empty {
  font-size: 13px;
  color: #6b605a;
  padding: 8px 0;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.mini-cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f3ede6;
}

.mini-cart-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.mini-cart-meta {
  font-size: 12px;
  color: #6b605a;
}

.mini-cart-line {
  font-size: 12px;
  font-weight: 700;
  color: #b23a1f;
  white-space: nowrap;
}

.mini-cart-footer {
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.cart-count.is-empty { display: none; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(420px, 78vw);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.section {
  padding: 60px 0;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

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

.guide-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.guide-thumb {
  background: #f6efe9;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
}

.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.guide-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.guide-title {
  font-weight: 800;
  font-size: 18px;
  color: #1f1b19;
}

.guide-excerpt {
  font-size: 14px;
  color: #4b4440;
  line-height: 1.5;
  margin: 0;
}

.guide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  min-height: 24px;
}

.guide-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(178, 58, 31, 0.12);
  color: #8c2e18;
}

.guide-body .pill {
  margin-top: 2px;
}

.guide-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.guide-content {
  display: grid;
  gap: 22px;
}

.guide-products {
  display: grid;
  gap: 16px;
}

.guide-section {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.guide-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.category-card {
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.category-title {
  font-size: 20px;
  font-weight: 700;
}

.category-copy {
  margin: 0;
  color: #4b4440;
}

.pill {
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(224, 22, 29, 0.1);
  color: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.product-grid.single {
  grid-template-columns: minmax(240px, 320px);
  justify-content: start;
}

.product-grid.single .product-card {
  width: 100%;
}

.product-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.product-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.product-thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.thumb-abstract {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,122,26,0.45), rgba(224,22,29,0.5));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  font-size: 11px;
}

.product-body {
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  font-size: 14px;
  margin: 0;
  min-height: 48px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price { font-weight: 800; color: #b23a1f; }

.cart-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cart-add .btn {
  white-space: nowrap;
}

.cart-stepper {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.cart-stepper-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b23a1f;
  font-weight: 700;
  font-size: 12px;
  padding: 0 4px 0 2px;
}

.cart-stepper-icon {
  width: 18px;
  height: 18px;
  fill: #b23a1f;
  stroke: #7f2314;
  stroke-width: 0.4;
}

.cart-stepper-eq {
  font-size: 12px;
  line-height: 1;
}

.cart-stepper .qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.cart-stepper .qty-value.qty-anim {
  animation: qty-bounce 0.24s ease;
}

.cart-add.is-in-cart .add-btn {
  display: none;
}

.cart-add.is-in-cart .cart-stepper {
  display: inline-flex;
}

.cart-add.is-animating .add-btn,
.cart-add.is-animating .cart-stepper {
  animation: cart-pop 0.18s ease;
}

@keyframes cart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes qty-bounce {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-2px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* Admin */
.admin-body {
  background: #f5f1ea;
  color: #1d1a18;
}

.admin-header {
  background: #14110f;
  color: #fff;
  padding: 16px 0;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  gap: 16px;
}

.admin-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.admin-content {
  padding: 32px 0 60px;
}

.admin-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 14px;
}

.admin-hint {
  font-size: 12px;
  color: #7a6f69;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-full {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-search {
  display: flex;
  gap: 8px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-inline-form .btn {
  align-self: end;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

.admin-table th:first-child,
.admin-table td:first-child {
  width: 60px;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  width: 38%;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5),
.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
  width: 110px;
}

.admin-table-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-inline-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  background: #fff;
}

.admin-inline-textarea {
  min-height: 48px;
  line-height: 1.35;
  resize: vertical;
}

.admin-inline-number {
  max-width: 120px;
}

.admin-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.admin-table-actions {
  justify-content: flex-end;
}

.admin-table th {
  background: #f5efe6;
  font-weight: 700;
}

.admin-error {
  background: rgba(210, 35, 35, 0.12);
  color: #9c1d1d;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.admin-success {
  background: rgba(39, 144, 69, 0.12);
  color: #1f6d3a;
}

.admin-section {
  margin-top: 22px;
}

.admin-section-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-repeater {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}

.admin-row-3cols {
  grid-template-columns: 1fr 1fr 120px;
}

.admin-row-image {
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
}

.admin-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f3ede6;
  object-fit: cover;
}

.admin-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #a69a94;
  font-weight: 700;
  border: 1px dashed #d6cfc9;
}

.admin-row input[type="text"] {
  width: 100%;
}

.admin-row input[type="number"] {
  width: 100%;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
  .admin-actions { flex-wrap: wrap; }
}

.btn-dark {
  background: var(--ink);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.split {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16,16,16,0.08);
  font-size: 12px;
  font-weight: 700;
}

.dealer-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4b4440;
  line-height: 1.6;
}

.dealer-list li { margin-bottom: 8px; }

.footer {
  background: #1d1a18;
  color: #f7f2ea;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: inherit;
}

.footer-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.85;
}

.footer-copy {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(247, 242, 234, 0.7);
}

.about-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.about-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.8;
}

.about-contact {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #4b4440;
}

.about-contact span {
  font-weight: 600;
  color: var(--ink-soft);
}

.product-page {
  padding: 20px 0 60px;
}

.cart-page {
  padding-top: 20px;
}

.notice {
  padding: 18px 20px;
  border-radius: 16px;
  background: #f2f5f3;
  color: #1c2a21;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}

.notice-error {
  background: rgba(210, 35, 35, 0.12);
  color: #9c1d1d;
}

.notice-success {
  background: #fff7e9;
  border-color: rgba(224, 122, 26, 0.2);
  color: #3a2a1f;
}

.notice-info {
  background: #f2f5f3;
}

.notice-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice-text {
  font-size: 18px;
  font-weight: 600;
}

.notice-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex: 0 0 auto;
}

.notice-copy {
  display: flex;
  flex-direction: column;
}

.empty-state {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 140px 120px;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.cart-thumb {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cart-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-sku {
  font-size: 12px;
  color: #6b605a;
}

.cart-unit {
  font-weight: 700;
  margin-top: 8px;
  color: #b23a1f;
}

.cart-qty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.qty-stepper input {
  width: 54px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  -moz-appearance: textfield;
}

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

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.link-btn {
  background: none;
  border: none;
  color: #a13a2b;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.cart-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  color: #6b605a;
}

.cart-line strong {
  color: var(--ink);
  font-size: 16px;
}

.cart-update {
  display: flex;
  justify-content: flex-start;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 20px;
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.checkout-form {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5a534e;
}

.checkout-form input,
.checkout-form textarea {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.form-note {
  font-size: 12px;
  color: #8a817b;
  margin: 0;
}

.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  background: #151211;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6a635f;
  margin-bottom: 18px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.main-photo {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: #fff;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: zoom-in;
}

.thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 2px;
  min-width: 0;
}

.thumbs::-webkit-scrollbar {
  height: 6px;
}

.thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.thumbs-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: white;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.thumbs-nav[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.thumb {
  height: 86px;
  width: 86px;
  flex: 0 0 86px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  scroll-snap-align: start;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-arrow.prev { left: 12px; }
.nav-arrow.next { right: 12px; }

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.gallery-modal.open { display: block; }

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-dialog {
  position: relative;
  margin: 6vh auto;
  width: min(920px, 92vw);
  height: min(80vh, 720px);
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-dialog .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.modal-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.dealer-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 140;
}

.dealer-modal.open { display: block; }

.dealer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.dealer-dialog {
  position: relative;
  margin: 6vh auto;
  width: min(760px, 92vw);
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.dealer-dialog .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.dealer-copy {
  margin: 8px 0 18px;
  color: #4b4440;
}

.dealer-form {
  display: grid;
  gap: 16px;
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.dealer-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2c2522;
}

.dealer-field input {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}

.dealer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dealer-alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dealer-alert.success {
  background: #e7f6ef;
  color: #1f6b3c;
  border: 1px solid rgba(31, 107, 60, 0.2);
}

.dealer-alert.error {
  background: #fdecea;
  color: #8f2a1f;
  border: 1px solid rgba(143, 42, 31, 0.2);
}

body.modal-open { overflow: hidden; }

.thumb.active {
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(224, 22, 29, 0.2);
}

.product-info h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
}

.product-sub {
  color: #4b4440;
  margin: 0 0 18px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.price-row .price {
  font-size: 28px;
  color: var(--red);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 22, 29, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cta-row .cart-add {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fact-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #3a3430;
}

.fact-list li {
  margin-bottom: 6px;
}

.delivery-card {
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 16px;
}

.product-sections {
  display: grid;
  gap: 24px;
}

.section-block {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.section-block h2 {
  margin-top: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
}

.specs-grid div {
  background: var(--paper);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 6px;
}

.specs-grid span {
  font-size: 12px;
  color: #6a635f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  font-size: 14px;
}

.catalog-header {
  padding: 40px 0 20px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filters {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.filter-group { margin-bottom: 18px; }

.filter-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b23a1f;
}

.filter-group label {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #4b4440;
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.price-filter input {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.price-slider {
  position: relative;
  margin-top: 12px;
  height: 24px;
}

.price-slider-track {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 4px;
  border-radius: 999px;
  background: #e7dfda;
}

.price-slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--red);
  left: var(--from, 0%);
  right: calc(100% - var(--to, 100%));
}

.price-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.price-range::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-range::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-range::-moz-range-progress {
  background: transparent;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-top: -5px;
  cursor: pointer;
}

.price-range::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.price-range-min { z-index: 2; }
.price-range-max { z-index: 3; }

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters .filter-actions .btn {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.filters .filter-actions .btn-filter {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--ink);
  box-shadow: none;
}

.filters .filter-actions .btn-filter:hover {
  transform: none;
  background: #faf8f5;
  box-shadow: none;
}

.filters .filter-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  color: #7c7771;
}

.filters .filter-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #66615d;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 18px;
}

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

.filter-toggle { display: none !important; }

.filter-toggle.is-active {
  position: relative;
}

.filter-toggle.is-active::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px #fff;
}

.catalog-toolbar select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: white;
}

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
  .catalog-layout { display: block; }
  .filters { position: relative; top: 0; }
  .dealer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .overlay { display: block; }
  .mobile-menu { display: flex; }
  .mobile-only { display: inline-flex; }
  .filter-toggle { display: inline-flex !important; }
  .header-search { display: none; }
  .search-toggle { display: inline-flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: min(320px, 86vw);
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 90;
    border-radius: 0;
    overflow-y: auto;
    display: none;
  }
  .filters.open { transform: translateX(0); display: block; }
  .product-hero { grid-template-columns: 1fr; }
  .main-photo { min-height: 320px; }
  .nav-arrow { width: 36px; height: 36px; font-size: 20px; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo span { font-size: 24px; }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .logo {
    flex: 1;
    min-width: 0;
  }
  .logo span {
    display: inline;
    font-size: 16px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo img { height: 32px; }
  .header-actions { gap: 6px; flex: 0 0 auto; }
  .menu-toggle,
  .search-toggle {
    width: 34px;
    height: 34px;
  }
  .cart-btn {
    padding: 10px 14px;
    width: auto;
    height: auto;
    justify-content: center;
  }
  .cart-btn .cart-icon svg {
    fill: #fff !important;
  }
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: clamp(36px, 8vw, 52px); line-height: 1.05; }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual img { width: min(320px, 80vw); }
  .guide-thumb { height: 160px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 30px; }
  .split { padding: 24px; }
  .catalog-header { padding: 28px 0 12px; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions select { flex: 1; width: 100%; }
  .filters { padding: 16px; }
  .cart-text { display: none; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .cta-row .btn { width: 100%; }
  .section-block { padding: 18px; }
  .specs-grid { grid-template-columns: 1fr; }
  .gallery-dialog { height: min(70vh, 520px); padding: 16px; }
  .thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }
  .thumbs-nav { display: none; }
  .cart-item {
    grid-template-columns: 90px 1fr;
  }
  .cart-thumb {
    width: 90px;
    height: 90px;
  }
  .cart-qty,
  .cart-line {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .qty-stepper input { width: 64px; }
  .qty-btn { width: 32px; height: 32px; }
  .mini-cart { display: none; }
}

@media (max-width: 520px) {
  .logo img { height: 36px; }
  .logo span { font-size: 20px; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .product-thumb { height: 230px; }
}

@media (max-width: 360px) {
  .logo span { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .category-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .btn-primary { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(212, 0, 26, 0.45); }
}


/* v3 overrides (buttons + filters from alternative_design) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(212, 0, 26, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(212, 0, 26, 0.45);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-outline,
.btn-ghost {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: white;
  color: var(--ink);
}

.filters {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--stroke);
  position: sticky;
  top: 110px;
  height: fit-content;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.filters h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
