/* Main Styles for SriMyna Foods */

/* Global Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-color: #dee2e6;
    --body-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    background-color: var(--body-bg);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #bb2d3b;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    padding: 0.5rem 0;
}

.logo {
    max-height: 300px;
    height: 80px;
    width: 140px;
}

.navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.header-cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-account .account-link {
    font-size: 1.4rem;
    color: var(--dark-color);
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    margin-bottom: 3rem;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-image img {
    width: 100%; /* Adjust this value as needed */
    height: auto; /* Maintain aspect ratio */
    max-height: 600px; /* Set a maximum height */
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

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

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-transform: capitalize;
}

.regular-price {
    font-weight: 600;
}

.sale-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Features Section */
.feature-box {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Section Headers */
.section-heading {
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--secondary-color);
}

/* Testimonials */
.testimonial-card {
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: var(--warning-color);
}

/* Footer */
.footer {
    color: var(--dark-color);
}

.footer-logo {
    max-width: 180px;
}

.footer-links a {
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* WhatsApp and Call Buttons */
.whatsapp-contact, .call-contact {
    position: fixed;
    z-index: 999;
}

.whatsapp-contact {
    bottom: 20px;
    right: 20px;
}

.call-contact {
    bottom: 20px;
    left: 20px;
}

.whatsapp-btn, .call-btn {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: #25d366;
}

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

.whatsapp-btn:hover, .call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: white;
}

.whatsapp-btn i, .call-btn i {
    margin-right: 8px;
}

/* Breadcrumbs */
.breadcrumb-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

/* Product Filter Styles */
.price-slider {
    padding: 0.5rem 0;
}

.price-range-values {
    font-size: 0.875rem;
}

/* Product Detail Styles */
.product-detail-section {
    margin-bottom: 3rem;
}

.product-image-gallery {
    margin-bottom: 2rem;
}

.main-image {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.thumbnail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* Cart Styles */
.empty-cart {
    padding: 3rem 0;
}

.empty-cart-icon {
    color: var(--secondary-color);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Account Styles */
.account-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 9999;
}

.notification {
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    padding: 15px;
    align-items: center;
}

.notification-message {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--secondary-color);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

/* About Us Page */
.about-hero-section {
    margin-bottom: 3rem;
}

.team-member {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.team-member:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Contact Page */
.map-container {
    border-radius: 0.5rem;
    height: 100%; /* Make the height responsive */
    width: 100%; /* Ensure full width */
    min-height: 450px; /* Ensure a minimum height */
    height: calc(100% - 20px); /* Adjust height to fit the container */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #bb2d3b;
}

/* 404 Error Page */
.error-404-section {
    padding: 5rem 0;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkout Page */
.checkout-section {
    margin-bottom: 3rem;
}

/* Utility Classes */
.rounded-pill {
    border-radius: 50rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-image {
        height: 150px; /* Adjust height for smaller screens */
    }

    .product-image img {
        height: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }
}
