/*
Theme Name: SARALX Industrial
Theme URI: https://saralx.com
Author: SARALX
Author URI: https://saralx.com
Description: SARALX Industrial & Business Supplies WordPress Theme - Fully editable from WordPress Customizer
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: saralx
Tags: e-commerce, business, industrial, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks, block-patterns
*/

/* === CSS VARIABLES (editable via Customizer) === */
:root {
  --blue: #1a2d80;
  --blue-light: #2a3fa0;
  --gold: #f5a623;
  --dark: #0d0d1a;
  --gray-bg: #f4f6fa;
  --gray-mid: #e8eaf0;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #444466;
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--gray-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #bbb; text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 16px; align-items: center; }
.topbar-left span { color: var(--gold); font-weight: 600; }
.topbar-right { display: flex; align-items: center; }

/* ===== TICKER ===== */
.ticker {
  background: var(--gold);
  color: var(--dark);
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 35s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,45,128,0.1);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.logo-area { flex-shrink: 0; }
.logo-area img { height: 52px; width: auto; display: block; }
.site-title-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Search */
.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  height: 44px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
}
.search-bar select {
  border: none;
  border-right: 1px solid var(--gray-mid);
  padding: 0 10px;
  font-size: 13px;
  background: var(--gray-bg);
  color: var(--text-mid);
  cursor: pointer;
  outline: none;
  font-family: 'Exo 2', sans-serif;
}
.search-btn {
  background: var(--gold);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  font-weight: 700;
  transition: background 0.2s;
}
.search-btn:hover { background: #d4900f; }

/* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 11px;
  gap: 3px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.action-btn:hover { background: var(--gray-bg); color: var(--blue); }
.action-btn .icon { font-size: 20px; }
.cart-btn {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 16px;
  border-radius: 6px;
  flex-direction: row;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.cart-btn:hover { background: var(--blue-light) !important; }
.cart-count {
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== NAV ===== */
nav.main-nav { background: var(--blue); }
.nav-inner {
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item, .nav-inner a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: inline-block;
}
.nav-inner a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-all { background: var(--gold); color: var(--dark) !important; font-weight: 700; border: none !important; }
.nav-all:hover { background: #d4900f !important; color: var(--dark) !important; }

/* WordPress Menu Styles */
.nav-inner ul { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-inner ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item > a { color: var(--gold); border-bottom-color: var(--gold); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-header img { height: 36px; }
.close-nav { background: none; border: none; color: var(--text-dark); font-size: 24px; cursor: pointer; }
.mobile-nav a, .mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-mid);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}
.mobile-nav ul { list-style: none; }
.mobile-nav a:hover, .mobile-nav ul li a:hover { color: var(--blue); background: var(--gray-bg); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.open { display: block; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2d80 60%, #2a3fa0 100%);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content { max-width: 520px; z-index: 2; }
.hero-tag {
  background: var(--gold);
  color: var(--dark);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #d4900f; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); }
.hero-stats {
  position: absolute;
  right: 40px; bottom: 0;
  z-index: 2;
  display: flex;
  gap: 36px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border-radius: 12px 12px 0 0;
  padding: 22px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}
.stat { text-align: center; }
.stat .num { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; color: var(--gold); }
.stat .lbl { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== PROMO STRIP ===== */
.promo-strip {
  background: var(--white);
  padding: 14px 40px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-mid);
  overflow-x: auto;
}
.promo-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-right: 1px solid var(--gray-mid);
  min-width: 160px;
}
.promo-item:last-child { border-right: none; }
.promo-icon { font-size: 24px; flex-shrink: 0; }
.promo-text h4 { font-size: 13px; font-weight: 700; color: var(--blue); font-family: 'Rajdhani', sans-serif; }
.promo-text p { font-size: 11px; color: var(--text-mid); }

/* ===== SECTIONS ===== */
.section { padding: 32px 40px; }
.section-white { background: var(--white); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 5px; height: 26px;
  background: var(--gold);
  border-radius: 3px;
}
.view-all {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--blue);
  padding: 5px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.view-all:hover { background: var(--blue); color: var(--white); }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  border: 1px solid var(--gray-mid);
  transition: all 0.2s;
}
.cat-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26,45,128,0.12);
  transform: translateY(-2px);
}
.cat-icon { font-size: 30px; margin-bottom: 8px; display: block; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--blue); font-family: 'Rajdhani', sans-serif; }

