/* ============================================================
   JC TIRE SHOP — Clean E-commerce (utires.com style)
   ============================================================ */

/* Inter font is loaded via <link rel="stylesheet"> in header.php so the
   browser can fetch CSS and the font in parallel. CSS @import here would
   block the rest of this stylesheet from parsing (render-blocking). */

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

:root {
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-soft: #FEF2F2;
  /* "Blue" tokens map to slate so the whole UI stays on-brand (red + slate).
     Naming kept to avoid touching 50+ usage sites. */
  --blue: #1e293b;
  --blue-dark: #0f172a;
  --blue-soft: #f1f5f9;
  --yellow: #FBBF24;
  --green: #16A34A;
  --whatsapp: #25D366;

  --black: #111827;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;

  --container: 1280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  /* Legacy */
  --primary: var(--red);
  --primary-dark: var(--red-dark);
  --secondary: var(--blue);
  --accent: var(--yellow);
  --text: var(--black);
  --text-light: var(--gray-500);
  --text-muted: var(--gray-500);
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --success: var(--green);
  --warning: var(--yellow);
  --danger: var(--red);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Kill the blue tap-highlight color on all interactive elements */
a, button, input, select, textarea, [role="button"], .pdp-btn, .btn-primary, .btn-secondary, .btn-whatsapp, .btn-small, .tlc-btn, .phone-link, .cart-link {
  -webkit-tap-highlight-color: transparent;
}
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

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

a { color: var(--blue); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 12px; color: var(--black); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; margin-bottom: 12px; color: var(--black); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; color: var(--black); }
h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--black); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* === KILL ALL LINES IN HEADER (aggressive) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.site-header * { border-bottom-color: transparent !important; }
.topbar {
  background: var(--gray-900);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.82rem;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  display: block;
  position: relative;
}
/* Extend topbar 1px down to overlap any gap */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-900);
  display: block !important;
}
.header-inner {
  margin-top: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar .topbar-meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--yellow); text-decoration: none; }
.wa-link {
  background: var(--whatsapp);
  color: var(--white) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.wa-link:hover { background: #1da851; }
.wa-link svg { width: 14px; height: 14px; }

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--black); text-decoration: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 6px;
}
.logo-jc { display: none; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s var(--ease);
}
.main-nav > a:hover { color: var(--black); text-decoration: none; }

.phone-link {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.15s var(--ease);
  border: none;
}
.phone-link:hover { background: var(--red-dark) !important; color: var(--white) !important; text-decoration: none; }
.phone-link svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }

.cart-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 12px !important;
  background: var(--gray-100);
  color: var(--gray-900) !important;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s var(--ease);
}
.cart-link:hover { background: var(--gray-200); text-decoration: none; }
.cart-link svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
.cart-badge {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================================
   HERO - Clean white minimal
   ============================================================ */
.hero {
  background: var(--white);
  color: var(--black);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.hero .container {
  text-align: center;
  max-width: 880px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hero h1 .accent { color: var(--red); }
.hero h1 .highlight { color: var(--red); }
.hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 0 auto 24px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-form:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.search-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
}
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--gray-400); }
.search-form button {
  padding: 14px 26px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.search-form button:hover { background: var(--red-dark); }

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.86rem;
  color: var(--gray-600);
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before {
  content: '✓';
  color: var(--red);
  font-weight: 800;
}

/* Hide editorial visual */
.hero-visual { display: none; }

/* ============================================================
   CATEGORY STRIP (NEW - like utires browse-by)
   ============================================================ */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  overflow-x: auto;
}
.category-strip .container {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
  border: 1px solid transparent;
}
.category-pill:hover {
  background: var(--white);
  border-color: var(--gray-300);
  color: var(--black);
  text-decoration: none;
}
.category-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--gray-50);
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip-item .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}
.stat-strip-item .lbl {
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ============================================================
   INFO SECTION (How it works)
   ============================================================ */
.info-section { background: var(--white); padding: 64px 0; border-bottom: 1px solid var(--gray-200); }
.info-section h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.info-section .info-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.info-item {
  background: var(--white);
  padding: 28px 24px;
  text-align: left;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.2s var(--ease);
}
.info-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.info-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.info-item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.info-item p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.55; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog { padding: 48px 0 64px; background: var(--gray-50); }
.catalog .container { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }

.sidebar {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 130px;
}
.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--black);
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 700;
}
.filter-group ul { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.filter-group a {
  color: var(--gray-700);
  font-size: 0.88rem;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.1s var(--ease);
}
.filter-group a:hover { background: var(--gray-100); color: var(--black); text-decoration: none; }
.filter-group a.active {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.results-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--gray-700);
}
.results-header strong {
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
}

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

