/* Custom CSS for Medfit */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    font-size: 0.875rem;
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
    .top-bar,
    .top-bar.bg-primary,
    .top-bar.text-white,
    .top-bar.py-2 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Hide login and register buttons on mobile */
@media (max-width: 767.98px) {
    /* Aggressive hiding for all possible auth button selectors */
    .header .btn-outline-secondary,
    .header .btn-primary,
    .header a[href*="login"],
    .header a[href*="register"],
    .header .col-lg-3 .d-flex .btn-outline-secondary,
    .header .col-lg-3 .d-flex .btn-primary,
    .header .col-lg-3.col-md-4.col-6 .d-flex .btn-outline-secondary,
    .header .col-lg-3.col-md-4.col-6 .d-flex .btn-primary,
    .header .col-lg-3.col-md-4.col-6 .d-flex a[href*="login"],
    .header .col-lg-3.col-md-4.col-6 .d-flex a[href*="register"],
    .header .d-flex .btn-outline-secondary,
    .header .d-flex .btn-primary,
    .header .d-flex a[href*="login"],
    .header .d-flex a[href*="register"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Force hide any remaining auth buttons */
    .header *[href*="login"],
    .header *[href*="register"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Target the specific user actions container */
    .header .col-lg-3.col-md-4.col-6.text-end .d-flex .btn-outline-secondary,
    .header .col-lg-3.col-md-4.col-6.text-end .d-flex .btn-primary {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Keep cart button visible but hide auth buttons */
    .header .col-lg-3.col-md-4.col-6.text-end .d-flex .btn-outline-primary {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        padding: 0.5rem 1.5rem !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
    }
    
    /* Ensure navbar toggle button is visible in header */
    .header .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        padding: 0.25rem 0.75rem !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        z-index: 1000 !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        border-radius: 0.375rem !important;
        background-color: transparent !important;
    }
    
    .header .navbar-toggler .navbar-toggler-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 1.5em !important;
        height: 1.5em !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}


.header {
    background-color: var(--text-light) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure navbar toggle button is always visible when needed */
.header .navbar-toggler {
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.375rem;
    background-color: transparent;
    padding: 0.25rem 0.75rem;
}

.header .navbar-toggler .navbar-toggler-icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand h1 {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.btn-outline-secondary {
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: var(--text-dark) !important;
    color: var(--text-light) !important;
}

/* New Hero Section with Background Slider */

/* Product Variant Buttons */
.variant-btn {
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    font-weight: 500;
    min-width: 80px;
}

.variant-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.variant-btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
    transform: translateY(-1px);
}

.variant-btn.active:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.variant-check {
    color: var(--text-light);
    font-size: 0.875rem;
}

.variant-btn.active .variant-check {
    /* Animation removed */
}
.new-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Image Slider */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem 0;
}

/* Hero Content */
.hero-content {
    color: white;
    text-align: center;
    /* Animation removed */
}

/* Slide Content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* Transitions removed */
}

.slide-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: #ffffff;
}

