/* Car Parts Ecommerce - Main Stylesheet */
/* Mobile-First Responsive Design */

:root {
    --primary-color: #003d82;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-heading: 'Roboto', Arial, sans-serif;
    --max-width: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #ff8533;
    color: white;
}

.btn-outline {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: white;
}

header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 5px;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    display: contents;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-link:hover {
    color: var(--secondary-color);
}

/* My Garage Dropdown */
.garage-dropdown, .account-dropdown {
    position: relative;
}

.garage-dropdown-menu,  .account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0;
    padding-top: 8px;
}

.garage-dropdown-menu {
    min-width: 405px;
}

.account-dropdown-menu {
    min-width: 250px;
}

.garage-dropdown:hover .garage-dropdown-menu,
.garage-dropdown-menu:hover,
.garage-dropdown.active .garage-dropdown-menu {
    display: block;
}

.account-dropdown:hover .account-dropdown-menu,
.account-dropdown-menu:hover,
.account-dropdown.active .account-dropdown-menu {
    display: block;
}

.garage-header {
    background-color: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 4px 4px 0 0;
}

.garage-content {
  padding: 13px;
}

.vehicle-list-label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.vehicle-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 5px;
}

.vehicle-item input[type="radio"] {
    margin: 0;
}

.vehicle-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    color: var(--text-dark);
}

.delete-vehicle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.delete-vehicle:hover {
    color: var(--accent-color);
}

.add-vehicle-btn {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: var(--text-dark);
}

.add-vehicle-btn:hover {
    background-color: var(--primary-color);
}