.product-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.product-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card a { text-decoration: none; color: var(--black); display: block; }
/* Product image — fixed square with crop-zoom for uniform display */
.product-image {
  position: relative;
  background: var(--white);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
}
.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
  display: block;
}
.no-image, .no-image-large {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 3.5rem; color: var(--gray-300);
}
.no-image-large { font-size: 7rem; aspect-ratio: 1; background: var(--gray-50); border-radius: 10px; }

.badge-used, .badge-new {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
}
.badge-used { background: var(--yellow); color: var(--black); }
.badge-new { background: var(--green); color: var(--white); }
.badge-used-large, .badge-new-large {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
  border-radius: 4px;
}
.badge-used-large { background: var(--yellow); color: var(--black); }
.badge-new-large { background: var(--green); color: var(--white); }

.product-info { padding: 14px; }
.product-info h3 {
  font-size: 0.92rem;
  margin-bottom: 6px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--black);
  height: 2.7em;
  overflow: hidden;
}
.product-info .size {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-info .tread { color: var(--gray-500); font-size: 0.78rem; margin: 4px 0; }
.product-info .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: var(--gray-100);
  color: var(--gray-900) !important;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.btn-small:hover { background: var(--gray-200); text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 6px;
  transition: all 0.15s var(--ease);
  line-height: 1.3;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--gray-900); color: var(--white); }
.btn-secondary:hover { background: var(--black); color: var(--white); text-decoration: none; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); text-decoration: none; }
.btn-large { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { padding: 32px 0 60px; background: var(--white); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.88rem;
}
.back-link:hover { color: var(--blue); }
.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.product-gallery img.main-image {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
}
.thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.thumbnails img {
  aspect-ratio: 1; object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.15s var(--ease);
}
.thumbnails img.active, .thumbnails img:hover { border-color: var(--blue); }

.product-meta h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.price-area {
  margin: 20px 0;
  padding: 20px 22px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}
.price-big {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-note { color: var(--gray-600); font-size: 0.88rem; }

.add-to-cart-form { margin: 20px 0; }
.quick-order { padding: 20px 0 8px; border-top: 1px solid var(--gray-200); }
.quick-order p { margin-bottom: 10px; font-weight: 600; color: var(--gray-700); font-size: 0.92rem; }
.quick-order a { margin-right: 8px; margin-bottom: 8px; }

/* ============================================================
   CART, CHECKOUT
   ============================================================ */
.cart-section, .checkout-section, .confirmation-section { padding: 40px 0 60px; background: var(--gray-50); }
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
}
.cart-image { width: 80px; height: 80px; }
.cart-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cart-info h3 { font-size: 0.98rem; margin-bottom: 4px; font-weight: 600; }
.cart-info p { color: var(--gray-500); font-size: 0.85rem; }
.cart-price { text-align: right; font-weight: 800; color: var(--red); font-size: 1.2rem; }
.remove-link { display: inline-block; font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; padding: 8px 4px; min-height: 44px; }

.cart-summary, .order-summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 130px;
}
.cart-summary h3, .order-summary h3 { margin-bottom: 14px; font-size: 1.05rem; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--gray-700); }
.summary-row.deposit { border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 8px; }
.summary-row.balance, .summary-row.total { font-size: 1.05rem; color: var(--black); font-weight: 700; }
.summary-row.total { border-top: 2px solid var(--black); padding-top: 12px; margin-top: 8px; }
.reassurance { margin-top: 14px; font-size: 0.82rem; color: var(--gray-500); text-align: center; line-height: 1.5; }
.checkout-form { background: var(--white); padding: 28px; border: 1px solid var(--gray-200); border-radius: 10px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--gray-700); font-size: 0.88rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
  transition: border 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
