/* Custom CSS for Medirental */

:root {
    --primary-color: #2d7d85;
    --primary-dark: #1e5a61;
    --secondary-color: #4a9fa5;
    --accent-color: #6bb6c1;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --dark-color: #1f2937;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --medical-teal: #2d7d85;
    --medical-light-teal: #e6f3f4;
    --medical-sage: #a0b4b7;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Global Styles - Performance optimized */
* {
    box-sizing: border-box;
}

/* Prevent layout thrashing */
.form-control, .form-select, .btn {
    contain: layout style;
}

/* Optimize font rendering */
body, .btn, .form-control {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

body {
    font-family: 'Libre Baskerville', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffffff 0%, var(--medical-light-teal) 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23e6f3f4' fill-opacity='0.4' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") top center/cover no-repeat;
    z-index: -1;
    opacity: 0.6;
}

/* Enhanced Smooth Scrolling - Performance optimized */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto;
    }
}

/* Scroll performance optimizations */
* {
    -webkit-overflow-scrolling: touch;
}

/* Optimize fixed/sticky elements for smooth scrolling */
.navbar.sticky-top {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease;
}

/* Optimize elements that animate on scroll */
.animate-on-scroll {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Remove will-change after animation completes */
.animate-on-scroll.animation-complete {
    will-change: auto;
}

/* Global Click Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Cursor Interactions - Performance optimized */
.btn, .product-card, .feature-item, .nav-link {
    cursor: pointer;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:hover, .product-card:hover, .feature-item:hover {
    cursor: pointer;
    will-change: transform;
}

/* Performance optimizations for interactive elements */
.product-card {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-item {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-link {
    transition: color 0.15s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Enhanced Button Interactions - Optimized for performance */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.btn::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 1.2s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98) translateY(1px);
    transition: all 0.1s ease;
}

/* Search Bar Styles */
.search-container {
    max-width: 300px;
}

.search-container .form-control {
    border-radius: 0.75rem 0 0 0.75rem;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.search-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 133, 0.15);
    will-change: border-color, box-shadow;
}

.search-container .btn {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 2px solid var(--primary-color);
    border-left: none;
    padding: 0.5rem 1rem;
}

/* Large Search Section */
.search-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(230, 243, 244, 0.3) 100%);
    padding: 4rem 0 !important;
}

.search-container-large {
    max-width: 100%;
}

.search-container-large .form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem 0 0 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-container-large .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 133, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.search-container-large .btn {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 1px solid var(--primary-color);
    border-left: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 125, 133, 0.15);
}

.search-container-large .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 125, 133, 0.25);
}

.search-suggestions {
    margin-top: 1rem;
}

.search-tag {
    display: inline-block;
    background: var(--medical-light-teal);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    margin: 0.25rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(45, 125, 133, 0.2);
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 125, 133, 0.2);
}


/* Dropdown Menu Styles */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-large);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--medical-light-teal);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Product Filtering */
.product-hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--medium-gray);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(45, 125, 133, 0.2);
    min-width: 180px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 125, 133, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(45, 125, 133, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(45, 125, 133, 0.1);
    min-width: 180px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 125, 133, 0.25);
    color: white;
}

.btn-outline-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(45, 125, 133, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-success:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

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

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

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

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--medical-light-teal);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:active {
    transform: translateY(0px);
}

.contact-info a {
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-dark) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(45, 125, 133, 0.08) 0%, rgba(160, 180, 183, 0.08) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
}

