/* ========================================
   Borderland Battery - Main Stylesheet
   Mimics portagebattery.com design
   ======================================== */

:root {
    --primary: #118ec2;
    --primary-dark: #0d6e99;
    --dark-blue: #172e57;
    --dark: #212529;
    --light-bg: #f4f9fc;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

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

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

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover { opacity: 0.85; }
.top-bar svg { flex-shrink: 0; }

/* ========================================
   Header
   ======================================== */
.site-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo img {
    max-height: 150px;
    width: auto;
}

.main-nav {
    flex: 1;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    transition: color 0.3s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
    color: var(--primary);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 4px;
    list-style: none;
    z-index: 100;
    padding: 8px 0;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--dark);
    transition: background 0.2s;
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

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

.header-search form {
    display: flex;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.header-search input[type="search"] {
    border: none;
    padding: 8px 12px;
    width: 180px;
    font-size: 13px;
    outline: none;
}

.header-search button {
    background: var(--primary);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--white);
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--dark);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--dark-blue);
}

.slider-wrapper { position: relative; height: 100%; }

.slide {
    position: absolute;
    inset: 0;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active { opacity: 1; }

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23, 46, 87, 0.65);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.slide-content h2,
.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1.2;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active { background: var(--white); }

/* ========================================
   Battery Finder
   ======================================== */
.battery-finder-section {
    background: var(--light-bg);
    padding: 50px 0;
}

.battery-finder-section h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.battery-finder-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

.battery-finder-form .form-group {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.battery-finder-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--gray);
}

.battery-finder-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    appearance: auto;
}

.battery-finder-form .btn {
    padding: 12px 25px;
    min-width: 140px;
}

.battery-finder-form .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Battery Results */
.battery-results {
    margin-top: 30px;
}

.battery-results table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.battery-results th {
    background: var(--dark-blue);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.battery-results td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

.battery-results tr:last-child td { border-bottom: none; }
.battery-results tr:hover td { background: var(--light-bg); }

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 70px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.section-label .label-icon {
    font-size: 18px;
}

.about-section h2,
.categories-section h2,
.featured-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.8;
}

.about-text .btn { margin-top: 10px; }

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: var(--dark-blue);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    letter-spacing: 2px;
}

/* ========================================
   Categories Section
   ======================================== */
.categories-section {
    padding: 70px 0;
    background: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-image {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.category-image img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.4s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* ========================================
   Departments Grid (Homepage)
   ======================================== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.department-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--dark);
}

.department-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.department-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.department-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.department-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 8px;
    font-size: 36px;
}

.department-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.department-info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
    line-height: 1.3;
}