/* Prevent iOS Safari auto-zoom on focus by enforcing >=16px inputs */
@media (max-width: 768px) {
  .form-row input, .form-row textarea, .form-row select { font-size: 16px; }
}
.form-info { background: var(--blue-soft); padding: 14px 16px; border-radius: 8px; margin: 18px 0; border-left: 3px solid var(--blue); }

/* Payment information card */
.payment-info-card {
  background: #fef7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 18px 0;
}
.payment-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.payment-info-header h4 {
  color: #9a3412;
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}
.payment-info-badge {
  background: #16a34a;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.payment-info-lead {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.55;
}
.payment-info-lead strong { color: var(--black); }
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.payment-method {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.15s ease;
}
.payment-method:hover {
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.15);
}
.pm-icon { font-size: 1.6rem; margin-bottom: 4px; }
.pm-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.pm-desc {
  font-size: 0.7rem;
  color: var(--gray-500);
  line-height: 1.3;
}
.payment-info-footer {
  background: white;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  border-left: 3px solid #f97316;
}
.payment-info-footer strong { color: #9a3412; }
@media (max-width: 600px) {
  .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
}
.form-info h4 { margin-bottom: 6px; color: var(--blue-dark); font-size: 0.9rem; }
.form-info ol { padding-left: 18px; }
.form-info li { padding: 2px 0; font-size: 0.88rem; color: var(--gray-700); }
.form-disclaimer { font-size: 0.78rem; color: var(--gray-500); margin-top: 10px; text-align: center; }
.payment-note { margin-top: 14px; padding: 10px; background: var(--blue-soft); border-radius: 6px; text-align: center; font-size: 0.88rem; font-weight: 500; color: var(--blue-dark); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #14532D; border: 1px solid #BBF7D0; }

.confirmation-card { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border: 1px solid var(--gray-200); border-radius: 12px; text-align: center; box-shadow: var(--shadow-md); }
.check-icon {
  width: 76px; height: 76px;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 20px;
  border-radius: 50%;
}
.order-number { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 22px; }
.confirmation-details { background: var(--blue-soft); padding: 16px; border-radius: 8px; margin: 18px 0; text-align: left; }

/* ============================================================
   SERVICES / CONTACT
   ============================================================ */
.services-section, .contact-section { padding: 40px 0 60px; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 28px 0; }
.service-card {
  background: var(--white);
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.service-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card h3 { color: var(--black); }
.service-card .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  margin-top: 12px;
  display: inline-block;
}
.cta-block {
  background: var(--gray-900);
  color: var(--white);
  padding: 40px 28px;
  border-radius: 12px;
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 12px; }
.cta-block p a { color: var(--yellow); text-decoration: underline; }
.cta-block p a:hover { color: var(--white); }
/* Force buttons inside CTA blocks to stay button-styled */
.cta-block a.btn-primary,
.cta-block a.btn-secondary,
.cta-block a.btn-large { color: var(--white) !important; text-decoration: none !important; }
.cta-block a.btn-primary:hover { color: var(--white) !important; text-decoration: none !important; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.contact-info-card { background: var(--white); padding: 28px; border: 1px solid var(--gray-200); border-radius: 12px; }
.contact-info-card h3 { margin-top: 18px; color: var(--blue); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.contact-map iframe { border-radius: 12px; border: 1px solid var(--gray-200); }

/* ============================================================
   BIG CTA SECTION
   ============================================================ */
.big-cta {
  background: var(--black);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}
.big-cta h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.big-cta p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.big-cta-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.big-cta-btn:hover { background: var(--red-dark); color: var(--white); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h3 { color: var(--white); margin-bottom: 14px; font-size: 1rem; font-weight: 700; }
.site-footer h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; text-align: center; color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* Footer brand + social + contact rows */
.footer-brand h3 { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.1rem; }
.footer-brand h3 .logo-mark { width: 36px; height: 36px; font-size: 0.92rem; background: var(--red); color: var(--white); display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 800; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.55; margin-bottom: 16px; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--white);
  transition: background 0.15s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: var(--white); }
.footer-social svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-contact-row svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gray-400);
}
.footer-contact-row p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.5; }
.footer-contact-row p a { color: rgba(255,255,255,0.85); }

/* GLOBAL SVG SAFETY — keep all SVGs from going crazy */
svg { max-width: 100%; height: auto; }
.site-footer svg { width: 18px; height: 18px; }
.site-header svg { width: 18px; height: 18px; }
.btn-primary svg, .btn-secondary svg, .btn-whatsapp svg, .btn-small svg { width: 16px; height: 16px; vertical-align: middle; }

/* ============================================================
   HAMBURGER MENU (mobile)
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-300);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s ease;
}
.mobile-menu-toggle:hover { background: var(--gray-100); }
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .main-nav > a {
    display: flex !important;
    align-items: center;
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--black) !important;
    background: transparent !important;
    border-radius: 0;
    margin: 0;
  }
  .main-nav .phone-link {
    margin-top: 16px !important;
    justify-content: center !important;
    padding: 14px !important;
    font-size: 1rem !important;
    background: var(--red) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    border-bottom: none !important;
  }
  .main-nav .phone-link .phone-text { display: inline !important; }
  .main-nav .cart-link {
    margin-top: 8px !important;
    justify-content: center !important;
    padding: 12px !important;
    background: var(--gray-100) !important;
    border-radius: 8px !important;
    border-bottom: none !important;
  }
  .main-nav .account-link {
    background: var(--gray-50) !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    margin-top: 8px !important;
    padding: 12px !important;
  }
  .main-nav .signin-link {
    background: var(--gray-50) !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    margin-top: 8px !important;
    padding: 12px !important;
    justify-content: center !important;
  }

  body.mobile-nav-open .main-nav { right: 0; }
  body.mobile-nav-open .mobile-nav-overlay { display: block; }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.mobile-nav-open { overflow: hidden; }
}

/* ============================================================
   EMPTY STATE / PAGINATION
   ============================================================ */
.empty-state { text-align: center; padding: 60px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--gray-600); margin: 8px 0; }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination a {
  padding: 8px 14px;
  background: var(--white);
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.15s var(--ease);
}
.pagination a:hover { background: var(--gray-50); text-decoration: none; }
.pagination a.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .catalog .container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 12px; }
  .phone-link .phone-text { display: none; }
  .header-inner { padding: 14px 18px; gap: 12px; }
  .topbar .topbar-meta span:not(.always-show) { display: none; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-price { grid-column: 2; text-align: left; }
  .cart-summary, .order-summary { position: static; }
}
@media (max-width: 600px) {
  .topbar { font-size: 0.72rem; }
  /* Footer mobile: brand spans full width, then 3 cols in 2x2 grid below */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .site-footer h4 { font-size: 0.82rem; margin-bottom: 10px; }
  .site-footer li { font-size: 0.82rem; padding: 2px 0; }
  .site-footer { padding: 36px 0 22px; }
  .hero { padding: 40px 0 48px; }
  .search-form { flex-direction: column; border-radius: 8px; }
  .search-form input { padding: 12px 16px; }
  .search-form button { width: 100%; border-radius: 0 0 8px 8px; }
  /* NOTE: Do NOT hide nav items here — they need to show inside hamburger drawer */
}

