:root {
  --orange: #F26B21;
  --orange-light: #FFB800;
  --blue: #1B75BC;
  --blue-dark: #1B3F94;
  --blue-light: #29ABE2;
  --green: #39B54A;
  --ink: #1b1f27;
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-200: #e2e6ec;
  --gray-500: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(27, 63, 148, 0.08);
  --shadow-hover: 0 10px 28px rgba(27, 63, 148, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--gray-50);
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--ink); color: rgba(255,255,255,0.85); text-align: center; font-size: 0.78rem;
  padding: 7px 12px; letter-spacing: 0.2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo img { height: 44px; }
.header-search { flex: 1; max-width: 640px; }
.search-form { display: flex; height: 44px; }
.search-category-select {
  border: 1px solid var(--gray-200); border-right: none; background: var(--gray-50); color: var(--gray-500);
  font-size: 13px; font-weight: 600; padding: 0 10px; border-radius: 8px 0 0 8px; max-width: 150px;
  cursor: pointer; outline: none;
}
.header-search input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200); border-left: none; border-right: none;
  font-size: 15px; outline: none;
}
.header-search input:focus { border-color: var(--blue-light); }
.header-search button {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white; border: none; padding: 0 22px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600;
  display: flex; align-items: center;
}
.header-links { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.header-links a:hover { color: var(--orange); }
.cart-link { display: flex; align-items: center; gap: 6px; position: relative; }
.cart-count {
  background: var(--orange); color: white; font-size: 0.68rem; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

.nav-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-light));
}
.nav-inner { display: flex; gap: 4px; align-items: stretch; }
.nav-bar a {
  color: white; padding: 13px 18px; font-weight: 600; font-size: 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: 0.15s; display: inline-flex; align-items: center;
}
.nav-bar a:hover, .nav-bar a.active { border-bottom-color: var(--orange-light); background: rgba(255,255,255,0.08); }

/* ---------- Mega menu ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle .caret { font-size: 10px; margin-left: 5px; }
.mega-menu {
  display: none; position: absolute; top: 100%; left: 0; background: white; color: var(--ink);
  box-shadow: var(--shadow-hover); border-radius: 0 0 12px 12px; padding: 24px; gap: 32px;
  min-width: 640px; z-index: 100; border-top: 3px solid var(--orange);
}
.nav-dropdown:hover .mega-menu { display: flex; }
.mega-col { display: flex; flex-direction: column; min-width: 150px; }
.mega-col-title { font-weight: 800; color: var(--blue-dark); margin-bottom: 10px; font-size: 0.92rem; }
.mega-col-title:hover { color: var(--orange); }
.mega-col-link { color: var(--gray-500); font-size: 0.85rem; padding: 5px 0; }
.mega-col-link:hover { color: var(--orange); }
/* .nav-bar a's color/padding/display/border apply to every <a> inside .nav-bar, including
   dropdown links — these reset them back to the compact mega-menu look. */
.nav-bar .mega-col-title, .nav-bar .mega-col-link {
  display: block; padding: 5px 0; border-bottom: none; white-space: normal; font-weight: 600;
}
.nav-bar .mega-col-title {
  font-weight: 800; color: var(--blue-dark); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.mega-col-icon {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
}
.nav-bar .mega-col-title:hover { color: var(--orange); background: none; }
.nav-bar .mega-col-link { color: var(--gray-500); }
.nav-bar .mega-col-link:hover { color: var(--orange); background: none; }
@media (max-width: 900px) {
  .mega-menu { position: static; display: flex; flex-wrap: wrap; box-shadow: none; border-radius: 0; }
  .nav-dropdown:hover .mega-menu, .mega-menu { display: none; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; overflow: hidden; height: 420px; }
.hero-slides { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.hero-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; align-items: center;
}
.hero-slide[data-color="orange"] { background: linear-gradient(120deg, #C2410C 0%, var(--orange) 55%, var(--orange-light) 100%); }
.hero-slide[data-color="blue"] { background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%); }
.hero-slide[data-color="green"] { background: linear-gradient(120deg, #0F6B3A 0%, var(--green) 55%, #6BD97D 100%); }
.hero-slide[data-color="lightblue"] { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-light) 65%, #7BC9EF 100%); }
.hero-slide-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; color: white;
}
.hero-slide-text { max-width: 560px; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.hero-slide-text h1 { font-size: 2.5rem; margin: 10px 0 14px; letter-spacing: -0.5px; line-height: 1.1; }
.hero-slide-text p { font-size: 1.05rem; opacity: 0.92; margin: 0 0 26px; }
.hero-slide-text .cta {
  display: inline-block; background: white; color: var(--ink);
  padding: 13px 28px; border-radius: 30px; font-weight: 800; box-shadow: var(--shadow); font-size: 0.92rem;
}
.hero-slide-text .cta:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.hero-slide-art { flex-shrink: 0; opacity: 0.9; }
.hero-slide-art img { width: 220px; height: 220px; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.2)); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.25); border: none;
  color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; z-index: 3;
  display: flex; align-items: center; justify-content: center; transition: 0.15s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0;
  transition: 0.15s;
}
.hero-dot.active { background: white; width: 26px; border-radius: 6px; }

@media (max-width: 760px) {
  .hero-slider { height: 480px; }
  .hero-slide-inner { flex-direction: column; text-align: center; justify-content: center; gap: 20px; }
  .hero-slide-text h1 { font-size: 1.9rem; }
  .hero-slide-art img { width: 130px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: white; border-bottom: 1px solid var(--gray-200); }
.trust-bar-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 16px 24px; font-size: 0.85rem; font-weight: 700; color: var(--gray-500); }
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-icon { font-size: 1rem; }

/* ---------- Category icon strip ---------- */
.category-strip { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.category-strip-inner { display: flex; justify-content: center; gap: 8px; padding: 14px 24px; flex-wrap: wrap; }
.category-strip-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 24px; background: white;
  box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 700; color: var(--ink); transition: 0.15s;
}
.category-strip-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); color: var(--orange); }
.category-strip-item img { width: 26px; height: 26px; border-radius: 6px; }

