/* GrandShopBD Custom Styles */
:root {
    --primary-color: #10b981;      /* Green from your logo */
    --secondary-color: #0891b2;    /* Teal/cyan from logo */
    --success-color: #059669;      /* Darker green */
    --danger-color: #ef4444;       /* Keep red for alerts */
    --warning-color: #f59e0b;      /* Yellow/gold from logo */
    --accent-color: #06b6d4;       /* Bright cyan accent */
}

/* Custom Bootstrap overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #0e7490);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Product cards */
.product-card {
    transition: transform 0.2s;
    border: 1px solid #e5e7eb;
}

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

/* Price styling */
.price-old {
    text-decoration: line-through;
    color: #6b7280;
}

.price-new {
    color: var(--danger-color);
    font-weight: bold;
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

/* Vehicle filter modal */
.vehicle-filter-modal .modal-dialog {
    max-width: 600px;
}

.vehicle-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.vehicle-brand-item {
    text-align: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-brand-item:hover,
.vehicle-brand-item.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.vehicle-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.vehicle-model-item {
    text-align: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-model-item:hover,
.vehicle-model-item.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

/* Category icons */
.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 40px 0 20px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -23px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #dee2e6;
}

.timeline-item.completed .timeline-marker {
    box-shadow: 0 0 0 3px #28a745;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vehicle-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}