/* ============================================================
   PRESERVED: Tire Spec icons
   ============================================================ */
.tire-spec-section {
  background: var(--white);
  padding: 32px;
  margin-top: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
.tire-spec-section h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--black); font-weight: 700; }
.tire-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec-item { display: flex; align-items: center; gap: 14px; }
.spec-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.spec-icon svg { width: 24px; height: 24px; }
.spec-text { flex: 1; min-width: 0; }
.spec-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.spec-value { font-size: 1rem; font-weight: 700; color: var(--black); overflow-wrap: break-word; }

/* Unified neutral icon palette — all spec icons share the same calm gray.
   Clean, professional, doesn't compete with the product photo. */
.icon-size,
.icon-brand,
.icon-model,
.icon-tread,
.icon-condition,
.icon-season,
.icon-speed,
.icon-load,
.icon-section,
.icon-aspect,
.icon-rim,
.icon-runflat,
.icon-mpn,
.icon-qty,
.icon-repairs,
.icon-speedrated {
  background: #f1f5f9;            /* slate-100, very light gray */
  border: 1px solid #e2e8f0;      /* subtle hairline */
}
/* Icons themselves use slate-700 so the glyph is clearly visible on the gray bg */
.spec-icon svg { stroke: #475569 !important; opacity: 1; }
.spec-icon svg [fill="white"] { fill: #475569 !important; }

@media (max-width: 900px) { .tire-spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tire-spec-grid { grid-template-columns: 1fr; } }

/* Zoom + Lightbox preserved */
.zoom-container { position: relative; width: 100%; cursor: zoom-in; }
.zoom-lens { position: absolute; border: 2px solid var(--blue); background-color: rgba(37,99,235,0.15); width: 140px; height: 140px; display: none; pointer-events: none; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.2); }
.zoom-result { position: absolute; top: 0; left: 105%; width: 100%; height: 100%; border: 1px solid var(--gray-200); border-radius: 10px; background-repeat: no-repeat; display: none; z-index: 10; background-color: var(--white); box-shadow: var(--shadow-md); }
@media (max-width: 1180px) { .zoom-result, .zoom-lens { display: none !important; } }
.zoom-hint { text-align: center; font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); cursor: zoom-out; backdrop-filter: blur(4px); }
.lightbox-content { margin: auto; display: block; max-width: 95%; max-height: 95%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 10px; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: white; font-size: 42px; font-weight: 300; cursor: pointer; }

