/* ===== CART MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.modal-overlay.open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.modal {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal-body {
  padding: 20px;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.modal-product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.modal-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f7;
}
#cartModalTitle {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}
.modal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.modal-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.min-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
/* =============================================
   ARB Accessories Store - Main Stylesheet
   Industrial B2B Design with Orange Accents
   ============================================= */

: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;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 70px;
  --nav-h: 46px;
  --topbar-h: 34px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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;
}

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

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.topbar-wa {
  display: flex;
  z-index: 2;
  gap: 5px;
  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);
}
.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 0.2s;
}
.search-form:focus-within {
  border-color: var(--primary);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
}
.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 0.2s;
}
.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 0.2s,
    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;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  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;
}
.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 12px;
  height: 100%;
  display: flex;
  align-items: center;
  transition:
    color 0.2s,
    background 0.2s;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.3px;
}
.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 0.2s,
    color 0.2s;
}
.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.6;
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: #fff;
  max-width: 600px;
}
.slide-title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
}
.slide-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 24px;
}
.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 0.2s,
    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.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.2rem;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* 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(2.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.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.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: 28px;
  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 ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
}
.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;
}
.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 0.25s,
    box-shadow 0.25s;
  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.35s;
}
.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: 3px 8px;
  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: 8px;
}
.product-cat {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 0.9rem;
  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.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.product-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
}
.product-footer {
  padding: 12px 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: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-cart-btn:hover {
  background: var(--primary-dark);
}
.add-cart-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}
.view-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== 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 0.2s;
  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: 38px;
  height: 38px;
  background: var(--bg);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.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: 38px;
}
.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 0.2s,
    transform 0.2s;
}
.add-to-cart-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.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);
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.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.8rem;
  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;
}
.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-sm);
  overflow: hidden;
  width: fit-content;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.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: 28px;
}
.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: 4px;
  border-radius: var(--radius-sm);
  transition:
    color 0.2s,
    background 0.2s;
}
.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 0.2s;
}
.checkout-btn:hover {
  background: #15803d;
}
.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.8rem;
  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: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  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.12);
}
.form-control.error {
  border-color: var(--error);
}
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 0.2s,
    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);
}
.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-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-light);
  transition: all 0.2s;
}
.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;
}

/* ===== 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: 28px;
  left: 28px;
  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 0.2s;
}
.pagination li a:hover,
.pagination li.active a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 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;
}

/* ===== 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 0.2s;
}
.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 0.2s;
  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 0.2s;
}
.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;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .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;
  }
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filter {
    position: static;
  }
}
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 16px;
    gap: 12px;
  }
  .search-form {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .header {
    height: auto;
    padding: 12px 0;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .cart-label {
    display: none;
  }
  .nav {
    height: 0;
  }
  .nav.open {
    height: auto;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    gap: 0;
  }
  .nav-link {
    height: 44px;
    width: 100%;
    padding: 0 16px;
    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: transparent;
  }
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
  }
  .hero-slider {
    height: 280px;
  }
  .hero-default {
    height: 280px;
  }
  .slide-content {
    padding: 24px;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cart-table-header {
    display: none;
  }
  .cart-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .cart-row > *:nth-child(2),
  .cart-row > *:nth-child(4) {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .topbar {
    display: none;
  }
}
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 220px;
  }
  .hero-default {
    height: 220px;
  }
  .product-detail-grid {
    gap: 24px;
  }
  .section {
    padding: 36px 0;
  }
  .qty-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .add-to-cart-large {
    width: 100%;
  }
}

/* ===== PRINT ===== */
@media print {
  .header,
  .footer,
  .wa-float,
  .topbar {
    display: none;
  }
}