.title-highlight {
    color: #1e3a8a;
    font-weight: 800;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary {
    background: #000000;
    border: 2px solid #000000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.hero-buttons .btn-outline-light {
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
}

.hero-buttons .btn-outline-light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* Slide 1 Specific Styles */
.carousel-item:nth-child(1) .hero-slide-professional {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(1) .hero-slide-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
}

.carousel-item:nth-child(1) .main-image-professional::before {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(1) .small-image-professional::before {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(1) .title-emphasis {
    color: #007bff;
}

.carousel-item:nth-child(1) .highlight-text {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(1) .highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.carousel-item:nth-child(1) .btn-medfit-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(1) .btn-medfit-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-item:nth-child(1) .btn-medfit-primary:hover::before {
    left: 100%;
}

.carousel-item:nth-child(1) .btn-medfit-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Slide 2 Specific Styles */
.carousel-item:nth-child(2) .hero-slide-professional {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(2) .hero-slide-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(40, 167, 69, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(40, 167, 69, 0.05) 0%, transparent 50%);
}

.carousel-item:nth-child(2) .main-image-professional::before {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(2) .small-image-professional::before {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(2) .title-emphasis {
    color: #28a745;
}

.carousel-item:nth-child(2) .highlight-text {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(2) .highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2.5s infinite;
}

.carousel-item:nth-child(2) .btn-medfit-primary {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(2) .btn-medfit-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-item:nth-child(2) .btn-medfit-primary:hover::before {
    left: 100%;
}

.carousel-item:nth-child(2) .btn-medfit-primary:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Slide 3 Specific Styles */
.carousel-item:nth-child(3) .hero-slide-professional {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(3) .hero-slide-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
}

.carousel-item:nth-child(3) .main-image-professional::before {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(3) .small-image-professional::before {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
}

.carousel-item:nth-child(3) .title-emphasis {
    color: #ffc107;
}

.carousel-item:nth-child(3) .highlight-text {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(3) .highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.carousel-item:nth-child(3) .btn-medfit-primary {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(3) .btn-medfit-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-item:nth-child(3) .btn-medfit-primary:hover::before {
    left: 100%;
}

.carousel-item:nth-child(3) .btn-medfit-primary:hover {
    background: linear-gradient(45deg, #e0a800, #b8860b);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Professional Hero Content */
.hero-content-professional {
    padding: 2rem 0;
    color: #333333;
    animation: contentSlideIn 1s ease-out;
}

.hero-subtitle-professional {
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle-text {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.subtitle-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hero-content-professional:hover .subtitle-text::before {
    height: 25px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
}

.hero-title-professional {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #333333;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
}

.title-emphasis {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    transition: all 0.3s ease;
}

.title-emphasis::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hero-content-professional:hover .title-emphasis::after {
    width: 100%;
}

.hero-description-professional {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #666666;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-features-professional {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.feature-item-professional {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555555;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item-professional:hover::before {
    left: 100%;
}

.feature-item-professional:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.feature-item-professional i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item-professional:hover i {
    transform: scale(1.2);
    color: #0056b3;
}

.hero-actions-professional {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn-professional {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-professional:hover::before {
    left: 100%;
}

.btn-primary-professional {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-primary-professional:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-outline-professional {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-professional:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.indicator:hover::before {
    left: 100%;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background-color: #ffd700;
    border-color: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-specific model styling */
.carousel-item:nth-child(1) .model-img {
    border-color: rgba(0, 123, 255, 0.2);
    position: relative;
}

.carousel-item:nth-child(1) .model-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:nth-child(1) .model-img:hover::after {
    opacity: 1;
}

.carousel-item:nth-child(1) .model-img-overlay {
    border-color: rgba(0, 123, 255, 0.2);
    animation: slideInRight 1.2s ease-out;
}

.carousel-item:nth-child(2) .model-img {
    border-color: rgba(40, 167, 69, 0.2);
    position: relative;
}

.carousel-item:nth-child(2) .model-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:nth-child(2) .model-img:hover::after {
    opacity: 1;
}

.carousel-item:nth-child(2) .model-img-overlay {
    border-color: rgba(40, 167, 69, 0.2);
    animation: slideInRight 1.4s ease-out;
}

.carousel-item:nth-child(3) .model-img {
    border-color: rgba(255, 193, 7, 0.2);
    position: relative;
}

.carousel-item:nth-child(3) .model-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:nth-child(3) .model-img:hover::after {
    opacity: 1;
}

.carousel-item:nth-child(3) .model-img-overlay {
    border-color: rgba(255, 193, 7, 0.2);
    animation: slideInRight 1.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 30px;
    height: 30px;
}

.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-indicators button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s;
}

.carousel-indicators button:hover::before {
    left: 100%;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Additional Content Enhancements */
.hero-content-medfit {
    position: relative;
    z-index: 10;
}

.hero-title-medfit {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-subtitle-medfit {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Enhanced Mobile Responsive styles for New Hero Section */
@media (max-width: 768px) {
    .new-hero-section {
        height: 70vh;
        min-height: 400px;
        background-image: url('../images/headermobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    
    /* Hide hero slider background on mobile */
    .hero-background-slider {
        display: none;
    }
    
    .hero-overlay {
        display: block;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .hero-content-wrapper {
        padding: 1.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100%;
    }
    
    .hero-content {
        padding: 0 1rem;
        color: white;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        line-height: 1.1;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .title-highlight {
        display: block;
        font-size: 2rem;
        margin-top: 0.5rem;
        color: #ffffff;
    }
    
    /* Mobile specific hero title */
    .new-hero-section .hero-title {
        font-size: 2.2rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile hero content styling */
    .mobile-hero-content {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
        padding: 2rem 1rem 3rem 1rem;
    }
    
    .mobile-hero-content .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        margin-bottom: 2rem;
        line-height: 1.2;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        margin-top: auto;
        padding: 0 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        max-width: 45%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile specific button styling */
    .new-hero-section .hero-buttons .btn {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.9);
        color: var(--primary-color);
        font-weight: 700;
        backdrop-filter: blur(10px);
    }
    
    .new-hero-section .hero-buttons .btn:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    
    .hero-buttons .btn-primary {
        background: #000000;
        border: 2px solid #000000;
        color: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    
    .hero-buttons .btn-outline-light {
        border: 2px solid #ffffff;
        background: transparent;
        color: #ffffff;
    }
    
    .hero-buttons .btn-outline-light:hover {
        background: #ffffff;
        border-color: #ffffff;
        color: #000000;
        box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    }
    
    /* Hide slider indicators on mobile */
    .slider-indicators {
        display: none;
    }
}

@media (max-width: 576px) {
    .new-hero-section {
        height: 65vh;
        min-height: 350px;
        background-image: url('../images/headermobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Ensure background images fit properly on smaller mobile */
    .hero-background-slider .background-slide {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    .hero-content-wrapper {
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100%;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        color: white;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .mobile-hero-content .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-hero-content {
        padding: 1rem 1rem 2.5rem 1rem;
    }
    
    .title-highlight {
        font-size: 1.6rem;
        margin-top: 0.3rem;
        color: #ffffff;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
        justify-content: space-between;
        margin-top: auto;
        padding: 0 0.5rem;
        padding-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        max-width: 48%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .slider-indicators {
        display: none;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.5);
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background: #ffffff;
        border-color: #ffffff;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .new-hero-section {
        height: 60vh;
        min-height: 300px;
        background-image: url('../images/headermobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Ensure background images fit properly on very small mobile */
    .hero-background-slider .background-slide {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    .hero-content-wrapper {
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100%;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        color: white;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .mobile-hero-content .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-hero-content {
        padding: 1rem 1rem 2rem 1rem;
    }
    
    .title-highlight {
        font-size: 1.4rem;
        color: #ffffff;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.6rem;
        justify-content: space-between;
        margin-top: auto;
        padding: 0 0.5rem;
        padding-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        max-width: 48%;
        padding: 0.75rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .slider-indicators {
        display: none;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.5);
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background: #ffffff;
        border-color: #ffffff;
        transform: scale(1.2);
    }
}

/* Enhanced Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Category Page Specific Styles */
.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.category-header-image img {
    max-height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-products {
    background-color: #ffffff;
}

.empty-state {
    padding: 3rem 0;
}

.empty-state i {
    opacity: 0.5;
}

/* Category Page Product Cards */
.category-products .product-card-modern {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-products .product-card-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.1);
}

/* Remove margin-top from all product prices */
.product-price,
.product-content-modern .product-price,
.product-card-modern .product-price,
.product-card .price,
.featured-products-modern .product-price,
.category-products .product-price,
.category-products .product-content-modern .product-price {
    margin-top: 0 !important;
}

/* Override mt-auto class for product prices */
.product-price.mt-auto,
.product-content-modern .product-price.mt-auto,
.product-card-modern .product-price.mt-auto,
.product-card .price.mt-auto,
.featured-products-modern .product-price.mt-auto,
.category-products .product-price.mt-auto,
.category-products .product-content-modern .product-price.mt-auto {
    margin-top: 0 !important;
}

/* Center align all prices on mobile for whole website */
@media (max-width: 768px) {
    /* Hide top bar on mobile */
    .top-bar,
    .top-bar.bg-primary,
    .top-bar.text-white,
    .top-bar.py-2 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    .product-price,
    .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price,
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .search-results .product-price,
    .all-products .product-price,
    .related-products .product-price,
    .product-gallery .price,
    .product-details .price,
    .price-old,
    .price-new,
    .price-current {
        text-align: center !important;
    }
}

/* Mobile: Show 2 products per row in category page */
@media (max-width: 768px) {
    .category-products .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .category-products .col-lg-3.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .category-products .col-lg-3.col-md-4.col-sm-6.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Center align product title and price on mobile */
    .category-products .product-title,
    .category-products .product-content-modern .product-title,
    .product-card-modern .product-title,
    .product-card .card-title,
    .featured-products-modern .product-title {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price {
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Override mt-auto class on mobile */
    .category-products .product-price.mt-auto,
    .category-products .product-content-modern .product-price.mt-auto,
    .product-card-modern .product-price.mt-auto,
    .product-card .price.mt-auto,
    .featured-products-modern .product-price.mt-auto {
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .category-products .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .category-products .col-lg-3.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Hide top bar on small mobile */
    .top-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Center align all prices on small mobile for whole website */
    .product-price,
    .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price,
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .search-results .product-price,
    .all-products .product-price,
    .related-products .product-price,
    .product-gallery .price,
    .product-details .price,
    .price-old,
    .price-new,
    .price-current {
        text-align: center !important;
    }
    
    /* Center align product title and price on small mobile */
    .category-products .product-title,
    .category-products .product-content-modern .product-title,
    .product-card-modern .product-title,
    .product-card .card-title,
    .featured-products-modern .product-title {
        text-align: center !important;
        margin-bottom: 0.4rem !important;
    }
    
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price {
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Override mt-auto class on small mobile */
    .category-products .product-price.mt-auto,
    .category-products .product-content-modern .product-price.mt-auto,
    .product-card-modern .product-price.mt-auto,
    .product-card .price.mt-auto,
    .featured-products-modern .product-price.mt-auto {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .category-products .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .category-products .col-lg-3.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Hide top bar on very small mobile */
    .top-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Center align all prices on very small mobile for whole website */
    .product-price,
    .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price,
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .search-results .product-price,
    .all-products .product-price,
    .related-products .product-price,
    .product-gallery .price,
    .product-details .price,
    .price-old,
    .price-new,
    .price-current {
        text-align: center !important;
    }
    
    /* Center align product title and price on very small mobile */
    .category-products .product-title,
    .category-products .product-content-modern .product-title,
    .product-card-modern .product-title,
    .product-card .card-title,
    .featured-products-modern .product-title {
        text-align: center !important;
        margin-bottom: 0.3rem !important;
    }
    
    .category-products .product-price,
    .category-products .product-content-modern .product-price,
    .product-card-modern .product-price,
    .product-card .price,
    .featured-products-modern .product-price {
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Override mt-auto class on very small mobile */
    .category-products .product-price.mt-auto,
    .category-products .product-content-modern .product-price.mt-auto,
    .product-card-modern .product-price.mt-auto,
    .product-card .price.mt-auto,
    .featured-products-modern .product-price.mt-auto {
        margin-top: 0 !important;
    }
}

/* Related Categories Section */
.related-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Product Video Section */
.product-video {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.product-video h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile responsive video */
@media (max-width: 768px) {
    .product-video {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .product-video h5 {
        font-size: 1.1rem;
    }
    
    .video-container video {
        max-width: 100%;
    }
}

.related-categories .category-card-modern {
    height: 250px;
}

.related-categories .category-image-modern {
    height: 200px;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Product Description in Category Cards */
.product-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Responsive Category Page */
@media (max-width: 768px) {
    .category-header {
        padding: 2rem 0;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .category-header-image {
        margin-top: 2rem;
        text-align: center;
    }
    
    .category-header-image img {
        max-height: 200px;
    }
    
    .related-categories .category-card-modern {
        height: 200px;
    }
    
    .related-categories .category-image-modern {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .category-header h1 {
        font-size: 1.75rem;
    }
    
    .category-header-image img {
        max-height: 150px;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Slide transition animations */
.carousel-item.active .hero-content-medfit {
    animation: slideInContent 0.8s ease-out;
}

.carousel-item.active .model-section {
    animation: slideInModels 1s ease-out;
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInModels {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Hover effects for content */
.hero-content-medfit:hover .highlight-text {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hero-title-medfit {
    position: relative;
}

.hero-title-medfit::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hero-content-medfit:hover .hero-title-medfit::after {
    width: 100px;
}

/* Features Grid */
.features-grid {
    background: #f8f9fa;
}

.feature-card-modern {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card-modern h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card-modern p {
    color: var(--text-muted);
    margin: 0;
}

/* Section Headers */
.section-header-modern {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Showcase */
.category-card-modern {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-image-modern {
    position: relative;
    height: 300px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.category-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    max-width: 100%;
}

.category-card-modern:hover .category-image-modern img {
    transform: scale(1.1);
}

.category-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card-modern:hover .category-overlay-modern {
    opacity: 1;
}

.category-content h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Featured Products Modern */
.product-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

/* Category Images - Ensure 100% width and height */
.category-image-modern img,
.category-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background-color: #f8f9fa;
    max-width: 100%;
}

/* Ensure all product and category images fill their containers completely */
.product-image-modern,
.category-image-modern {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Override any Bootstrap grid issues that might affect image sizing */
.col-lg-3 .product-image-modern,
.col-md-4 .product-image-modern,
.col-sm-6 .product-image-modern {
    width: 100% !important;
    height: auto;
    min-height: 350px;
}

/* Restore category image dimensions */
.col-lg-4 .category-image-modern,
.col-md-6 .category-image-modern {
    width: 100% !important;
    height: 300px;
    min-height: 300px;
}

.product-image-modern img,
.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: none;
    background-color: #f8f9fa;
}

.category-image-modern img,
.category-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: none;
    background-color: #f8f9fa;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image-modern {
    position: relative;
    height: 350px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.product-image-modern img,
.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    background-color: #f8f9fa;
    max-width: 100%;
}

.product-card-modern:hover .product-image-modern img,
.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

/* Responsive image sizing for different screen sizes */
@media (max-width: 768px) {
    .product-image-modern {
        height: 280px;
    }
    .category-image-modern {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .product-image-modern {
        height: 250px;
    }
    .category-image-modern {
        height: 200px;
    }
}

.product-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .product-overlay-modern {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.product-content-modern {
    padding: 1.25rem 1.5rem;
}

/* Adjust product card spacing for larger images */
.product-card-modern {
    min-height: 450px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Product description removed - no longer needed */

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-new {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.price-current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Add to Cart Animation */
@keyframes addToCartPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

@keyframes addToCartSuccess {
    0% {
        transform: scale(1);
        background-color: #198754;
    }
    50% {
        transform: scale(1.1);
        background-color: #20c997;
    }
    100% {
        transform: scale(1);
        background-color: #198754;
    }
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.add-to-cart-btn:active {
    animation: addToCartPulse 0.6s ease;
}

.add-to-cart-btn.adding {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.adding::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.add-to-cart-btn.success {
    animation: addToCartSuccess 0.8s ease;
}

.cart-count {
    transition: all 0.3s ease;
}

.cart-count.updated {
    animation: cartBounce 0.6s ease;
}

/* Floating success message */
.cart-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #198754;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    max-width: 300px;
}

.cart-success-message.show {
    transform: translateX(0);
}

.cart-success-message .message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-success-message .product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cart-success-message .product-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #f8f9fa;
    max-width: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Items Styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f8f9fa;
    max-width: 100%;
}

.cart-item-image .placeholder-image {
    width: 100%;
    height: 100%;
    color: #6c757d;
    font-size: 1.2rem;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-sku {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.cart-item-variants {
    margin-top: 4px;
}

.cart-item-variants .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.cart-item-quantity {
    flex-shrink: 0;
    width: 120px;
}

.cart-item-quantity .input-group {
    width: 100%;
}

.cart-item-quantity .form-control {
    font-size: 0.85rem;
    padding: 4px 8px;
}

.cart-item-quantity .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.cart-item-price {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.9rem;
}

.cart-item-price .text-decoration-line-through {
    font-size: 0.75rem;
}

.cart-item-total {
    flex-shrink: 0;
    width: 90px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-item-actions {
    flex-shrink: 0;
    width: 40px;
}

.cart-item-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Responsive cart layout */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 200px;
    }
    
    .cart-item-quantity {
        width: 100px;
    }
    
    .cart-item-price,
    .cart-item-total {
        width: 70px;
        font-size: 0.85rem;
    }
    
    .cart-item-actions {
        width: 35px;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-quantity,
    .cart-item-price,
    .cart-item-total,
    .cart-item-actions {
        width: 100%;
        text-align: center;
    }
    
    .cart-item-actions {
        text-align: right;
    }
}

/* Product Image Link Styles */
.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-image-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-image-link:hover img {
    transform: scale(1.05);
}

.product-image-modern .placeholder-image,
.category-image-modern .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-image-link:hover .placeholder-image {
    background-color: #e9ecef;
    transform: scale(1.05);
}

/* Regular Product Card Image Link Styles */
.product-card .product-image-container .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card .product-image-container .product-image-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card .product-image-container .product-image-link:hover img {
    transform: scale(1.05);
}

.product-card .product-image-container .product-image-link .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card .product-image-container .product-image-link:hover .placeholder-image {
    background-color: #ffffff;
    transform: scale(1.05);
}



/* Store Locations Modern */
.location-card-modern {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.location-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.location-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.location-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.location-details p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-details i {
    color: var(--primary-color);
    width: 20px;
}

/* Newsletter Modern */
.newsletter-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.newsletter-content h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-image-stack {
        height: 300px;
        margin-top: 2rem;
    }
    
    .image-card-1,
    .image-card-2,
    .image-card-3 {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card-modern {
        margin-bottom: 2rem;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.feature-item {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--text-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 350px;
    width: 100%;
    max-width: 100%;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    background-color: #f8f9fa;
    max-width: 100%;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Apply Homepage Product Styling to All Product Cards */
/* Make all product cards look exactly like homepage products */

/* Apply homepage card styling to all product cards */
.product-card,
.card.product-card,
.related-products .product-card,
.search-results .product-card,
.category-products .product-card,
.all-products .product-card {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    min-height: 450px !important;
    border: none !important;
}

/* Apply homepage hover effects to all product cards */
.product-card:hover,
.card.product-card:hover,
.related-products .product-card:hover,
.search-results .product-card:hover,
.category-products .product-card:hover,
.all-products .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Apply Homepage Product Image Dimensions to All Product Images */
/* Ensure all product images have consistent dimensions across the site */
.card-img-top,
.product-image,
.product-gallery .main-image img,
.product-gallery .thumbnail-images img,
.related-products .product-image-container,
.search-results .product-image-container,
.category-products .product-image-container,
.all-products .product-image-container {
    height: 350px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    background-color: #f8f9fa !important;
    max-width: 100% !important;
}

/* Product image containers */
.card .card-img-top,
.product-gallery .main-image,
.related-products .product-image-container,
.search-results .product-image-container,
.category-products .product-image-container,
.all-products .product-image-container {
    height: 350px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #f8f9fa !important;
}

/* Bootstrap card images */
.card .card-img-top {
    height: 350px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #f8f9fa !important;
    max-width: 100% !important;
}

/* Product gallery images */
.product-gallery .main-image img {
    height: 350px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #f8f9fa !important;
    max-width: 100% !important;
}

/* Thumbnail images in product gallery */
.product-gallery .thumbnail-images img {
    height: 80px !important;
    width: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Apply Homepage Product Content Styling to All Product Cards */
/* Make all product content look exactly like homepage products */

/* Apply homepage content styling to all product cards */
.product-card .card-body,
.product-card .product-content,
.related-products .product-card .card-body,
.search-results .product-card .card-body,
.category-products .product-card .card-body,
.all-products .product-card .card-body {
    padding: 1.25rem 1.5rem !important;
}

/* Apply homepage title styling to all product titles */
.product-card .card-title,
.product-card .product-title,
.product-card h5,
.product-card h6,
.related-products .product-card .card-title,
.search-results .product-card .card-title,
.category-products .product-card .card-title,
.all-products .product-card .card-title {
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

/* Apply homepage price styling to all product prices */
.product-card .price,
.product-card .product-price,
.product-card .card-text,
.related-products .product-card .price,
.search-results .product-card .price,
.category-products .product-card .price,
.all-products .product-card .price {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Apply homepage price text styling */
.product-card .price-old,
.product-card .old-price,
.related-products .product-card .price-old,
.search-results .product-card .price-old,
.category-products .product-card .price-old,
.all-products .product-card .price-old {
    text-decoration: line-through !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.product-card .price-new,
.product-card .sale-price,
.related-products .product-card .price-new,
.search-results .product-card .price-new,
.category-products .product-card .price-new,
.all-products .product-card .price-new {
    color: var(--danger-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.product-card .price-current,
.product-card .current-price,
.related-products .product-card .price-current,
.search-results .product-card .price-current,
.category-products .product-card .price-current,
.all-products .product-card .price-current {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

/* Apply homepage image hover effects to all product images */
.product-card:hover .product-image-container img,
.product-card:hover .card-img-top,
.related-products .product-card:hover .product-image-container img,
.search-results .product-card:hover .product-image-container img,
.category-products .product-card:hover .product-image-container img,
.all-products .product-card:hover .product-image-container img {
    transform: scale(1.1) !important;
}

/* Apply Homepage Product Badge and Overlay Styling */
/* Make all product badges and overlays look exactly like homepage products */

/* Apply homepage badge styling to all product badges */
.product-card .badge,
.product-card .product-badge,
.related-products .product-card .badge,
.search-results .product-card .badge,
.category-products .product-card .badge,
.all-products .product-card .badge {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10 !important;
}

/* Apply homepage overlay styling to all product overlays */
.product-card .product-overlay,
.related-products .product-card .product-overlay,
.search-results .product-card .product-overlay,
.category-products .product-card .product-overlay,
.all-products .product-card .product-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Apply homepage overlay hover effects */
.product-card:hover .product-overlay,
.related-products .product-card:hover .product-overlay,
.search-results .product-card:hover .product-overlay,
.category-products .product-card:hover .product-overlay,
.all-products .product-card:hover .product-overlay {
    opacity: 1 !important;
}

/* Apply homepage product actions styling */
.product-card .product-actions,
.related-products .product-card .product-actions,
.search-results .product-card .product-actions,
.category-products .product-card .product-actions,
.all-products .product-card .product-actions {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Responsive Product Image Dimensions - Match Homepage */
@media (max-width: 768px) {
    .card-img-top,
    .product-image,
    .product-gallery .main-image img,
    .related-products .product-image-container,
    .search-results .product-image-container,
    .category-products .product-image-container,
    .all-products .product-image-container,
    .product-image-container {
        height: 280px !important;
    }
    
    .card .card-img-top,
    .product-gallery .main-image,
    .related-products .product-image-container,
    .search-results .product-image-container,
    .category-products .product-image-container,
    .all-products .product-image-container {
        height: 280px !important;
    }
}

@media (max-width: 576px) {
    .card-img-top,
    .product-image,
    .product-gallery .main-image img,
    .related-products .product-image-container,
    .search-results .product-image-container,
    .category-products .product-image-container,
    .all-products .product-image-container,
    .product-image-container {
        height: 250px !important;
    }
    
    .card .card-img-top,
    .product-gallery .main-image,
    .related-products .product-image-container,
    .search-results .product-image-container,
    .category-products .product-image-container,
    .all-products .product-image-container {
        height: 250px !important;
    }
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-section {
    margin-bottom: 1rem;
}

.price-section .text-decoration-line-through {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-section .fw-bold {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* CKEditor Content Display */
.card-text {
    line-height: 1.5;
}

.card-text p {
    margin-bottom: 0.5rem;
}

.card-text p:last-child {
    margin-bottom: 0;
}

.card-text ul, .card-text ol {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.card-text li {
    margin-bottom: 0.25rem;
}

.card-text strong, .card-text b {
    font-weight: 600;
}

.card-text em, .card-text i {
    font-style: italic;
}

.card-text u {
    text-decoration: underline;
}

.card-text s, .card-text strike {
    text-decoration: line-through;
}

/* Product Description Display */
.description div {
    line-height: 1.6;
}

.description div p {
    margin-bottom: 1rem;
}

.description div p:last-child {
    margin-bottom: 0;
}

.description div ul, .description div ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.description div li {
    margin-bottom: 0.5rem;
}

.description div h1, .description div h2, .description div h3, 
.description div h4, .description div h5, .description div h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description div h1:first-child, .description div h2:first-child, 
.description div h3:first-child, .description div h4:first-child, 
.description div h5:first-child, .description div h6:first-child {
    margin-top: 0;
}

.description div blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

.description div table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.description div table th,
.description div table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: left;
}

.description div table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f9fa;
    max-width: 100%;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(45, 55, 72, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

.category-overlay h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.category-overlay .btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* Special Features */
.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card i {
    color: var(--primary-color);
}

.feature-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Location Cards */
.location-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.location-card i {
    color: var(--primary-color);
    width: 20px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--text-light) !important;
    padding: 3rem 0;
}

.newsletter-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-section .form-control {
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.newsletter-section .btn-light {
    background-color: var(--text-light) !important;
    color: var(--primary-color) !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

.footer h5, .footer h6 {
    color: var(--text-light) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-light) !important;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.bg-darker {
    background-color: #0f1419 !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: var(--success-color);
    color: var(--text-light);
}

.alert-danger {
    background-color: var(--danger-color);
    color: var(--text-light);
}

/* Form Controls */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

/* Search Form */
.search-form .input-group {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-form .input-group:hover {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

.search-form .input-group:focus-within {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-form .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    background: #1e3a8a;
    color: white;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .product-image-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .features-section,
    .featured-products {
        padding: 2rem 0;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Logo Styling */
.logo-img {
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 em {
    color: var(--primary-color);
    font-style: normal;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Slider Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading animation for indicators */
@keyframes indicatorLoad {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.indicator {
    animation: indicatorLoad 0.6s ease-out;
}

.indicator:nth-child(1) { animation-delay: 0.1s; }
.indicator:nth-child(2) { animation-delay: 0.2s; }
.indicator:nth-child(3) { animation-delay: 0.3s; }

/* Size Guide Modal Styles */
#sizeGuideModal .modal-dialog {
    max-width: 90%;
}

#sizeGuideModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#sizeGuideModal .table {
    font-size: 0.875rem;
}

#sizeGuideModal .table th,
#sizeGuideModal .table td {
    padding: 0.5rem;
    vertical-align: middle;
}

#sizeGuideModal .modal-header {
    border-bottom: 2px solid var(--primary-color);
}

#sizeGuideModal .modal-footer {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    #sizeGuideModal .modal-dialog {
        max-width: 95%;
        margin: 1rem;
    }
    
    #sizeGuideModal .modal-body {
        max-height: 60vh;
    }
    
    #sizeGuideModal .table {
        font-size: 0.75rem;
    }
    
    #sizeGuideModal .table th,
    #sizeGuideModal .table td {
        padding: 0.25rem;
    }
}
