:root {
    --primary-color: #0B2545; /* Deep Clinical Blue */
    --secondary-color: #E84A5F; /* Rose Accent */
    --secondary-color-dark: #D4394D;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --bg-color: #F8FAFC;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(11, 37, 69, 0.1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232, 74, 95, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 74, 95, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    height: 80px;
    transform: scale(1.9);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(2.0);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 190px; /* Offset for massive navbar/logo */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248,250,252,1) 0%, rgba(226,232,240,0.5) 100%);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(232, 74, 95, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: rgba(11, 37, 69, 0.1);
    bottom: -200px;
    left: -100px;
}

.hero-content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-left {
    text-align: left;
}

.badge-container {
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fdf2f8;
    color: #db2777;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-left h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-text-left p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons-left {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    padding-right: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.pink-icon svg {
    color: #db2777;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.hero-image-split {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.3);
    border: 4px solid var(--white);
    transform: translateX(-50%);
}

.experience-badge .years {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(232, 74, 95, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.features-list h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.features-list p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.company-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-color);
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-list li {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.company-list li:hover {
    background: rgba(11, 37, 69, 0.05);
    color: var(--primary-color);
}

.company-list li.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.products-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.current-company-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#product-search {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

#product-search:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 74, 95, 0.1);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-md);
    list-style: none;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: var(--bg-color);
}

.search-dropdown-name {
    font-weight: 500;
    color: var(--text-primary);
}

.search-dropdown-price {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    width: 100%;
    height: 200px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: auto;
    margin-bottom: 16px;
}

.btn-add-cart {
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Cart Sidebar */
.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(-400px);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-items {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: var(--bg-color);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-qty {
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: auto;
    font-weight: 500;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--bg-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-md);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
}

.info-content h4 {
    margin-bottom: 4px;
}

.info-content p, .info-content a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-content a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(232, 74, 95, 0.1);
    background: var(--white);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content-split { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text-left { text-align: center; }
    .hero-text-left p { max-width: 100%; margin: 0 auto 30px auto; }
    .hero-buttons-left { justify-content: center; }
    .hero-stats { padding-right: 0; }
    .hero-text-left h1 { font-size: 2.8rem; }
    .about-container, .contact-wrapper { grid-template-columns: 1fr; }
    .about-image-wrapper { margin-bottom: 40px; }
    .contact-wrapper { padding: 40px 24px; }
    .products-layout { grid-template-columns: 1fr; }
    .company-sidebar { position: relative; top: 0; max-height: 300px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hamburger { display: flex; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; }

    /* Mobile 2-column Grid Optimization */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .product-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    
    .product-price {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .btn-add-cart {
        padding: 8px;
        font-size: 0.9rem;
    }

    .products-content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        max-width: 100%;
    }
}


/* --- Dark Mode Variables --- */
[data-theme="dark"] {
    --primary-color: #60a5fa; /* Lighter blue for dark mode */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --bg-color: #0f172a;
    --white: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Base element updates for Dark Mode */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .about,
[data-theme="dark"] .contact,
[data-theme="dark"] .cart-footer,
[data-theme="dark"] .company-sidebar,
[data-theme="dark"] .product-card,
[data-theme="dark"] .quick-view-content {
    background: var(--white);
}

[data-theme="dark"] #product-search,
[data-theme="dark"] #sort-select,
[data-theme="dark"] #min-price,
[data-theme="dark"] #max-price {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(11, 37, 69, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(11, 37, 69, 0.05);
}

[data-theme="dark"] .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Toolbar Styles */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sort-group, .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.sort-group select, .filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.sort-group select:focus, .filter-group input:focus {
    border-color: var(--secondary-color);
}

.filter-group input {
    width: 90px;
}

.btn-filter {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--secondary-color);
}

.btn-clear {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-clear:hover {
    background: #dc2626;
}

/* Quick View Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--white);
    z-index: 2001;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.quick-view-modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .close-modal {
    background: rgba(255,255,255,0.1);
}

.close-modal:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Premium Form Inputs (H&M Aesthetic) */
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

textarea.form-input {
    resize: vertical;
}

[data-theme="dark"] .form-input {
    border-color: #334155;
    color: #f1f5f9;
}

.form-input:focus {
    outline: none;
    border-color: #111;
}

[data-theme="dark"] .form-input:focus {
    border-color: #fff;
}

.form-input::placeholder {
    color: #888;
}

.quick-view-content {
    display: flex;
    height: 100%;
    max-height: 90vh;
}

.qv-image-col {
    flex: 1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

[data-theme="dark"] .qv-image-col {
    background: #0f172a;
}

.qv-image-col img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.qv-info-col {
    flex: 1;
    padding: 40px 32px;
    overflow-y: auto;
}

.qv-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.3;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.qv-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.qv-specs {
    margin-bottom: 32px;
}

.qv-specs li {
    display: flex;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.qv-specs .spec-label {
    font-weight: 600;
    width: 120px;
    color: var(--primary-color);
}

.qv-specs .spec-value {
    color: var(--text-secondary);
}

.qv-add-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* Mobile Responsiveness for Toolbar/Modal */
@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-group, .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-group input {
        width: 70px;
    }

    .quick-view-content {
        flex-direction: column;
    }
    
    .qv-image-col {
        min-height: 250px;
    }
    
    .qv-info-col {
        padding: 24px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon { color: #10b981; }
.toast.error .toast-icon { color: #ef4444; }
.toast.info .toast-icon { color: #3b82f6; }

.toast-message {
    font-weight: 500;
    font-size: 0.95rem;
}

[data-theme="dark"] .toast {
    background: #1e293b;
    color: #f1f5f9;
}

/* Dark Mode Overrides */
[data-theme='dark'] .brand-logo {
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

/* Mega Footer */
.mega-footer {
    background-color: #0b1120;
    color: #f1f5f9;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h2, .footer-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-about {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
    color: #94a3b8;
}

.footer-contact li {
    margin-bottom: 12px;
}

.footer-contact strong {
    color: #fff;
}

.mega-footer .footer-bottom {
    background-color: #060b14;
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* MRP and Discount Styles */
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.price-wrapper .product-price {
    margin-top: 0;
    margin-bottom: 0;
}

.product-mrp {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
}

.qv-price-wrapper {
    margin-bottom: 24px;
    margin-top: 0;
    font-size: 1.1rem;
}

.qv-price-wrapper .qv-price {
    margin-bottom: 0;
}

/* Catalog View Styles */
.catalog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.catalog-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

