/*
Theme Name: Rohi Car Accessories
Theme URI: https://rohicaraccessories.com/
Author: Rohi Engineering Team
Author URI: https://rohicaraccessories.com/
Description: A modern, high-performance, automotive e-commerce WordPress theme for Rohi Car Accessories inspired by top auto portals (SehgalMotors, AutoJin, TheCarGuys, ChaudhryAutoStore, AsadAutos, CarzStore). Includes vehicle finder filter, flash sale widgets, WhatsApp order integration, and WooCommerce optimization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rohi-car-accessories
Tags: e-commerce, custom-menu, featured-images, flexible-header, responsive-layout, theme-options, translation-ready, grid-layout
*/

/* ==========================================================================
   Rohi Design System & Modern CSS Variables
   ========================================================================== */
:root {
  --rohi-bg-primary: #0f1117;
  --rohi-bg-secondary: #171a23;
  --rohi-bg-card: #1e2230;
  --rohi-bg-card-hover: #262b3d;
  --rohi-text-primary: #f3f4f6;
  --rohi-text-secondary: #9ca3af;
  --rohi-text-muted: #6b7280;
  
  --rohi-accent-red: #e63946;
  --rohi-accent-red-hover: #d62828;
  --rohi-accent-gold: #ffb703;
  --rohi-accent-blue: #2196f3;
  --rohi-accent-green: #25d366; /* WhatsApp Green */
  
  --rohi-border-color: rgba(255, 255, 255, 0.08);
  --rohi-border-glow: rgba(230, 57, 70, 0.3);
  
  --rohi-radius-sm: 6px;
  --rohi-radius-md: 10px;
  --rohi-radius-lg: 16px;
  --rohi-radius-full: 9999px;
  
  --rohi-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --rohi-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --rohi-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --rohi-shadow-glow: 0 0 25px rgba(230, 57, 70, 0.25);
  
  --rohi-font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --rohi-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--rohi-font-main);
  background-color: var(--rohi-bg-primary);
  color: var(--rohi-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--rohi-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.rohi-topbar {
  background: linear-gradient(90deg, #11141c 0%, #1e2230 50%, #11141c 100%);
  border-bottom: 1px solid var(--rohi-border-color);
  padding: 8px 0;
  font-size: 13px;
  color: var(--rohi-text-secondary);
}

.rohi-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rohi-topbar-notice {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rohi-badge-pill {
  background: rgba(230, 57, 70, 0.15);
  color: var(--rohi-accent-red);
  padding: 2px 10px;
  border-radius: var(--rohi-radius-full);
  font-weight: 6-00;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rohi-topbar-links {
  display: flex;
  gap: 20px;
}

.rohi-topbar-links a:hover {
  color: var(--rohi-accent-gold);
}

/* Main Header */
.rohi-main-header {
  background-color: var(--rohi-bg-secondary);
  border-bottom: 1px solid var(--rohi-border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.rohi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.rohi-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rohi-logo span.highlight {
  color: var(--rohi-accent-red);
}

.rohi-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--rohi-accent-red), #9b111e);
  border-radius: var(--rohi-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--rohi-shadow-glow);
}

/* Search & Vehicle Bar */
.rohi-search-wrapper {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.rohi-search-form {
  display: flex;
  background-color: var(--rohi-bg-primary);
  border: 1px solid var(--rohi-border-color);
  border-radius: var(--rohi-radius-md);
  overflow: hidden;
  transition: var(--rohi-transition);
}

.rohi-search-form:focus-within {
  border-color: var(--rohi-accent-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.rohi-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.rohi-search-btn {
  background-color: var(--rohi-accent-red);
  color: #fff;
  border: none;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--rohi-transition);
}

.rohi-search-btn:hover {
  background-color: var(--rohi-accent-red-hover);
}

/* Header Actions */
.rohi-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rohi-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--rohi-bg-card);
  border: 1px solid var(--rohi-border-color);
  border-radius: var(--rohi-radius-md);
  color: var(--rohi-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--rohi-transition);
}

.rohi-action-btn:hover {
  background: var(--rohi-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.rohi-action-btn .badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--rohi-accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Menu */
.rohi-nav-bar {
  background-color: var(--rohi-bg-primary);
  border-bottom: 1px solid var(--rohi-border-color);
}

.rohi-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rohi-categories-dropdown-btn {
  background: var(--rohi-accent-red);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.rohi-main-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.rohi-main-menu a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rohi-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.rohi-main-menu a:hover,
.rohi-main-menu li.current-menu-item a {
  color: var(--rohi-accent-red);
}

.rohi-main-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--rohi-accent-red);
  transition: var(--rohi-transition);
}

.rohi-main-menu a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section & Vehicle Finder Widget
   ========================================================================== */
.rohi-hero-section {
  padding: 40px 0;
  background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(33, 150, 243, 0.08), transparent 50%);
}

.rohi-hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .rohi-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Vehicle Finder Card */
.rohi-vehicle-finder-card {
  background: var(--rohi-bg-card);
  border: 1px solid var(--rohi-border-color);
  border-radius: var(--rohi-radius-lg);
  padding: 28px;
  box-shadow: var(--rohi-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rohi-finder-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.rohi-finder-title i {
  color: var(--rohi-accent-red);
}

.rohi-finder-subtitle {
  font-size: 13px;
  color: var(--rohi-text-secondary);
  margin-bottom: 22px;
}

.rohi-finder-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rohi-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rohi-select-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rohi-text-secondary);
  text-transform: uppercase;
}

.rohi-select {
  width: 100%;
  background: var(--rohi-bg-primary);
  border: 1px solid var(--rohi-border-color);
  border-radius: var(--rohi-radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--rohi-transition);
}

.rohi-select:focus {
  border-color: var(--rohi-accent-red);
}

.rohi-btn-primary {
  background: linear-gradient(135deg, var(--rohi-accent-red), #b71c1c);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--rohi-radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--rohi-shadow-glow);
  transition: var(--rohi-transition);
}

.rohi-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
}

.rohi-btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--rohi-radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--rohi-transition);
}

.rohi-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* Banner Slider Frame */
.rohi-hero-banner {
  position: relative;
  border-radius: var(--rohi-radius-lg);
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 40px;
}

.rohi-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 17, 23, 0.95) 0%, rgba(15, 17, 23, 0.6) 60%, transparent 100%);
}

