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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #f5f5f5;
    color: #333;
}

.top-nav {
    background: #1a1a1a;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-left a:hover {
    color: #ff4d4d;
}

.nav-center {
    display: flex;
    gap: 20px;
}

.nav-center a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-center a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sale-link {
    color: #ff4d4d !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-container input {
    padding: 8px 35px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 200px;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: white;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 2rem;
    background: white;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

/* Product Container */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-strip {
    display: flex;
    gap: 1rem;
}

.thumbnail-strip img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-strip img.active {
    opacity: 1;
    border: 2px solid #007bff;
}

.product-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.brand-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brand-logo {
    height: 30px;
}

.verified-tag {
    color: #28a745;
    font-size: 0.9rem;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.stars {
    color: #ffc107;
}

.price-section {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    margin-right: 1rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
}

.discount-tag {
    background: #ff3e3e;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.size-selector,
.color-selector {
    margin-bottom: 2rem;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.size-btn {
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn.active {
    border-color: #007bff;
    color: #007bff;
}

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

.color-options {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}

.color-btn.active {
    border-color: #007bff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #0056b3;
}

.wishlist-btn {
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #f8f8f8;
}

.similar-products {
    grid-column: 1 / -1;
    margin-top: 3rem;
}

.product-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.product-card {
    flex: 0 0 250px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

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

    .nav-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-center {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-container input {
        width: 150px;
    }

    .product-container {
        padding: 1rem;
    }
}

/* Parts Grid Layout */
.parts-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.filter-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.filter-section select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.part-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.part-card:hover {
    transform: translateY(-5px);
}

.part-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.part-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff3e3e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.part-info {
    padding: 1.5rem;
}

.part-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.part-brand {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.compatibility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.part-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.quick-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quick-add:hover {
    background: #0056b3;
}

.featured-brands {
    padding: 40px 30px;
    background: #1a1a1a;
    color: white;
}

.featured-brands h2 {
    text-align: center;
    margin-bottom: 30px;
}

.brand-slider {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.brand-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-logo img:hover {
    opacity: 1;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
}

.cart-modal.active {
    right: 0;
}

.cart-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #ff4d4d;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.cart-item-info p {
    margin: 0;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-quantity button:hover {
    background: #f5f5f5;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #ff3333;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #ff3333;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .parts-container {
        grid-template-columns: 200px 1fr;
    }
}

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

    .filters {
        display: none;
    }

    .parts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .parts-container {
        padding: 0 1rem;
    }

    .part-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 15px;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item img {
        width: 120px;
        height: 120px;
    }
} 