/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors - Optimized for Visibility */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e40af;
    --secondary-hover: #1e3a8a;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    
    /* Text Colors - High Contrast */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --text-on-primary: #ffffff;
    --text-on-dark: #f9fafb;
    
    /* Link Colors */
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
    --link-visited: #7c3aed;
    
    /* Button Colors */
    --btn-primary-bg: #2563eb;
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: #1d4ed8;
    --btn-secondary-bg: #6b7280;
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover-bg: #4b5563;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;
    
    /* Border Colors */
    --border-color: #d1d5db;
    --border-dark: #9ca3af;
    
    /* Status Colors */
    --success-color: #059669;
    --success-bg: #d1fae5;
    --danger-color: #dc2626;
    --danger-bg: #fee2e2;
    --warning-color: #d97706;
    --warning-bg: #fef3c7;
    --info-color: #0284c7;
    --info-bg: #e0f2fe;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Legacy support */
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --bg-light: var(--bg-secondary);
    --white: var(--bg-primary);
    --shadow-hover: var(--shadow-md);
}

/* Dark Mode Variables - Optimized for Visibility & Eye Comfort */
[data-theme="dark"] {
    /* Primary Colors - Brighter for dark backgrounds */
    --primary-color: #60a5fa;
    --primary-hover: #93c5fd;
    --secondary-color: #3b82f6;
    --secondary-hover: #60a5fa;
    --accent-color: #fbbf24;
    --accent-hover: #fcd34d;
    
    /* Text Colors - High Contrast on Dark */
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --text-on-primary: #111827;
    --text-on-dark: #f9fafb;
    
    /* Link Colors - More visible on dark */
    --link-color: #93c5fd;
    --link-hover: #bfdbfe;
    --link-visited: #c4b5fd;
    
    /* Button Colors - Better contrast */
    --btn-primary-bg: #2563eb;
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: #3b82f6;
    --btn-secondary-bg: #4b5563;
    --btn-secondary-text: #f9fafb;
    --btn-secondary-hover-bg: #6b7280;
    
    /* Background Colors - True dark mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-elevated: #1e293b;
    
    /* Border Colors */
    --border-color: #475569;
    --border-dark: #64748b;
    
    /* Status Colors - Vibrant for dark mode */
    --success-color: #10b981;
    --success-bg: #064e3b;
    --danger-color: #f87171;
    --danger-bg: #7f1d1d;
    --warning-color: #fbbf24;
    --warning-bg: #78350f;
    --info-color: #38bdf8;
    --info-bg: #164e63;
    
    /* Shadow - More pronounced for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    
    /* Legacy support */
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    --bg-light: var(--bg-secondary);
    --white: var(--bg-elevated);
    --shadow-hover: var(--shadow-md);
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
        --link-color: #0000ff;
        --link-hover: #0000cc;
    }
    
    [data-theme="dark"] {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --link-color: #66b3ff;
        --link-hover: #99ccff;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Typography for Better Readability */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Enhanced Link Styles */
a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
}

a:visited {
    color: var(--link-visited);
}

a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Button Base Styles with Better Contrast */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Focus States */
.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Text on colored backgrounds */
.text-on-primary {
    color: var(--text-on-primary);
}

.text-on-dark {
    color: var(--text-on-dark);
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 5px;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-bar {
    background: var(--secondary-color);
    color: var(--text-on-dark);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    color: var(--text-on-dark);
}

.contact-info i,
.social-links i {
    margin-right: 5px;
    color: var(--text-on-dark);
}

.social-links a {
    color: var(--text-on-dark);
    margin-left: 15px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.main-header {
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
}

.tagline {
    color: var(--text-tertiary);
    font-size: 12px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-dark);
    transform: scale(1.05);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    font-size: 16px;
}

/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.font-size-control {
    display: flex;
    gap: 5px;
}

.font-size-btn {
    background: none;
    border: 2px solid var(--text-primary);
    border-radius: 5px;
    padding: 5px 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.font-size-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-dark);
}

.font-size-btn:focus-visible {
    outline: 3px solid var(--accent-color);
}

/* Font size classes for accessibility */
body.font-large {
    font-size: 18px;
}