.how-it-works-section {
  background: var(--gray-50);
  color: var(--black);
  padding: 32px;
  margin-top: 32px;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
.how-it-works-section h2 { color: var(--black); margin-bottom: 24px; font-size: 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; }
.step-num {
  width: 44px; height: 44px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 12px;
}
.step h3 { color: var(--black); margin-bottom: 6px; font-size: 1rem; }
.step p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.5; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }

.description-card {
  background: var(--white);
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-top: 20px;
}

/* ============================================================
   CUSTOMER AUTH (login, register, password reset)
   ============================================================ */
.auth-section {
  padding: 56px 0 72px;
  background: var(--gray-50);
  min-height: calc(100vh - 320px);
}
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.auth-card .auth-sub {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.auth-form { background: transparent; border: 0; padding: 0; }
.auth-form .btn-primary { margin-top: 6px; }
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px !important;
  flex-wrap: wrap;
}
.auth-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  font-size: 0.88rem !important;
  cursor: pointer;
}
.auth-checkbox input { width: auto !important; margin: 0; }
.auth-link {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { color: var(--red-dark); text-decoration: underline; }
.auth-alt {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.auth-alt a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.auth-alt a:hover { color: var(--red-dark); text-decoration: underline; }

/* Header nav: Sign In + My Account */
.signin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 720px) {
  .auth-card { padding: 28px 20px; border-radius: 10px; }
  .auth-card h1 { font-size: 1.35rem; }
}

/* ============================================================
   CUSTOMER PORTAL (dashboard, orders, profile)
   ============================================================ */
.account-page {
  background: var(--gray-50);
  padding: 32px 0 64px;
  min-height: calc(100vh - 320px);
}

.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* --- Sidebar --- */
.account-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 130px;
}
.account-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.account-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 2px;
  word-break: break-word;
}
.account-user-email {
  font-size: 0.8rem;
  color: var(--gray-500);
  word-break: break-all;
  line-height: 1.3;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.account-nav-link:hover {
  background: var(--gray-100);
  color: var(--black);
  text-decoration: none;
}
.account-nav-link.active {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}
.account-nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}
.account-nav-disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}
.account-nav-disabled:hover {
  background: transparent;
  color: var(--gray-400);
}
.account-soon {
  margin-left: auto;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.account-nav-signout {
  margin-top: 6px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
  border-radius: 0;
  color: var(--gray-600);
}
.account-nav-signout:hover {
  background: transparent;
  color: var(--red);
}

/* --- Main column --- */
.account-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.account-welcome {
  padding: 4px 4px 0;
}
.account-welcome h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 4px;
}
.account-welcome p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* --- Stat cards --- */
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.account-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s var(--ease);
}
.account-stat-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.account-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.account-stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.account-stat-blue .account-stat-num { color: var(--blue); }
.account-stat-green .account-stat-num { color: var(--green); }

