/* =============================================
   ARB Accessories Store - Main Stylesheet
   Industrial B2B Design with Orange Accents
   Enhanced Mobile-First Responsive Design
   ============================================= */

:root {
  --primary: #e85d04;
  --primary-dark: #c44f00;
  --primary-light: #fff3ee;
  --secondary: #1a1a2e;
  --accent: #f77f00;
  --text: #1c1c1c;
  --text-light: #5a5a6a;
  --text-muted: #8a8a9a;
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --border: #e2e2e8;
  --border-light: #f0f0f5;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #d97706;
  --info: #2563eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --header-h: 70px;
  --nav-h: 46px;
  --topbar-h: 34px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-wa {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #25d366;
  font-weight: 500;
  transition: opacity 0.2s;
}
.topbar-wa:hover {
  opacity: 0.8;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 0.5px;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Search */
.search-form {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  height: 40px;
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.search-btn:hover {
  background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  transition:
    background var(--transition),
    transform 0.15s;
}
.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cart-badge {
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}
.mobile-menu-btn:hover {
  background: var(--bg);
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== NAV ===== */
.nav {
  background: var(--secondary);
  height: var(--nav-h);
  overflow: hidden;
  transition: height 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  transition:
    color var(--transition),
    background var(--transition);
  border-bottom: 2px solid transparent;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary);
  min-width: 220px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  transition:
    background var(--transition),
    color var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d4a 100%);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: #fff;
  max-width: 600px;
}
.slide-title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
}
.slide-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background var(--transition),
    transform 0.2s;
}
.slide-btn:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
}
.slider-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 20px;
  z-index: 5;
}
.slider-arrow {
  pointer-events: all;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 1.2rem;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background var(--transition),
    transform 0.2s;
}
.slider-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* Default hero (no slider) */
.hero-default {
  height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary) 60%, #3d2c00 100%);
  position: relative;
  overflow: hidden;
}
.hero-default::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 93, 4, 0.3) 0%,
    transparent 70%
  );
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px;
}
.hero-text h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-text h1 span {
  color: var(--primary);
}
.hero-text p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform 0.2s,
    box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.3);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SECTIONS ===== */
.section {
  padding: 56px 0;
}
.section-sm {
  padding: 36px 0;
}
.section-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.view-all:hover {
  gap: 10px;
}