.clear-all-link {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.clear-all-link:hover {
    text-decoration: underline;
}

/* Add Vehicle Modal */
.add-vehicle-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.add-vehicle-modal.active {
    display: flex;
}

/* Vehicle Modal (New Tabbed Design) */
.vehicle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.vehicle-modal.active {
    display: flex;
}

.vehicle-modal .modal-container {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* Tab panes for vehicle modal */
.tab-pane {
    display: none;
    padding: 2rem 0;
}

.tab-pane.active {
    display: block;
}

.add-vehicle-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.add-vehicle-modal .modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.modal-section {
    flex: 1;
}

.modal-section h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.modal-section h3 i {
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: help;
}

.vehicle-form,
.vin-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-dark);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.vehicle-form button,
.vin-form button {
    background-color: var(--accent-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
}

.vehicle-form button:hover,
.vin-form button:hover {
    background-color: #ff8533;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    line-height: 1.4;
}

.modal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 var(--spacing-md);
}

@media screen and (max-width: 768px) {
    .top-bar {
      font-size: 12px;
    }

    .modal-body {
        flex-direction: column;
        padding: var(--spacing-lg);
    }
    
    .modal-divider {
        padding: var(--spacing-sm) 0;
    }
}

.cart-icon {
    position: relative;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Navigation */
nav {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

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

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    /*padding: var(--spacing-sm) var(--spacing-md);*/
    padding: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-menu > li:hover > a {
    color: var(--secondary-color);
    background-color: white;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--primary-color);
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background-color: white;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    margin-left: 18px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: var(--spacing-xs);
}

.sidebar-close:hover {
    color: var(--text-dark);
}

.sidebar-content {
    padding: var(--spacing-lg);
}

.sidebar-login {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    font-weight: 600;
}

.sidebar-login i {
    color: var(--text-light);
}

.sidebar-section {
    margin-bottom: var(--spacing-xl);
}

.sidebar-section h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-left: -10px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section ul li:last-child {
    border-bottom: none;
}

.sidebar-section ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.sidebar-section ul li a:hover {
    color: var(--secondary-color);
}

.sidebar-section ul li a i {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: var(--spacing-md);
    min-width: 600px;
    z-index: 100;
}

.nav-menu > li:hover .mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.mega-menu-column h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.mega-menu-column ul li {
    /*margin-bottom: var(--spacing-xs);*/
}

.mega-menu-column ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.mega-menu-column ul li a.account-link {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
}

.mega-menu-column ul a:hover {
    color: var(--accent-color);
}

.logout {
  width: 100%;
  height: 32px;
  margin-top: 11px;
}

.account-link:hover {
    background-color: var(--border-color);
    border-radius: 4px;
}

.account-link {
    padding: 6px 10px;
    color: #333;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mega-menu-column ul a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 550;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    /*padding: var(--spacing-xl) 0;*/
    text-align: center;
    padding: 22px;
}

.hero h1 {
    font-size: 2.5rem;
    /*margin-bottom: var(--spacing-md);*/
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Vehicle Selector */
/*.vehicle-selector {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    margin: 0 auto;
}*/

.selector-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.selector-tabs button {
    flex: 1;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.selector-tabs button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.selector-content {
    display: none;
}

.selector-content.active {
    display: block;
}

.selector-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.selector-form select {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.selector-form .btn {
    padding: 10px;
}

/* Categories Grid */
.categories-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    /*margin-bottom: var(--spacing-lg);*/
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Category Page with Sidebar */
.category-page {
    background-color: var(--bg-light);
}

.category-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: var(--spacing-lg);
}

.category-sidebar {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.vehicle-info {
    margin-bottom: 20px;
    padding: var(--spacing-sm);
    background-color: #fbfbfb;
    border-radius: 4px;
}

.vehicle-info h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.change-vehicle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-decoration: underline;
}

.category-tree h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.category-list {
    list-style: none;
}

.category-item > a {
    display: inline-block;
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
}

.category-item > i {
    color: var(--text-light);
    margin-right: var(--spacing-xs);
    cursor: pointer;
}

.category-item.active > a {
    color: var(--primary-color);
}

.subcategory-list {
    list-style: none;
    margin-left: 23px;
    margin-top: var(--spacing-xs);
    display: none;
}

.category-item.active .subcategory-list {
    display: block;
}

.subcategory-list li {
    /*margin-bottom: var(--spacing-xs);*/
}

.subcategory-list li a {
    color: var(--text-light);
    font-size: 0.9rem;
    /*padding: var(--spacing-xs) 0;*/
    /*display: block;*/
}

.subcategory-list > .subcategory-item:hover > .subcategory-name > a {
    color: var(--secondary-color);
}

.subcategory-list .third-lev-cat-list > .third-lev-cat-item:hover > a {
    color: var(--accent-color);
}

.subcategory-list li.active-sub a {
    color: var(--accent-color);
    font-weight: 600;
}

.category-content {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.breadcrumb a {
    color: var(--secondary-color);
}

.category-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.part-item {
    text-align: center;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.part-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.part-item img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto var(--spacing-sm);
}

.part-item h3 {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 400;
}

.part-item h3::first-line {
    font-weight: 600;
}

/* Selected Vehicle Section */
.selected-vehicle-section {
    background-color: var(--bg-light);
    padding: var(--spacing-md) 0;
}

/* Vehicle Selector Section (for category page) */
/*.vehicle-selector-section {
    background-color: var(--bg-light);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
}

.vehicle-selector-box {
    background-color: white;
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}*/

.selected-vehicle-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.selected-vehicle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.selected-vehicle-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
  .vehicleinfo {
    font-size: initial;
    display: grid;
  }

  .selected-vehicle-box {
    gap: 0px;
  }
}

.txt-light {
    color: var(--text-light);
    font-weight: bold;
}

.selected-vehicle-specs {
    font-size: 0.85rem;
    color: var(--text-light);
}

.selected-vehicle-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.change-vehicle-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.btn-go {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-go:hover {
    background-color: #e55a00;
}

/* Mobile Categories Toggle */
.mobile-categories-toggle {
    display: none;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.mobile-categories-toggle i {
    margin-right: var(--spacing-sm);
}

/* Mobile Categories Panel */
.categories-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.categories-panel-overlay.active {
    display: block;
}

.categories-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.categories-panel.active {
    left: 0;
}

.categories-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.categories-panel-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.categories-panel-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
}

.categories-panel-content {
    padding: var(--spacing-md);
}

.currently-selected {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.category-tree-mobile .category-list {
    list-style: none;
}

.category-tree-mobile .category-item {
    margin-bottom: var(--spacing-sm);
}

.category-tree-mobile .category-toggle {
    display: inline-block;
    width: 25px;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
}

.category-tree-mobile .category-item > a {
    display: inline;
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
}

.category-tree-mobile .category-item.active > a {
    color: var(--primary-color);
}

.category-tree-mobile .subcategory-list {
    list-style: none;
    margin-left: 25px;
    margin-top: var(--spacing-xs);
    display: none;
}

.category-tree-mobile .category-item.active .subcategory-list {
    display: block;
}

.category-tree-mobile .subcategory-list li {
    margin-bottom: var(--spacing-xs);
}

.category-tree-mobile .subcategory-list li a {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: var(--spacing-xs) 0;
    display: block;
}

.category-tree-mobile .subcategory-list li:hover a {
    color: var(--secondary-color);
}

.category-tree-mobile .subcategory-list li.active-sub a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Product Grid */
.products-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.products-container {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: var(--spacing-lg);
}

.filters-sidebar {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
    /*position: sticky;*/
    top: 80px;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.filter-options label {
    display: block;
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    margin-right: var(--spacing-xs);
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.products-header select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    /*text-align: center;*/
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

/*.product-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}*/

.product-card h3 {
    font-size: 1rem;
    min-height: 40px;
}

.product-card .part-number {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.product-card .price {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.product-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

/* Product Detail Page - Redesigned */
.product-detail-page {
    padding: var(--spacing-lg) 0;
    background-color: #fafafa;
}

.breadcrumb {
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a {
  color: #6d6a6a;
  text-decoration: none;
  font-weight: 550;
}

/* Fitment Alert Banner */
.fitment-alert {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fitment-alert i {
    font-size: 2.5rem;
    color: #ff9800;
    flex-shrink: 0;
}

.fitment-alert-content {
    flex: 1;
}

.fitment-alert-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.fitment-vehicle-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-name {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

.vehicle-specs {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-change-vehicle {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-change-vehicle:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-change-vehicle i {
    font-size: 1rem;
}

/* Product Content Layout */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.product-image-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-main-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
}

/* Product Details Section */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

.product-compatibility {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Price Section */
.product-price-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.msrp-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.msrp-value {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-savings {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 600;
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    gap: 0.75rem;
}

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    color: var(--text-light);
}

.availability-yes {
    color: #2e7d32;
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-color);
}

.quantity-selector input {
    width: 70px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.btn-add-to-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.btn-add-to-cart i {
    font-size: 1.2rem;
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* PayPal Info */
.paypal-info {
    padding: 1rem;
    background-color: #f0f8ff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.paypal-info i {
    color: #003087;
    font-size: 1.3rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.paypal-info a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Product Tabs Container */
.product-tabs-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 3px solid var(--border-color);
}

.tab-link {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    bottom: -3px;
}

.tab-link:hover {
    background-color: #e9ecef;
    color: var(--text-color);
}

.tab-link.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.tab-panel p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.specs-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.specs-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.specs-table td:first-child {
    width: 250px;
    color: var(--text-light);
}

.specs-table td:last-child {
    color: var(--text-color);
}

/* Fitment Table */
.fitment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
    font-size: 0.95rem;
}

.fitment-table thead {
    background-color: var(--primary-color);
    color: white;
}

.fitment-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.fitment-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.fitment-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Q&A Section */
.qa-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qa-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.question,
.answer {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question i {
    font-size: 1.75rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.answer i {
    font-size: 1.75rem;
    color: #2e7d32;
    flex-shrink: 0;
}

.question strong,
.answer strong {
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.qa-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.answer p {
    margin-bottom: 0.5rem;
}

/* Old Product Detail (keep for compatibility) */
.product-detail {
    padding: var(--spacing-lg) 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.main-image {
    width: 100%;
    border-radius: 8px;
    padding: var(--spacing-md);
    background-color: white;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: var(--spacing-sm);
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--secondary-color);
}

.product-info h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.product-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.product-description {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.product-specs {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.product-specs h3 {
    margin-bottom: var(--spacing-sm);
}

.specs-list {
    display: grid;
    gap: var(--spacing-xs);
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.add-to-cart-section {
    display: flex;
    gap: var(--spacing-sm);
}

.add-to-cart-section .btn {
    flex: 1;
}

.cart-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 12px 12px 12px;
  gap: 10px;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

/* Shopping Cart */
.cart-section {
    padding: var(--spacing-lg) 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.cart-items {
    background-color: white;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 100px 100px 30px;
  gap: 5px;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.cart-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.cart-item-info h3 {
  font-size: 15px;
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-item-quantity input {
  width: 100px;
  padding: 5px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 22px;
}

@media screen and (max-width: 768px) {
  .cart-line {
    margin-top: -20px;
  }
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--error-color);
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: -78px;
  margin-left: 30px;
}

.cart-summary {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: var(--spacing-md);
}

/* Checkout Order Summary - Special Styling */
.checkout-summary {
    background-color: white;
    padding: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 4px;
}

.checkout-summary .summary-content {
    padding: 1rem 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-coupon {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.summary-coupon input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.summary-coupon input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-apply-coupon {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-apply-coupon:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: none !important;
    color: var(--primary-color);
    padding: 1rem 0 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary-color);
}

.cart-summary .btn {
    width: 100%;
    margin-top: 8px;
}

/* Checkout */
.checkout-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
    min-height: 150vh;
}

.checkout-page-header {
    margin-bottom: 1.5rem;
}

.checkout-page-header .main-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--primary-color);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.checkout-form {
    background-color: white;
    min-height: 1200px;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

.checkout-sidebar .checkout-section-block {
    margin-bottom: 0;
}

/* Section Blocks */
.checkout-section-block {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Shipping and Billing Side by Side */
.shipping-billing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.shipping-billing-wrapper .checkout-section-block {
    margin-bottom: 0;
}

.shipping-billing-wrapper .section-content input,
.shipping-billing-wrapper .section-content select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.shipping-billing-wrapper .section-content input::placeholder {
    color: #666;
    font-weight: 500;
}

.shipping-billing-wrapper .section-content input:focus,
.shipping-billing-wrapper .section-content select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}


.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-color);
}

.same-as-link {
    color: #ffcc99;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.same-as-link:hover {
    color: white;
    text-decoration: underline;
}

.section-content {
    padding: 1.5rem;
    background-color: white;
}

/* Form Layouts */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row-2col input,
.form-row-2col select {
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-row-2col input::placeholder {
    color: #666;
    font-weight: 500;
}

.form-row-2col input:focus,
.form-row-2col select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.required {
    color: #d32f2f;
}

.form-group input,
.form-group select {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-update {
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-update:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.3);
}

/* Shipping Alert */
.shipping-alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-color);
}

/* Coupon Row */
.coupon-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.coupon-row label {
    font-weight: 600;
    white-space: nowrap;
}

.coupon-row input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.btn-add-coupon {
    padding: 0.6rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-add-coupon:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Terms */
.terms-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
}

.terms-checkbox label {
    margin: 0;
    font-weight: 600;
}

/* Payment */
.payment-instruction {
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-option {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #ccc;
    background-color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.payment-option.paypal-btn {
    background-color: #ffc439;
    color: #003087;
    border-color: #ffc439;
}

.payment-option.card-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.payment-option.card-btn:hover {
    background-color: var(--secondary-color);
}

.payment-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.card-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-row-card {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-row-card input,
.form-row-card select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-row-card input:focus,
.form-row-card select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-row-card input[id="card-number"] {
    flex: 1;
    width: 100%;
}

.form-row-card input[id="cvv"] {
    flex: 0 0 100px;
    width: 100px;
    min-width: 100px;
}

.form-row-card select {
    flex: 1;
}

.btn-pay {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.4);
}

/* Trust Badges */
.trust-badges {
    background-color: white;
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-badges p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.trust-badges p:last-child {
    margin-bottom: 0;
}

.trust-badges i.fa-lock {
    color: #28a745;
}

.trust-badges i.fa-shield-alt {
    color: #0066cc;
}

.trust-badges i.fa-undo {
    color: #ff6600;
}

/* Info Section */
.info-section {
    background-color: var(--bg-light);
    padding: var(--spacing-sm) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.info-card {
    padding: var(--spacing-md);
}

.info-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
}

/* FAQ */
.faq-section {
    padding: var(--spacing-lg) 0;
}

.faq-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-sm);
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: var(--spacing-md);
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: #cccccc;
}

.footer-section a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #555;
    color: #999;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .header-link {
        display: none;
    }
    
    .garage-dropdown {
        display: block !important;
    }
    
    .garage-dropdown .header-link {
        display: flex !important;
        font-size: 1.4rem;
        padding: 0.5rem;
    }
    
    .garage-dropdown .header-link .garage-text,
    .garage-dropdown .header-link .fa-caret-down {
        display: none;
    }
    
    .garage-dropdown .header-link .fa-warehouse {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .account-dropdown-menu, .garage-dropdown-menu {
        right: -50px;
        min-width: 280px;
    }

    .account-dropdown {
        display: block !important;
    }
    
    .account-dropdown .header-link {
        display: flex !important;
        font-size: 1.4rem;
        padding: 0.5rem;
    }
    
    .account-dropdown .header-link .garage-text,
    .account-dropdown .header-link .fa-caret-down {
        display: none;
    }
    
    .account-dropdown .header-link .fa-warehouse {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: -20px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: var(--spacing-sm);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .mega-menu {
        position: static;
        display: none !important;
        box-shadow: none;
        padding: var(--spacing-sm);
        min-width: auto;
    }
    
    .nav-menu > li.active .mega-menu {
        display: block !important;
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .selector-form {
        grid-template-columns: 1fr !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: relative;
        top: 0;
    }
    
    .parts-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--spacing-sm);
    }
    
    .cart-item-price,
    .cart-item-remove {
        grid-column: 2;
    }
    
    .checkout-page-header .main-title {
        font-size: 1.75rem;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
        order: 2;
    }
    
    .checkout-form {
        order: 1;
    }
    
    .shipping-billing-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .form-row-card {
        flex-direction: column;
    }
    
    .form-row-card input[id="cvv"],
    .form-row-card input[id="card-number"] {
        flex: 1;
        max-width: 100%;
    }
    
    .coupon-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon-row input,
    .btn-add-coupon {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Selected Vehicle Section Mobile */
    .selected-vehicle-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selected-vehicle-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Category Page Mobile */
    .category-sidebar {
        display: none;
    }
    
    .mobile-categories-toggle {
        display: block;
    }

     .header-main {
    position: relative;
    z-index: 1000;
  }

  .cart-dropdown {
    position: static; /* stop it from being the anchor */
  }

  .cart-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;              /* FULL WIDTH */
    width: 100%;
    max-width: none;
    border-radius: 0 0 12px 12px;
    z-index: 9999;
  }

  .search-bar {
    position: relative;
    z-index: 1;
  }

  .cart-dropdown__menu {
    z-index: 9999;
  }
  .cart-dropdown__content {
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
    .info-card {
      padding: 10px;
    }

    .clear-btn {
      margin-left: 25% !important;
    }

    .btn-primary, .btn-buy-now {
      width: 35%;
      margin-top: 0.5rem;
    }

    .cart-item-remove {
       margin-top: -5px !important;
       margin-right: 4px;
    }

    .cart-item-info h3 {
      font-size: 13px;
    }

    .product-card img {
        height: 120px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product Detail Mobile */
    .fitment-alert {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .btn-change-vehicle {
        width: 100%;
        justify-content: center;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .product-gallery {
        order: 1;
        padding: 1.5rem;
        padding-bottom: 0;
    }
    
    .product-price-box {
        order: 2;
        position: static;
        padding: 1.5rem;
    }
    
    .product-tabs-section {
        order: 3;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .price-main {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-link {
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-link.active {
        border-left: 4px solid var(--primary-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-panel {
        padding: 1.5rem;
    }
}

/* Vehicle Selection Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: block;
}

.modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    z-index: 9999;
    width: 90%;
    max-width: 1250px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
}

.modal-container.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 2.8rem;
    right: 3.1rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 0;
    display: block;
    width: 100%;
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #e0e0e0;
    width: 100%;
}

.modal-tab {
    flex: 1;
    padding: 1.5rem 2rem;
    background-color: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    bottom: -3px;
    text-align: center;
}

.modal-tab:hover {
    color: var(--text-color);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab-content {
    display: none;
    width: 100%;
}

.modal-tab-content.active {
    display: block;
    width: 100%;
}

.modal-vehicle-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1.25rem;
    width: 100%;
    align-items: end;
}

.modal-vin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hide labels only in modal forms */
.modal-vehicle-form .form-group label,
.modal-vin-form .form-group label {
    display: none;
}

/* Show labels on regular forms */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Textarea styling */
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

/* Enhanced input styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.modal-vehicle-form .form-group select,
.modal-vin-form .form-group input[type="text"] {
    padding: 1rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
    color: var(--text-color);
}

.modal-vehicle-form .form-group select:focus,
.modal-vin-form .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-vehicle-form .form-group select:disabled,
.modal-vin-form .form-group input[type="text"]:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
    color: #adb5bd;
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-block {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
}

.modal-vehicle-form .btn-block {
    grid-column: auto;
    margin-top: 0;
    white-space: nowrap;
    padding: 1rem 2.5rem;
}

@media screen and (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        padding: 2rem 1.5rem;
    }
    
    .modal-close {
        top: 2rem;
        right: 2rem;
    }
    
    .modal-tabs {
        margin-bottom: 2rem;
    }
    
    .modal-tab {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }
    
    .modal-vehicle-form {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   NEW PRODUCT DETAIL PAGE LAYOUT (autopartsprime.com style)
   =========================== */

/* Product Page Title */
.product-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Two Column Layout: Images Left, Price Box Right */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Left Side: Product Images */
/*.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}*/

.product-main-image {
    width: 100%;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;  /* Makes thumbnails go vertically */
    gap: 10px;
    width: 80px;
}

.product-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Right Side: Sticky Price Box */
.product-price-box {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 10;
    align-self: flex-start;
}

.price-box-content {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.price-display {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d32f2f;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stock-status.in-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-status i {
    font-size: 1.2rem;
}

.vehicle-specific {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #fff3e0;
    border-radius: 6px;
    color: #e65100;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fitment-message {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.selected-vehicle-display {
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.selected-vehicle-display .vehicle-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.selected-vehicle-info {
    flex: 1;
}

.selected-vehicle-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.selected-vehicle-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.selected-vehicle-display .change-vehicle-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.selected-vehicle-display .change-vehicle-link:hover {
    text-decoration: underline;
}

.btn-select-vehicle,
.btn-check-fitment {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-select-vehicle:hover,
.btn-check-fitment:hover {
    background-color: var(--secondary-color);
}

.cart-action-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.quantity-input-box {
    width: 70px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.btn-add-to-cart-main {
    flex: 1;
    padding: 1.25rem;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.inquiry-btn {
  background-color: var(--text-light) !important;
}

.btn-add-to-cart-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

/* Product Tabs Section */
.product-tabs-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-navigation {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
}

.tab-button.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 2.5rem;
}

.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
}

.tab-content-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.specifications-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.specifications-table tbody tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    width: 70%;
    background-color: #f8f9fa;
}

.spec-value {
    padding: 0.5rem;
    color: var(--text-light);
}

/* Features Content */
.features-content {
    color: var(--text-light);
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.features-list li i {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

/* Buy with Confidence Section */
.confidence-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.confidence-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.confidence-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.confidence-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.2);
}

.confidence-icon i {
    font-size: 2rem;
    color: white;
}

.confidence-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.confidence-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design for Product Detail Page */
@media screen and (max-width: 1100px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-price-box {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .product-thumbnails {
        justify-content: center;
    }
}

@media screen and (max-width: 992px) {
    .confidence-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .product-page-title {
        font-size: 1.35rem;
    }
    
    .tabs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        flex-shrink: 0;
        padding: 1rem 1.5rem;
        white-space: nowrap;
    }
    
    .tab-button.active {
        border-bottom-color: var(--primary-color);
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .price-box-content {
        padding: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .confidence-section {
        padding: 2rem 1.5rem;
    }
    
    .confidence-section h2 {
        font-size: 1.5rem;
    }
}

/* ===========================
   LOGIN/REGISTER PAGE
   =========================== */

.login-page {
    padding: 1.2rem 0;
    background-color: #fafafa;
    min-height: calc(100vh - 400px);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.login-section,
.register-section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-section h2,
.register-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.business-account-link {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.business-account-link a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.business-account-link a:hover {
    color: var(--primary-color);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-buttons {
    display: flex;
  flex-direction: column;
  margin-top: 1rem; 
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.form-field input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  height: 40px;              /* 🔥 important */
  box-sizing: border-box;    /* 🔥 important */
  transition: border-color 0.3s ease;
}


.form-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-field input.error {
    border-color: #dc3545;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error-message.show {
    display: block;
}

.forgot-password-link {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
    align-self: flex-end;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
}

.btn-auth {
    margin-top: 20px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.2);
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 61, 130, 0.3);
}

/* Login Page Responsive */
@media screen and (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-section,
    .register-section {
        padding: 2rem 1.5rem;
    }
    
    .login-section h2,
    .register-section h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
    }
}

/* ===========================
   PRODUCT LISTING PAGE - VEHICLE SELECTOR & GRID/LIST VIEW
   =========================== */

/* Selected Vehicle Banner */
.selected-vehicle-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.selected-vehicle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.selected-info {
    flex: 1;
}

.selected-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.selected-vehicle-specs {
    font-size: 0.9rem;
    color: var(--text-light);
}

.selected-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.change-vehicle-btn {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.95rem;
}

.change-vehicle-btn:hover {
  color: var(--bg-white);
  background-color: var(--accent-color);
}

.btn-go {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Vehicle Selector for Products Page */
.products-vehicle-selector {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.selector-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-light);
}

.selector-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.selector-tab:hover {
    color: var(--text-dark);
}

.selector-tab.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom-color: var(--primary-color);
}

.selector-tab-content {
    display: none;
    padding: 2rem;
}

.selector-tab-content.active {
    display: block;
}

.selector-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 1rem;
    align-items: center;
}

.selector-dropdown {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.selector-dropdown:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.vin-input-full {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    grid-column: 1 / 4;
}

.vin-input-full:focus {
    outline: none;
    border-color: var(--primary-color);
}

.vin-input-full.valid {
    border-color: #2e7d32;
}

.btn-find-parts {
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-find-parts:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.btn-find-parts:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Products Header with View Toggle */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.products-count {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.back-link {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

.products-count p {
    font-size: 1rem;
    color: var(--text-dark);
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-control label {
    font-weight: 600;
    color: var(--text-dark);
}

.sort-control select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle span {
    font-weight: 600;
    color: var(--text-dark);
}

.view-btn {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn i {
    font-size: 1.1rem;
    color: var(--text-light);
}

.view-btn:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.view-btn.active i {
    color: white;
}

/* List View Styling */
.products-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-grid.view-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    gap: 1.5rem;
    padding: 1rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: center;
}

.products-grid.view-list .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.products-grid.view-list .product-link {
    display: contents;
}

.products-grid.view-list .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.products-grid.view-list .product-image img {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.products-grid.view-list .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.product-part-number {
    font-size: 0.9rem;
    color: var(--text-light);
}

.part-link {
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
}

.product-fitment {
    font-size: 0.85rem;
    color: #856404;
    background-color: #fff3cd;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.select-vehicle-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.product-specs {
    margin-top: 0.5rem;
}

.product-specs h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-specs p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.more-info-link {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.more-info-link:hover {
    text-decoration: underline;
}

.products-grid.view-list .product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #d32f2f;
    margin: 0;
}

.btn-view-details {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-view-details:hover {
    color: var(--bg-white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-add-to-cart-listing {
    padding: 8px 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-add-to-cart-listing:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

/* Grid View Styling */
.products-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 0.5rem;
}

.products-grid.view-grid .product-card {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.products-grid.view-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.products-grid.view-grid .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

 .product-image {
    height: 68%;
    /*margin-bottom: 1rem;*/
}

/*.products-grid.view-grid .product-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}*/

.products-grid.view-grid .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.products-grid.view-grid .product-title {
    font-size: 13.5px;
}

.products-grid.view-grid .product-specs {
    display: none;
}

.products-grid.view-grid .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.products-grid.view-grid .btn-add-to-cart-listing,
.products-grid.view-grid .btn-view-details {
    width: 100%;
}

.products-grid.view-grid .product-price {
    font-size: 1rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 27px;
    margin-top: 10px;
    background-color: white;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.pagination-info span {
    color: var(--text-dark);
    font-weight: 700;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 5px 0.25rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 7px;
}

.pagination-number:hover {
    background-color: var(--bg-light);
    border-color: var(--secondary-color);
}

.pagination-number.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--text-light);
    font-weight: 700;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .products-grid.view-list .product-card {
        grid-template-columns: 150px 1fr 150px;
    }
}

@media screen and (max-width: 768px) {
    .selected-vehicle-banner {
        padding: 1rem 1.5rem;
    }
    
    .selected-vehicle-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .selector-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vin-input-full {
        grid-column: 1;
    }
    
    .selector-tab {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .products-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .products-grid.view-list .product-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        align-items: flex-start;
    }
    
    .products-grid.view-list .product-image {
        display: none;
    }
    
    .products-grid.view-list .product-info {
        width: 100%;
    }
    
    .products-grid.view-list .product-specs {
        display: none;
    }
    
    .products-grid.view-list .product-actions {
        align-items: stretch;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .products-grid.view-list .product-price {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .products-grid.view-list .btn-view-details,
    .products-grid.view-list .btn-add-to-cart-listing {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .products-grid.view-grid .product-card {
        max-width: 100%;
    }
    
    .products-grid.view-grid .product-image {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .products-grid.view-grid .product-image img {
        max-height: 150px;
        width: auto;
        object-fit: contain;
    }
    
    .products-grid.view-grid .product-card {
        padding: 10px;
    }
    
    /* Vehicle Selector on Products Page Mobile */
    .vehicle-selector-section {
        margin-bottom: 1.5rem;
    }
    
    .vehicle-tabs {
        display: flex;
        flex-direction: column;
    }
    
    /* Product Header Mobile */
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .products-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }
    
    .sort-control {
        flex: 1;
        min-width: 150px;
    }
    
    .sort-control label {
        font-size: 0.9rem;
    }
    
    .sort-control select {
        width: 100%;
        font-size: 0.85rem;
    }
    
    .view-toggle {
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .view-toggle span {
        font-size: 0.9rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* our custom css */
.cart-dropdown {
  position: relative;
  display: inline-block;
}

/* === Dropdown Menu === */
.cart-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 85%;
  width: 400px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow: hidden;
}

.cart-dropdown:hover .cart-dropdown__menu {
  display: block;
}

/* === Header === */
.cart-dropdown__header {
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

/* === Content === */
.cart-dropdown__content {
  max-height: 220px; /* scrollable area */
  overflow-y: auto;
  padding: 10px;
}

/* ===============================
   Cart Dropdown Item
================================ */

.cart-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 5px;
  border-bottom: 1px solid #eee;
  position: relative;
}

/* Product Image */
.cart-dropdown__item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Right content */
.cart-dropdown__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title – FULL 2 lines */
.cart-dropdown__info h3 {
  font-size: 13px;
  margin: 0;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;       /* max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Part number – single line */
.cart-dropdown__info p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Qty × Price – below part number */
.cart-dropdown__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  white-space: nowrap;
}

/* Remove icon */
.cart-dropdown__remove {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 0.9rem !important;
  color: var(--error-color) !important;
  cursor: pointer;
}

.cart-dropdown__remove:hover {
  color: #a71d2a;
}

/* ===============================
   Buttons
================================ */

.cart-dropdown__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  background-color: var(--primary-color);
  transition: background 0.2s;
}

.cart-dropdown__btn:hover {
  color: var(--bg-white);
  background-color: var(--secondary-color);
  opacity: 0.9;
}

/* === Scrollbar (optional) === */
.cart-dropdown__content::-webkit-scrollbar {
  width: 6px;
}
.cart-dropdown__content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .cart-dropdown__menu {
    position: fixed;
    top: 70px;
    right: 10%;
    width: 60%;
    height: 70vh;
    border-radius: 10px;
    z-index: 9999;
  }

  .cart-dropdown__content {
    max-height: calc(92vh - 60px - 100px);
    overflow-y: auto;
  }

  .cart-dropdown__item {
    flex-direction: row;
    align-items: center;
  }

  .cart-dropdown__item img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
  }

  .cart-dropdown__info h3 {
    font-size: 1rem;
  }

  .cart-dropdown__price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cart-dropdown__menu {
    top: 60px;
    right: 5%;
    width: 90%;
  }

  .cart-dropdown__item {
    flex-direction: row;
    align-items: center;
  }

  .cart-dropdown__item img {
    width: 70px;
    height: 70px;
  }

  .cart-dropdown__info h3 {
    font-size: 0.95rem;
  }

  .cart-dropdown__info p {
    font-size: 0.8rem;
  }

  .cart-dropdown__price {
    font-size: 0.95rem;
  }
}

.cart-dropdown__item a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.cart-dropdown__item a:hover {
  text-decoration: underline;
}

.vehicle-selector {
  max-width: 1200px;
  /*padding: 1.3rem;*/
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: #333;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  /*gap: 1rem;*/
  flex-wrap: wrap;
}

.vehicle-selector-model {
  max-width: 1200px;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--primary-color);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.model-section, .vin-section {
  flex: 0 0 auto;
  <%# border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem; %>
  box-sizing: border-box;
  display: grid;
  gap: 8px;
}

.model-section {
  flex-basis: 67%;
}

.vin-section {
  flex-basis: 31%;
}

.model-section {
  grid-template-rows: auto 1fr auto;
}

.vin-section {
  grid-template-rows: auto 1fr auto;
}

.vehicle-selector label.section-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.vin-section form {
  display: grid;
  grid-template-columns: 1fr auto; /* input + button in same row */
  gap: 0.5rem;
}

select, input[type="text"] {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

select:focus, input:focus {
  border-color: #007bff;
  outline: none;
}

.vin-section p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .vehicle-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .model-section, .vin-section {
    flex: 1 1 100%;
  }

  .vin-section form {
    grid-template-columns: 1fr;
  }
}

h4 {
  margin-bottom: auto;
}

.vehicle-selector {
  max-width: 100%;
  /*padding: 1.3rem;*/
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: #333;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  /*gap: 1rem;*/
  flex-wrap: wrap;
}

.vehicle-selector-model {
  max-width: 1200px;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--primary-color);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.model-section, .vin-section {
  flex: 0 0 auto;
  <%# border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem; %>
  box-sizing: border-box;
  display: grid;
  gap: 8px;
}

.model-section {
  flex-basis: 69%;
}

.vin-section {
  flex-basis: 30%;
}

.model-section {
  grid-template-rows: auto 1fr auto;
}

.vin-section {
  grid-template-rows: auto 1fr auto;
  height: fit-content;
}

.vehicle-selector label.section-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.garageVehicleForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
  gap: 1rem;
  align-items: start;
}

.vin-section form {
  display: grid;
  grid-template-columns: 1fr auto; /* input + button in same row */
  gap: 0.5rem;
}

 input[type="email"],
 input[type="tel"],
select, input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

select:focus, input:focus {
  border-color: #007bff;
  outline: none;
}

.vin-section p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .vehicle-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .model-section, .vin-section {
    flex: 1 1 100%;
  }

  .vin-section form {
    grid-template-columns: 1fr;
  }
}

/**/
@media (max-width: 768px) {
  /* Show sidebar only when button clicked */
  .category-sidebar {
    display: none;
    position: fixed;
    top: 100px; /* 👈 more space from top */
    left: 0;
    width: 280px;
    height: calc(100% - 80px);
    background: #fff;
    overflow-y: auto;
    z-index: 9999;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  /* When active, show the sidebar */
  .category-sidebar.active {
    display: block;
  }

  /* Mobile toggle button */
  .mobile-categories-toggle {
    display: inline-block;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Category tree styling for mobile */
  .category-tree h4 {
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 17px;
  }

  .category-tree ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .category-item {
    margin-bottom: 10px;
  }
}

/* 👇 Desktop view remains untouched */
@media (min-width: 769px) {
  .mobile-categories-toggle {
    display: none;
  }
}


.mobile-categories-toggle {
  background-color: #003d82;
  color: #fff;
  border: none;
  padding: 15px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.mobile-categories-toggle i {
  margin-right: 6px;
}

.category-item.selected > a {
  color: var(--accent-color) !important;
  font-weight: 600;
}


/* === Cart Item === */

.cart-dropdown__items-vertical-scroll {
  max-height: 250px; /* Adjust height as needed */
  overflow-y: auto;
  padding-right: 5px;
}

/* Optional scrollbar styling */
.cart-dropdown__items-vertical-scroll::-webkit-scrollbar {
  width: 6px;
}

.cart-dropdown__items-vertical-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

#parts-grid {
    scroll-margin-top: 320px;
  }

  .parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
  }

    @media (max-width: 768px) {
      #mobileSidebar {
        padding-top: 60px;
      }

      .parts-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) !important;
        max-width: 100%;
      }
    }

  .third-level-name {
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-left: 5px;
    border-left: 4px solid #007bff;
  }

  .fourth-lev-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, auto));
    <%# grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); %>
    gap: 1rem;
    list-style: none;
    padding: 0;
    width: 100%;
  }

  .part-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 180px;
    height: 100%;
  }

  .part-item:hover {
    transform: translateY(-3px);
    border-color: #007bff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  }

  .part-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.8rem;
  }

  .part-item h4 {
    font-size: 1rem;
    color: #333;
    text-align: center;
    margin: 0;
  }

  .category-divider {
    border: none;
    border-top: 2px solid #ddd;
    width: 100%;
  }

  @media (max-width: 600px) {
    .third-level-name {
      font-size: 1.3rem;
      text-align: center;
    }

    .fourth-lev-list {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .part-item {
      padding: 0.8rem;
      height: 100%;
    }

    .part-item img {
      height: 100px;
    }
  }
.category-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.category-item {
  padding: 0.35rem 0;
  line-height: 1.2;
  cursor: pointer;
  color: #444;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  transition: color 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* CATEGORY NAME + ICON */
.category-name {
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.toggle-icon {
  font-weight: bold;
  color: #999;
  width: 16px;
  display: inline-block;
  text-align: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-item:hover .category-name {
  color: var(--secondary-color);
}

.category-item.active .category-name {
  color: var(--primary-color);
  font-weight: 600;
}

.category-item.active .toggle-icon {
  color: var(--secondary-color);
}

.category-item.active .subcategory-list  .toggle-icon {
  color: var(--text-light);
}

.subcategory-list {
  list-style: none;
  padding-left: 0.3rem;
  margin-top: 0.2rem;
  display: none;
  border-left: 1px solid #e0e0e0;
}

.subcategory-list .third-lev-cat-list {
  list-style: none;
  padding-left: 0.5rem;
  <%# margin-top: 0.2rem; %>
  display: none;
  border-left: 1px solid #e0e0e0;
}

.subcategory-item {
  padding: 0.25rem 0;
  line-height: 1.1;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.subcategory-item:hover {
  color: var(--accent-color);
}

.subcategory-item.active {
  color: var(--accent-color);
  font-weight: 600;
}

.subcategory-item.active .third-lev-cat-list {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .filter-container {
    padding: 0.5rem 0.6rem;
  }

  .filter-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .category-item {
    font-size: 0.95rem;
    padding: 0.3rem 0;
  }

  .subcategory-item {
    font-size: 0.85rem;
    padding: 0.2rem 0;
  }
}

  .filter-group {
    flex: 1 1 200px; /* responsive width — min 200px */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  } 



.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-card__logo img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.category-card__name {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #0061c4;
  text-align: center;
}


.category-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
}

.category-content {
  display: block !important;
  width: 100% !important;
}

.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem;
  width: 100%;
}


.category-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.view-products-btn {
  display: inline-block;
  margin-top: -5px;
  color: var(--accent-color);
  font-size: 12px;
}

/* Breadcrumb container */
.page-header__breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

/* Remove default list styles */
.page-header__breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap; /* wrap on small screens */
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* Breadcrumb items */
.page-header__breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  color: #555;
  font-weight: 500;
}

/* Current page style */
.page-header__breadcrumb .breadcrumb-item.active {
  color: #000;
  font-weight: 600;
}

/* Links */
.page-header__breadcrumb .breadcrumb-item a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

.page-header__breadcrumb .breadcrumb-item a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* SVG arrow */
.page-header__breadcrumb .breadcrumb-arrow {
  margin: 0 6px;
  fill: #999;
}

/* Remove arrow after last item */
.page-header__breadcrumb .breadcrumb-item:last-child .breadcrumb-arrow {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .page-header__breadcrumb {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .page-header__breadcrumb .breadcrumb-arrow {
    margin: 0 4px;
    width: 5px;
    height: 7px;
  }
}

.warning-cart-btn {
        background: var(--text-light);
     }

    .selected-info h4 {
     font-size: 15px;
    }

    @media (max-width: 768px) {
      .info-vehicle {
        margin-left:15px;
      }
    }

    #vehicle-option-model {
      border: 1px solid #c6c2c2;
    }

    #vehicle-option-model {
      margin-top: 16px;
      margin-bottom: 27px;
    }

    .border-row {
       border-bottom: 1px solid #b7b4b4;
       margin: 2px;
    }

    
    /* Image Gallery */
   .gallery {
      position: relative;
      max-width: 441px;
      width: 76%;
      min-height: 328px;
    }
   
    
    .main-image:hover img {
        transform: scale(1.02);
    }
    .thumbnails {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  margin-top: 8px;
}

.thumbnail {
  padding: 4px;
  border: 1px solid #e5e7eb;
  height: 80px;
}

.thumbnail img {
  width: 100%;
  height: 55px;
  object-fit: contain;
}


@media (max-width: 768px) {
  .main-image {
    height: 280px;
  }
}


    /* Image Lightbox (CSS Only structure, JS controls content) */
    .lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.95);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    .lightbox:target {
        display: flex; /* Displayed when #lightbox is targeted by JS or URL hash */
    }
    .lightbox img {
        max-width: 90%;
        max-height: 90vh;
        border-radius: 8px;
    }
    .lightbox-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        color: #fff;
        font-size: 2rem;
        text-decoration: none;
        background: rgba(255,255,255,0.1);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
        z-index: 1010; /* Above images and navigation */
    }
    .lightbox-close:hover {
        background: rgba(255,255,255,0.2);
    }
    /* ADDED: Lightbox Navigation */
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-size: 3rem;
        text-decoration: none;
        padding: 1rem;
        cursor: pointer;
        transition: color 0.3s;
        background: none;
        border: none;
        z-index: 1010;
    }
    .lightbox-nav:hover {
        color: #f97316; /* Orange hover color */
    }
    .lightbox-prev {
        left: 1rem;
    }
    .lightbox-next {
        right: 1rem;
    }


    /* Product Info */
    .product-info {
       width: 100%;
    }

    .product-info h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.product-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.sku {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.badge {
  margin-bottom: 10px;
  padding: 4px 10px;
}

    

    /* HIDDEN ELEMENTS - CUSTOM CSS */
    .rating {
        display: none; /* Hides the inline review rating line */
    }
    .review-count {
        display: none; /* Hides the inline review count text */
    }
    
    .current-price {
        font-size: 2rem;
        font-weight: bold;
        color: #f97316; /* Orange emphasis */
    }
    .original-price {
        font-size: 1.5rem;
        color: #94a3b8;
        text-decoration: line-through;
    }
    
    /* Quantity and Cart/Buy Buttons (Removed quantity selector CSS) */
    .btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    .btn-buy-now {
        background: #2563eb;
        color: #fff;
        flex: 1;
    }
    .btn-buy-now:hover {
        background: #1d4ed8;
    }
    .action-buttons {
        display: flex;
        gap: 1rem;
    }
  .features {
  background: #f8fafc;          /* light gray */
  border: 1px solid #e5e7eb;
  padding: 14px;
  border-radius: 8px;
}


.features-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.features ul {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.features li {
  background: #ffffff;
  padding: 8px 10px;
  border-left: 4px solid #22c55e;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features li strong {
  color: #0f172a;
}



    /* Tabs */
    .tabs {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 2rem;
    }
    .tab-list {
        display: flex;
        border-bottom: 1px solid #e2e8f0;
    }
    .tab-list a {
        padding: 1rem 2rem;
        text-decoration: none;
        color: #64748b;
        font-weight: 600;
        border-bottom: 2px solid transparent;
        transition: all 0.3s;
    }
    .tab-list a:hover {
        color: #2563eb;
    }

    /* CSS :target for Tab Switching */
    .tab-content {
        /*display: none;*/
        padding: 2rem; /* Increased padding */
    }
    .tab-content:target {
        display: block;
    }
    /* Tab list styling for active state */
    .tab-list a[href="#fitment"] {
        border-bottom-color: #2563eb;
        color: #2563eb;
    }

    #fitment:not(:target) ~ .tab-list a[href="#fitment"] {
         /* Reset default active state if another tab is active */
         border-bottom-color: transparent;
         color: #64748b;
    }

    #specifications {
      scroll-margin-top: 120px;
    }

    #fitment:target ~ .tab-list a[href="#fitment"], 
    #specifications:target ~ .tab-list a[href="#specifications"] {
        border-bottom-color: #2563eb;
        color: #2563eb;
    }
    #specifications:target ~ .tab-list a[href="#fitment"], 
    #fitment:target ~ .tab-list a[href="#specifications"] {
        border-bottom-color: transparent;
        color: #64748b;
    }

    #fitment:target, 
    #specifications:target {
        display: block;
    }
    /* Fallback for no target (show fitment by default) */
    #fitment {
        display: block;
    }
    /* Hide specifications by default unless targeted */
    #specifications {
        /*display: none;*/
    }

    /* Vehicle Fitment Table */
    .fitment-table-wrapper {
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
    }

    .fitment-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0;
    }
    .fitment-table thead {
        background: #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .fitment-table th,
    .fitment-table td {
        padding: 0.75rem 1rem; /* Reduced vertical padding */
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
    }
    .fitment-table th {
        font-weight: 600;
        color: #0f172a;
    }
    .fitment-table tbody tr:hover {
        background: #f8fafc;
    }
    .fitment-search {
        margin-bottom: 0.75rem; /* Reduced margin */
    }
    .fitment-search input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 1rem;
    }

    /* Specifications - REDUCED SPACING HERE */
    .specs-grid {
        display: grid;
    }
    .spec-row {
        display: grid;
        grid-template-columns: 1fr 2fr;
        border-bottom: 1px solid #e2e8f0;
    }
    .spec-row:last-child {
        border-bottom: none;
    }
    .spec-label {
        color: #64748b;
        font-weight: 600;
    }
    .spec-value {
        color: #0f172a;
    }
    /* Responsive */
    @media (max-width: 900px) {
        .product-grid {
            grid-template-columns: 1fr;
            
        }
        
        .action-buttons {
            flex-direction: column;
        }
        .btn-primary, .btn-buy-now {
            width: 100%;
            margin-top: 0.5rem;
        }
        .tab-list {
            overflow-x: auto;
            white-space: nowrap;
            padding: 0 5px;
        }
        .tab-list a {
            padding: 1rem;
        }
        .fitment-table-wrapper {
            max-height: 300px;
        }
        .fitment-table {
            min-width: 600px;
        }
        .spec-row {
            grid-template-columns: 1fr 1fr; 
        }
        nav {
            display: none;
        }
    }
    @media (max-width: 500px) {
        .current-price {
            font-size: 2.5rem;
        }
        .original-price {
            font-size: 1.2rem;
        }
    }

    .selected-vehicle-banner.error {
        border: 1px solid red;
    }

    .warning {
      color: #7f7a6d;
    }

    .selected-vehicle-banner.warning {
        border: 1px solid var(--border-color);
    }

    .selected-vehicle-banner.success {
       border: 1px solid var(--success-color);
    }

    .selected-vehicle-banner {
        background-color: #ffe6e6;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .selected-vehicle-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
        max-width: 1200px;
    }

    .selected-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .success {
       color: #2e751b;
    }

    .error {
       color: red;
    }

    .notice-text {
        font-weight: bold;
        display: flex;
        align-items: center;
        margin: 0;
        font-size: 16px;
    }

    .notice-text .pn-check-icon {
        display: inline-flex;
        margin-right: 8px;
        vertical-align: middle;
    }

    .notice-text svg {
        width: 20px;
        height: 20px;
    }

    .selected-label,
    .selected-vehicle-name,
    .selected-vehicle-specs {
        font-size: 14px;
        font-weight: 800;
        margin-top: 3px;
    }

    .selected-actions {
        /*margin-left: auto;*/
    }

    .change-vehicle-btn {
        padding: 5px 15px;
        background-color: var(--primary-color);
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
    }

    @media (max-width: 768px) {
        .selected-vehicle-content {
            flex-direction: column;
            align-items: flex-start;
        }

        .selected-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

        .change-vehicle-btn {
           /*margin-top: -132px;*/
           /*margin-left: 0%;*/
           font-size: 11.5px;
           padding: 4px 10px;
        }

        .selected-vehicle-specs {
            font-size: 11px;
            margin-bottom: 6px;
        }

        .selected-actions {
          gap: 2px;
        }
    }

    .product-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;              /* reduced gap */
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 12px;
}

..main-image {
  height: 360px;  
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}


.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.cart-action-row {
  gap: 8px;
  margin: 12px 0;
}

.quantity-input-box {
  width: 60px;
  padding: 6px;
}

.btn-add-to-cart-main {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.availability {
  font-size: 13px !important;
  color: var(--text-light);
  padding: 2px;
}

.availability .label {
  color: #374151;
  font-weight: 500;
  margin-right: 6px;
}

.availability .status.in-stock {
  color: var(--success-color);
  font-weight: bolder;
}

.availability .status.out-of-stock {
  color: #991b1b;
  font-weight: bolder;
}

.btn-add-to-cart-main:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.8;
}

.quantity-input-box:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.breadcrumb-active {
  color: var(--error-color) !important;
}
  /* ===== Mobile Cart Dropdown ===== */
@media (max-width: 768px) {
  .cart-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 95vw;
    max-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
  }

  .cart-dropdown__header {
    padding: 8px;
    font-size: 0.9rem;
  }

  .cart-dropdown__content {
    max-height: 55vh;
    padding: 8px;
    overflow-y: auto;
  }

  .cart-dropdown__item {
    gap: 8px;
    padding: 6px 0;
  }

  .cart-dropdown__item img {
    width: 55px;
    height: 55px;
  }

  .cart-dropdown__info h3 {
    width: 90%;
    font-size: 12px;
    line-height: 1.2;
  }

  .cart-dropdown__info p {
    font-size: 0.75rem;
  }

  .cart-dropdown__price {
    font-size: 12px;
    font-weight: 900;
    margin-top: -16px;
  }

  .cart-dropdown__remove {
    font-size: 0.85rem;
  }

  .cart-dropdown__btn {
    padding: 8px;
    font-size: 0.85rem;
  }

  .cart-dropdown {
    position: static; /* IMPORTANT */
  }

  .cart-dropdown__menu {
    position: absolute;
    top: 43%;
    left: 6%;
    right: 0;
    width: 90%;
    max-width: none;
    margin: 0;
    border-radius: 8px;
    z-index: 9999;
  }

  .search-bar {
    position: relative;
    z-index: 1;
  }

  .cart-dropdown__menu {
    z-index: 9999;
  }

  .cart-dropdown__menu {
  height: auto;          /* products irukura alavukku height */
  max-height: none;      /* fixed limit remove */
  overflow: visible;     /* ellam show aagum */
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}


  /* Detach dropdowns from icon width */
  .header-actions .garage-dropdown {
    position: static;
  }

 .header-actions .account-dropdown {
    position: static;
  }

  /* Garage + Account dropdown menus */
  .garage-dropdown-menu,
  .account-dropdown-menu {
    position: absolute;
    top: 43%;
    left: 6%;
    right: 0;
    width: 90%;
    max-width: none;
    margin: 0;
    border-radius: 8px;
    z-index: 9999;
    display: none;
  }

  /* Show on active */
  .garage-dropdown.active .garage-dropdown-menu,
  .garage-dropdown.active .account-dropdown-menu {
    display: block;
  }
  .account-dropdown.active .account-dropdown-menu,
  .account-dropdown.active .account-dropdown-menu {
    display: block;
  }
}


/* =========================
   Mobile Cart Page
========================= */
@media (max-width: 768px) {

  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "image info remove"
      "price price price"
      "qty   qty  qty";
    gap: 10px;
    padding: 5px;
    position: relative;
  }

  .cart-item a:first-child {
    grid-area: image;
  }

  .cart-item-info {
    grid-area: info;
  }

  .cart-item-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
    font-size: 1.2rem;
  }

  .cart-item-quantity input {
    width: 58px;
   }

   .cart-item-info p {
     margin-top: -8px;
   }

  .cart-item-quantity {
    margin-top: -42px;
    width: 195px;
    margin-left: 166px;
    grid-area: qty;
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .cart-item-quantity input {
    height: 30px;
  }

  .cart-item-price {
    margin-top: -10px;
    margin-left: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .cart-item img {
    width: 80px;
    height: 80px;
  }

  .cart-summary {
    margin-top: 20px;
  }

  .cart-summary .btn {
    width: 100%;
  }
}

.main-logo {
  width: 160px;
  height: 25px;
}

@media screen and (max-width: 480px) {
  .main-logo {
    width: 130px;
    height: 23px;
  }
}