body.font-xl {
    font-size: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 120"><path fill="%23ffffff" fill-opacity="0.1" d="M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    font-weight: 800;
    animation: fadeInUp 0.8s;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-on-dark);
    opacity: 0.95;
    animation: fadeInUp 1s;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.view-all {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s, color 0.3s;
}

.view-all:hover {
    gap: 10px;
    color: var(--link-hover);
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-elevated);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-dark);
    transform: translateY(-5px);
    border-color: transparent;
}

.category-card.active h3,
.category-card.active p {
    color: var(--text-on-dark);
}

.category-card.active .category-icon {
    background: var(--text-on-dark);
}

.category-card.active .category-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon i {
    font-size: 36px;
    color: var(--text-on-dark);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.category-card p {
    color: var(--text-secondary);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.new-products {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--text-on-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-badge.sale {
    background: var(--danger-color);
    color: var(--text-on-dark);
}

.product-badge.new {
    background: var(--success-color);
    color: var(--text-on-dark);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    z-index: 2;
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    background: var(--bg-elevated);
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
    min-height: 44px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.product-rating i {
    color: var(--accent-color);
    font-size: 14px;
}

.product-rating span {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 15px 0;
}

.price,
.current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price,
.price-old {
    font-size: 18px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.vat {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-page {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.pagination-page:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
}

.pagination-page.active {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    color: var(--text-tertiary);
    padding: 0 5px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 800;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    padding: 10px 0;
    color: var(--text-dark);
}

.about-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card,
.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-grid {
    display: grid;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 20px;
}

.contact-info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-elevated);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
}

/* Form validation states */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger-color);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: var(--success-color);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group .success-message {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-bg);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: var(--bg-elevated);
    margin: 2% auto;
    border-radius: 15px;
    max-width: 60%;
    width: 90%;
    max-height: 95vh;
    box-shadow: var(--shadow-2xl);
    animation: slideDown 0.4s;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger-color);
    color: var(--text-on-dark);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.modal-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary);
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-info::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.modal-info .product-category {
    font-size: 13px;
}

.modal-info h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-rating i {
    color: var(--accent-color);
}

.modal-rating span {
    color: var(--text-tertiary);
    margin-left: 5px;
}

.modal-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.modal-price .price {
    font-size: 32px;
    font-weight: 800;
}

.modal-description h3,
.modal-features h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.quantity-selector input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-large i {
    margin-right: 10px;
}

/* Order Form Styles */
.order-form-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    animation: slideDown 0.4s ease-out;
}

.form-divider {
    margin-bottom: 25px;
}

.form-divider h3 {
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-divider i {
    color: var(--primary-color);
}

.product-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-order-form .form-group {
    display: flex;
    flex-direction: column;
}

.product-order-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: var(--danger-color);
    margin-left: 3px;
}

