/*
Theme Name: Dragon Auto Parts
Theme URI: https://dragonautoparts.com
Author: Antigravity AI
Author URI: https://dragonautoparts.com
Description: Official custom WordPress theme for Dragon Auto Parts WooCommerce store (RTL Arabic Automotive Spare Parts).
Version: 1.0.0
Text Domain: dragon-auto-parts
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #E31E24;
  --primary-hover: #C1121F;
  --primary-glow: rgba(227, 30, 36, 0.25);
  --secondary: #1A1A1A;
  --secondary-light: #262626;
  --dark-bg: #111111;
  --dark-card: #1E1E1E;
  --border-color: #E2E8F0;
  --dark-border: #333333;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --text-dark: #1A202C;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --accent-gold: #FFB703;
  --success: #10B981;
  --warning: #F59E0B;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-red: 0 10px 20px rgba(227, 30, 36, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Almarai', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   Elementor Pro Builder Overlay Badge Styling
   ========================================================================== */
.elementor-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(227, 30, 36, 0.1);
  color: var(--primary);
  border: 1px dashed var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 6px;
  user-select: none;
}

.elementor-tag-overlay-visible .elementor-tag-badge {
  display: inline-flex !important;
}

.elementor-tag-overlay-hidden .elementor-tag-badge {
  display: none !important;
}

/* ==========================================================================
   Header Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.top-bar-announcement .badge-red {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Main Sticky Header (Theme Builder)
   ========================================================================== */
.main-header {
  background: var(--secondary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--primary);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #990000);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: var(--shadow-red);
  border: 1px solid rgba(255,255,255,0.2);
}

.logo-text h1 {
  color: white;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* OEM Smart Search Widget */
.smart-search-wrapper {
  position: relative;
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 16px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-hover);
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-border);
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:hover {
  background: rgba(227, 30, 36, 0.15);
}

.suggestion-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: white;
}

.suggestion-text h5 {
  color: white;
  font-size: 14px;
  margin-bottom: 2px;
}

.suggestion-text p {
  color: #94A3B8;
  font-size: 12px;
}

.suggestion-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
}

/* User & Cart Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.action-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
}

.cart-counter {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

/* Category Navigation Sub-bar */
.nav-bar {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #E2E8F0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(255,255,255,0.04);
}

.brand-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  padding: 8px 0;
}

.nav-item:hover .brand-dropdown {
  display: block;
}

.brand-dropdown-item {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: var(--transition);
  font-weight: 600;
}

.brand-dropdown-item:hover {
  background: var(--primary);
  color: white;
}

.b2b-highlight-link {
  background: rgba(227, 30, 36, 0.15);
  color: #FF6B6B;
  border: 1px solid rgba(227, 30, 36, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-highlight-link:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Elementor Pro Interactive Kit Control Floating Bar
   ========================================================================== */
.elementor-kit-bar {
  background: linear-gradient(90deg, #111827, #1E293B);
  color: white;
  padding: 10px 20px;
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.elementor-bar-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.elementor-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #F8FAFC;
}

.elementor-badge-pill {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.elementor-view-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}

.view-tab-btn {
  background: transparent;
  color: #94A3B8;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-tab-btn:hover {
  color: white;
}

.view-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.elementor-tool-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.elementor-tool-btn:hover {
  background: white;
  color: var(--secondary);
}

/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */

/* Hero Banner */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(17,17,17,0.92), rgba(26,26,26,0.85)), url('/assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: 5px solid var(--primary);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(227, 30, 36, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: white;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
  background: linear-gradient(90deg, #E31E24, #FF5252);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: #CBD5E1;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 35px;
}

.stat-item h4 {
  color: var(--primary);
  font-size: 28px;
  margin: 0;
}

.stat-item p {
  color: #94A3B8;
  font-size: 13px;
  margin: 0;
}

/* Vehicle Compatibility Selector Box (Finder) */
.vehicle-finder-card {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--dark-border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.finder-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dark-border);
}

.finder-header h3 {
  color: white;
  font-size: 20px;
}

.finder-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
}

.form-select, .form-input {
  background: #111111;
  border: 1px solid var(--dark-border);
  color: white;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.btn-primary-red {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
}

.btn-primary-red:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Brands Grid */
.brands-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-wrap h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 16px;
}

.brands-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: white;
}

.brand-card-logo {
  font-size: 40px;
  margin-bottom: 4px;
}

.brand-card h4 {
  font-size: 18px;
  margin: 0;
}

