/* ==========================================================================
   AutoModIndia — global stylesheet
   Dark automotive theme with a fiery orange-red accent.
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --bg-card: #181c22;
  --bg-card-hover: #1e232b;
  --border: #262c34;
  --border-strong: #343c47;

  --text: #eef1f5;
  --text-muted: #9aa3af;
  --text-faint: #656e7a;

  --accent: #ff5a36;
  --accent-dark: #d9431f;
  --accent-soft: rgba(255, 90, 54, 0.14);
  --success: #35c76a;
  --danger: #ff5a5a;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);

  --container: 1240px;
  --header-h: 72px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.brand-logo .mark {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
  border-color: var(--accent);
}

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

.search-quick {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  gap: 8px;
  width: 220px;
}

.search-quick input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.search-quick svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cart-link:hover {
  border-color: var(--accent);
}

.wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.wishlist-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

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

.cart-widget {
  position: relative;
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.cart-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

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

.cart-dropdown-loading,
.cart-dropdown-empty {
  text-align: center;
  padding: 20px 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-dropdown-empty p {
  margin: 0 0 12px;
}

.cart-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-dropdown-header strong {
  font-size: 15px;
}

.cart-dropdown-header span {
  color: var(--text-faint);
  font-size: 12.5px;
}

.cart-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-bottom: 14px;
}

.cart-dropdown-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}

.cart-dropdown-item:hover {
  background: var(--bg-card-hover);
}

.cart-dropdown-item-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-dropdown-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-dropdown-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.cart-dropdown-item-info .name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-dropdown-item-info .meta {
  font-size: 12px;
  color: var(--text-faint);
}

.cart-dropdown-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.cart-dropdown-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.cart-dropdown-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 0 24px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  font-size: 14px;
}

.footer-grid ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-quick-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-quick-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 90, 54, 0.22), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(255, 90, 54, 0.1), transparent 50%),
    linear-gradient(180deg, #0f1216 0%, #0b0d10 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 54, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
}

.hero-stats div strong {
  display: block;
  font-size: 26px;
  color: var(--text);
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-faint);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-art svg {
  width: 70%;
  height: auto;
}

/* ==========================================================================
   Story / About page
   ========================================================================== */

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-grid p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.story-grid p:last-child {
  margin-bottom: 0;
}

.values-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.feature-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon-badge svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.team-card {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.team-card .avatar-badge {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}

.team-card h4 {
  margin: 4px 0 0;
  font-size: 15px;
}

.team-card span {
  font-size: 13px;
  color: var(--text-faint);
}

.cta-banner {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 90, 54, 0.16), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.cta-banner p {
  color: var(--text-muted);
  margin: 0 0 26px;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: 22px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* Brand card */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  text-align: center;
}

.brand-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.brand-card .brand-logo-badge {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
}

.brand-card .brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card strong {
  font-size: 15px;
}

.brand-card span {
  font-size: 13px;
  color: var(--text-faint);
}

/* Category card */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  text-align: center;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.category-card .category-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.category-card .category-icon-badge svg {
  width: 30px;
  height: 30px;
}

.category-card strong {
  font-size: 15px;
}

.category-card span {
  font-size: 13px;
  color: var(--text-faint);
}

/* Model card */
.model-card {
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.model-card .model-image {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.model-card .model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.model-card-body h3 {
  margin: 0;
  font-size: 17px;
}

.model-card-body .years {
  color: var(--text-faint);
  font-size: 13px;
}

.model-card-body .parts-count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wishlist-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wishlist-toggle:active {
  transform: scale(0.9);
}

.wishlist-toggle .heart-icon {
  width: 18px;
  height: 18px;
}

.wishlist-toggle-btn .heart-icon {
  width: 17px;
  height: 17px;
}

.wishlist-toggle.is-active,
.wishlist-toggle-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.wishlist-toggle.is-active {
  background: rgba(255, 90, 54, 0.22);
}

.wishlist-toggle-btn.is-active {
  background: var(--accent-soft);
}

.wishlist-toggle.is-active .heart-icon,
.wishlist-toggle-btn.is-active .heart-icon {
  fill: currentColor;
}

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

.product-card .category-badge {
  align-self: flex-start;
}

.product-card .fitment {
  font-size: 12.5px;
  color: var(--text-faint);
}

.product-card h3 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.product-card .price {
  margin-top: auto;
  padding-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.product-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.category-badge {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 90, 54, 0.3);
}

.badge-success {
  background: rgba(53, 199, 106, 0.14);
  color: var(--success);
  border: 1px solid rgba(53, 199, 106, 0.3);
}

.badge-danger {
  background: rgba(255, 90, 90, 0.14);
  color: var(--danger);
  border: 1px solid rgba(255, 90, 90, 0.3);
}

.badge-muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-faint);
  padding: 20px 0;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--text-muted);
}

