:root {
  --primary:       #00CFFF;
  --primary-dark:  #009DC7;
  --primary-light: #E0F7FF;
  --accent:        #FFD700;
  --accent-dark:   #E6B800;
  --text-dark:     #0D1B2A;
  --text-muted:    #5A6A7A;
  --bg-light:      #F4FBFF;
  --white:         #FFFFFF;
  --footer-bg:     #0A1628;
  --border:        #D0EEF7;
  --danger:        #E53935;
  --success:       #00C853;
  --shadow-sm:     0 8px 24px rgba(13,27,42,.08);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── ANNOUNCEMENT BAR ──────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 12.5px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar a { color: var(--accent); }
.top-bar a:hover { text-decoration: underline; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }

/* ── MAIN HEADER ────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,207,255,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.logo-image {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(13,27,42,.10);
  flex-shrink: 0;
}
.footer-logo .logo-image { width: 60px; height: 60px; }
.logo-text { line-height: 1.2; min-width: 0; }
.logo-text strong {
  display: block;
  font-size: 17px;
  color: var(--primary);
  letter-spacing: .5px;
}
.logo-text span {
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

/* Search */
.header-search { flex: 1; display: flex; }
.header-search input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
  background: var(--bg-light);
}
.header-search input:focus { border-color: var(--primary-dark); }
.header-search button {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.header-search button:hover { background: var(--primary-dark); }

/* Header Icons */
.header-icons { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background .2s, color .2s;
  border: none;
  background: none;
  position: relative;
}
.icon-btn i { font-size: 20px; color: var(--primary); }
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.cart-badge {
  position: absolute;
  top: 2px; right: 8px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.staff-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.staff-quick-link:hover { border-color: var(--primary); color: var(--primary-dark); }

/* ── CATEGORY NAVBAR ────────────────────────────────────── */
.cat-nav {
  background: var(--primary);
}
.cat-nav ul {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.cat-nav ul li a:hover,
.cat-nav ul li a.active {
  background: var(--primary-dark);
  color: var(--accent);
}
.cat-nav ul li a i { font-size: 14px; }

/* ── HERO SLIDER ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--primary-light);
}
.hero-slides {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
  touch-action: pan-y;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 48px 60px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}
.hero-slide.slide-1 { background: linear-gradient(135deg, #0D1B2A 50%, var(--primary) 100%); }
.hero-slide.slide-2 { background: linear-gradient(135deg, #001A2C 50%, var(--accent-dark) 100%); }
.hero-slide.slide-3 { background: linear-gradient(135deg, #001020 50%, #00CFFF 100%); }

.hero-content { z-index: 2; width: min(100%, 520px); max-width: 520px; }
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  line-height: 1.6;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 13px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .15s;
}
.btn-hero:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 12px;
  transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); }

.hero-image {
  position: absolute;
  right: 60px;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-image img {
  max-width: min(42vw, 520px);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.4));
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.slider-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
}
.slider-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── SERVICES STRIP ──────────────────────────────────────── */
.services-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,207,255,.08);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
}
.service-item:last-child { border-right: none; }
.service-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon i { font-size: 20px; color: var(--primary); }
.service-text strong { display: block; font-size: 13.5px; color: var(--text-dark); }
.service-text span { font-size: 12px; color: var(--text-muted); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.view-all:hover { color: var(--primary-dark); }

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-light); }