.brand-card p {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

/* Dynamic Categories Grid */
.categories-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.categories-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-tile {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 30, 36, 0.3);
}

.category-tile:hover::after {
  transform: scaleX(1);
}

.category-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(227, 30, 36, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.category-tile-content h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.category-tile-content p {
  color: var(--text-muted);
  font-size: 13px;
}

/* B2B Wholesale Banner */
.b2b-banner-section {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.b2b-banner-card {
  background: linear-gradient(135deg, var(--secondary), #111111);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border: 2px solid rgba(227, 30, 36, 0.4);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.b2b-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: rgba(227, 30, 36, 0.15);
  border-radius: 50%;
  filter: blur(50px);
}

.b2b-content h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.b2b-content p {
  color: #CBD5E1;
  font-size: 16px;
  max-width: 700px;
}

.b2b-badges {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

.b2b-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Products Section & Loop Grid Cards */
.products-section {
  padding: 60px 0;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.product-image-wrap {
  width: 100%;
  height: 220px;
  background: #F8FAFC;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-oem-tag {
  color: var(--text-muted);
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary);
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fitment-green-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.price-current {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-heading);
}

.price-old {
  color: #94A3B8;
  font-size: 14px;
  text-decoration: line-through;
  margin-right: 6px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-add-cart {
  flex-grow: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
}

.btn-quick-view {
  background: var(--bg-light);
  color: var(--secondary);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-view:hover {
  background: var(--secondary);
  color: white;
}

/* ==========================================================================
   WOOCOMMERCE SHOP / ARCHIVE TEMPLATE
   ========================================================================== */
.shop-layout-container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.shop-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-widget {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.count-badge {
  color: #94A3B8;
  font-size: 12px;
}

.shop-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-controls-bar {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SINGLE PRODUCT TEMPLATE
   ========================================================================== */
.product-single-container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

/* Interactive Gallery */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-gallery-view {
  width: 100%;
  height: 420px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-gallery-view img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-gallery-view:hover img {
  transform: scale(1.25);
  cursor: zoom-in;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.thumb-item.active {
  border-color: var(--primary);
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Single Product Details */
.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oem-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.btn-copy-oem {
  background: var(--primary);
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.vin-checker-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
}

.vin-input-group {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Elementor Technical Tabs Widget */
.elementor-tabs-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
}

.tab-nav-btn {
  padding: 16px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.tab-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: white;
}

.tab-content-panel {
  padding: 30px;
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* Technical Elementor Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
  background: #F8FAFC;
}

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.specs-table td.spec-key {
  font-weight: 800;
  color: var(--secondary);
  width: 30%;
}

/* Fitment List Table */
.fitment-table {
  width: 100%;
  border-collapse: collapse;
}

.fitment-table th {
  background: var(--secondary);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  text-align: right;
}

.fitment-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

/* ==========================================================================
   CART & MULTI-STEP CHECKOUT FLOW
   ========================================================================== */
.checkout-layout {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: #94A3B8;
}

.step-indicator.active {
  color: var(--primary);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-indicator.active .step-number {
  background: var(--primary);
  color: white;
}

.payment-gateways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.payment-gateway-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  background: white;
}

.payment-gateway-card.selected {
  border-color: var(--primary);
  background: rgba(227, 30, 36, 0.05);
}

/* Order Summary Box */
.order-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

/* ==========================================================================
   POST-PURCHASE & LIVE ORDER TRACKING
   ========================================================================== */
.thank-you-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.order-timeline-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 40px;
  left: 40px;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 4px solid #E2E8F0;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.timeline-step.completed .timeline-icon {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.timeline-step.active .timeline-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-red);
}

/* ==========================================================================
   INDUSTRIAL DARK FOOTER
   ========================================================================== */
.main-footer {
  background: var(--dark-bg);
  color: #94A3B8;
  padding: 60px 0 20px;
  border-top: 4px solid var(--primary);
  margin-top: 80px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;

}

.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.payment-banner-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.payment-badge-img {
  background: white;
  color: var(--secondary);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-copyright {
  max-width: 1300px;
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ==========================================================================
   CART SLIDE-OVER DRAWER & MODALS
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 420px;
  max-width: 100vw;
  background: white;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  background: var(--secondary);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

/* Quick Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--secondary);
  color: white;
  border-right: 4px solid var(--primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-container {
    grid-template-columns: 1fr auto;
  }
  .smart-search-wrapper {
    grid-column: span 2;
    order: 3;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-layout-container, .product-split-grid, .checkout-layout {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