/* --- Generic card --- */
.account-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.account-card h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.account-card-header h2 { margin-bottom: 0; }
.account-link {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.account-link:hover { text-decoration: underline; }

.account-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Tables --- */
.account-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.account-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--gray-500);
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
}
.account-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.account-table tr:last-child td { border-bottom: none; }
.account-table tr:hover td { background: var(--gray-50); }
.account-table-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* --- Filter tabs --- */
.account-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}
.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.account-tab:hover {
  background: var(--gray-100);
  color: var(--black);
  text-decoration: none;
}
.account-tab.active {
  background: var(--black);
  color: var(--white);
}
.account-tab-count {
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.account-tab.active .account-tab-count {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}
.account-tab-count-green {
  background: var(--green);
  color: var(--white);
}

/* --- Account info grid --- */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.account-info-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.account-info-grid dd {
  font-size: 0.98rem;
  color: var(--black);
  font-weight: 500;
}

/* --- Empty states --- */
.account-empty {
  text-align: center;
  padding: 32px 20px;
}
.account-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
  opacity: 0.6;
}
.account-empty h3 {
  margin-bottom: 6px;
}
.account-empty p {
  color: var(--gray-600);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

/* --- Order header card --- */
.order-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.order-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.order-header-number {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--black);
}
.order-header-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
}
.order-header-status {
  flex-shrink: 0;
}

/* --- Status banner --- */
.order-status-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.order-status-banner-green {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: var(--white);
}
.order-status-banner-red {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: var(--white);
}
.order-status-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.order-status-banner h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.order-status-banner p {
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
  margin: 0;
}
.order-status-banner-meta {
  margin-top: 8px !important;
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.85) !important;
}

/* --- Timeline --- */
.order-timeline {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  position: relative;
}
.timeline-step {
  position: relative;
  padding-left: 44px;
  padding-bottom: 28px;
  min-height: 56px;
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  transition: all 0.2s var(--ease);
  z-index: 2;
}
.timeline-line {
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
  z-index: 1;
}
.timeline-content {
  padding-top: 2px;
}
.timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.timeline-icon {
  font-size: 1rem;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.45;
}

/* --- Done state --- */
.timeline-step.done .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-step.done .timeline-line {
  background: var(--green);
}
.timeline-step.done .timeline-title {
  color: var(--black);
}
.timeline-step.done .timeline-desc {
  color: var(--gray-600);
}

/* --- Current state --- */
.timeline-step.current .timeline-dot {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px var(--blue-soft);
}
.timeline-step.current .timeline-title {
  color: var(--blue-dark);
}
.timeline-step.current .timeline-desc {
  color: var(--gray-700);
}
.timeline-pulse {
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  animation: timeline-pulse 1.6s ease-in-out infinite;
}
@keyframes timeline-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.7); }
}

