/*
 * MEDORICA PRODUCTS PAGE - MARKET STANDARD DESIGN
 * 
 * Modern e-commerce product listing with:
 * - Clean card-based layout with proper spacing
 * - Responsive grid system (2-col mobile, 3-col tablet, 4-col desktop)
 * - Professional product cards with image containers
 * - Market-standard hover effects and transitions
 * - Optimized for touch and desktop interactions
 * - Accessible and SEO-friendly structure
 * - Performance-optimized animations
 */

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

/* Glass Navigation */
.glass-navbar {
    background: #4b5b5f !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.5rem 0.5rem;
    box-shadow: 0 8px 32px rgba(75, 91, 95, 0.1);
    transition: all 0.3s ease;
}

.glass-navbar:hover {
    background: #4b5b5f !important;
    box-shadow: 0 12px 40px rgba(75, 91, 95, 0.15);
}

.nav-link {
    position: relative;
    color: #ded7ce !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ded7ce;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #ded7ce !important;
    background: #4b5b5f !important;
}

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

/* Custom styles for logo text in navbar */
.logo-container .text-lg {
    color: #ded7ce !important;
}

/* Mobile Menu */
.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: rgba(223, 216, 207, 0.95);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    padding: 2rem;
    z-index: 40;
}

.mobile-menu-content.active {
    right: 0;
}

.mobile-nav-links {
    margin-top: 4rem;
}

.mobile-nav-link {
    display: block;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--depth-1);
    padding-left: 1rem;
}

/* Custom hamburger menu color for products page */
.mobile-menu-btn i {
    color: #ded7ce !important; /* Use a light, visible color */
}

