         :root {
            --primary: #0e5881;
            --primary-dark: #0a4a6a;
            --secondary: #f9c422;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --white:#0e5881;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --radius: 12px;
            --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
            --easing: cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 1200px; /* slightly narrower for better reading rhythm */
            margin: 0 auto;
            padding: 0 28px; /* increased side padding for breathing room */
        }

        /* Top Bar */
        .top-bar {
            background-color: #0e5881; /* unified site blue */
            color: #0e5881;
            padding: 10px 0;
            font-size: 14px;
        }

        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .contact-info {
            display: flex;
            gap: 20px;
        }

        .contact-info span {
            display: flex;
            align-items: center;
        }

        .contact-info i {
            margin-right: 8px;
            color: var(--secondary);
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            color: var(--white);
            font-size: 16px;
            transition: var(--transition);
        }

        .social-links a:hover {
            color: var(--secondary);
            transform: translateY(-2px);
        }

        /* Header */
        header {
            background-color: var(--white);
            padding: 18px 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
        }

        .logo h1 {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin: 0;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        nav ul li a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            padding: 5px 0;
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: var(--transition);
        }

        nav ul li a:hover {
            color: var(--primary);
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        .cart-icon {
            position: relative;
            font-size: 22px;
            color: var(--primary);
            cursor: pointer;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: var(--secondary);
            color: var(--dark);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }

        /* Hero Section */
        .hero {
            position: relative;
            height: 500px;
            overflow: hidden;
            margin-bottom: 40px;
        }

        .hero-slider {
            display: flex;
            height: 100%;
            transition: transform 0.8s var(--easing);
        }

        .hero-slide {
            min-width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            padding: 0 50px;
            color: var(--white);
        }

        .hero-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 600px;
        }

        .hero-content h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 18px;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .hero-nav {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 3;
        }

        .hero-nav button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: none;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: var(--transition);
        }

        .hero-nav button.active {
            background-color: var(--secondary);
            width: 30px;
            border-radius: 15px;
        }

        /* Main Content Layout */
        .main-content {
            display: flex;
            gap: 36px; /* more space between sidebar and product list */
            padding: 0 0 60px; /* extra bottom breathing room */
        }

        /* Sidebar Filters */
        .sidebar {
            width: 280px;
            flex: 0 0 280px;
            max-width: 280px; /* increased width for clearer filter layout */
            background-color: var(--white);
            padding: 20px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .filter-group {
            margin-bottom: 24px; /* slightly more breathing room between filter groups */
        }

        .filter-group h3 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 14px;
            color: var(--dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .filter-group h3 i {
            font-size: 14px;
            transition: var(--transition);
        }

        .filter-group h3.collapsed i {
            transform: rotate(-90deg);
        }

        .filter-options {
            overflow: hidden;
            transition: var(--transition);
        }

        .filter-options.collapsed {
            height: 0;
        }

        .filter-options label {
            display: block;
            margin-bottom: 14px;
            cursor: pointer;
            font-size: 15px; /* larger for readability */
            color: var(--gray);
        }

        .filter-options input[type="checkbox"] {
            margin-right: 10px;
            accent-color: var(--primary);
        }

        .price-range {
            margin-top: 15px;
        }

        .price-range input {
            width: 100%;
        }

        /* Small inline histogram for price distribution above the price controls */
        .price-histogram {
            margin-bottom: 12px;
            border-radius: 8px;
            overflow: hidden;
            background: transparent; /* svg provides the inner background */
        }

        .price-histogram svg {
            display: block;
            width: 100%;
            height: 80px;
        }

        .price-histogram.loading {
            opacity: 0.6;
            position: relative;
        }

        .price-histogram.loading::after {
            content: 'Loading...';
            position: absolute;
            right: 12px;
            top: 8px;
            font-size: 12px;
            color: var(--gray);
            background: rgba(255,255,255,0.8);
            padding: 4px 8px;
            border-radius: 8px;
            border: 1px solid rgba(0,0,0,0.05);
        }

        /* Smooth transitions for histogram bars */
        .price-histogram svg rect.hist-bar {
            transform-origin: center bottom;
            transform-box: fill-box;
            transition: transform 420ms var(--easing), fill 250ms ease;
            cursor: pointer;
        }

        /* Hover and focus states for bars */
        .price-histogram svg rect.hist-bar:hover,
        .price-histogram svg rect.hist-bar:focus {
            fill: rgba(14,88,129,0.65);
            transform-origin: center bottom;
        }

        /* Tooltip for histogram bars */
        .price-histogram .hist-tooltip {
            position: absolute;
            pointer-events: none;
            display: none;
            z-index: 50;
            background: #0e5881;
            color: #fff;
            padding: 6px 8px;
            font-size: 12px;
            border-radius: 6px;
            box-shadow: 0 6px 18px rgba(12, 40, 60, 0.12);
            transform: translate(-50%, -10px);
            white-space: nowrap;
        }

        .price-histogram .hist-tooltip::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 10px;
            height: 10px;
            background: #0e5881;
            transform: translateX(-50%) rotate(45deg);
        }

        .price-values {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 14px;
            color: var(--gray);
        }

        /* dropdown selects for price range */
        .price-select {
            width: 100%;
            padding: 12px 14px;
            border-radius: 8px;
            border: 1px solid rgba(14,88,129,0.12);
            background: #fff;
            font-weight: 600;
            color: #0e5881;
        }

        .filter-button {
            width: 100%;
            padding: 12px;
            background-color: var(--primary);
            color: var(--white);
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 10px;
        }

        .filter-button:hover {
            background-color: var(--primary-dark);
            transform: translateY(-1px);
        }

        /* Products Section */
        .products {
            flex: 1;
            padding-bottom: 48px; /* default extra spacing for desktop */
        }

        /* Responsive adjustments: less bottom padding on smaller viewports */
        @media (max-width: 900px) {
            .products { padding-bottom: 36px; }
        }
        @media (max-width: 720px) {
            .products { padding-bottom: 28px; }
        }
        @media (max-width: 420px) {
            .products { padding-bottom: 20px; }
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px; /* more vertical separation */
        }

        .section-title h2 {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
        }

        .section-title p {
            color: var(--gray);
            font-size: 16px;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* comfortable columns to reduce clutter */
            gap: 48px; /* larger gaps to reduce clutter */
            align-items: start;
        }

        .product-card {
            background-color: var(--white);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 6px 14px rgba(12, 40, 60, 0.06);
            transition: transform 280ms var(--easing), box-shadow 280ms ease;
            position: relative;
            padding: 14px; /* balanced inner padding */
            display: flex;
            flex-direction: column;
            gap: 10px;
            border: 1px solid rgba(16,24,32,0.03);
            min-height: 360px;
        }
        .product-card:focus-within, .product-card:focus {
            outline: 3px solid rgba(14,88,129,0.12);
            outline-offset: 4px;
        }

        .product-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
        }

        .product-image {
            aspect-ratio: 1 / 1; /* keep images in a consistent square frame */
            width: 100%;
            overflow: hidden;
            position: relative;
            background-color: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
        }

        .product-image img {
            max-width: 86%;
            max-height: 86%;
            object-fit: contain; /* show full product without cropping */
            transition: transform 220ms ease, opacity 220ms ease;
            display: block;
        }

        .product-card:hover .product-image img {
            transform: scale(1.03);
        }

        .product-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--secondary);
            color: var(--dark);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .product-info {
            padding: 12px; /* leaner info area */
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
        }

        .product-info h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-info .price {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .product-info .description {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 48px;
        }

        .rating {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .stars {
            color: #ffc107;
            margin-right: 8px;
            position: relative;
            display: inline-block;
        }

        .stars::before {
            content: '★★★★★';
            color: #ddd;
        }

        .stars .filled {
            color: #ffc107;
            position: absolute;
            top: 0;
            left: 0;
            overflow: hidden;
            white-space: nowrap;
        }

        .rating-value {
            font-size: 14px;
            color: var(--gray);
        }

        .product-actions {
            display: flex;
            gap: 10px;
        }

        .add-to-cart, .view-product {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
        }

        .add-to-cart {
            background-color: var(--primary);
            color: var(--white);
        }

        .add-to-cart:hover {
            background-color: var(--primary-dark);
        }

        .view-product {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .view-product:hover {
            background-color: var(--primary);
            color: var(--white);
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 40px;
            gap: 8px;
        }

        .pagination button {
            padding: 10px 15px;
            border: 1px solid #ddd;
            background-color: var(--white);
            color: var(--dark);
            border-radius: var(--radius);
            cursor: pointer;
            transition: var(--transition);
        }

        .pagination button:hover {
            background-color: var(--primary);
            color: var(--white);
            border-color: var(--primary);
        }

        .pagination button.active {
            background-color: var(--primary);
            color: var(--white);
            border-color: var(--primary);
        }

        /* Footer */
        footer {
            background-color: var(--dark);
            color: var(--white);
            padding: 40px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-section h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--white);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section ul li a {
            color: var(--gray);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-section ul li a:hover {
            color: var(--secondary);
        }

        .footer-social {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .footer-social a {
            color: var(--white);
            font-size: 20px;
            transition: var(--transition);
        }

        .footer-social a:hover {
            color: var(--secondary);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--gray);
            font-size: 14px;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-content {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                position: static;
                margin-bottom: 30px;
            }

            .hero-content h1 {
                font-size: 36px;
            }

            /* hide adverts on smaller viewports to reduce clutter */
            .ad-list { display: none; }
        }

        @media (max-width: 768px) {
            .hero {
                height: 400px;
            }

            .hero-content h1 {
                font-size: 30px;
            }

            .hero-content p {
                font-size: 16px;
            }

            nav ul {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .hero-content h1 {
                font-size: 24px;
            }
        }

        @media (min-width: 1400px) {
            .container { max-width: 1400px; }
            .product-grid { grid-template-columns: repeat(4, 1fr); gap: 56px; }
        }
 