/* --- Order items --- */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.order-item-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.order-item-row:last-child {
  border-bottom: none;
}
.order-item-image {
  width: 72px;
  height: 72px;
  background: var(--gray-50);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-item-image .no-image {
  font-size: 1.8rem;
  color: var(--gray-300);
}
.order-item-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.order-item-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.order-item-size {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.order-item-price {
  font-weight: 800;
  color: var(--red);
  font-size: 1.05rem;
  white-space: nowrap;
}

.order-summary-block {
  border-top: 2px solid var(--black);
  padding-top: 14px;
  margin-top: 6px;
}

/* --- Pickup + contact buttons --- */
.pickup-address {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.pickup-address strong { color: var(--black); }
.pickup-hours {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}
.contact-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-buttons .btn-primary,
.contact-buttons .btn-whatsapp {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.customer-note {
  background: var(--blue-soft);
  color: var(--gray-800);
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Forms in account --- */
.account-form .form-row {
  margin-bottom: 14px;
}
.account-form input[readonly] {
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.form-info-line {
  background: var(--gray-50);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.form-info-line a {
  color: var(--blue);
  font-weight: 600;
}

.account-card-danger {
  border-color: #FECACA;
  background: #FFFBFB;
}
.account-card-danger h2 {
  color: var(--red-dark);
}
.account-danger-link {
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px dashed var(--red);
  padding-bottom: 1px;
}
.account-danger-link:hover {
  color: var(--red-dark);
  text-decoration: none;
}

/* --- Badges (status) — fallback styles if not defined elsewhere --- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-warning   { background: #FEF3C7; color: #92400E; }
.badge-info      { background: var(--blue-soft); color: var(--blue-dark); }
.badge-primary   { background: var(--blue); color: var(--white); }
.badge-success   { background: #DCFCE7; color: #14532D; }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-danger    { background: var(--red-soft); color: var(--red-dark); }

/* ------- Responsive ------- */
@media (max-width: 960px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .account-page { padding: 20px 0 48px; }
  .account-card { padding: 18px; border-radius: 10px; }
  .account-stat-card { padding: 14px; }
  .account-stat-num { font-size: 1.5rem; }
  .account-info-grid { grid-template-columns: 1fr; }
  .order-header-card { flex-direction: column; align-items: flex-start; }
  .order-status-banner {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .order-item-row {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .order-item-image { width: 60px; height: 60px; }
  .order-item-price {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: -6px;
  }
  .contact-buttons .btn-primary,
  .contact-buttons .btn-whatsapp { flex-basis: 100%; }
  .account-tabs { padding: 4px; }
  .account-tab { padding: 8px 10px; font-size: 0.82rem; }

  /* Responsive table → stacked cards. On phones the 6-column orders table
     overflowed horizontally; convert each row into a self-contained card
     with label:value pairs so nothing is cut off. */
  .account-table-wrap { overflow-x: visible; margin: 0; }
  .account-table thead { display: none; }
  .account-table, .account-table tbody, .account-table tr, .account-table td {
    display: block;
    width: 100%;
  }
  .account-table tr {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 12px;
    background: #fff;
  }
  .account-table tr:hover td { background: transparent; }
  .account-table td {
    border: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
  }
  .account-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    text-align: left;
  }
  /* Action row (Track button) — full-width button, no label */
  .account-table td.account-table-action { padding-top: 12px; }
  .account-table td.account-table-action::before { content: ""; }
  .account-table td.account-table-action .btn-small {
    width: 100%;
    text-align: center;
    padding: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================
   Legal / policy pages (terms, privacy, warranty, returns,
   faq, about, shipping)
   ========================================================= */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-page .legal-header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.legal-page h1 {
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #0f0f0f;
}

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: #0f0f0f;
  scroll-margin-top: 90px;
  border-left: 4px solid #ffb800;
  padding-left: 12px;
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #1a1a1a;
}

.legal-updated {
  color: #6b6b6b;
  font-size: 0.92rem;
  margin: 0;
}

.legal-page p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: #2a2a2a;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: #2a2a2a;
}

.legal-page ul li,
.legal-page ol li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-page a {
  color: #0a5fcc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #073f8a;
}

.legal-page strong {
  color: #0f0f0f;
  font-weight: 700;
}

.legal-page .legal-toc {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 36px;
}

.legal-page .legal-toc strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 10px;
}

.legal-page .legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.legal-page .legal-toc li {
  margin: 0;
}

.legal-page .legal-toc a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  padding: 2px 0;
}

.legal-page .legal-toc a:hover {
  color: #0a5fcc;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 28px 16px 64px;
  }
  .legal-page .legal-toc ul {
    grid-template-columns: 1fr;
  }
  .legal-page h2 {
    font-size: 1.2rem;
  }
}

