/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-content p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.quick-view-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-quick-view {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.close-quick-view:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.quick-view-image {
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.quick-view-details {
    display: flex;
    flex-direction: column;
}

.quick-view-details h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quick-view-specs {
    margin: 1.5rem 0;
}

.spec-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* Advanced Medical Professional Styles */
:root {
    --primary-blue: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-blue: #60a5fa;
    --medical-green: #10b981;
    --medical-teal: #14b8a6;
    --accent-orange: #f97316;
    --professional-gray: #94a3b8;
    --light-gray: #0f172a;
    --off-white: #1e293b;
    --light-blue: rgba(59, 130, 246, 0.1);
    --dark-bg: #020617;
    --darker-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gradient-main: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #10b981, #14b8a6);
    --gradient-orange: linear-gradient(135deg, #f97316, #fb923c);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10001;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo-text {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    position: relative;
    background: var(--light-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cart-count.bump {
    animation: cartBump 0.4s ease-out;
}

@keyframes cartBump {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.4) translateY(-10px); }
    100% { transform: scale(1) translateY(0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section - Advanced */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

.feature-tag {
    background: var(--light-blue);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.feature-tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button.primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-5px);
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(30, 64, 175, 0.1);
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-name: float1;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation-name: float2;
}

.element-3 {
    bottom: 25%;
    left: 20%;
    animation-name: float3;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-10px, -15px) rotate(180deg); }
    75% { transform: translate(-25px, 10px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, 25px) rotate(-90deg); }
    50% { transform: translate(30px, 10px) rotate(-180deg); }
    75% { transform: translate(10px, -20px) rotate(-270deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, 15px) rotate(45deg); }
    50% { transform: translate(-20px, -25px) rotate(135deg); }
    75% { transform: translate(15px, 30px) rotate(225deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Specifications Section - Advanced */
.specifications-section {
    background: var(--card-bg);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.specs-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.75rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

.tab-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.spec-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.spec-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.spec-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.spec-card ul {
    list-style: none;
    text-align: left;
}

.spec-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.spec-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--medical-green);
    font-weight: bold;
}

.analysis-content,
.storage-content,
.handling-content {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 2.5rem;
}

.analysis-content h3,
.storage-content h3,
.handling-content h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 800;
}

.analysis-grid,
.storage-grid,
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analysis-item,
.storage-item,
.protocol-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition);
}

.analysis-item:hover,
.storage-item:hover,
.protocol-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.analysis-item h4,
.storage-item h4,
.protocol-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.analysis-item p,
.storage-item p,
.protocol-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Products Section */
.products-section {
    background: var(--light-gray);
}

.category-filter {
    display: none;
}

/* Search Bar Styles */
.search-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

#productSearch {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#productSearch:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-rating i {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 0.25rem;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature-chip {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--medical-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--medical-green);
}

.product-category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
}

.quantity-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.quantity-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    width: 45px;
    outline: none;
    font-weight: 600;
}

.add-to-cart {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.add-to-cart:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Shopping Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.cart-overlay.active .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-blue);
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.close-cart {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-cart:hover {
    background: rgba(30, 64, 175, 0.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.cart-item {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.cart-item-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--medical-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-control {
    display: flex;
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.quantity-control button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.4rem;
    cursor: pointer;
    width: 25px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.quantity-control button:hover {
    background: var(--primary-blue);
    color: white;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
    background: var(--light-gray);
}

.cart-total {
    margin-bottom: 1.25rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.total-row.crypto-total {
    color: #f59e0b;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 1.75rem;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.checkout-form {
    margin-top: 1.5rem;
}

.form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.payment-methods {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.payment-option {
    flex: 1;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.payment-option:hover,
.payment-option.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.payment-option i {
    font-size: 1.7rem;
    color: var(--text-secondary);
}

.payment-option.active i {
    color: white;
}

.address-display {
    background: var(--card-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#paymentHeader {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.timer-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.timer-container::before {
    content: '\f2f2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.address-item {
    text-align: left;
    margin-bottom: 2rem;
    background: var(--dark-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.address-item p {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-secondary);
}

.address-item code {
    display: block;
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    word-break: break-all;
    color: var(--primary-blue);
    font-family: 'Monaco', 'Consolas', monospace;
    position: relative;
}

.ive-paid-btn {
    width: 100%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ive-paid-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.ive-paid-btn:active {
    transform: translateY(-1px);
}

.order-summary {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.summary-items {
    margin-bottom: 1.25rem;
    max-height: 180px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.place-order-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.place-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.confirmation-content {
    text-align: center;
    padding: 2.5rem 1.75rem;
}

.confirmation-icon {
    font-size: 3.5rem;
    color: var(--medical-green);
    margin-bottom: 1.25rem;
}

.confirmation-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.order-details {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    text-align: left;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.reviews-section {
    background: var(--dark-bg);
    padding: 6rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 700;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}
.about-section {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
}

.about-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: white;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    min-width: 24px;
    margin-top: 0.2rem;
}

.contact-item h4 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.75rem;
}

.link-column h4 {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 0.6rem;
}

.link-column a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.link-column a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.25rem;
    }
    
    /* Quick View Responsive */
    .quick-view-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .quick-view-image {
        height: 200px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .quick-view-modal {
        padding: 1rem;
    }
    
    .quick-view-content {
        max-height: 95vh;
    }
}