/* ===== DEAL SECTION ===== */
.deal-section { background: var(--white); padding: 32px 40px; }
.deal-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--gray-mid);
  border-radius: 10px;
  overflow: hidden;
}
.deal-card {
  background: var(--white);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.deal-card:hover { background: #f0f3ff; }
.deal-emoji { font-size: 36px; margin-bottom: 8px; }
.deal-title { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--blue); }
.deal-off { color: #e74c3c; font-size: 12px; font-weight: 700; margin-top: 3px; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.product-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(26,45,128,0.12);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.product-img {
  height: 150px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
}
.badge-red { background: #e74c3c; color: white; }
.product-info { padding: 12px; }
.product-brand { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 12px; color: var(--text-dark); margin: 4px 0 6px; line-height: 1.4; font-weight: 500; }
.product-price { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--blue); }
.product-price .old { font-size: 12px; color: #999; text-decoration: line-through; font-weight: 400; margin-left: 5px; }
.product-rating { font-size: 11px; color: #777; margin: 3px 0 8px; }
.product-rating span { color: var(--gold); }
.add-cart-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.add-cart-btn:hover { background: var(--gold); color: var(--dark); }

/* ===== BANNER PAIR ===== */
.banner-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 40px 32px;
}
.banner-card {
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.banner-card.b1 { background: linear-gradient(135deg, #1a2d80, #2a3fa0); color: white; }
.banner-card.b2 { background: linear-gradient(135deg, #0d0d1a, #2d1a00); color: white; }
.banner-card::after {
  content: attr(data-emoji);
  position: absolute;
  right: 16px; bottom: -10px;
  font-size: 72px;
  opacity: 0.15;
}
.banner-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: white; }
.banner-card p { font-size: 13px; opacity: 0.75; margin-top: 6px; color: rgba(255,255,255,0.75); }
.btn-sm {
  background: var(--gold);
  color: var(--dark);
  padding: 7px 18px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 14px;
  display: inline-block;
  transition: 0.2s;
}
.banner-card:hover .btn-sm { transform: translateX(4px); }

/* ===== FOOTER ===== */
footer.site-footer { background: var(--white); color: var(--text-mid); padding: 40px 40px 20px; border-top: 2px solid var(--gray-mid); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-mid);
}
.footer-brand-row img { height: 44px; flex-shrink: 0; }
.footer-brand-row p { font-size: 13px; line-height: 1.7; color: var(--text-mid); max-width: 600px; }
.footer-cols-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-col a, .footer-col ul li a {
  display: block;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 7px;
  transition: color 0.2s;
}
.footer-col ul { list-style: none; }
.footer-col a:hover, .footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--gray-mid);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-mid);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  z-index: 300;
  padding: 6px 0 8px;
  justify-content: space-around;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}
.mobile-bottom-nav a.active { color: var(--blue); }
.nav-icon { font-size: 20px; }
.cart-dot-wrap { position: relative; }
.cart-dot-count {
  position: absolute;
  top: -3px; right: -6px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  width: 15px; height: 15px;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== WP CONTENT ===== */
.wp-block-group, .entry-content { max-width: 100%; }
.site-main { min-height: 60vh; }

/* Admin Bar Spacing */
.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar header { top: 46px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .deal-strip { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .topbar { padding: 6px 16px; }
  header { padding: 0 16px; }
  .hamburger { display: flex; }
  .search-bar select { display: none; }
  .header-actions .action-btn:not(.cart-btn) { display: none; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 32px 16px; min-height: 260px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { right: 16px; gap: 20px; padding: 14px 16px; }
  .stat .num { font-size: 20px; }
  .promo-strip { padding: 10px 16px; }
  .section { padding: 20px 16px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .deal-strip { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-pair { grid-template-columns: 1fr; padding: 0 16px 20px; }
  footer.site-footer { padding: 28px 16px 80px; }
  .footer-cols-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .mobile-nav { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .nav-inner { display: none; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols-row { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
}
