/* Motorcycle Detail Page - Minimalistic Styles */

/* Photo Gallery */
.photo-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-photo {
    aspect-ratio: 16/10;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-nav {
    display: flex;
    gap: 8px;
    padding: 16px;
    justify-content: center;
    overflow-x: auto;
}

.photo-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.photo-thumb:hover,
.photo-thumb.active {
    opacity: 1;
    border-color: #e74c3c;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Navigation Arrows */
.photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.photo-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.photo-arrow.prev { left: 16px; }
.photo-arrow.next { right: 16px; }

/* Info Cards */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.spec-item {
    text-align: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: between;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 300px;
}

.accordion-body {
    padding: 0 16px 16px;
}

/* Price Card */
.price-card {
    position: sticky;
    top: 100px;
}

.price-display {
    text-align: center;
    margin-bottom: 24px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
}

.old-price {
    font-size: 1.125rem;
    color: #6b7280;
    text-decoration: line-through;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid #e74c3c;
    color: #e74c3c;
    background: transparent;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

.btn-ghost {
    border: 1px solid #d1d5db;
    color: #4b5563;
    background: transparent;
}

.btn-ghost:hover {
    background: #f9fafb;
}

/* Features */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-new { background: #10b981; color: white; }
.feature-hit { background: #f59e0b; color: white; }
.feature-engine { background: #3b82f6; color: white; }
.feature-general { background: #6b7280; color: white; }

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-item:focus-within {
    background-color: #f8f9fa;
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #e74c3c;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: none;
}

.contact-item a:focus {
    outline: none;
}

/* Active state for mobile */
.contact-item:active {
    background-color: #f1f5f9;
    transform: scale(0.98);
}

/* Guarantee Items */
.guarantee-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.guarantee-icon {
    width: 20px;
    color: #10b981;
    margin-right: 12px;
}

/* Related Products */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-image {
    aspect-ratio: 16/10;
    background: #f8f9fa;
}

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

.product-info {
    padding: 20px;
}

/* Status Indicators */
.status-available {
    color: #10b981;
}

.status-unavailable {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .price-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-nav {
        padding: 12px;
    }
    
    .photo-thumb {
        width: 50px;
        height: 38px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .contact-item {
        padding: 14px 8px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 14px;
    }
    
    .contact-item a,
    .contact-item span {
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 