body {
    font-family: 'Inter', sans-serif; /* Match website font */
    line-height: 1.6;
    color: #4b5b5f; /* --primary-dark */
    background: linear-gradient(135deg, #dfd8cf 0%, #e6d9c9 100%); /* Match website background */
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(75, 91, 95, 0.5); /* Glass effect with theme color */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ded7ce; /* Light text on dark background */
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.floating-cart:hover {
    background: rgba(75, 91, 95, 0.7);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4b5b5f; /* --primary-dark */
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.cart-count.active {
    transform: scale(1);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(223, 216, 207, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(75, 91, 95, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 91, 95, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: #4b5b5f;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(75, 91, 95, 0.1);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(75, 91, 95, 0.15);
}

.trust-badge i {
    color: #6c7c84;
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #4b5b5f;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    line-height: 1.1;
    background: linear-gradient(135deg, #4b5b5f 0%, #6c7c84 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #738484;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4b5b5f;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #738484;
    font-weight: 500;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid rgba(75, 91, 95, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(75, 91, 95, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #4b5b5f;
    box-shadow: 0 6px 30px rgba(75, 91, 95, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #738484;
    font-size: 1.1rem;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #738484;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear.active {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: rgba(75, 91, 95, 0.1);
    color: #4b5b5f;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(75, 91, 95, 0.1);
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: #738484;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #4b5b5f;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4b5b5f 0%, #6c7c84 50%, #8b9ba1 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(75, 91, 95, 0.4);
    transform: translateY(-2px);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(75, 91, 95, 0.1);
}

.view-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #738484;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #4b5b5f;
}

.view-btn.active {
    background: linear-gradient(135deg, #4b5b5f 0%, #6c7c84 50%, #8b9ba1 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(75, 91, 95, 0.4);
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4b5b5f;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #738484;
}

/* Product Grid - Market Standard Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }
}

/* No Results - Modern Empty State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(75, 91, 95, 0.1);
    margin: 2rem 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3.5rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Loading Skeleton */
.product-skeleton {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(75, 91, 95, 0.12);
    padding: 0;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Trust Section */
.trust-section {
    margin: 3rem 0;
    padding: 3rem 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(223, 216, 207, 0.3) 100%);
    backdrop-filter: blur(15px);
    border-radius: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(75, 91, 95, 0.15);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 124, 132, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(15px);
    border-radius: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    z-index: 1;
}

.trust-item:nth-child(1) { animation-delay: 0.6s; }
.trust-item:nth-child(2) { animation-delay: 0.7s; }
.trust-item:nth-child(3) { animation-delay: 0.8s; }
.trust-item:nth-child(4) { animation-delay: 0.9s; }

.trust-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(75, 91, 95, 0.2);
    border-color: rgba(75, 91, 95, 0.3);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #4b5b5f 0%, #6c7c84 50%, #8b9ba1 100%);
    border-radius: 1rem;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(75, 91, 95, 0.3);
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.4);
}

.trust-item:nth-child(1) .trust-icon {
    background: linear-gradient(135deg, #4b5b5f, #6c7c84);
}

.trust-item:nth-child(2) .trust-icon {
    background: linear-gradient(135deg, #6c7c84, #8b9ba1);
}

.trust-item:nth-child(3) .trust-icon {
    background: linear-gradient(135deg, #738484, #a4aca7);
}

.trust-item:nth-child(4) .trust-icon {
    background: linear-gradient(135deg, #8b9ba1, #6c7c84);
}

.trust-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5b5f;
    margin-bottom: 0.25rem;
}

.trust-content p {
    font-size: 0.9rem;
    color: #738484;
    margin: 0;
}

.product-card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(75, 91, 95, 0.12);
    box-shadow: 0 2px 8px rgba(75, 91, 95, 0.08);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card:nth-child(even) {
    animation-delay: 0.05s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.1s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(75, 91, 95, 0.18);
    border-color: rgba(75, 91, 95, 0.2);
}

/* Quick view overlay on hover */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(75, 91, 95, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

/* List View Styling - Market Standard */
.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    height: auto;
}

.products-grid.list-view .product-image-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.products-grid.list-view .product-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem;
}

.products-grid.list-view .product-details {
    flex: 1;
}

.products-grid.list-view .product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    align-self: center;
    padding-top: 0;
    border-top: none;
}

.products-grid.list-view .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.products-grid.list-view .btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.products-grid.list-view .product-title {
    font-size: 1.1rem;
    min-height: auto;
}

.product-image-container {
    position: relative;
    margin-bottom: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8f9fa;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

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

.prescription-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #ef4444;
    color: white;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
}

.product-brand {
    font-size: 0.75rem;
    color: #6c7c84;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.product-description {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4b5b5f;
}

.product-price-old {
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.product-discount {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(75, 91, 95, 0.08);
}

/* Removed featured/popular badge - cleaner modular design */

.btn {
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    width: 100%;
    white-space: nowrap;
}

.btn-primary {
    background: #4b5b5f;
    color: white;
    box-shadow: 0 1px 3px rgba(75, 91, 95, 0.12);
}

.btn-primary:hover {
    background: #3a474a;
    box-shadow: 0 4px 12px rgba(75, 91, 95, 0.2);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #4b5b5f;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 0;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(75, 91, 95, 0.1);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 0.875rem;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-modal.active {
    visibility: visible;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.product-modal-content {
    position: relative;
    width: min(900px, 95vw);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: scale(1);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    color: #4b5b5f; /* --primary-dark */
}

.product-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    width: 100%;
    height: 300px;
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(223, 216, 207, 0.5); /* light-bg with opacity */
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image within container */
    object-position: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #4b5b5f; /* --primary-dark */
    transform: scale(1.05);
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5b5f; /* --primary-dark */
    line-height: 1.3;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4b5b5f; /* --primary-dark */
}

.product-discount {
    font-size: 1rem;
    color: #28a745;
    font-weight: 500;
}

.product-details {
    flex: 1;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
    margin-bottom: 0.5rem;
}

.detail-section p {
    font-size: 0.9rem;
    color: #738484; /* --depth-2 */
    line-height: 1.5;
}

.product-specs {
    background: rgba(223, 216, 207, 0.3); /* light-bg with opacity */
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #4b5b5f; /* --primary-dark */
}

.spec-value {
    color: #738484; /* --depth-2 */
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(75, 91, 95, 0.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(223, 216, 207, 0.3); /* light-bg with opacity */
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.quantity-btn {
    background: rgba(75, 91, 95, 0.1);
    border: none;
    border-radius: 0.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #4b5b5f; /* --primary-dark */
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(75, 91, 95, 0.2);
}

.quantity-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    color: #4b5b5f; /* --primary-dark */
}

.add-to-cart-modal {
    flex: 1;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-drawer.active {
    visibility: visible;
    opacity: 1;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #a4aca7;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: #4b5b5f; /* --primary-dark */
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #a4aca7;
}

.cart-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-empty small {
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-brand {
    font-size: 0.8rem;
    color: #738484; /* --depth-2 */
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    color: #4b5b5f; /* --primary-dark */
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls .quantity-btn {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #a4aca7;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.remove-btn:hover {
    color: #dc3545;
}

.remove-all-btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.remove-all-btn:hover, .remove-all-btn:focus {
    background: #b52a37;
    color: #fff;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(75, 91, 95, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.cart-total {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b5b5f; /* --primary-dark */
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
}

/* Order Modal */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.order-modal.active {
    visibility: visible;
    opacity: 1;
}

.order-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.order-modal-content {
    position: relative;
    width: min(500px, 90vw);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.order-modal.active .order-modal-content {
    transform: scale(1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
}

.order-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
}

.order-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #a4aca7;
    transition: color 0.3s ease;
}

.order-close:hover {
    color: #4b5b5f; /* --primary-dark */
}

.order-form {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(75, 91, 95, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #4b5b5f; /* --primary-dark */
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b5b5f; /* --primary-dark */
    background: rgba(255, 255, 255, 0.9);
}

.form-group small {
    color: #738484; /* --depth-2 */
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.active {
    opacity: 1;
}

.order-summary {
    background: rgba(223, 216, 207, 0.5); /* light-bg with opacity */
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.order-summary h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5b5f; /* --primary-dark */
    margin-bottom: 0.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b5b5f; /* --primary-dark */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(75, 91, 95, 0.2);
}

.submit-order {
    width: 100%;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .hero {
        padding: 1.25rem 0;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats .stat-item {
        flex: 1;
        min-width: 100px;
        background: rgba(255, 255, 255, 0.4);
        padding: 0.75rem 0.5rem;
        border-radius: 0.625rem;
        backdrop-filter: blur(10px);
    }

    .hero-stats .stat-number {
        font-size: 1.75rem;
    }

    .filter-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        padding: 0.375rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .view-toggle {
        align-self: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .product-card {
        flex-direction: column !important;
        padding: 0 !important;
    }

    .product-image-container {
        width: 100% !important;
        aspect-ratio: 1 !important;
        padding: 1rem !important;
    }

    .product-info {
        padding: 0.875rem !important;
        gap: 0.375rem !important;
    }

    .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.125rem;
        min-height: 2.4rem;
    }

    .product-brand {
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .product-description {
        display: none;
    }

    .product-card-actions {
        flex-direction: column;
        gap: 0.375rem;
        padding-top: 0.375rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 0.375rem;
    }

    .btn-icon i {
        display: none;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trust-item {
        padding: 1rem;
    }

    .trust-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .cart-drawer {
        bottom: 0;
    }
    
    .cart-content {
        bottom: 0;
        top: auto;
        height: 85vh;
        width: 100%;
        border-radius: 1rem 1rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        transform: translateY(100%);
    }
    
    .cart-drawer.active .cart-content {
        transform: translateY(0);
    }
    
    .order-modal-content {
        width: 95vw;
        margin: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quantity-selector {
        align-self: center;
    }

    /* List view on mobile */
    .products-grid.list-view {
        grid-template-columns: 1fr !important;
    }

    .products-grid.list-view .product-card {
        flex-direction: row !important;
    }

    .products-grid.list-view .product-image-container {
        width: 100px !important;
        aspect-ratio: 1 !important;
    }

    .products-grid.list-view .product-info {
        grid-template-columns: 1fr !important;
        padding: 0.875rem !important;
    }

    .products-grid.list-view .product-card-actions {
        min-width: auto !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .cart-content {
        width: 380px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .floating-cart,
    .cart-drawer,
    .product-modal,
    .order-modal {
        display: none;
    }
} 

.product-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}
.product-card-actions .btn {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
}
.product-card-actions .btn-secondary {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .glass-navbar {
        margin: 0 0.5rem;
        padding: 0.5rem 1rem;
    }

    .trust-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    .search-input {
        padding: 0.875rem 2.5rem 0.875rem 2.5rem;
        font-size: 0.9rem;
    }

    .filter-tabs {
        gap: 0.25rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .product-card {
        gap: 0.6rem !important;
        padding: 0.75rem !important;
    }

    .product-image-container {
        width: 55px !important;
    }

    .product-image {
        height: 55px !important;
        width: 55px !important;
    }

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

    .product-brand {
        font-size: 0.65rem;
    }

    .product-card-actions {
        min-width: 90px;
    }

    .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .trust-section {
        padding: 1.5rem 0.75rem;
        margin: 1.5rem -0.75rem;
        border-radius: 1rem;
    }

    .trust-item {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .trust-content h4 {
        font-size: 1rem;
    }

    .trust-content p {
        font-size: 0.85rem;
    }
} 

/* --- Mobile: force LIST view and improve product image sizing --- */
@media (max-width: 768px) {
    /* Use single-column list layout on mobile */
    .products-grid,
    .products-grid.list-view {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Product card becomes a horizontal row with a prominent image */
    .products-grid .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 0.75rem !important;
    }

    /* Larger fixed image box for consistent visual weight */
    .products-grid .product-image-container {
        width: 130px !important;
        min-width: 130px !important;
        height: 130px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0.25rem !important;
        border-radius: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.6) !important;
    }

    .products-grid .product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0.5rem !important;
    }

    /* Info column grows to fill remaining space */
    .products-grid .product-info {
        flex: 1 1 auto !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Hide view controls on small screens (no grid choice) */
    .view-toggle, .view-btn {
        display: none !important;
    }

    /* Make action buttons compact and inline */
    .products-grid .product-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: center !important;
        min-width: 120px !important;
    }

    /* Ensure description shows a single short line for compactness */
    .products-grid .product-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}