.department-count {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   Category Landing Page
   ======================================== */
.category-hero {
    padding: 50px 0;
    background: var(--light-bg);
}

.category-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.category-hero-image {
    width: 250px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-image img {
    max-width: 100%;
    height: auto;
}

.category-hero-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.category-hero-text .category-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.category-count {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.category-products {
    padding: 50px 0;
}

.products-grid-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.shop-pagination {
    text-align: center;
    margin-top: 30px;
}

.shop-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
}

.shop-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 16px;
}

/* ========================================
   Featured Products
   ======================================== */
.featured-section {
    padding: 70px 0;
}

.products-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.product-card {
    min-width: calc(33.333% - 14px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
}

.product-warranty-badges {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
    white-space: nowrap;
}

.warranty-badge {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 9px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

.warranty-badge strong {
    display: block;
    color: #c0392b;
    font-size: 10px;
}

.product-image {
    display: block;
    height: 220px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

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

.product-info {
    padding: 15px 20px 20px;
}

.product-price {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
}

.product-price a { color: var(--primary); }

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-title a { color: var(--dark); }
.product-title a:hover { color: var(--primary); }

.product-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-prev,
.carousel-next {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--dark-blue);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h4 {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-section strong {
    font-size: 22px;
    display: block;
    margin-bottom: 10px;
}

/* ========================================
   WooCommerce Shop
   ======================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s;
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    padding: 15px;
    background: var(--light-bg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 15px 5px;
    font-size: 15px;
    font-weight: 700;
}

.woocommerce ul.products li.product .price {
    padding: 0 15px;
    color: var(--primary);
    font-weight: 700;
    font-size: 17px;
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 10px 15px 15px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark);
}

/* Shop page header */
.woocommerce-products-header {
    margin-bottom: 30px;
}

.woocommerce-products-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    letter-spacing: 1px;
}

.woocommerce-result-count {
    color: var(--gray);
    font-size: 14px;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
}

/* Single Product Detail Page */
.single-product-page {
    padding: 30px 0 60px;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 30px;
}

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

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-breadcrumb span {
    margin: 0 6px;
}

.product-breadcrumb .current {
    color: var(--dark);
    margin: 0;
}

/* Product Grid Layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Product Image */
.product-detail-image {
    position: relative;
}

.product-image-wrap {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-image-wrap img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
}

.detail-badges {
    position: static;
    transform: none;
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.detail-badges .warranty-badge {
    flex: 1;
    padding: 10px 15px;
    font-size: 13px;
}

.detail-badges .warranty-badge strong {
    font-size: 15px;
}

/* Product Info */
.product-detail-title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.product-detail-sku {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.product-detail-price {
    margin-bottom: 20px;
}

.product-detail-price .woocommerce-Price-amount,
.product-detail-price .price {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
}

.product-detail-core {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Add to Cart area */
.product-detail-cart {
    margin-bottom: 20px;
}

.product-detail-cart .cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-detail-cart .quantity input {
    width: 70px;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.product-detail-cart .single_add_to_cart_button {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none;
    border-radius: 6px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.product-detail-cart .single_add_to_cart_button:hover {
    background: var(--primary-dark) !important;
}

/* Delivery Banner */
.product-detail-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 20px;
}

.product-detail-delivery svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Product Meta */
.product-detail-meta {
    font-size: 13px;
    color: var(--gray);
}

.product-detail-meta a {
    color: var(--primary);
}

/* Specs Accordion */
.product-detail-tabs {
    margin-bottom: 50px;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: 6px 6px 0 0;
    font-family: var(--font-heading);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-toggle:hover {
    background: #1a3766;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-toggle.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-panel {
    display: none;
    border: 1px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

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

.specs-content {
    padding: 30px;
}

.specs-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--dark-blue);
}

.specs-content h2:first-child {
    margin-top: 0;
}

.specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-content table th,
.specs-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

.specs-content table th {
    background: var(--light-bg);
    font-weight: 700;
    color: var(--dark-blue);
}

.specs-content table tr:hover td {
    background: #f8fbfe;
}

/* Related Products */
.product-detail-related .section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail-title {
        font-size: 32px;
    }

    .product-detail-price .woocommerce-Price-amount,
    .product-detail-price .price {
        font-size: 26px;
    }

    .product-image-wrap {
        min-height: 280px;
        padding: 25px;
    }

    .product-image-wrap img {
        max-height: 250px;
    }

    .product-detail-cart .cart {
        flex-direction: column;
    }

    .product-detail-cart .single_add_to_cart_button {
        width: 100%;
    }
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--dark);
    font-size: 14px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--gray);
}

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

/* ========================================
   Page Template
   ======================================== */
.page-header {
    background: var(--dark-blue);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    letter-spacing: 2px;
}

.page-content {
    padding: 60px 0;
}

.page-content p { margin-bottom: 15px; line-height: 1.8; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-products-grid {
    display: flex;
    gap: 30px;
}

.footer-products-grid ul { list-style: none; }

.contact-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .site-logo img { max-height: 100px; }
    .site-header .container { gap: 15px; }
    .main-nav > ul > li > a { padding: 8px 8px; font-size: 12px; }
    .header-search input[type="search"] { width: 130px; }
}

@media (max-width: 992px) {
    .site-logo img { max-height: 80px; }
    .hero-slider { height: 400px; }
    .slide-content h2, .slide-content h1 { font-size: 38px; }
    .about-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .departments-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid-shop { grid-template-columns: repeat(3, 1fr); }
    .product-card { min-width: calc(50% - 10px); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .stat-number { font-size: 42px; }
    .category-hero-inner { flex-direction: column; text-align: center; }
    .category-hero-text h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
    .top-bar-contact { flex-direction: column; gap: 5px; align-items: center; }

    .mobile-menu-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    .main-nav.active { display: block; }
    .main-nav > ul { flex-direction: column; }
    .main-nav > ul > li > a { padding: 12px 20px; border-bottom: 1px solid var(--light-gray); }
    .dropdown { position: static; box-shadow: none; }
    .has-dropdown:hover .dropdown { display: block; }

    .header-search { display: none; }

    .hero-slider { height: 300px; }
    .slide-content h2, .slide-content h1 { font-size: 28px; }

    .battery-finder-form { flex-direction: column; align-items: stretch; }
    .battery-finder-form .form-group { max-width: none; }

    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-number { font-size: 48px; }

    .categories-grid { grid-template-columns: 1fr 1fr; }
    .departments-grid { grid-template-columns: 1fr; }
    .products-grid-shop { grid-template-columns: repeat(2, 1fr); }
    .product-card { min-width: 100%; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
}

/* ========================================
   WordPress Admin Bar fix
   ======================================== */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ========================================
   Standalone Battery Finder Pages
   ======================================== */
.finder-page-hero {
    background: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 0;
}

.finder-page-hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.finder-page-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.finder-page-hero--auto { background: linear-gradient(135deg, #172e57 0%, #1a4a7a 100%); }
.finder-page-hero--powersports { background: linear-gradient(135deg, #172e57 0%, #2d5a27 100%); }
.finder-page-hero--industrial { background: linear-gradient(135deg, #172e57 0%, #6b4c1e 100%); }

.finder-page-content {
    padding: 50px 0 30px;
    background: var(--light-bg);
}

.finder-page-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.finder-page-categories {
    padding: 50px 0 60px;
}

.finder-page-categories h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.finder-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.finder-cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.finder-cat-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--light-bg);
    padding: 8px;
}

.finder-cat-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.finder-cat-info span {
    font-size: 14px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .finder-page-hero { padding: 60px 0 40px; }
    .finder-page-hero h1 { font-size: 32px; }
    .finder-page-hero p { font-size: 15px; }
    .finder-page-form { padding: 24px 16px; }
    .finder-cats-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Contact Us Page
   ======================================== */

.contact-page { padding: 50px 0 60px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 30px;
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--dark-blue);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.contact-card > p {
    color: var(--gray);
    font-size: 15px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-item svg { flex-shrink: 0; margin-top: 2px; }

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item div {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.contact-item a:hover { color: var(--primary); }

.contact-map { margin-top: 24px; }

/* Contact Form */
.bb-contact-form { display: flex; flex-direction: column; gap: 18px; }

.bb-contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }

.bb-contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.bb-contact-form label .required { color: #dc3545; }

.bb-contact-form input,
.bb-contact-form textarea {
    padding: 10px 14px;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    outline: none;
}

.bb-contact-form input:focus,
.bb-contact-form textarea:focus {
    border-color: var(--primary);
}

.bb-contact-form textarea { resize: vertical; min-height: 120px; }

.bb-contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e0f5f0;
    color: #0a6e4e;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
}

.form-success p { margin: 0; }

.form-error {
    background: #fdecea;
    color: #a3261a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 24px 20px; }
}

/* ========================================
   About Us Page
   ======================================== */

.about-page { padding: 50px 0 60px; }

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.about-intro-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--dark-blue);
    margin: 0 0 16px;
    letter-spacing: 1px;
}

.about-intro-text p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 14px;
}

.about-intro-image img {
    border-radius: 10px;
    width: 100%;
}

.about-section-block {
    margin-bottom: 50px;
}

.about-section-block h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--dark-blue);
    margin: 0 0 24px;
    letter-spacing: 1px;
}

.about-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-cat-item {
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
}

.about-cat-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
}

.about-cat-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.about-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-reason {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
}

.about-reason strong {
    display: block;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-reason p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.about-cta {
    text-align: center;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 40px 30px;
}

.about-cta h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--dark-blue);
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.about-cta p {
    font-size: 15px;
    color: var(--gray);
    margin: 0 0 20px;
    line-height: 1.6;
}

.about-cta a:not(.btn) { color: var(--primary); font-weight: 600; }
.about-cta a:not(.btn):hover { text-decoration: underline; }

.about-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

@media (max-width: 768px) {
    .about-intro { grid-template-columns: 1fr; }
    .about-intro-image { order: -1; }
    .about-categories { grid-template-columns: 1fr; }
    .about-reasons { grid-template-columns: 1fr; }
    .about-cta { padding: 30px 20px; }
}
