/*
Theme Name: Car Accessories Store
Theme URI: https://example.com/car-accessories-store
Author: Muse
Author URI: https://example.com
Description: A modern, responsive WooCommerce-ready theme for car accessories dropshipping stores. Features a bold hero section, featured product grids, category highlights, trust badges, a mobile auto service page with quote request form, and full Customizer controls for colors, logo, and homepage content.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: car-accessories-store
Tags: e-commerce, woocommerce, responsive, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ============ Tokens ============ */
:root {
    --carstore-primary: #ff6b35;
    --carstore-primary-dark: #e05a28;
    --carstore-dark: #16181d;
    --carstore-darker: #0e1013;
    --carstore-text: #2b2f36;
    --carstore-muted: #6b7280;
    --carstore-bg: #ffffff;
    --carstore-light: #f6f7f9;
    --carstore-border: #e5e7eb;
    --carstore-radius: 10px;
    --carstore-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--carstore-font);
    color: var(--carstore-text);
    background: var(--carstore-bg);
    line-height: 1.6;
    font-size: 16px;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.6em; color: var(--carstore-dark); }
p { margin: 0 0 1em; }
a { color: var(--carstore-primary); text-decoration: none; }
a:hover { color: var(--carstore-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============ Buttons ============ */
.btn, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    display: inline-block;
    background: var(--carstore-primary);
    color: #fff;
    border: none;
    border-radius: var(--carstore-radius);
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--carstore-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ============ Announcement bar ============ */
.announcement-bar {
    background: var(--carstore-darker);
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 16px;
    letter-spacing: 0.02em;
}

/* ============ Header ============ */
.site-header {
    background: var(--carstore-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-branding { flex-shrink: 0; }
.site-branding .site-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0;
}
.site-branding .site-title span { color: var(--carstore-primary); }
.custom-logo { max-height: 48px; width: auto; }

.main-navigation { flex: 1; }
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.main-navigation a {
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}
.main-navigation a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.main-navigation .current-menu-item a { color: var(--carstore-primary); }
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 1rem;
    cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-actions .search-form { display: flex; }
.header-actions .search-field {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 150px;
}
.header-actions .search-field::placeholder { color: #9ca3af; }
.header-actions .search-submit {
    background: var(--carstore-primary);
    border: none;
    color: #fff;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    cursor: pointer;
}
.cart-link {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 6px;
}
.cart-link:hover { color: #fff; background: rgba(255,255,255,0.16); }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(120deg, var(--carstore-darker) 0%, #23262e 60%, #2e2220 100%);
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,0.35) 0%, rgba(255,107,53,0) 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    color: var(--carstore-primary);
    border: 1px solid rgba(255,107,53,0.4);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 16px; font-weight: 800; }
.hero p { color: #c9ced6; font-size: 1.15rem; margin-bottom: 28px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Sections ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--carstore-light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 8px; font-weight: 800; }
.section-subtitle { text-align: center; color: var(--carstore-muted); margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ Category cards ============ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
    background: var(--carstore-dark);
    color: #fff;
    border-radius: var(--carstore-radius);
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--carstore-primary);
}
.cat-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.35rem; }
.cat-card p { color: #b6bcc7; font-size: 0.95rem; margin-bottom: 16px; }
.cat-card .cat-link { font-weight: 700; }

/* ============ Product cards ============ */
.products-grid, ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
ul.products::before, ul.products::after { display: none; }
.product-card, ul.products li.product {
    background: #fff;
    border: 1px solid var(--carstore-border);
    border-radius: var(--carstore-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}
.product-card:hover, ul.products li.product:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.product-card .card-media, ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    background: var(--carstore-light);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card .card-media img, ul.products li.product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}
.product-card .card-body, ul.products li.product .card-body-fallback {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.product-card h3, ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    margin: 0;
    color: var(--carstore-dark);
    padding: 0 !important;
}
.product-card .price, ul.products li.product .price {
    color: var(--carstore-primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}
.product-card .price del, ul.products li.product .price del { color: var(--carstore-muted); font-weight: 400; margin-right: 8px; }
.product-card .price ins, ul.products li.product .price ins { text-decoration: none; }
.product-card .btn, ul.products li.product .button { margin-top: auto; width: 100%; }
.onsale, ul.products li.product .onsale {
    background: var(--carstore-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    min-height: 0;
    line-height: 1.4;
}

/* ============ Trust badges ============ */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.badge {
    text-align: center;
    padding: 28px 18px;
    background: #fff;
    border: 1px solid var(--carstore-border);
    border-radius: var(--carstore-radius);
}
.badge-icon {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255,107,53,0.12);
    color: var(--carstore-primary);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.badge h3 { font-size: 1.05rem; margin-bottom: 6px; }
.badge p { color: var(--carstore-muted); font-size: 0.9rem; margin: 0; }

/* ============ CTA banner ============ */
.cta-banner {
    background: linear-gradient(120deg, var(--carstore-primary) 0%, var(--carstore-primary-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 54px 40px;
    text-align: center;
}
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.cta-banner .btn { background: #fff; color: var(--carstore-primary-dark); }
.cta-banner .btn:hover { background: var(--carstore-darker); color: #fff; }

/* ============ Shop layout ============ */
.shop-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; padding: 50px 20px; align-items: start; }
.shop-sidebar .widget { margin-bottom: 30px; }
.widget-title { font-size: 1.1rem; border-bottom: 2px solid var(--carstore-primary); padding-bottom: 8px; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--carstore-border); }
.widget ul li:last-child { border-bottom: none; }

/* ============ WooCommerce polish ============ */
.woocommerce .page-title { font-size: 2rem; font-weight: 800; }
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    border-top-color: var(--carstore-primary);
}
.woocommerce span.onsale { background: var(--carstore-primary); }
.woocommerce div.product .product_title { font-size: 2rem; font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--carstore-primary);
    font-size: 1.6rem;
    font-weight: 800;
}
.woocommerce .quantity .qty { padding: 10px; border: 1px solid var(--carstore-border); border-radius: 6px; }
.woocommerce table.shop_table { border-radius: var(--carstore-radius); overflow: hidden; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    border: 1px solid var(--carstore-border);
    border-radius: 6px;
    padding: 10px 12px;
}
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border: 1px solid var(--carstore-border);
    border-radius: 6px;
    margin: 0 4px;
    padding: 8px 14px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--carstore-primary); color: #fff; border-color: var(--carstore-primary); }

/* ============ Blog / content ============ */
.content-area { padding: 50px 0; }
.post-card { border-bottom: 1px solid var(--carstore-border); padding: 30px 0; }
.post-card:first-child { padding-top: 0; }
.entry-meta { color: var(--carstore-muted); font-size: 0.9rem; margin-bottom: 10px; }
.post-thumbnail { margin-bottom: 20px; border-radius: var(--carstore-radius); overflow: hidden; }
.align-center { text-align: center; }
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 5rem; color: var(--carstore-primary); margin-bottom: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--carstore-darker); color: #b6bcc7; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 60px 20px 40px; }
.site-footer .widget-title { color: #fff; border-bottom-color: var(--carstore-primary); }
.site-footer .widget ul li { border-bottom-color: rgba(255,255,255,0.08); }
.site-footer a { color: #b6bcc7; }
.site-footer a:hover { color: var(--carstore-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.9rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }

/* ============ Mobile service ============ */
.service-hero .service-meta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0 6px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.92);
}
.service-hero .service-price strong { color: #fff; }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline:hover { background: #fff; color: var(--carstore-primary-dark); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--carstore-light);
    border: 1px solid var(--carstore-border);
    border-radius: var(--carstore-radius);
    padding: 28px 22px;
    text-align: center;
}
.service-card h3 { font-size: 1.05rem; margin: 0; }
.service-icon { font-size: 2rem; margin-bottom: 12px; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.step-number {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--carstore-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--carstore-muted); margin: 0; }

/* Homepage promo banner */
.service-banner {
    background: linear-gradient(120deg, #1f2937 0%, var(--carstore-darker) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.service-banner-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--carstore-primary);
    margin-bottom: 8px;
}
.service-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.service-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 560px; }
.btn-light { background: #fff; color: var(--carstore-dark); white-space: nowrap; }
.btn-light:hover { background: var(--carstore-primary); color: #fff; }

/* Quote form */
.quote-wrap { max-width: 820px; margin: 0 auto; }
.form-notice {
    border-radius: var(--carstore-radius);
    padding: 18px 22px;
    margin-bottom: 26px;
}
.form-notice.success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-notice.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.quote-form {
    background: var(--carstore-light);
    border: 1px solid var(--carstore-border);
    border-radius: 16px;
    padding: 34px 30px;
}
.hp-field { display: none; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--carstore-dark);
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--carstore-text);
    background: #fff;
    border: 1px solid var(--carstore-border);
    border-radius: var(--carstore-radius);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--carstore-primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.form-group textarea { resize: vertical; }
.btn-large { font-size: 1.1rem; padding: 14px 34px; width: 100%; }
.form-privacy { font-size: 0.85rem; color: var(--carstore-muted); text-align: center; margin: 14px 0 0; }

/* Checkbox group (multi-select services) */
.group-label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--carstore-dark);
}
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--carstore-border);
    border-radius: var(--carstore-radius);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0;
}
.checkbox-option:hover { border-color: var(--carstore-primary); }
.checkbox-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--carstore-primary);
}
.checkbox-other { grid-column: 1 / -1; }
.checkbox-other input[type="text"] {
    flex: 1 1 160px;
    min-width: 0;
    border: 1px solid var(--carstore-border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.9rem;
    font-family: inherit;
}
.checkbox-other input[type="text"]:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .products-grid, ul.products { grid-template-columns: repeat(3, 1fr); }
    .badges { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        background: var(--carstore-darker);
        position: absolute;
        left: 0; right: 0; top: 100%;
        padding: 12px 20px 20px;
        gap: 0;
    }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation { position: static; }
    .site-header .container { position: relative; }
    .header-actions .search-form { display: none; }
    .cat-grid { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .service-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .service-banner { flex-direction: column; text-align: center; }
    .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
    .checkbox-group { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .products-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
    .badges { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .header-inner { flex-wrap: wrap; }
}
