/* Triadic Color Scheme */
:root {
    --primary-color: #00205b;     /* Deep Blue */
    --secondary-color: #5b0020;   /* Deep Red */
    --tertiary-color: #205b00;    /* Deep Green */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Added padding for fixed navbar */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    z-index: 1030; /* Ensure navbar is above other content */
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 32, 91, 0.85), rgba(0, 32, 91, 0.85)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Category Navigation */
.category-nav {
    margin-top: 20px;
    padding: 20px 0;
    background-color: #f8f9fa;
}

.category-item {
    cursor: pointer;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #5a5a5a;
}

.category-item h5 {
    margin-bottom: 0;
    font-size: 14px;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-item.active {
    border: 2px solid;
}

/* Featured Products */
.featured-products {
    background-color: var(--white);
}

.product-card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

/* Services */
.services {
    background-color: var(--light-gray);
}

.service-card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background-color: var(--white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--tertiary-color);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card .card-body {
    padding: 1.5rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.client {
    margin-top: 1.5rem;
}

.client h5 {
    margin-bottom: 0.25rem;
}

.client span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

footer h3, footer h5, footer h6 {
    color: var(--white);
    margin-bottom: 1.25rem;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-info li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h5 {
    margin-bottom: 5px;
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.btn-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-value {
    margin: 0 8px;
    min-width: 30px;
    text-align: center;
}

.btn-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
}

.empty-cart {
    padding: 2rem 0;
    color: var(--gray-color);
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--light-gray);
}

/* Checkout section adjustments */
.checkout-section {
    padding-top: 80px;
}

.checkout-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 300px;
}

.cart-notification .notification {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

.cart-notification .notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero .img-fluid {
        margin-top: 2rem;
    }
    
    .navbar-dark .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .cart-sidebar {
        width: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .category-item i {
        font-size: 1.5rem;
    }
    
    .category-item h5 {
        font-size: 0.8rem;
    }
} 