.product-order-form input[type="text"],
.product-order-form input[type="email"],
.product-order-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.product-order-form input:focus,
.product-order-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.product-order-form input[readonly] {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

.product-order-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Field Validation States */
.form-group {
    position: relative;
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error .file-upload-label {
    border-color: var(--danger-color);
}

.form-group.error label {
    color: var(--danger-color);
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--success-color);
}

.field-message {
    font-size: 13px;
    margin-top: 6px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.field-message.show {
    display: block;
}

.field-message.error {
    color: var(--danger-color);
}

.field-message.success {
    color: var(--success-color);
}

.field-message.info {
    color: var(--primary-color);
}

.field-message i {
    margin-right: 5px;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #e8f4fd;
}

.file-upload-label.focused {
    border-color: var(--primary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.file-upload-label i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-text {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 5px;
}

.file-name {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

.file-name.active {
    display: block;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 13px;
}

/* Order Summary */
.order-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-dark);
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
}

.summary-row strong {
    color: var(--primary-color);
}

.summary-row.total strong {
    font-size: 22px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.form-actions button {
    flex: 1;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-dark);
}

/* Contact Form Confirmation Modal */
.confirmation-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.confirmation-backdrop.active {
    opacity: 1;
}

.contact-confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 550px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-confirmation-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.confirmation-content {
    padding: 50px 40px 40px;
    text-align: center;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards;
    transform: scale(0);
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.confirmation-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.confirmation-icon.error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.confirmation-content h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.confirmation-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.confirmation-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.confirmation-details p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 15px;
}

.confirmation-details p:last-child {
    margin-bottom: 0;
}

.confirmation-details i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 18px;
    min-width: 20px;
}

.confirmation-details .email-direct {
    display: block;
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
    margin: 10px 0;
}

.btn-close-confirmation {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-close-confirmation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-close-confirmation i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--white);
        z-index: 1000;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 18px 20px;
        font-size: 20px;
        border-bottom: 1px solid var(--border-color, #eee);
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-btn {
        z-index: 1001;
    }

    .main-header {
        position: relative;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 36px;
    }

    /* Modal responsive - Large Tablets */
    .modal-content {
        max-width: 85%;
        margin: 3% auto;
    }

    .modal-body {
        gap: 30px;
        padding: 30px;
    }

    .modal-image {
        max-height: 450px;
    }

    .modal-image img {
        max-height: 450px;
    }

    .modal-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }

    .contact-info-grid {
        gap: 20px;
    }

    .contact-info-item {
        gap: 15px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .contact-icon i {
        font-size: 17px;
    }

    .contact-info-item h3 {
        font-size: 16px;
    }

    .contact-info-item p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
        max-height: calc(100vh - 80px);
    }

    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 2% auto;
        border-radius: 10px;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .modal-image {
        max-height: 350px;
        border-radius: 8px;
    }

    .modal-image img {
        max-height: 350px;
    }

    .modal-info {
        gap: 15px;
        padding-right: 5px;
    }

    .modal-info h2 {
        font-size: 22px;
    }

    .modal-price {
        padding: 12px 0;
    }

    .modal-price .price {
        font-size: 24px;
    }

    .modal-description h3,
    .modal-features h3 {
        font-size: 16px;
    }

    .modal-actions {
        gap: 12px;
    }

    .quantity-selector {
        flex-wrap: wrap;
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .pagination-container {
        flex-direction: column;
        text-align: center;
    }

    .pagination-controls {
        justify-content: center;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination-page {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .contact-confirmation-modal {
        width: 95%;
        max-width: 90%;
    }

    .confirmation-content {
        padding: 40px 25px 30px;
    }

    .confirmation-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 20px;
    }

    .confirmation-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .confirmation-message {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .confirmation-details {
        padding: 20px;
        margin-bottom: 20px;
    }

    .confirmation-details p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .confirmation-details .email-direct {
        font-size: 16px;
    }

    .btn-close-confirmation {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-actions button {
        width: 100%;
    }

    /* Modal responsive - Small Phones */
    .modal-content {
        max-width: 98%;
        width: 98%;
        margin: 1% auto;
        border-radius: 8px;
        max-height: 98vh;
    }

    .modal-body {
        padding: 20px 15px;
        gap: 20px;
        max-height: calc(100vh - 60px);
    }

    .modal-close {
        right: 8px;
        top: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .modal-image {
        max-height: 250px;
        border-radius: 6px;
    }

    .modal-image img {
        max-height: 250px;
    }

    .modal-info {
        gap: 12px;
    }

    .modal-info h2 {
        font-size: 20px;
    }

    .modal-info .product-category {
        font-size: 11px;
    }

    .modal-rating {
        font-size: 13px;
    }

    .modal-price {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .modal-price .price {
        font-size: 22px;
    }

    .modal-description h3,
    .modal-features h3 {
        font-size: 15px;
    }

    .modal-description p {
        font-size: 14px;
    }

    .modal-features li {
        font-size: 14px;
        padding: 6px 0;
    }

    .modal-actions {
        gap: 10px;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .quantity-selector input {
        width: 100%;
    }

    .btn-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px 15px;
    }

    .contact-info-grid {
        gap: 15px;
    }

    .contact-info-item {
        gap: 12px;
        flex-wrap: wrap;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .contact-icon i {
        font-size: 15px;
    }

    .contact-info-item h3 {
        font-size: 15px;
    }

    .contact-info-item p {
        font-size: 13px;
        word-break: break-word;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-body {
        padding: 15px 10px;
        gap: 15px;
        max-height: calc(100vh - 50px);
    }

    .modal-info h2 {
        font-size: 18px;
    }

    .modal-price .price {
        font-size: 20px;
    }
}

/* Landscape orientation for tablets and phones */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-content {
        margin: 1% auto;
        max-height: 98vh;
    }

    .modal-body {
        padding: 20px;
        gap: 20px;
        max-height: calc(100vh - 40px);
        grid-template-columns: 1fr 1fr;
    }

    .modal-image {
        max-height: 300px;
    }

    .modal-image img {
        max-height: 300px;
    }

    .modal-info {
        max-height: 400px;
        overflow-y: auto;
    }

    .modal-info h2 {
        font-size: 18px;
    }

    .modal-description,
    .modal-features {
        display: none; /* Hide on very short landscape screens */
    }
}

/* Small landscape phones */
@media (max-width: 768px) and (max-height: 450px) and (orientation: landscape) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .modal-image {
        max-height: 200px;
    }

    .modal-image img {
        max-height: 200px;
    }

    .modal-info h2 {
        font-size: 16px;
    }

    .modal-rating,
    .modal-price {
        font-size: 13px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    /* Hide non-essential elements */
    .top-bar,
    .main-header,
    .header-actions,
    .hero,
    .cta-section,
    .footer,
    .modal,
    .scroll-to-top,
    .theme-toggle,
    .accessibility-controls,
    button,
    .btn,
    .pagination-container,
    .wishlist-btn,
    .product-badge,
    .social-links,
    nav {
        display: none !important;
    }

    /* Reset colors for printing */
    * {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* Show main content */
    #products,
    #categories,
    #about,
    #contact {
        page-break-inside: avoid;
        margin-bottom: 20pt;
    }

    /* Product cards for print */
    .product-card {
        page-break-inside: avoid;
        border: 1pt solid #000 !important;
        padding: 10pt;
        margin-bottom: 10pt;
    }

    .product-card img {
        max-width: 150px !important;
        height: auto !important;
    }

    /* Category cards for print */
    .category-card {
        page-break-inside: avoid;
        border: 1pt solid #000 !important;
        padding: 10pt;
        margin-bottom: 10pt;
    }

    /* Section titles */
    .section-title {
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 10pt;
        border-bottom: 2pt solid #000 !important;
        padding-bottom: 5pt;
    }

    /* Contact info */
    .contact-info-card {
        border: 1pt solid #000 !important;
        padding: 10pt;
        margin-bottom: 10pt;
    }

    /* Links */
    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    /* Print header */
    @page {
        margin: 2cm;
    }

    /* Add print-only header */
    body::before {
        content: "South Medical Equipment - Professional Medical Equipment";
        display: block;
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20pt;
        padding-bottom: 10pt;
        border-bottom: 2pt solid #000;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

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

/* ARIA live regions */
[aria-live="polite"],
[aria-live="assertive"] {
    position: relative;
}

/* Enhanced focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

/* Better link styling */
a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Touch target size for mobile accessibility */
@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
}

/* Reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .category-card,
    .feature-card {
        animation: none !important;
    }
}

/* High contrast improvements */
@media (prefers-contrast: high) {
    button,
    .btn {
        border: 2px solid currentColor;
    }
    
    .product-card,
    .category-card {
        border: 2px solid var(--text-dark);
    }
}

/* Focus within for form groups */
.form-group:focus-within {
    background: var(--bg-light);
    border-radius: 5px;
}

/* Improved button states for accessibility */
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none;
}

/* Enhanced modal accessibility */
.modal[aria-hidden="true"] {
    display: none;
}

.modal[aria-hidden="false"] {
    display: flex;
}

/* Keyboard navigation indicators */
.keyboard-user *:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Language support for screen readers */
[lang]:not([lang=""]) {
    font-style: normal;
}

/* Skip links navigation */
.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
}

.skip-links a {
    position: absolute;
    left: -9999px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.skip-links a:focus {
    left: 10px;
    top: 10px;
    border-radius: 5px;
}