/* Override Bootstrap min-vh-100 and py-5 classes for tighter spacing */
.hero-section .row {
    min-height: auto !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* Mobile responsive spacing for hero section */
@media (max-width: 991.98px) {
    .hero-section .row {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex.flex-wrap.gap-3 {
        margin-bottom: 2rem !important;
    }
}

/* Mobile responsive improvements */
@media (max-width: 767.98px) {
    /* Hero section mobile improvements */
    .hero-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .hero-section .row {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Button improvements on mobile */
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Category filter buttons mobile */
    .category-filter-btn {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Product grid mobile */
    .row.g-2 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    /* Search section mobile */
    .search-container-large h4 {
        font-size: 1.25rem;
    }
    
    .search-container-large .form-control {
        font-size: 0.875rem;
    }
    
    .search-suggestions {
        flex-wrap: wrap;
    }
    
    .search-tag {
        font-size: 0.75rem;
        margin: 0.125rem;
    }
    
    /* Mobile navbar dropdown fixes */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: calc(100% - 2rem) !important;
        margin-top: 0.5rem !important;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        background-color: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
        display: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .navbar-collapse .dropdown-menu[style*="display: block"] {
        display: block !important;
    }
    
    .navbar-collapse .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar-collapse .dropdown-item {
        color: #495057 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .navbar-collapse .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        color: var(--primary-color) !important;
        background-color: #e9ecef !important;
    }
    
    .navbar-collapse .dropdown-item.active {
        color: var(--primary-color) !important;
        background-color: rgba(45, 125, 133, 0.1) !important;
        font-weight: 500 !important;
    }
    
    .navbar-collapse .dropdown-divider {
        margin: 0 !important;
        border-color: #dee2e6 !important;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="medical-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(45,125,133,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23medical-grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--medical-light-teal);
    color: var(--medical-teal);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(45, 125, 133, 0.2);
}

.hero-image img {
    border-radius: 1rem;
}

/* Enhanced Product Cards */
.product-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 450px;
    margin: 0 auto;
}

.product-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
}

.product-card:active {
    transform: translateY(-8px) scale(1.01);
    transition: all 0.1s ease;
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: none !important;
}

.product-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.price-tag {
    background: linear-gradient(135deg, var(--medical-teal), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price-tag .price {
    font-size: 1.25rem;
    font-weight: 700;
}

.price-tag .period {
    font-size: 0.875rem;
    opacity: 0.9;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.product-features .fa-check {
    color: var(--success-color);
}

/* Enhanced Feature Items */
.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(45, 125, 133, 0.05);
    box-shadow: 0 10px 30px rgba(45, 125, 133, 0.1);
}

.feature-item.text-center {
    display: block;
    text-align: center;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--medical-light-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(45, 125, 133, 0.3);
}

.feature-item:hover .feature-icon i {
    color: white !important;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.contact-form:hover {
    box-shadow: var(--shadow-medium);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #000 !important;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
}

.form-control::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 133, 0.15);
    background: white;
    color: #000 !important;
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(45, 125, 133, 0.1);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    background: white;
    color: #000 !important;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    background: white;
    color: #000 !important;
}

.form-select:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-medium);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

textarea.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    background: white;
    color: #000 !important;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    resize: vertical;
    min-height: 120px;
}

textarea.form-control::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    background: white;
    color: #000 !important;
}

textarea.form-control:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-medium);
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--medical-light-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
}