/* ==========================================================================
   Page header banner (brand/model/shop pages)
   ========================================================================== */

.page-banner {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #101318 0%, var(--bg) 100%);
}

.page-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-banner .brand-logo-badge {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
}

.page-banner .brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-banner h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.page-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   Shop layout: sidebar filters + results
   ========================================================================== */

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0 80px;
}

.filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filters h3 {
  margin: 0 0 16px;
  font-size: 15px;
}

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

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label.group-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.filter-input,
.filter-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent);
}

textarea.filter-input {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
  line-height: 1.5;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group.has-error .filter-input {
  border-color: var(--danger);
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
}

.success-panel {
  padding: 52px 28px;
  text-align: center;
}

.success-panel .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(53, 199, 106, 0.14);
  border: 1px solid rgba(53, 199, 106, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--success);
}

.success-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.success-panel p {
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.65;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-row:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-row h4 {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info-row p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}

.map-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  text-align: center;
  padding: 24px;
  margin-top: 32px;
}

.map-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.85;
}

.map-placeholder strong {
  color: var(--text-muted);
  font-size: 14px;
}

.map-placeholder p {
  margin: 0;
  font-size: 12.5px;
  max-width: 320px;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 20px;
}

.summary-line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.summary-line-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.summary-line-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-line-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.summary-line-item-info h4 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
}

.summary-line-item-price {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}

.cod-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 54, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  margin: 20px 0;
}

.cod-note svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.cod-note strong {
  display: block;
  margin-bottom: 2px;
}

.order-confirmation {
  max-width: 640px;
  margin: 0 auto;
}

.order-confirmation-header {
  text-align: center;
  margin-bottom: 32px;
}

.order-confirmation-header h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.order-confirmation-header p {
  color: var(--text-muted);
  margin: 0;
}

.order-confirmation-id {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.order-confirmation-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  text-align: left;
}

.order-confirmation-section h3 {
  margin: 0 0 16px;
  font-size: 15px;
}

.order-confirmation-section p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.order-confirmation-section p:last-child {
  margin-bottom: 0;
}

.order-confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.filter-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-checklist input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 8px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-inputs input {
  width: 0;
  flex: 1;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.results-count {
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text);
  margin: 0 0 8px;
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 20px 0 60px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  width: 68px;
  height: 68px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .category-badge {
  margin-bottom: 12px;
}

.product-info h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.product-info .fitment-line {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.product-info .fitment-line a {
  color: var(--accent);
}

.product-info .price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.product-info .price-row .price {
  font-size: 30px;
  font-weight: 800;
}

.product-info .description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 10px 0;
  font-size: 14px;
}

.spec-table td:first-child {
  color: var(--text-faint);
  width: 160px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.color-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-elevated);
}

.color-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 40px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.qty-stepper button:hover {
  color: var(--accent);
}

.qty-stepper span {
  width: 42px;
  text-align: center;
  font-weight: 600;
}

.product-info .actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wishlist-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.viewer-section {
  grid-column: 1 / -1;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.viewer-section h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.viewer-section .hint-text {
  color: var(--text-faint);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.viewer360 {
  max-width: 560px;
}

.viewer360-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y;
}

.viewer360-stage.is-dragging {
  cursor: grabbing;
}

.viewer360-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewer360-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.viewer360-car {
  width: 60%;
  transition: transform 0.08s linear;
}

.viewer360-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.viewer360-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 999px;
}

.viewer360-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.viewer360-slider {
  flex: 1;
  accent-color: var(--accent);
}

.related-section {
  grid-column: 1 / -1;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 20px 0 80px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item-info .fitment {
  font-size: 12.5px;
  color: var(--text-faint);
}

.cart-item-line-total {
  font-weight: 700;
  min-width: 90px;
  text-align: right;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 13px;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-row.total {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  border-color: rgba(53, 199, 106, 0.4);
}

/* ==========================================================================
   Loading / skeleton
   ========================================================================== */

.loading-state {
  padding: 60px 0;
  text-align: center;
  color: var(--text-faint);
}

.data-error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text);
  max-width: 640px;
  margin: 40px auto;
}

.data-error h3 {
  margin: 0 0 10px;
  color: var(--danger);
}

.data-error code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .shop-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-menu a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .search-quick {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-stats {
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "image info"
      "image total";
  }
  .cart-item-image {
    grid-area: image;
    width: 64px;
    height: 64px;
  }
  .cart-item-info {
    grid-area: info;
  }
  .cart-item-line-total {
    grid-area: total;
    text-align: left;
  }
  .cart-item-remove {
    grid-area: total;
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
  }
}