.cat-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(0,207,255,.2);
  transform: translateY(-4px);
}
.cat-card-icon {
  width: 58px; height: 58px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.cat-card-icon i { font-size: 26px; color: var(--primary); }
.cat-card p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.cat-card small { font-size: 11px; color: var(--text-muted); }

/* ── PRODUCT CARDS ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .25s;
  position: relative;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0,207,255,.18);
  transform: translateY(-4px);
}

.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-sale { background: var(--danger); color: var(--white); }
.badge-new { background: var(--primary); color: var(--white); }
.badge-hot { background: var(--accent); color: var(--text-dark); }

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
}
.product-image-placeholder i { font-size: 64px; }

.product-info { padding: 14px 16px 18px; }
.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}
.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: 11px;
  background: var(--danger);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.btn-cart {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-cart i { font-size: 15px; }

/* ── PROMO BANNERS ───────────────────────────────────────── */
.promo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-banner {
  border-radius: 12px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.promo-banner-1 { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.promo-banner-2 { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.promo-content { z-index: 2; }
.promo-content small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .8;
  color: var(--white);
}
.promo-banner-2 .promo-content small { color: var(--text-dark); }
.promo-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin: 8px 0 6px;
  line-height: 1.2;
}
.promo-banner-2 .promo-content h3 { color: var(--text-dark); }
.promo-content p { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 20px; }
.promo-banner-2 .promo-content p { color: rgba(0,0,0,.7); }

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s;
}
.btn-promo:hover { transform: translateY(-2px); }
.promo-banner-2 .btn-promo { color: var(--accent-dark); }

.promo-bg-circle {
  position: absolute;
  right: -30px; bottom: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.promo-bg-circle-2 {
  position: absolute;
  right: 60px; top: -50px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

/* ── BRAND LOGOS ─────────────────────────────────────────── */
.brands-strip { padding: 32px 0; background: var(--bg-light); }
.brands-title { text-align: center; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.brands-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-logo-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: .5px;
  transition: all .2s;
  min-width: 100px;
  text-align: center;
}
.brand-logo-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,207,255,.15); }

/* ── NEWSLETTER ──────────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1A3A5C 100%);
  padding: 52px 0;
  text-align: center;
}
.newsletter h2 { font-size: 30px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.newsletter h2 span { color: var(--primary); }
.newsletter p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  padding: 13px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--primary-dark); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-text strong { color: var(--primary); font-size: 18px; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: rgba(255,255,255,.65);
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--primary); color: var(--white); }

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.footer-links a i { font-size: 10px; color: var(--primary); }
.footer-links a:hover { color: var(--primary); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item i { font-size: 16px; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.contact-item div strong { display: block; font-size: 12px; font-weight: 600; color: var(--white); }
.contact-item div span { font-size: 13px; color: rgba(255,255,255,.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: var(--primary); }

/* ── SHOP PAGE ───────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 32px 0; }
.shop-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; height: fit-content; }
.sidebar-heading { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s, color .2s;
}
.sidebar-cats a:hover, .sidebar-cats a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-cats a .count { font-size: 11px; background: var(--border); padding: 2px 6px; border-radius: 10px; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.shop-toolbar select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
}

/* ── PRODUCT DETAIL ──────────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
.product-detail-image {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.product-detail-image img { max-height: 340px; object-fit: contain; }
.product-gallery { min-width: 0; }
.gallery-main-link { display: flex; align-items: center; justify-content: center; width: 100%; }
.gallery-main-image { width: 100%; }
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.gallery-thumb {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,207,255,.14);
}
.gallery-thumb:hover { transform: translateY(-1px); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info { padding: 8px 0; }
.product-detail-info .product-brand { font-size: 13px; margin-bottom: 6px; }
.product-detail-info h1 { font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 16px; }
.product-detail-info .product-price { font-size: 20px; margin-bottom: 20px; }
.product-detail-info .price-current { font-size: 32px; }
.detail-stock { font-size: 13px; margin-bottom: 20px; }
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }

.qty-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-selector label { font-size: 13.5px; font-weight: 600; }
.qty-input { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-input button {
  width: 36px; height: 40px;
  background: var(--bg-light);
  border: none; cursor: pointer;
  font-size: 18px; font-weight: 600;
  transition: background .2s;
}
.qty-input button:hover { background: var(--primary-light); color: var(--primary); }
.qty-input input {
  width: 56px; height: 40px;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 15px;
  outline: none;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-add-cart:hover { background: var(--primary-dark); }

.product-desc { margin-top: 28px; }
.product-desc h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.product-desc p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── CART PAGE ───────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 36px 0; }
.cart-table-wrap { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.cart-table th { text-align: left; padding: 12px 16px; background: var(--bg-light); font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table th:last-child,
.cart-table td:last-child { text-align: right; }
.cart-product-row { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.cart-product-thumb,
.cart-product-placeholder { width: 64px; height: 64px; border-radius: 8px; flex: 0 0 64px; }
.cart-product-thumb { object-fit: cover; }
.cart-product-placeholder { background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cart-product-info { min-width: 0; }
.cart-product-title { display: block; line-height: 1.35; color: var(--text-dark); }
.cart-product-category { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-price-cell,
.cart-subtotal-cell { font-weight: 700; white-space: nowrap; }
.cart-qty-form { display: flex; gap: 6px; align-items: center; }
.cart-qty-input { width: 72px; min-height: 38px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.cart-update-btn { min-height: 38px; padding: 7px 11px; border: none; border-radius: 6px; background: var(--primary); color: var(--white); font-weight: 700; cursor: pointer; }
.cart-update-btn:hover { background: var(--primary-dark); }
.cart-remove-btn { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: #b00020; border-radius: 8px; cursor: pointer; }
.cart-remove-btn:hover { background: #fff3f3; }
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  height: fit-content;
}
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.btn-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: var(--accent);
  color: var(--text-dark);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.btn-checkout:hover { background: var(--accent-dark); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1A3A5C 100%);
  padding: 40px 0;
  margin-bottom: 0;
}
.page-hero h2 { font-size: 30px; font-weight: 800; color: var(--white); }
.page-hero h2 span { color: var(--primary); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s ease;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); background:#fff; }
.message-stack { display:grid; gap:10px; margin-bottom:20px; }
.message { padding:12px 14px; border-radius:10px; border:1px solid #9ee6b8; background:#e8fff1; color:#087a35; font-weight:700; }
.message.error { border-color:#ffb3b3; background:#fff3f3; color:#b00020; }

/* ── OUT OF STOCK ────────────────────────────────────────── */
.badge-oos { background: #9E9E9E; color: var(--white); }
.out-of-stock-card { opacity: .88; }
.out-of-stock-card .product-image { position: relative; }
.oos-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
.oos-overlay span {
  background: rgba(0,0,0,.7);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.btn-cart-oos {
  background: #9E9E9E !important;
  cursor: not-allowed !important;
}
.btn-cart-oos:hover { background: #757575 !important; transform: none !important; }

/* ── MOBILE NAV DRAWER ───────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: fixed;
  top: 0; left: -100%;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  overflow-y: auto;
  transition: left .3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-header {
  background: var(--primary);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  flex-shrink: 0;
}
.mobile-nav-header strong { font-size: 15px; font-weight: 700; display:flex; align-items:center; gap:9px; }
.mobile-nav-logo { width:34px; height:34px; object-fit:cover; border-radius:9px; background:#fff; border:1px solid rgba(255,255,255,.55); }
.mobile-nav-close {
  background: none; border: none;
  color: var(--white); font-size: 22px;
  cursor: pointer; padding: 4px;
}
.mobile-nav-body { padding: 8px 0; flex: 1; }
.mobile-nav-body a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.mobile-nav-body a i { font-size: 15px; color: var(--primary); width: 20px; }
.mobile-nav-body a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav-body .nav-section-label {
  padding: 10px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

/* ── MOBILE SHOP FILTER TOGGLE ───────────────────────────── */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
}
.mobile-filter-btn i { font-size: 14px; }

/* ── RESPONSIVE — 1200px ─────────────────────────────────── */
@media (max-width: 1200px) {
  .cat-cards { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
}

/* ── RESPONSIVE — 1024px (tablet landscape) ──────────────── */
@media (max-width: 1024px) {
  .cat-cards { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .mobile-filter-btn { display: flex; }
  .hero-slide { padding: 40px 48px; }
  .hero-content h1 { font-size: 36px; }
  .hero-image { right: 32px; }
  .hero-image img { max-width: 40vw; }
}

/* ── RESPONSIVE — 768px (tablet portrait) ────────────────── */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar { display: none; }

  /* Header */
  .site-header { box-shadow: 0 2px 16px rgba(0,207,255,.2); }
  .header-inner {
    gap: 10px;
    padding: 10px 0;
    flex-wrap: nowrap;
  }
  .site-logo { flex-shrink: 0; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .logo-image { width: 42px; height: 42px; border-radius: 11px; }
  .staff-quick-link { display:none; }
  .logo-text strong { font-size: 13px; letter-spacing: 0; }
  .logo-text span { font-size: 10px; }
  .header-search { min-width: 0; flex: 1; }
  .header-search input { padding: 8px 12px; font-size: 13px; }
  .header-search button { padding: 8px 14px; font-size: 14px; }
  /* Hide text labels on icon buttons on tablet */
  .icon-btn span:last-child { display: none; }
  .icon-btn { padding: 6px 8px; }
  .mobile-menu-btn { display: flex; }

  /* Category nav — hide on mobile (use drawer) */
  .cat-nav { display: none; }

  /* Hero */
  .hero-slide {
    min-height: clamp(300px, 60vw, 360px);
    padding: 32px 54px 62px;
    justify-content: center;
    text-align: center;
  }
  .hero-content { margin: 0 auto; max-width: 560px; }
  .hero-content h1 { font-size: clamp(26px, 6.2vw, 34px); margin-bottom: 10px; }
  .hero-content p { font-size: 13px; margin-bottom: 18px; }
  .hero-tag { font-size: 10px; margin-bottom: 10px; }
  .btn-hero { padding: 10px 22px; font-size: 13px; white-space: nowrap; }
  .btn-hero-outline { padding: 8px 18px; font-size: 12px; margin-left: 8px; white-space: nowrap; }
  .hero-image {
    display: flex;
    right: 16px;
    opacity: .14;
    pointer-events: none;
    z-index: 1;
  }
  .hero-image img { max-width: 42vw; max-height: 220px; }
  .slider-btn { width: 40px; height: 40px; font-size: 14px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .slider-dots { bottom: 18px; gap: 12px; }

  /* Services strip */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 14px; }
  .service-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .service-item:nth-last-child(-n+2) { border-bottom: none; }
  .service-icon { width: 36px; height: 36px; }
  .service-icon i { font-size: 16px; }

  /* Section */
  .section { padding: 28px 0; }
  .section-title { font-size: 18px; }
  .view-all { font-size: 12px; }

  /* Category cards */
  .cat-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px 14px; border-radius: 8px; }
  .cat-card-icon { width: 46px; height: 46px; margin-bottom: 8px; }
  .cat-card-icon i { font-size: 20px; }
  .cat-card p { font-size: 12px; }
  .cat-card small { display: none; }

  /* Product grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-image { padding: 14px; }
  .product-info { padding: 10px 12px 14px; }
  .product-name { font-size: 13px; }
  .price-current { font-size: 15px; }
  .btn-cart { font-size: 12.5px; padding: 9px; }

  /* Promo banners */
  .promo-banners { grid-template-columns: 1fr; gap: 14px; }
  .promo-banner { padding: 28px 24px; min-height: 160px; }
  .promo-content h3 { font-size: 20px; }

  /* Brands */
  .brand-logo-item { padding: 8px 16px; font-size: 13px; min-width: 80px; }

  /* Newsletter */
  .newsletter { padding: 36px 0; }
  .newsletter h2 { font-size: 22px; }
  .newsletter p { font-size: 13px; margin-bottom: 20px; }
  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form input { border-radius: 6px; border-right: 1px solid var(--border); }
  .newsletter-form button { border-radius: 6px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
  .site-footer { padding: 36px 0 0; }
  .footer-desc { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 14px 0; }
  .footer-bottom .container { flex-direction: column !important; }

  /* Shop */
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }

  /* Product detail */
  .product-detail-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .product-detail-image { min-height: 260px; padding: 20px; }
  .gallery-thumb { width: 68px; height: 68px; }
  .product-detail-info h1 { font-size: 20px; }
  .price-current { font-size: 26px; }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .cart-table-wrap { overflow: visible; }
  .cart-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  .cart-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .cart-product-cell { display: block !important; text-align: left !important; padding-top: 0 !important; }
  .cart-product-cell::before,
  .cart-action-cell::before,
  .cart-empty-cell::before { display: none !important; }
  .cart-product-row { min-width: 0; align-items: flex-start; }
  .cart-product-title { overflow-wrap: anywhere; }
  .cart-qty-cell .cart-qty-form { justify-content: flex-end; flex-wrap: wrap; }
  .cart-qty-input,
  .cart-update-btn,
  .cart-remove-btn { min-height: 44px; }
  .cart-action-cell { justify-content: flex-end !important; border-bottom: none !important; padding-bottom: 0 !important; }
  .cart-empty-row { padding: 0 !important; }
  .cart-empty-cell { display: block !important; text-align: center !important; border-bottom: 0 !important; padding: 0 !important; }
  .cart-summary { padding: 20px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .contact-form-card { padding: 22px; }

  /* Page hero */
  .page-hero { padding: 28px 0; }
  .page-hero h2 { font-size: 22px; }
}

/* ── RESPONSIVE — 480px (large phones) ──────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* Logo — show icon only with short name */
  .logo-text strong { font-size: 12px; }
  .logo-text span { display: none; }

  /* Category cards — 2 cols */
  .cat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 14px 8px 12px; border-radius: 8px; }
  .cat-card-icon { width: 40px; height: 40px; }
  .cat-card-icon i { font-size: 18px; }
  .cat-card p { font-size: 11.5px; }

  /* Products — 2 tight columns */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 8px 10px 12px; }
  .product-name { font-size: 12.5px; -webkit-line-clamp: 3; }
  .price-current { font-size: 14px; }
  .price-original { font-size: 11px; }
  .btn-cart { font-size: 12px; padding: 8px 6px; gap: 4px; }
  .btn-cart i { font-size: 13px; }

  /* Services — 1 col */
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
  .service-item:last-child { border-bottom: none; }

  /* Hero */
  .hero-slide {
    min-height: 270px;
    padding: 26px 16px 64px;
    align-items: flex-start;
    text-align: left;
  }
  .hero-content { width: 100%; max-width: none; margin: 0; }
  .hero-content h1 { font-size: clamp(22px, 7vw, 28px); line-height: 1.18; }
  .hero-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .btn-hero {
    width: 100%;
    max-width: 220px;
    justify-content: center;
    padding: 11px 18px;
  }
  .btn-hero-outline { display: none; }
  .hero-tag { font-size: 9px; padding: 3px 8px; letter-spacing: 1px; }
  .hero-image { display: none; }
  .slider-btn { display: none; }
  .slider-dots { bottom: 22px; gap: 14px; }
  .slider-dot { width: 9px; height: 9px; }

  /* Footer — 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-heading { font-size: 13px; }
  .footer-links a { font-size: 12.5px; }

  /* Promo banners */
  .promo-banner { padding: 22px 18px; min-height: 140px; }
  .promo-content h3 { font-size: 18px; }
  .promo-content p { font-size: 12px; margin-bottom: 14px; }
  .btn-promo { padding: 8px 16px; font-size: 12px; }

  /* Cart */
  .cart-table tr { padding: 10px; border-radius: 10px; }
  .cart-table td { gap: 10px; }
  .cart-product-thumb,
  .cart-product-placeholder { width: 56px; height: 56px; flex-basis: 56px; }
  .cart-qty-form { gap: 5px; }
  .cart-qty-input { width: 66px; }
  .cart-update-btn { padding: 7px 9px; }
  .cart-summary { padding: 16px; }

  /* Newsletter */
  .newsletter h2 { font-size: 19px; }
  .newsletter p { display: none; }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Brands */
  .brands-logos { gap: 8px; }
  .brand-logo-item { padding: 7px 12px; font-size: 12px; min-width: 70px; }

  /* Badges */
  .badge { font-size: 9px; padding: 2px 6px; }
  .cart-badge { width: 16px; height: 16px; font-size: 9px; right: 4px; top: 1px; }
}

/* ── RESPONSIVE — 360px (small phones) ──────────────────── */
@media (max-width: 360px) {
  .logo-text { display: none; }
  .logo-icon { margin-right: 0; }
  .icon-btn { padding: 4px 6px; }
  .icon-btn i { font-size: 18px; }
  .products-grid { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ── MOBILE SEARCH BAR — below header, all mobile ───────── */
.mobile-search-bar {
  /* Outside the header — sticks right below it via JS-set top */
  display: none;
  position: sticky;
  z-index: 998;           /* one level below the header (1000) */
  background: var(--white);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0,207,255,.12);
}
.mobile-search-bar.show { display: flex; gap: 0; }
.mobile-search-bar form { display: flex; flex: 1; }
.mobile-search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 15px;
  outline: none;
  background: var(--bg-light);
}
.mobile-search-bar input:focus { border-color: var(--primary-dark); }
.mobile-search-bar button {
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.mobile-search-bar button:hover { background: var(--primary-dark); }

/* Toggle button — visible on all mobile */
.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 22px;
  padding: 6px 8px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

/* Show toggle + hide inline search on all mobile */
@media (max-width: 768px) {
  .header-search { display: none; }
  .mobile-search-toggle { display: flex; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .slider-btn,
  .btn-cart,
  .btn-hero,
  .btn-promo,
  .btn-add-cart,
  .btn-submit,
  .btn-checkout,
  .btn-primary { min-height: 44px; }

  .slider-btn { min-width: 44px; }
  .cat-nav ul li a { padding: 13px 16px; }
  .sidebar-cats a { padding: 12px 14px; }
  .footer-links a { padding: 6px 0; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .social-btn { width: 44px; height: 44px; }
  .hero-slider { user-select: none; }
}

@media (max-width: 360px) {
  .hero-slide { min-height: 255px; padding-bottom: 58px; }
  .hero-content h1 { font-size: 21px; }
  .hero-content p { font-size: 12px; }
  .btn-hero { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides { transition: none; }
}

/* Prevent font size adjustment on orientation change */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ── CART CHECKOUT REFINEMENTS ─────────────────────────────── */
.cart-page-shell { padding-bottom: 44px; }
.cart-message-stack { margin: 20px 0 0; display: grid; gap: 10px; }
.cart-alert { padding: 12px 14px; border-radius: 10px; border: 1px solid #b9efca; background: #edfff3; color: #155724; font-weight: 700; }
.cart-alert.error { border-color: #ffc7c7; background: #fff3f3; color: #9f1239; }
.cart-alert.warning { border-color: #ffe8a3; background: #fff9df; color: #7a5600; }
.cart-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.cart-table th { border-bottom: 1px solid var(--border); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product-title { font-weight: 800; }
.cart-product-category { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--bg-light); }
.cart-remove-label { display: none; }
.cart-summary { border-radius: 16px; box-shadow: var(--shadow-sm); position: sticky; top: 112px; }
.cart-summary-header { margin-bottom: 14px; }
.cart-summary-eyebrow { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cart-summary-header h3 { font-size: 20px; font-weight: 900; margin-top: 8px; color: var(--text-dark); }
.summary-muted-green { color: var(--success); font-weight: 800; }
.summary-grand-row { border: none; padding-top: 14px; margin-top: 2px; }
.customer-quote-card { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px; margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--bg-light), #fff); }
.quote-card-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary); color: #fff; font-size: 18px; }
.customer-quote-card h4 { font-size: 15px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.customer-quote-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.quote-checkout-form { margin-top: 14px; display: grid; gap: 10px; }
.quote-checkout-form label { display: block; font-size: 12.5px; font-weight: 900; color: var(--text-dark); }
.quote-checkout-form label span { color: #b00020; }
.quote-checkout-form label small { color: var(--text-muted); font-weight: 700; }
.quote-checkout-form input,
.quote-checkout-form textarea,
.staff-document-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text-dark); font: inherit; outline: none; }
.quote-checkout-form input:focus,
.quote-checkout-form textarea:focus,
.staff-document-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 207, 255, .14); }
.quote-inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-submit-btn { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.quote-form-note { display: flex; align-items: flex-start; gap: 7px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.staff-document-card { margin-top: 18px; padding: 14px; border: 1px dashed var(--primary); border-radius: 14px; background: var(--bg-light); }
.staff-document-card h4 { font-size: 14px; font-weight: 900; margin-bottom: 10px; color: var(--text-dark); }
.staff-document-card form { display: grid; gap: 8px; }
.staff-document-card .btn-checkout { margin-top: 2px; }
.staff-invoice-btn { background: var(--primary); color: #fff; }
.staff-invoice-btn:hover { background: var(--primary-dark); }
.secure-checkout-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .cart-page-shell { padding-bottom: 28px; }
  .cart-table-wrap { border: none; box-shadow: none; background: transparent; border-radius: 0; }
  .cart-table tr.cart-item-row { border-radius: 16px; padding: 14px; box-shadow: 0 10px 28px rgba(13,27,42,.09); }
  .cart-table td { font-size: 14px; }
  .cart-product-row { gap: 13px; }
  .cart-product-thumb,
  .cart-product-placeholder { border-radius: 12px; }
  .cart-product-category { margin-top: 7px; }
  .cart-qty-cell .cart-qty-form { width: 100%; justify-content: flex-end; }
  .cart-qty-input { width: 82px; text-align: center; }
  .cart-action-cell form { width: 100%; display: flex; justify-content: flex-end; }
  .cart-remove-btn { min-width: 118px; border: 1px solid #ffcccc; background: #fff7f7; gap: 7px; font-weight: 800; }
  .cart-remove-label { display: inline; }
  .cart-summary { border-radius: 16px; padding: 18px; }
  .quote-inline-fields { grid-template-columns: 1fr; }
  .customer-quote-card { grid-template-columns: 38px 1fr; padding: 13px; }
  .quote-card-icon { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .cart-table tr.cart-item-row { padding: 12px; }
  .cart-table td { align-items: flex-start; }
  .cart-table td::before { padding-top: 3px; }
  .cart-product-title { font-size: 13.5px; }
  .cart-qty-cell .cart-qty-form { display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
  .cart-qty-input { width: 100%; }
  .cart-update-btn { width: 100%; }
  .cart-remove-btn { width: 100%; }
  .cart-action-cell form { justify-content: stretch; }
  .cart-summary-header h3 { font-size: 18px; }
  .btn-checkout { border-radius: 9px; }
}
.quote-checkout-form .quote-email-option { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-light); cursor: pointer; }
.quote-checkout-form .quote-email-option input { width: auto; padding: 0; accent-color: var(--primary); }
.quote-checkout-form .quote-email-option span { color: var(--text-dark); font-weight: 800; }
.quote-form-note a { color: var(--primary-dark); font-weight: 900; text-decoration: none; }
.quote-form-note a:hover { text-decoration: underline; }

/* ── MOBILE WIDTH CONSISTENCY HOTFIX ──────────────────────
   Keeps 340–390px phones on the same layout as wider mobiles.
   The previous <=360px rules hid the brand text and forced
   category cards into three cramped columns. */
html,
body {
  overflow-x: hidden;
}

@media (max-width: 390px) {
  .header-inner {
    gap: 6px;
    padding: 9px 0;
  }

  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
  }

  .logo-image {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .logo-text {
    display: block;
    min-width: 0;
    max-width: 118px;
  }

  .logo-text strong {
    font-size: 10.5px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text span {
    display: none;
  }

  .mobile-menu-btn,
  .mobile-search-toggle {
    width: 34px;
    min-width: 34px;
    min-height: 38px;
    padding: 5px;
    font-size: 21px;
  }

  .header-icons {
    gap: 2px;
    flex-shrink: 0;
  }

  .icon-btn {
    min-width: 34px;
    min-height: 38px;
    padding: 4px 5px;
  }

  .icon-btn i {
    font-size: 19px;
  }

  .icon-btn span {
    font-size: 10px;
    line-height: 1;
  }

  .cart-badge {
    width: 15px;
    height: 15px;
    top: 0;
    right: 0;
    font-size: 8px;
  }

  .cat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

@media (max-width: 330px) {
  .logo-text {
    max-width: 92px;
  }

  .logo-text strong {
    font-size: 9.5px;
  }

  .mobile-menu-btn,
  .mobile-search-toggle,
  .icon-btn {
    min-width: 32px;
    width: 32px;
  }
}