.contact-details h6 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.emergency-contact {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer h6 {
    color: white !important;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .list-unstyled a:hover {
    color: white !important;
}

footer .contact-info p {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .contact-info a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .contact-info a:hover {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

/* Products Section Spacing */
#prenajom {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 0.1rem 0 !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .feature-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 2rem;
    }
    
    .navbar .contact-info {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .feature-item:not(.text-center) {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item.text-center {
        margin-bottom: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States */
.form-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: var(--success-color);
}

.form-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}

/* Utility Classes */
.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-custom {
    border: 1px solid var(--border-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --medium-gray: #000;
    }
    
    .product-card {
        border: 2px solid #000;
    }
    
    .feature-badge {
        border: 2px solid var(--primary-color);
    }
}

/* E-commerce Styles */

/* Product Detail Modal */
.price-tag-modal {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.price-tag-modal .price {
    font-size: 1.25rem;
    font-weight: 700;
}

.price-tag-modal .period {
    font-size: 0.875rem;
    opacity: 0.9;
}

.buy-price {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.buy-price .price {
    font-size: 1.25rem;
    font-weight: 700;
}

.buy-price .period {
    font-size: 0.875rem;
    opacity: 0.9;
}

.action-buttons .btn {
    min-width: 120px;
    transition: var(--transition);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Rental Selection Modal */
.rental-summary {
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    color: var(--dark-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
}

.duration-selector {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.duration-selector .form-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.duration-selector .form-label::before {
    content: '⏱️';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.duration-selector .btn-group {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin-bottom: 1.5rem;
}

.duration-selector .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.duration-selector .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.duration-selector .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.duration-input {
    position: relative;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: var(--transition);
}

.duration-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.duration-input .form-control {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    color: #000 !important;
}

.duration-input .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    transform: scale(1.02);
}

.duration-input .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--medium-gray);
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}

.rental-calculation {
    border: 2px solid rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    color: var(--dark-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.rental-calculation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.rental-calculation .text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.rental-calculation h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.rental-calculation h6::before {
    content: '📋';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Date Picker Styling */
.date-picker-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.date-picker-container .form-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.date-picker-container .form-label::before {
    content: '📅';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.date-picker-wrapper {
    position: relative;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: var(--transition);
}

.date-picker-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.date-picker-wrapper input[type="date"] {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    color: #000 !important;
}

.date-picker-wrapper input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    transform: scale(1.02);
}

.date-picker-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%232563eb' d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H2z'/%3e%3cpath fill='%232563eb' d='M2.5 7a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z'/%3e%3c/svg%3e");
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

/* Modal Content Alignment */
.rental-modal-content {
    max-width: 900px;
    margin: 0 auto;
}

.rental-modal-content .row {
    align-items: stretch;
    gap: 2rem;
}

.rental-modal-left,
.rental-modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Additional Text Contrast Fixes */
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    color: var(--dark-color);
}

.modal-content p {
    color: var(--medium-gray);
}

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

.form-label {
    color: var(--dark-color) !important;
    font-weight: 500;
}

.btn-secondary {
    background-color: var(--medium-gray);
    border-color: var(--medium-gray);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
}

/* Order Page Styles */
#orderPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow-y: auto;
}

.order-progress {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.progress-steps {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step span {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.step.active span {
    color: var(--dark-color);
    font-weight: 600;
}

/* Order Summary Card */
.order-summary {
    position: sticky;
    top: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.order-summary .card-header {
    background: var(--primary-color) !important;
    border-bottom: none;
    color: white !important;
}

.product-summary img {
    border: 1px solid var(--border-color);
}

.order-details {
    font-size: 0.875rem;
    color: var(--dark-color);
}

.order-details .text-muted {
    color: var(--medium-gray) !important;
}

.order-summary .card-body {
    background-color: white;
    color: var(--dark-color);
}

.order-summary .card-footer {
    background-color: white;
}

/* Form Styling Enhancements */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    background-color: white;
}

.card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    background-color: white;
    color: var(--dark-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Button Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal Enhancements */
.modal-dialog {
    max-width: 800px;
}

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
    background-color: white;
    color: var(--dark-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: white;
    color: var(--dark-color);
}

.modal-body {
    padding: 0;
    background-color: white;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: white;
}

/* Notification Styles */
.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medium);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #166534;
    border-left: 4px solid var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.15);
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Modal Footer Button Styling */
.modal-footer .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.modal-footer .btn-secondary {
    background-color: var(--medium-gray);
    border-color: var(--medium-gray);
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-1px);
}

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

.modal-footer .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

/* Mobile Responsiveness for E-commerce */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .rental-modal-content .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .duration-selector,
    .date-picker-container,
    .rental-calculation {
        padding: 1rem;
    }
    
    .order-progress {
        padding: 1rem 0;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .step-circle {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .price-section {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .rental-calculation,
    .rental-summary {
        font-size: 0.875rem;
    }
    
    .duration-selector .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .order-details {
        font-size: 0.8125rem;
    }
    
    .product-summary img {
        height: 60px;
    }
}

/* Product Page Styles */
#productPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow-y: auto;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-large);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.thumbnail-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}


.product-info {
    padding-left: 1rem;
}

.pricing-section {
    border: 2px solid var(--border-color);
}

.pricing-tabs .btn-group {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.pricing-tabs .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.pricing-tabs .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.price-display {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.price-amount {
    display: block;
    line-height: 1;
}

.rental-options {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.total-calculation {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(37, 99, 235, 0.2) !important;
}

.trust-badges {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.75rem;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.trust-badge i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description,
.reviews-section {
    border: 1px solid var(--border-color);
}

.product-description h5,
.product-description h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.product-description ul {
    padding-left: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.overall-rating {
    background: var(--light-gray);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.rating-score {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.stars {
    color: var(--warning-color);
}

.rating-breakdown {
    padding: 0 1rem;
}

.rating-row {
    margin-bottom: 0.5rem;
}

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

.progress-bar {
    background-color: var(--warning-color) !important;
}

.review-item {
    padding: 1.5rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

.review-item h6 {
    color: var(--dark-color);
    font-weight: 600;
}

.review-item .stars {
    margin-bottom: 0.5rem;
}

.review-item .stars i {
    font-size: 0.875rem;
}

.review-avatar {
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.review-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product Page Navbar Styling */
#productPage .navbar {
    background-color: var(--medical-teal) !important;
    backdrop-filter: none;
}

#productPage .navbar .navbar-brand {
    color: white !important;
}

#productPage .navbar .navbar-brand i {
    color: white !important;
}

#productPage .navbar .navbar-brand span {
    color: white !important;
}

#productPage .navbar .btn-outline-primary {
    color: white !important;
    border-color: white !important;
}

#productPage .navbar .btn-outline-primary:hover {
    background-color: white !important;
    color: var(--medical-teal) !important;
    border-color: white !important;
}

/* Product page responsive */
@media (max-width: 992px) {
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        margin-bottom: 2rem;
    }
    
    .rental-options .row {
        flex-direction: column;
    }
    
    .rental-options .col-6 {
        margin-bottom: 1rem;
    }
    
    .overall-rating {
        padding: 1rem;
    }
    
    .overall-rating .row {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-breakdown {
        padding: 0;
        margin-top: 1rem;
    }
    
    .trust-badges .row {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .main-image {
        margin-bottom: 1rem;
    }
    
    .thumbnail-img {
        height: 60px;
    }
    
    .pricing-tabs .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .price-amount {
        font-size: 2rem !important;
    }
    
    .product-description,
    .reviews-section {
        padding: 2rem 1rem !important;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: var(--dark-color);
        color: white;
    }
    
    .card {
        background-color: var(--dark-color);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .form-control {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .form-control:focus {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-color);
        color: white;
    }
}

/* Print Styles for Order Confirmation */
@media print {
    #orderPage .navbar,
    #orderPage .order-progress,
    #orderPage .card-footer {
        display: none;
    }
    
    #orderPage {
        position: static;
        background: white;
    }
    
    .order-summary {
        position: static;
        page-break-inside: avoid;
    }
}

/* Image Lightbox Styles */
#imageLightboxModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#imageLightboxModal {
    z-index: 9999 !important;
}

#imageLightboxModal .modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none !important;
    box-shadow: none !important;
}

#imageLightboxModal .modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

#lightboxImage {
    max-height: 80vh;
    width: auto !important;
    object-fit: contain;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-navigation .btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 1000;
}

.image-navigation .btn:hover {
    background: white !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-navigation .btn i {
    color: var(--dark-color) !important;
    font-size: 1rem;
}

.image-counter {
    z-index: 1000;
}

.image-counter .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 1rem;
}

/* Make product images clickable */
.product-image img,
.main-image img,
.thumbnail-img {
    cursor: pointer;
    transition: var(--transition);
}

.product-image img:hover,
.main-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.thumbnail-img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

/* Lightbox fade animations */
#imageLightboxModal.show .modal-content {
    animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive lightbox */
@media (max-width: 768px) {
    #imageLightboxModal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem;
    }
    
    #lightboxImage {
        max-height: 70vh;
    }
    
    .image-navigation .btn {
        width: 35px;
        height: 35px;
    }
    
    .image-navigation .btn i {
        font-size: 0.875rem;
    }
    
    .image-counter .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* More Products Section */
.more-products-section {
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(45, 125, 133, 0.03), rgba(160, 180, 183, 0.03));
}

.more-products-section h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.more-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.more-product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.more-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.more-product-card .product-image {
    height: 150px;
    overflow: hidden;
}

.more-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.more-product-card .card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.more-product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.more-product-card .product-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: auto;
}

.more-product-card .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments for more products */
@media (max-width: 768px) {
    .more-products-section {
        padding: 2rem 1rem !important;
    }
    
    .more-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .more-product-card .product-image {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .more-products-grid {
        grid-template-columns: 1fr;
    }
    
    .more-product-card {
        flex-direction: row;
        height: auto;
    }
    
    .more-product-card .product-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .more-product-card .card-body {
        padding: 0.75rem;
    }
}

/* Oxygen Devices Page - Smaller Product Cards */
body:has([href*="kyslíkové-prístroje"]) .product-card,
.product-card[data-product*="oxygen"],
.product-card[data-product*="heltes"] {
    max-width: 350px;
    transform: scale(0.95);
}

.main-product-image {
    height: 220px !important;
}

.product-image-gallery .main-product-image img {
    height: 220px;
    object-fit: cover;
}

.product-thumbnails img,
.product-thumbnails .placeholder-image {
    height: 50px !important;
}

.product-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.product-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Remove unused styles since content was removed */

/* Responsive adjustments for smaller oxygen device cards */
@media (max-width: 768px) {
    .product-card[data-product*="oxygen"],
    .product-card[data-product*="heltes"] {
        max-width: 100%;
        transform: scale(1);
    }
    
    .main-product-image {
        height: 200px !important;
    }
    
    .product-image-gallery .main-product-image img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .main-product-image {
        height: 180px !important;
    }
    
    .product-image-gallery .main-product-image img {
        height: 180px;
    }
    
    .product-thumbnails img,
    .product-thumbnails .placeholder-image {
        height: 40px !important;
    }
}

/* Mobile Product Page Button Optimizations */
@media (max-width: 768px) {
    /* Product page buttons - prevent text overflow */
    .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Stack action buttons vertically on mobile */
    .action-buttons .row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .action-buttons .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .action-buttons .btn {
        display: block !important;
        width: 100% !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        padding: 1.2rem 1rem !important;
        line-height: 1.5;
        margin-bottom: 0 !important;
        text-align: center;
        box-sizing: border-box;
        min-height: 60px;
    }
    
    /* Trust badges - keep side by side horizontally */
    .trust-badges .row {
        flex-direction: row !important;
        justify-content: center;
        gap: 1rem;
    }
    
    .trust-badges .col-6 {
        flex: 0 1 auto !important;
        max-width: 48% !important;
        display: flex;
        justify-content: center;
    }
    
    .trust-badge {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--medical-light-teal);
        border-radius: 0.75rem;
        padding: 0.75rem 0.5rem;
        text-align: center;
        border: 1px solid rgba(45, 125, 133, 0.2);
        width: 100%;
    }
    
    .trust-badge i {
        margin-bottom: 0.25rem;
    }
    
    .feature-badge i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Footer text optimization */
    footer p,
    footer a,
    footer .text-muted {
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.65) !important;
    }
    
    footer h6 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    /* Even smaller buttons on very small screens */
    .btn {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.6rem !important;
    }
    
    .action-buttons .btn {
        display: block !important;
        width: 100% !important;
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        padding: 1.1rem 0.8rem !important;
        line-height: 1.5;
        text-align: center;
        box-sizing: border-box;
        min-height: 56px;
    }
    
    /* Ensure stacked layout for buttons */
    .action-buttons .row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .action-buttons .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Keep trust badges horizontal even on small screens */
    .trust-badges .row {
        flex-direction: row !important;
        gap: 0.5rem;
    }
    
    .trust-badges .col-6 {
        max-width: 48% !important;
    }
    
    /* Feature badges on small screens */
    .feature-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Footer even smaller */
    footer p,
    footer a,
    footer .text-muted {
        font-size: 0.75rem !important;
    }
    
    footer h6 {
        font-size: 0.85rem !important;
    }
}

/* Technical Specifications Table */
.specs-table {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.specs-table td {
    border: none;
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--medical-light-teal);
    width: 60%;
    border-right: 1px solid var(--border-color);
}

.spec-value {
    color: var(--primary-color);
    font-weight: 500;
    background-color: white;
    width: 40%;
}

.specs-table tr:hover {
    background-color: rgba(45, 125, 133, 0.05);
}

.specs-table tr:hover .spec-label {
    background-color: rgba(45, 125, 133, 0.15);
}

@media (max-width: 768px) {
    .specs-table {
        font-size: 0.875rem;
    }
    
    .specs-table td {
        padding: 0.75rem 0.75rem;
    }
    
    .spec-label {
        width: 55%;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .spec-value {
        width: 45%;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .specs-table {
        font-size: 0.8rem;
    }
    
    .specs-table td {
        padding: 0.625rem 0.5rem;
    }
    
    .spec-label {
        width: 50%;
        font-size: 0.8rem;
    }
    
    .spec-value {
        width: 50%;
        font-size: 0.85rem;
    }
}

/* Product Description Styling for Better Readability */
#detailed-description {
    line-height: 1.7;
    color: var(--dark-color);
}

#detailed-description h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: 0;
    font-size: 1.35rem;
    border-bottom: 2px solid var(--medical-light-teal);
    padding-bottom: 0.5rem;
}

#detailed-description h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


#detailed-description p {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1rem;
    text-align: justify;
}

#detailed-description ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

#detailed-description ul li {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.6;
    position: relative;
}

#detailed-description ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

#detailed-description .table-responsive {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

#detailed-description .table-responsive + h6 {
    margin-top: 2.5rem;
}

/* Product section separation */
.product-description {
    background: linear-gradient(135deg, #ffffff 0%, rgba(230, 243, 244, 0.3) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem !important;
    margin-top: 2rem;
}

.product-description h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.product-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Mobile optimization for product description */
@media (max-width: 768px) {
    .product-description {
        padding: 1.5rem !important;
        margin-top: 1.5rem;
    }
    
    #detailed-description h5 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    #detailed-description h6 {
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    #detailed-description p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    #detailed-description ul {
        padding-left: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    #detailed-description ul li {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .product-description {
        padding: 1rem !important;
        border-radius: 0.75rem;
    }
    
    .product-description h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    #detailed-description h5 {
        font-size: 1.1rem;
    }
    
    #detailed-description h6 {
        font-size: 0.95rem;
        margin-top: 1.25rem;
    }
    
    #detailed-description p {
        font-size: 0.9rem;
    }
    
    #detailed-description ul li {
        font-size: 0.9rem;
    }
}

/* Comprehensive Care Section Visual Cards */
.comprehensive-care-section {
    margin-top: 1.5rem;
}

.comprehensive-care-section h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.comprehensive-care-section h6 i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.care-item {
    background-color: var(--medical-light-teal);
    border: 1px solid rgba(45, 125, 133, 0.15);
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.care-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.care-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.care-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.care-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.care-item small {
    color: var(--medium-gray);
    font-size: 0.8rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .comprehensive-care-section .row {
        gap: 0.75rem;
    }
    
    .care-item {
        padding: 0.75rem !important;
    }
    
    .care-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem !important;
    }
    
    .care-icon i {
        font-size: 1.1rem;
    }
    
    .care-item h6 {
        font-size: 0.9rem;
    }
    
    .care-item small {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .comprehensive-care-section {
        margin-top: 1rem;
    }
    
    .comprehensive-care-section h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .care-item {
        padding: 0.625rem !important;
        margin-bottom: 0.5rem;
    }
    
    .care-icon {
        width: 30px;
        height: 30px;
        margin-right: 0.625rem !important;
    }
    
    .care-icon i {
        font-size: 1rem;
    }
    
    .care-item h6 {
        font-size: 0.85rem;
    }
    
    .care-item small {
        font-size: 0.7rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}