/* ========================================
   Persian Auto Parts E-Commerce Platform
   Colors: #1E3A5F (primary), #FF6B35 (accent), #28C76F (success), #F0F4F8 (light)
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E3A5F;
    --primary-light: #2d4d76;
    --accent: #FF6B35;
    --accent-hover: #e55a2a;
    --success: #28C76F;
    --light: #F0F4F8;
    --text-dark: #2D3748;
    --text-medium: #718096;
    --text-light: #A0AEC0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Tahoma', sans-serif;
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
#navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-logo span {
    color: var(--accent);
    font-size: 0.875rem;
    display: block;
    margin-top: -0.25rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.cart-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.cart-btn #cartCount {
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

.lang-switch {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
    min-width: 50px;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Main Content */
#app {
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 5rem 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.hero-search button:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.95;
}

.trust-item svg {
    width: 28px;
    height: 28px;
}

/* Section */
.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    padding: 1.25rem;
}

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

.product-compatible {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #fbbf24;
}

.rating-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.product-stock {
    font-size: 0.875rem;
    color: var(--success);
}

.product-stock.out {
    color: #ef4444;
}

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

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--primary);
    color: var(--white);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.2);
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Trust Stats */
.trust-stats {
    background: var(--white);
    padding: 3rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-medium);
    margin-top: 0.5rem;
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.bottom-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bottom-cta p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.bottom-cta .btn-secondary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* Mobile Bottom Cart */
.mobile-bottom-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.mobile-bottom-cart button {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.mobile-bottom-cart .count {
    background: var(--white);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Products Page */
.products-page {
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumb {
    color: var(--text-medium);
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    cursor: pointer;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filter-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* Product Detail */
.product-detail {
    padding: 2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    background: var(--light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--accent);
}

.detail-info h1 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.price-tiers {
    background: var(--light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #cbd5e0;
}

.price-tier:last-child {
    border-bottom: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    background: var(--white);
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.qty-value {
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
    flex: 1;
}

.detail-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

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

.tab-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
}

.spec-table {
    width: 100%;
}

.spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.spec-row:last-child {
    border-bottom: none;
}

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

/* Cart Page */
.cart-page {
    padding: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.cart-items {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
}

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

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-summary {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty h3 {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* Checkout Page */
.checkout-page {
    padding: 2rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.checkout-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
}

.checkout-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-options,
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card {
    border: 2px solid #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.option-card:hover,
.option-card.selected {
    border-color: var(--accent);
    background: rgba(255,107,53,0.05);
}

.option-card input {
    margin-left: 0.75rem;
}

/* Order Confirmation */
.order-confirmation {
    padding: 4rem 2rem;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.order-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.order-info {
    background: var(--white);
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 16px;
    text-align: right;
}

/* Account Page */
.account-page {
    padding: 2rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.account-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    height: fit-content;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--light);
    color: var(--primary);
}

.account-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
}

/* Contact Page */
.contact-page {
    padding: 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-layout,
    .cart-layout,
    .checkout-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: sticky;
        top: 80px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1001;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .filter-sidebar.open {
        right: 0;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .filter-overlay.open {
        display: block;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-price,
    .cart-item .quantity-selector {
        grid-column: 2;
    }
    
    .remove-btn {
        position: absolute;
        top: 1rem;
        left: 1rem;
    }
    
    .cart-item {
        position: relative;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .mobile-bottom-cart {
        display: block;
    }
    
    #app {
        padding-bottom: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-medium);
    font-size: 0.875rem;
}

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

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
}

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

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

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

/* Favorite Button */
.favorite-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 50%;
}

.favorite-btn:hover {
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

.favorite-btn.active {
    color: var(--accent);
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.zoom-modal.open {
    display: flex;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.zoom-image-container {
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 400px;
    min-height: 400px;
}

/* Reviews */
.reviews-section {
    padding: 1rem 0;
}

.reviews-summary {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.overall-rating {
    display: inline-block;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.rating-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin: 0.5rem 0;
}

.rating-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.review-text {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Compatible Cars List */
.compatible-cars-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.compatible-car-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.compatible-car-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.compatible-car-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.compatible-car-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Account Page Enhancements */
.account-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-id {
    font-weight: 600;
    color: var(--primary);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.order-status.shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.order-status.delivered {
    background: #d1fae5;
    color: #065f46;
}

.order-card-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-medium);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.order-total {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.125rem;
}

/* Address Card */
.address-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    margin-bottom: 1rem;
}

.address-card.default {
    border-color: var(--primary);
    border-width: 2px;
}

.address-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.default-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

.address-text {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.address-action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--text-medium);
}

.address-action-btn:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Add Address Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
}