/* ---------- Vehicle picker (Shop by Vehicle) ---------- */
.vehicle-picker-wrap { margin-top: 32px; }
.vehicle-picker {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius); padding: 26px 28px; color: white; box-shadow: var(--shadow-hover);
}
.vehicle-picker-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.vehicle-picker-icon { font-size: 2rem; }
.vehicle-picker-head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.vehicle-picker-head p { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.vehicle-picker-form { display: flex; gap: 10px; flex-wrap: wrap; }
.vehicle-picker-form select {
  flex: 1; min-width: 130px; padding: 11px 12px; border-radius: 8px; border: none; font-size: 0.9rem;
  font-weight: 600; color: var(--ink); background: white;
}
.vehicle-picker-form select:disabled { opacity: 0.6; cursor: not-allowed; }
.vehicle-picker-form .btn { flex-shrink: 0; }
@media (max-width: 700px) { .vehicle-picker-form { flex-direction: column; } .vehicle-picker-form select, .vehicle-picker-form .btn { width: 100%; } }

/* ---------- Fitment list on product page ---------- */
.fitment-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.fitment-list h4 { font-size: 0.92rem; margin: 0 0 10px; color: var(--blue-dark); }
.fitment-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fitment-list li a {
  display: inline-block; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 20px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--ink);
}
.fitment-list li a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Promo cards ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.promo-card {
  background: linear-gradient(135deg, var(--orange) 0%, #E8452B 60%, #D62839 100%);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); color: white;
  display: flex; flex-direction: column; position: relative;
}
.promo-card::before {
  content: ''; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.promo-card-image { width: 100%; aspect-ratio: 16/7; overflow: hidden; }
.promo-card-image img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-body { padding: 22px 24px 24px; position: relative; z-index: 1; }
.promo-card-badge {
  display: inline-block; background: white; color: var(--orange); font-weight: 800; font-size: 0.78rem;
  padding: 5px 14px; border-radius: 20px; letter-spacing: 0.3px; margin-bottom: 12px; text-transform: uppercase;
}
.promo-card h3 { font-size: 1.25rem; margin: 0 0 8px; line-height: 1.25; }
.promo-card p { font-size: 0.88rem; opacity: 0.92; margin: 0 0 16px; line-height: 1.5; }
.promo-card-countdown {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.18); border-radius: 20px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.promo-card-countdown::before { content: '\23F1'; font-size: 0.85rem; }
.promo-card-countdown.promo-ending { background: rgba(0,0,0,0.32); }
.promo-card-countdown.promo-ending strong { color: #FFE38A; }
.promo-card-cta {
  display: inline-block; background: white; color: var(--orange) !important; font-weight: 800; border: none;
  padding: 11px 22px; border-radius: 8px; text-decoration: none;
}
.promo-card-cta:hover { background: #fff3ee; }

/* ---------- Promo price display on product cards/detail ---------- */
.promo-price-badge {
  display: inline-block; background: #D62839; color: white; font-size: 0.68rem; font-weight: 800;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; text-transform: uppercase;
}
.price-promo { color: #D62839 !important; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-head h2 { font-size: 1.5rem; margin: 0; color: var(--blue-dark); }
.section-head .see-all { font-size: 0.85rem; font-weight: 700; color: var(--orange); white-space: nowrap; }
.section-head .see-all:hover { text-decoration: underline; }
.section-sub { color: var(--gray-500); font-size: 0.9rem; margin: -14px 0 20px; }

/* Horizontally-scrolling product rail (Featured / Best Sellers / People Also Buy) */
.product-rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.product-rail .product-card { flex: 0 0 220px; scroll-snap-align: start; }
.product-rail::-webkit-scrollbar { height: 6px; }
.product-rail::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.category-card {
  background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: 0.18s; display: flex; flex-direction: column;
}
.category-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.25s; }
.category-card:hover .category-card-image img { transform: scale(1.04); }
.category-card-body { padding: 20px 22px; }
.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.category-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.15rem; }
.category-card p { margin: 0 0 14px; color: var(--gray-500); font-size: 0.92rem; }
.category-card .count { font-size: 0.8rem; color: var(--blue); font-weight: 700; }
.category-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.category-subs span { background: var(--gray-100); color: var(--gray-500); font-size: 0.72rem; padding: 3px 9px; border-radius: 12px; font-weight: 600; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
  background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.18s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.quick-add-form { padding: 0 16px 16px; }
.quick-add-btn { width: 100%; padding: 9px; font-size: 0.82rem; }
.quick-add-btn:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; opacity: 0.7; }
.product-thumb { aspect-ratio: 1/1; background: var(--gray-100); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-panel .no-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.product-thumb .placeholder { color: var(--gray-500); font-size: 0.85rem; }
.product-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 0.68rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: white; z-index: 2;
}
.product-badge[data-type="featured"] { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.product-badge[data-type="bestseller"] { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.discount-badge {
  position: absolute; top: 10px; right: 10px; background: #d0021b; color: white; font-size: 0.68rem;
  font-weight: 800; padding: 4px 8px; border-radius: 6px; z-index: 2; letter-spacing: 0.2px;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price-row .price { margin-top: 0; }
.compare-price { color: var(--gray-500); font-size: 0.85rem; text-decoration: line-through; }
.free-ship-tag { color: var(--green); font-size: 0.72rem; font-weight: 700; margin-top: 3px; }
.price-row-large { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 6px; flex-wrap: wrap; }
.compare-price-large { color: var(--gray-500); font-size: 1.2rem; text-decoration: line-through; }
.discount-badge-inline { background: #d0021b; color: white; font-size: 0.78rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; }
.product-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 0.98rem; margin: 0 0 6px; }
.product-info .sku { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 8px; }
.product-info .price { margin-top: 0; font-size: 1.15rem; font-weight: 800; color: var(--orange); }
.product-info .stock { font-size: 0.75rem; color: var(--green); font-weight: 600; }
.product-info .stock.low { color: var(--orange); }
.product-info .stock.out { color: #c0392b; }

/* ---------- Category layout with sidebar ---------- */
.category-banner { width: 100%; max-height: 220px; overflow: hidden; }
.category-banner img { width: 100%; height: 220px; object-fit: cover; display: block; }
.category-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-top: 18px; }
.category-sidebar { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: fit-content; }
.category-sidebar h4 { margin: 0 0 12px; font-size: 0.9rem; color: var(--blue-dark); }
.category-sidebar .sub-link { display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.86rem; color: var(--gray-500); font-weight: 600; }
.category-sidebar .sub-link:hover { background: var(--gray-50); color: var(--ink); }
.category-sidebar .sub-link.active { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; }
@media (max-width: 760px) { .category-layout { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail .image-panel { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.product-detail .image-panel img { border-radius: 8px; }
.gallery-main { aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; background: var(--gray-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb-btn {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: none; flex-shrink: 0;
}
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.gallery-thumb-btn.active { border-color: var(--orange); }
.product-detail h1 { font-size: 1.7rem; margin: 0 0 8px; }
.product-detail .price-large { font-size: 2rem; font-weight: 800; color: var(--orange); margin: 12px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.badge.new { background: #e6f7ea; color: var(--green); }
.badge.used { background: #fff3e0; color: var(--orange); }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.85); margin-top: 60px; padding: 40px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.footer-grid h4 { color: white; margin: 0 0 12px; font-size: 0.95rem; }
.footer-grid a { display: block; margin-bottom: 6px; font-size: 0.88rem; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--orange-light); }
.footer-bottom { text-align: center; font-size: 0.8rem; opacity: 0.6; margin-top: 28px; }

/* ---------- Forms / buttons (shared with admin) ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: var(--gray-100); color: var(--ink); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: #fdecea; color: #c0392b; }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: white; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* ---------- Static pages (About / Contact) ---------- */
.static-page { max-width: 900px; }
.static-page h1 { font-size: 2rem; color: var(--blue-dark); margin-bottom: 10px; }
.static-page .lede { font-size: 1.05rem; color: var(--gray-500); max-width: 640px; margin-bottom: 32px; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 40px; }
.value-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.value-card h3 { margin: 0 0 8px; font-size: 1rem; }
.value-card p { margin: 0; font-size: 0.88rem; color: var(--gray-500); }
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: white; border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.cta-banner h2 { margin: 0 0 16px; font-size: 1.3rem; }

.contact-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.panel-lite { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel-lite h3 { margin-top: 0; color: var(--blue-dark); }
.panel-lite p { font-size: 0.92rem; margin: 10px 0; }
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; } }

.form-group { text-align: left; margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; color: var(--gray-500); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 0.9rem; font-family: inherit;
}
.success-msg { background: #e6f7ea; color: var(--green); padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 14px; }
.error-msg { background: #fde8e8; color: #d62839; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* Honeypot field: present in the DOM (so simple bots that don't render CSS
   still fill it) but invisible and unreachable by keyboard for real visitors. */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .search-category-select { max-width: 90px; font-size: 12px; }
}

/* ---------- Cart & Checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; margin-top: 18px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 64px 1fr 90px 90px 32px; gap: 14px; align-items: center;
  background: white; border-radius: 10px; padding: 12px; box-shadow: var(--shadow);
}
.cart-line-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-line-info a { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.cart-line-info a:hover { color: var(--orange); }
.cart-line-info .sku { font-size: 0.75rem; color: var(--gray-500); margin: 3px 0; }
.cart-line-info .price { font-size: 0.82rem; color: var(--gray-500); }
.cart-line-qty input { width: 100%; padding: 7px 8px; border: 1px solid var(--gray-200); border-radius: 6px; text-align: center; }
.cart-line-total { font-weight: 800; color: var(--orange); text-align: right; }
.cart-remove-btn { background: none; border: none; color: var(--gray-500); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.cart-remove-btn:hover { color: #c0392b; }
.cart-summary { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 90px; }
.cart-summary h3 { margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; color: var(--gray-500); }
.summary-row span:last-child { color: var(--ink); font-weight: 600; }
.summary-total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 12px; }
.summary-total span { color: var(--ink) !important; }
.summary-note { font-size: 0.78rem; color: var(--orange); margin: 4px 0 0; }
@media (max-width: 800px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px 1fr; }
}

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 999; }
.chat-toggle-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: white;
  box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.15s;
}
.chat-toggle-btn:hover { transform: scale(1.06); }
.chat-toggle-btn svg { display: block; }
.chat-toggle-close { display: none; font-size: 1.8rem; line-height: 1; font-weight: 300; }
.chat-widget.chat-open .chat-toggle-btn svg { display: none; }
.chat-widget.chat-open .chat-toggle-close { display: block; }

.chat-window {
  position: absolute; bottom: 72px; right: 0; width: 350px; max-width: calc(100vw - 44px);
  height: 480px; max-height: 70vh; background: white; border-radius: 16px; box-shadow: var(--shadow-hover);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-window[hidden] { display: none; }
.chat-window-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: white;
  padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.chat-header-logo { width: 30px; height: 30px; object-fit: contain; background: white; border-radius: 6px; padding: 2px; }
.chat-window-header strong { display: block; font-size: 0.92rem; }
.chat-window-header span { display: block; font-size: 0.72rem; opacity: 0.85; }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.86rem; line-height: 1.4; word-wrap: break-word; }
.chat-msg-bot { align-self: flex-start; background: var(--gray-100, #f3f4f6); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg-bot a { color: var(--blue); font-weight: 700; }
.chat-msg-user { align-self: flex-end; background: var(--orange); color: white; border-bottom-right-radius: 4px; }

.chat-typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #9aa1ab; display: inline-block;
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--gray-200, #e5e7eb); flex-shrink: 0; }
.chat-input-row input {
  flex: 1; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 20px; padding: 9px 14px;
  font-size: 0.85rem; outline: none;
}
.chat-input-row input:focus { border-color: var(--blue-light); }
.chat-input-row button {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--orange); color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-input-row button:hover { background: #e05c15; }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-window { width: calc(100vw - 28px); height: 65vh; }
}
