/* ===== Base ===== */
* {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
/* ===== Scrollbar for tabs ===== */
.tab-scroll::-webkit-scrollbar {
  height: 6px;
}
.tab-scroll::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 999px;
}

/* ===== Feature icon hover ===== */
.feature-item:hover .feature-icon {
  border-color: #F97316;
  background: #FFF7ED;
  transform: scale(1.06);
  transition: all 300ms ease;
}
.feature-icon {
  transition: all 300ms ease;
}

/* ===== Primary Button (orange requested) ===== */
.btn-primary {
  background-color: #F97316;
  transition: background-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.btn-primary:hover {
  background-color: #ea6a0e;
  box-shadow: 0 8px 18px -6px rgba(249, 115, 22, 0.45);
}

/* ===== Family Tabs ===== */
.family-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 16px 12px 12px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 300ms ease;
  border-bottom: 3px solid transparent;
}
.family-tab:hover {
  border-color: #F97316;
}
.family-tab .tab-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  flex-shrink: 0;
  transition: all 300ms ease;
}
.family-tab .tab-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: #0D2A63;
  transition: stroke 300ms ease;
}
.family-tab .tab-label {
  text-align: left;
}
.family-tab .tab-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.family-tab .tab-count {
  font-size: 11px;
  color: #6B7280;
  white-space: nowrap;
}
.family-tab.active {
  background: #0D2A63;
  border-color: #0D2A63;
  border-bottom-color: #F97316;
}
.family-tab.active .tab-icon-wrap {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.family-tab.active .tab-icon-wrap svg {
  stroke: #FFFFFF;
}
.family-tab.active .tab-name {
  color: #FFFFFF;
}
.family-tab.active .tab-count {
  color: #BFD3F5;
}

/* ===== Sidebar category list ===== */
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: all 300ms ease;
}
.category-item:hover {
  color: #0D2A63;
  background: #F8FAFC;
}
.category-item svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 300ms ease;
}
.category-item:hover svg {
  opacity: 1;
  transform: translateX(0);
  stroke: #0D2A63;
}
.category-item.active {
  background: #FFEDD5;
  color: #F97316;
}
.category-item.active svg {
  opacity: 1;
  transform: translateX(0);
  stroke: #F97316;
}

/* ===== Fuel filter items (orange accent requested) ===== */
.filter-item {
  transition: all 300ms ease;
}
.filter-item:hover {
  background: #FFF7ED;
}
.filter-item:hover span.text-xs {
  background: #F97316;
  color: #FFFFFF;
  border-color: #F97316;
}
.filter-item.active {
  background: #FFEDD5;
}
.filter-item.active span.text-xs {
  background: #F97316;
  color: #FFFFFF;
  border-color: #F97316;
}

/* ===== View toggle buttons ===== */
.view-toggle-btn {
  color: #6B7280;
  background: #FFFFFF;
  transition: all 300ms ease;
}
.view-toggle-btn.active-view {
  background: #F97316;
  color: #FFFFFF;
}

/* ===== Product Card ===== */
.product-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -12px rgba(13, 42, 99, 0.18);
  border-color: #FDBA74;
}
.product-card .product-img-wrap {
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card .product-img-wrap img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 300ms ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
.product-card .fuel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
}
.product-card .view-details-btn {
  background-color: #0D2A63;
  color: #FFFFFF;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.product-card:hover .view-details-btn {
  background-color: #F97316;
  box-shadow: 0 8px 18px -6px rgba(249, 115, 22, 0.45);
}

/* ===== List view ===== */
#productGrid.list-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#productGrid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}
#productGrid.list-view .product-card .product-img-wrap {
  width: 160px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
#productGrid.list-view .product-card .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#productGrid.list-view .product-card .view-details-btn {
  align-self: flex-start;
}

@media (max-width: 640px) {
  #productGrid.list-view .product-card {
    flex-direction: column;
    overflow:hidden;
  }
  #productGrid.list-view .product-card .product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}