/* ===== CATEGORY GRID - HORIZONTAL SCROLL ===== */
.category-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-grid::-webkit-scrollbar {
  display: none;
}
.category-card {
  flex: 0 0 160px;
  min-width: 160px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
  scroll-snap-align: start;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.category-img-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), #ffe0cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.category-name {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card:hover .category-name {
  color: var(--primary);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge.out {
  background: var(--error);
}
.product-badge.coming {
  background: var(--warning);
}
.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-cat {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-name {
  color: var(--primary);
}
.product-meta {
  margin-top: auto;
}
.product-minqty {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.product-price span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
}
.product-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}
.add-cart-btn {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.add-cart-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}
.view-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: 40px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--border);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product-images {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.product-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-main-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 20px;
}
.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb.active,
.product-thumb:hover {
  border-color: var(--primary);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-detail-name {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}
.product-detail-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.product-detail-price small {
  font-size: 1rem;
  color: var(--text-muted);
}
.product-stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.stock-dot.out {
  background: var(--error);
}
.stock-dot.coming {
  background: var(--warning);
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover {
  background: var(--border);
}
.qty-input {
  width: 60px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  background: #fff;
  height: 40px;
}
.add-to-cart-large {
  flex: 1;
  min-width: 160px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--transition),
    transform 0.2s,
    box-shadow var(--transition);
}
.add-to-cart-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.25);
}
.product-desc-tabs {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.tab-panel p {
  color: var(--text-light);
  line-height: 1.7;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table tr {
  border-bottom: 1px solid var(--border-light);
}
.spec-table td {
  padding: 10px 12px;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
  background: var(--bg);
}

/* ===== CART PAGE ===== */
.cart-page {
  padding: 40px 0;
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.cart-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  padding: 14px 20px;
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  gap: 10px;
  transition:
    opacity 0.3s,
    height 0.3s;
}
.cart-row:last-child {
  border-bottom: none;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  object-fit: contain;
  background: var(--bg);
  flex-shrink: 0;
}
.cart-product-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.cart-product-sku {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.cart-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  width: fit-content;
}
.cart-qty-btn {
  width: 30px;
  height: 30px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cart-qty-btn:hover {
  background: var(--border);
}
.cart-qty-input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  background: #fff;
  height: 30px;
}
.cart-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-total-cell {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition:
    color var(--transition),
    background var(--transition);
}
.cart-remove:hover {
  color: var(--error);
  background: #fef2f2;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.cart-empty h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}
.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.cart-summary h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.875rem;
}
.summary-row.total {
  border-top: 2px solid var(--border-light);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 1rem;
}
.checkout-btn {
  width: 100%;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background var(--transition),
    transform 0.15s;
}
.checkout-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.rfq-note {
  margin-top: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--success);
  text-align: center;
}

/* ===== CHECKOUT ===== */
.checkout-page {
  padding: 40px 0;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.checkout-form-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-section {
  margin-bottom: 28px;
}
.form-section-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group label .req {
  color: var(--primary);
}
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  color: var(--text);
  background: #fff;
  width: 100%;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}
.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}
.place-rfq-btn {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    background var(--transition),
    transform 0.2s;
}
.place-rfq-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}
.order-summary-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.order-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  object-fit: contain;
  background: var(--bg);
  flex-shrink: 0;
}
.order-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}
.order-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.order-item-price {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ===== SEARCH PAGE ===== */
.search-header {
  background: var(--secondary);
  color: #fff;
  padding: 32px 0;
}
.search-header h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.search-header p {
  opacity: 0.75;
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  background: var(--secondary);
  color: #fff;
  padding: 40px 0;
}
.category-header h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.sidebar-filter {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}
.sidebar-filter h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.filter-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}
.filter-accordion-header h4 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}
.filter-accordion-icon {
  display: none;
}
.filter-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.83rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.filter-cat-link:hover,
.filter-cat-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.filter-count {
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 600;
}
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-top: 28px;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--secondary);
  padding: 24px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.feature-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--error);
}

