/**
 * Frontend Styles
 * Stainless Fitness
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Typography */
body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    font-size: 0.875rem;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: #666;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

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

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

.category-card .overlay h5 {
    margin: 0;
    font-weight: 600;
}

/* Catalogue Cards */
.catalogue-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.catalogue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.catalogue-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Features Section */
.features-section {
    background-color: var(--light-color);
    padding: 60px 0;
}

.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-box .icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.feature-box h5 {
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Product Detail */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery .main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
}

.product-gallery .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.product-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info .specifications {
    background: var(--light-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.product-info .specifications table {
    margin: 0;
}

.product-info .specifications th {
    width: 40%;
    font-weight: 500;
}

/* Contact Page */
.contact-info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
}

.contact-info-box .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    color: #333;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light-color);
    padding: 15px 0;
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
.site-footer {
    margin-top: 60px;
}

.site-footer h5, .site-footer h6 {
    margin-bottom: 20px;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Back to Top */
#backToTop {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
    
    .category-card {
        height: 150px;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-info .price {
        font-size: 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utilities */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}
