/* Products Page Styles */
.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/vigi-scooters.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.products-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.products-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.products-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

/* Product Filter */
.product-filter {
    background-color: var(--bg-secondary);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.filter-group:has(#price-filter),
#sort-by option[value="price-low"],
#sort-by option[value="price-high"] {
    display: none;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-light);
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.products-hero {
    width: 100%;
    position: relative;
}


/* Products Grid */
.products-grid-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 315px;
    overflow: hidden;
    padding: 14px;
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.quick-view, .wishlist-toggle {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.quick-view {
    color: var(--primary-color);
    font-weight: 500;
}

.quick-view:hover {
    background-color: white;
}

.wishlist-toggle {
    width: 36px;
    height: 36px;
    justify-content: center;
    color: var(--text-light);
}

.wishlist-toggle:hover, .wishlist-toggle.active {
    color: var(--error-color);
}

.wishlist-toggle.active i {
    font-weight: 900;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.product-cta {
    display: flex;
    gap: 1rem;
}

.product-cta .btn {
    flex: 1;
    text-align: center;
}

/* Comparison Banner */
.comparison-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin: 2rem 0;
}

.comparison-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.comparison-banner p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Details */
.product-details-section {
    padding: 4rem 0;
}

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

.detail-images {
    position: sticky;
    top: 120px;
    align-self: start;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

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

.thumbnail {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-content .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.rating i {
    color: var(--accent-color);
}

.review-link {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

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

.color-options {
    margin-bottom: 2rem;
}

.color-options h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.colors {
    display: flex;
    gap: 0.75rem;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.color-name {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.key-features {
    margin-bottom: 2rem;
}

.key-features h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.key-features ul {
    list-style: none;
}

.key-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.key-features i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-actions .btn {
    min-width: 200px;
}

.wishlist-btn {
    background: none;
    border: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: var(--error-color);
}

.wishlist-btn.active i {
    font-weight: 900;
}

/* Comparison Section */
.comparison-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.comparison-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.comparison-table tr:hover {
    background-color: var(--bg-tertiary);
}

/* Accessories Section */
.accessories-section {
    padding: 4rem 0;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.accessory-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1 !important;
    transform: none;
    min-height: 390px;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.accessories-section {
    min-height: auto;
}

.accessory-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.accessory-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .4rem;
    background: #fff;
    transition: transform 0.5s ease;
}

.comparison-table tbody tr:first-child { display: none; }

.helmet-dummy {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, #eefbf8, #d7f2eb);
}

.helmet-shape {
    position: relative;
    width: 118px;
    height: 82px;
    border-radius: 62px 62px 22px 22px;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    border: 5px solid #fff;
    box-shadow: 0 14px 22px rgba(0,0,0,.16), inset -12px -8px 18px rgba(0,0,0,.12);
}

.helmet-shape::before {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 4px;
    width: 62px;
    height: 38px;
    border-radius: 8px 28px 22px 8px;
    background: rgba(12, 31, 35, .88);
    border: 4px solid #fff;
}

.helmet-shape::after {
    content: "";
    position: absolute;
    left: 17px;
    bottom: -17px;
    width: 48px;
    height: 26px;
    border-left: 5px solid var(--primary-dark);
    border-bottom: 5px solid var(--primary-dark);
    border-radius: 0 0 0 16px;
}

.brand-mask::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28%;
    width: 54px;
    height: 22px;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    background: rgba(18, 25, 24, .92);
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    pointer-events: none;
}

.accessory-info p {
    color: var(--text-light);
    min-height: 3.2rem;
    margin-bottom: 1rem;
}

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

.accessory-image .quick-view {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accessory-card:hover .quick-view {
    opacity: 1;
}

.accessory-info {
    padding: 1.5rem;
}

.accessory-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.accessory-info .price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.accessory-info .rating {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accessory-info .rating i {
    font-size: 0.8rem;
}

.accessory-info .btn {
    width: 100%;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content .rating {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p::before, .testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
}

.testimonial-content p::before {
    top: -1rem;
    left: -1rem;
}

.testimonial-content p::after {
    bottom: -2rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .name {
    font-weight: 600;
}

.author-info .location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    display: block;
    width: 100%;
}

.cta-card h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.cta-card .cta-buttons .btn {
    width: auto;
    min-width: 210px;
    white-space: nowrap;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

.cta-card .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta-card .btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

/* Quick View Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

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

.modal-body {
    padding: 2rem;
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quick-view-image img {
    width: 100%;
    height: 390px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-view-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.quick-view-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-view-info .rating {
    margin-bottom: 1.5rem;
}

.quick-view-info .specs {
    list-style: none;
    margin-bottom: 2rem;
}

.quick-view-info .specs li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-view-info .specs i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
}

.quick-view-actions .btn {
    flex: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-images {
        position: static;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-image { height: 280px; }
    .quick-view-image img { height: 280px; }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .product-cta, .detail-actions, .quick-view-actions {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .products-hero h1 {
        font-size: 2.2rem;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Tech Specs Grid */
.tech-specs {
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.tech-specs h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.spec-item {
    display: flex;
    margin-bottom: 0.75rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 120px;
}

.spec-value {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        flex-direction: column;
    }
    
    .spec-label {
        margin-bottom: 0.25rem;
    }
}