/* ===== WA FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.pagination ul {
  display: flex;
  gap: 6px;
}
.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.pagination li a:hover,
.pagination li.active a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
}
.footer-top {
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
}
.footer-logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.83rem;
  opacity: 0.7;
  margin-bottom: 18px;
  line-height: 1.6;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--primary);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  color: #fff;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col li a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
  display: block;
}
.footer-col li a:hover {
  color: var(--primary);
}
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.footer-wa-btn:hover {
  background: #128c7e;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ===== ALERT / NOTICE ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--success);
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ===== MISC ===== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), #2a2a45);
  padding: 40px 0;
  color: #fff;
  margin-bottom: 36px;
}
.page-hero h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-hero p {
  opacity: 0.7;
  font-size: 0.9rem;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.products-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  background: #fff;
}

/* ===== CART MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}
.modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-body {
  padding: 24px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 3;
}
.modal-close:hover {
  background: var(--border);
}
.modal-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.modal-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
}
#cartModalTitle {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.modal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.modal-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.min-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-actions .btn-primary {
  padding: 11px 24px;
}
.modal-actions .btn-outline {
  padding: 9px 20px;
}

/* ===== RESPONSIVE ===== */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-images {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .order-summary-panel {
    position: static;
  }
  .products-layout {
    grid-template-columns: 200px 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --header-h: auto;
    --nav-h: auto;
  }

  .container {
    padding: 0 16px;
  }

  /* Header */
  .header {
    padding: 10px 0;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    height: auto;
    padding: 0;
    align-items: center;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
  }
  .logo-text {
    min-width: 0;
    overflow: hidden;
  }
  .logo-main {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-sub {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }
  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .cart-label {
    display: none;
  }
  .cart-btn {
    padding: 8px 10px;
  }
  .cart-btn svg {
    width: 18px;
    height: 18px;
  }
  .cart-badge {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.65rem;
  }

  /* Nav */
  .nav {
    height: 0;
    transition: height 0.3s ease;
  }
  .nav.open {
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    gap: 0;
    height: auto;
  }
  .nav-link {
    height: 46px;
    width: 100%;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
  }
  .nav-link.active,
  .nav-link:hover {
    border-left-color: var(--primary);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-dropdown {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  .nav-dropdown .nav-link {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    min-width: 100%;
  }
  .dropdown-menu a {
    padding-left: 36px;
  }

  /* Hero */
  .hero-slider {
    height: 260px;
  }
  .hero-default {
    height: 260px;
  }
  .slide-content {
    padding: 20px 24px;
  }
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .slide-subtitle {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  .slide-btn {
    padding: 10px 20px;
    font-size: 0.82rem;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  /* Category - horizontal scroll remains, cards smaller */
  .category-grid {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
  .category-card {
    flex: 0 0 140px;
    min-width: 140px;
  }
  .category-card img {
    height: 100px;
  }
  .category-img-placeholder {
    height: 100px;
    font-size: 2rem;
  }
  .category-name {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-img-wrap {
    height: 160px;
  }
  .product-body {
    padding: 10px 12px;
  }
  .product-name {
    font-size: 0.82rem;
  }
  .product-price {
    font-size: 1.15rem;
  }
  .product-footer {
    padding: 8px 12px;
  }
  .add-cart-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .view-btn {
    padding: 8px 10px;
  }

  /* Product Detail */
  .product-main-img {
    height: 300px;
  }
  .product-thumbs {
    gap: 6px;
  }
  .product-thumb {
    width: 56px;
    height: 56px;
  }

  /* Products Layout */
  .products-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filter {
    position: static;
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
  }
  .filter-accordion-header {
    cursor: pointer;
    padding: 14px 18px;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .filter-accordion-header h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .filter-accordion-icon {
    display: block;
    transition: transform 0.3s ease;
    color: var(--text-muted);
  }
  .sidebar-filter.open .filter-accordion-icon {
    transform: rotate(180deg);
  }
  .sidebar-filter .filter-category-list {
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
    padding: 0 18px;
  }
  .sidebar-filter.open .filter-category-list {
    max-height: 1000px;
    padding: 0 18px 16px;
  }

  /* Cart */
  .cart-table-header {
    display: none;
  }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .cart-product {
    gap: 12px;
  }
  .cart-product-img {
    width: 52px;
    height: 52px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-top {
    padding: 36px 0;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .checkout-form-panel {
    padding: 20px;
  }

  /* Topbar */
  .topbar {
    display: none;
  }

  /* Modal */
  .modal {
    max-width: 100%;
    margin: 0 12px;
    border-radius: var(--radius);
  }
  .modal-body {
    padding: 20px;
  }
  .modal-product img {
    width: 56px;
    height: 56px;
  }

  /* Toast */
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  /* WA Float */
  .wa-float {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }
}

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

  .header {
    padding: 8px 0;
  }
  .header-inner {
    gap: 8px;
  }
  .logo-main {
    font-size: 1.05rem;
  }
  .logo-sub {
    font-size: 0.58rem;
  }
  .search-input {
    padding: 0 12px;
    font-size: 0.82rem;
    height: 36px;
  }
  .search-btn {
    padding: 0 12px;
  }
  .search-btn svg {
    width: 16px;
    height: 16px;
  }
  .cart-btn {
    padding: 7px 9px;
  }

  /* Hero */
  .hero-slider {
    height: 200px;
  }
  .hero-default {
    height: 200px;
  }
  .slide-content {
    padding: 16px 18px;
  }
  .slide-title {
    font-size: 1.25rem;
  }
  .slide-subtitle {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .slide-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .slider-arrows {
    padding: 10px;
  }

  /* Sections */
  .section {
    padding: 32px 0;
  }
  .section-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }
  .section-header {
    margin-bottom: 16px;
  }

  /* Categories */
  .category-grid {
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }
  .category-card {
    flex: 0 0 120px;
    min-width: 120px;
  }
  .category-card img {
    height: 80px;
  }
  .category-img-placeholder {
    height: 80px;
    font-size: 1.8rem;
  }
  .category-name {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-img-wrap {
    height: 140px;
  }
  .product-img-wrap img {
    padding: 8px;
  }
  .product-body {
    padding: 8px 10px;
  }
  .product-cat {
    font-size: 0.65rem;
  }
  .product-name {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }
  .product-minqty {
    font-size: 0.68rem;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .product-price span {
    font-size: 0.7rem;
  }
  .product-footer {
    padding: 8px 10px;
    gap: 6px;
  }
  .add-cart-btn {
    padding: 7px 8px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .add-cart-btn svg {
    width: 12px;
    height: 12px;
  }
  .view-btn {
    padding: 7px 8px;
  }
  .view-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Product Detail */
  .product-detail {
    padding: 24px 0;
  }
  .product-detail-grid {
    gap: 20px;
  }
  .product-main-img {
    height: 240px;
  }
  .product-main-img img {
    padding: 12px;
  }
  .product-thumb {
    width: 48px;
    height: 48px;
  }
  .product-detail-name {
    font-size: 1.3rem;
  }
  .product-detail-price {
    font-size: 1.6rem;
  }
  .qty-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .add-to-cart-large {
    width: 100%;
    min-width: auto;
    padding: 13px 20px;
  }
  .tabs {
    gap: 0;
  }
  .tab-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .spec-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Cart */
  .cart-page {
    padding: 24px 0;
  }
  .cart-row {
    padding: 12px;
  }
  .cart-product-img {
    width: 46px;
    height: 46px;
  }
  .cart-product-name {
    font-size: 0.8rem;
  }
  .cart-summary {
    padding: 18px;
  }

  /* Checkout */
  .checkout-page {
    padding: 24px 0;
  }
  .checkout-form-panel {
    padding: 16px;
  }
  .form-section-title {
    font-size: 1.05rem;
  }
  .form-control {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .place-rfq-btn {
    padding: 14px;
    font-size: 0.95rem;
  }
  .order-summary-panel {
    padding: 18px;
  }
  .order-item-img {
    width: 40px;
    height: 40px;
  }
  .order-item-name {
    font-size: 0.78rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-item {
    gap: 10px;
  }
  .feature-icon {
    font-size: 1.4rem;
  }
  .feature-item h4 {
    font-size: 0.8rem;
  }
  .feature-item p {
    font-size: 0.7rem;
  }

  /* Footer */
  .footer-top {
    padding: 28px 0;
  }
  .footer-logo {
    font-size: 1.3rem;
  }
  .footer-col h4 {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }
  .footer-col li a {
    font-size: 0.8rem;
  }

  /* Page hero */
  .page-hero {
    padding: 28px 0;
  }
  .page-hero h1 {
    font-size: 1.5rem;
  }
  .category-header {
    padding: 28px 0;
  }
  .category-header h1 {
    font-size: 1.5rem;
  }

  /* Modal */
  .modal-overlay.open {
    padding: 12px;
    align-items: flex-end;
  }
  .modal {
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-product img {
    width: 48px;
    height: 48px;
  }
  #cartModalTitle {
    font-size: 0.95rem;
  }
  .modal-qty {
    padding: 12px;
    margin: 14px 0;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .btn-primary,
  .modal-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-img-wrap {
    height: 120px;
  }
  .product-body {
    padding: 6px 8px;
  }
  .product-name {
    font-size: 0.72rem;
  }
  .product-price {
    font-size: 0.95rem;
  }
  .product-footer {
    padding: 6px 8px;
  }
  .add-cart-btn {
    font-size: 0.68rem;
    padding: 6px;
  }
  .category-card {
    flex: 0 0 105px;
    min-width: 105px;
  }
  .category-card img {
    height: 68px;
  }
  .category-name {
    font-size: 0.65rem;
    padding: 5px 6px;
  }
  .hero-slider {
    height: 170px;
  }
  .slide-title {
    font-size: 1.1rem;
  }
}

/* ===== PRINT ===== */
@media print {
  .header,
  .footer,
  .wa-float,
  .topbar,
  .toast,
  .modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