.rohi-banner-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.rohi-banner-tag {
  background: var(--rohi-accent-gold);
  color: #000;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--rohi-radius-sm);
  font-size: 12px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.rohi-banner-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
}

.rohi-banner-title span {
  color: var(--rohi-accent-red);
}

.rohi-banner-text {
  color: var(--rohi-text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Product Cards & Showcase
   ========================================================================== */
.rohi-section {
  padding: 50px 0;
}

.rohi-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rohi-border-color);
  padding-bottom: 16px;
}

.rohi-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rohi-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--rohi-accent-red);
  border-radius: 2px;
  display: inline-block;
}

.rohi-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.rohi-product-card {
  background: var(--rohi-bg-card);
  border: 1px solid var(--rohi-border-color);
  border-radius: var(--rohi-radius-lg);
  overflow: hidden;
  transition: var(--rohi-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.rohi-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--rohi-border-glow);
  box-shadow: var(--rohi-shadow-md);
}

.rohi-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--rohi-accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--rohi-radius-sm);
  z-index: 5;
  text-transform: uppercase;
}

.rohi-fitment-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--rohi-radius-sm);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rohi-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #11141c;
}

.rohi-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--rohi-transition);
}

.rohi-product-card:hover .rohi-product-thumb img {
  transform: scale(1.08);
}

.rohi-product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rohi-product-cat {
  font-size: 12px;
  color: var(--rohi-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.rohi-product-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rohi-product-title a:hover {
  color: var(--rohi-accent-red);
}

.rohi-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--rohi-accent-gold);
  font-size: 13px;
  margin-bottom: 12px;
}

.rohi-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 16px;
}

.rohi-price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--rohi-accent-red);
}

.rohi-price-old {
  font-size: 14px;
  color: var(--rohi-text-muted);
  text-decoration: line-through;
}

.rohi-product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ==========================================================================
   Trust Badges & Local Support
   ========================================================================== */
.rohi-trust-bar {
  background: var(--rohi-bg-secondary);
  border-y: 1px solid var(--rohi-border-color);
  padding: 30px 0;
  margin-top: 40px;
}

.rohi-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.rohi-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rohi-trust-icon {
  width: 50px;
  height: 50px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: var(--rohi-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rohi-accent-red);
  font-size: 22px;
  flex-shrink: 0;
}

.rohi-trust-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.rohi-trust-info p {
  font-size: 12px;
  color: var(--rohi-text-secondary);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.rohi-footer {
  background-color: #0b0d12;
  border-top: 1px solid var(--rohi-border-color);
  padding-top: 60px;
  padding-bottom: 30px;
  color: var(--rohi-text-secondary);
  font-size: 14px;
}

.rohi-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .rohi-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .rohi-footer-grid {
    grid-template-columns: 1fr;
  }
}

.rohi-footer-col h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.rohi-footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--rohi-accent-red);
}

.rohi-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rohi-footer-links a:hover {
  color: var(--rohi-accent-red);
  padding-left: 5px;
}

.rohi-bottom-bar {
  border-top: 1px solid var(--rohi-border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.rohi-payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rohi-payment-tag {
  background: var(--rohi-bg-card);
  padding: 4px 10px;
  border-radius: var(--rohi-radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--rohi-border-color);
}
