/* Jin ATV Official Branding Colors */
:root {
    --jinatv-blue: #1043A9;
    --jinatv-orange: #FF640A;
    --jinatv-navy: #001942;
    --jinatv-white: #FFFFFF;
    --jinatv-primary: #1043A9;
    --jinatv-secondary: #FF640A;
    --jinatv-accent: #FF640A;
    --jinatv-warning: #FF640A;
    --jinatv-success: #66bb6a;
    --jinatv-dark: #001942;
    --jinatv-light: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Jin ATV Bootstrap Color Overrides */
.bg-primary {
    background: linear-gradient(135deg, var(--jinatv-blue), var(--jinatv-navy)) !important;
}

.text-primary {
    color: var(--jinatv-blue) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jinatv-blue), var(--jinatv-navy));
    border: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--jinatv-navy), var(--jinatv-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 67, 169, 0.3);
}

.btn-warning {
    background-color: var(--jinatv-orange);
    border-color: var(--jinatv-orange);
    color: white;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #e5590a;
    border-color: #e5590a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 100, 10, 0.3);
}

/* Jin ATV Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--jinatv-blue), var(--jinatv-navy), var(--jinatv-orange));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Navbar Enhancements */
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--jinatv-warning) !important;
    transform: translateY(-1px);
}

/* Form Enhancements */
.form-control, .form-select {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--jinatv-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.form-control-lg, .form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Extras Grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--jinatv-light);
    border-radius: 8px;
}

.extras-grid .form-check {
    margin-bottom: 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.extras-grid .form-check:hover {
    border-color: var(--jinatv-primary);
    box-shadow: 0 2px 4px rgba(30, 60, 114, 0.1);
}

.extras-grid .form-check-input {
    margin-right: 8px;
    flex-shrink: 0;
}

.extras-grid .form-check-input:checked {
    background-color: var(--jinatv-primary);
    border-color: var(--jinatv-primary);
}

.extras-grid .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--jinatv-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.price-display:hover {
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

/* Step Numbers */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--jinatv-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Success Icon */
.success-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Table Enhancements */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(30, 60, 114, 0.05);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .extras-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--jinatv-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--jinatv-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jinatv-secondary);
}

/* Product Gallery Styles */
.product-gallery {
    max-width: 500px;
    margin: 0 auto;
}

.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.main-product-image:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    max-width: 500px;
    margin: 0 auto;
}

.thumbnail-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.thumbnail-img:hover {
    border-color: var(--jinatv-orange);
    transform: scale(1.1);
}

.thumbnail-img.active {
    border-color: var(--jinatv-blue);
    border-width: 3px;
    box-shadow: 0 0 10px rgba(16, 67, 169, 0.3);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .main-product-image {
        height: 300px;
    }
    
    .thumbnail-img {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-gallery {
        justify-content: center !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
