/* Custom CSS for Grill Grates Shop - Scandinavian Clean Design */

:root {
    --primary-color: #2c5f41;      /* Forest green */
    --secondary-color: #7d8491;     /* Cool grey */
    --accent-color: #c7a882;        /* Warm beige */
    --success-color: #4a6741;
    --warning-color: #b8860b;
    --danger-color: #8b4c42;
    --dark-color: #1a1a1a;
    --light-color: #fafafa;
    --text-primary: #2c3e50;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --background-subtle: #f9fafb;
    --font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 400;
}

/* Hero Section - Clean Scandinavian Style */
.hero-section {
    background: var(--light-color);
    min-height: 500px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-section .btn {
    border-radius: 4px;
    padding: 14px 28px;
    font-weight: 500;
    letter-spacing: -0.025em;
    font-size: 16px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

/* Product Cards - Minimal Design */
.product-card {
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: white;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card img {
    transition: none;
}

.category-card {
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: white;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Rating Stars */
.rating .bi-star-fill,
.rating .bi-star {
    font-size: 0.9rem;
}

/* Buttons - Clean Scandinavian Style */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #234a33;
    border-color: #234a33;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Navigation - Clean & Minimal */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Forms - Scandinavian Clean */
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: border-color 0.2s ease;
    background: white;
    font-size: 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44,95,65,0.1);
    outline: none;
}

/* Cards - Clean Design */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
    background: var(--background-subtle);
    border-bottom: 1px solid var(--border-color);
    border-radius: 7px 7px 0 0 !important;
    font-weight: 600;
    font-size: 15px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 12px;
}

/* Footer - Clean & Simple */
footer {
    background: var(--dark-color) !important;
    border-top: 1px solid #333;
}

.footer-link {
    opacity: 0.9;
    transition: all 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
    color: var(--secondary-color);
}

/* Product Images */
.thumbnail-img {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: none;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Loading States */
.spinner-border {
    color: var(--primary-color);
}

/* Subtle Animations - Minimal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
}

/* Custom scrollbar - Minimal */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Price styling */
.price-section .h2 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Stock status alerts */
.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Utility classes - Clean */
.text-primary-accent {
    color: var(--primary-color);
}

.shadow-subtle {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Cart badge */
.navbar .badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
