* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: #1f2937;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

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

        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin: 20px;
            padding: 20px 40px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 20px;
            z-index: 100;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

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

        .nav-links a {
            text-decoration: none;
            color: #374151;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .cart-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .cart-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .cart-btn:hover::before {
            left: 100%;
        }

        .cart-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .cart-count {
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin-left: 8px;
        }

        main {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin: 20px;
            padding: 40px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .hero {
            text-align: center;
            margin-bottom: 60px;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.2rem;
            color: #6b7280;
            max-width: 600px;
            margin: 0 auto;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .product-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

                /* Updated product image styles */
        .product-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border-radius: 20px 20px 0 0; /* Only round top corners */
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* This ensures the image covers the entire container while maintaining aspect ratio */
            object-position: center; /* Centers the image within the container */
            transition: transform 0.3s ease;
        }

        .product-image:hover img {
            transform: scale(1.05); /* Subtle zoom effect on hover */
        }

        /* Remove the gradient overlay since we're using real images now */
        .product-image::before {
            display: none;
        }

        /* Alternative styles if you want the image to fit entirely within the container */
        .product-image.fit-contain img {
            object-fit: contain; /* This will show the entire image within the container */
            padding: 20px; /* Add some padding around the image */
        }

        /* For images that might be too small */
        .product-image.fit-fill img {
            object-fit: fill; /* This will stretch the image to fill the container exactly */
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .product-image {
                height: 200px; /* Slightly smaller on mobile */
                border-radius: 15px 15px 0 0;
            }
        }

        @media (max-width: 480px) {
            .product-image {
                height: 180px; /* Even smaller on very small screens */
            }
        }

        .product-info {
            padding: 25px;
        }

        .product-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #1f2937;
        }

        .product-description {
            color: #6b7280;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .product-price {
            font-size: 1.5rem;
            font-weight: 800;
            color: #667eea;
            margin-bottom: 20px;
        }

        .add-to-cart {
            width: 100%;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .add-to-cart:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 1000;
            display: none;
        }

        .cart-panel {
            position: fixed;
            right: -400px;
            top: 0;
            width: 400px;
            height: 100%;
            background: white;
            z-index: 1001;
            transition: right 0.3s ease;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }

        .cart-panel.open {
            right: 0;
        }

        .cart-header {
            padding: 25px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .close-cart {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
        }

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

        .cart-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .cart-item-image {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.5rem;
        }

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

        .cart-item-title {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .cart-item-price {
            color: #667eea;
            font-weight: 700;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity-btn {
            background: #f3f4f6;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .quantity-btn:hover {
            background: #e5e7eb;
        }

        .cart-total {
            padding: 25px;
            border-top: 1px solid #e5e7eb;
            background: #f9fafb;
        }

        .total-amount {
            font-size: 1.5rem;
            font-weight: 800;
            color: #1f2937;
            margin-bottom: 20px;
        }

        .checkout-btn {
            width: 100%;
            background: linear-gradient(45deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }

        .checkout-form {
            display: none;
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #374151;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

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

        .submit-btn {
            background: linear-gradient(45deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            width: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }

        .back-btn {
            background: #6b7280;
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            margin-right: 15px;
        }

        .back-btn:hover {
            background: #4b5563;
        }

        .order-summary {
            background: #f9fafb;
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 30px;
        }

        .order-summary h3 {
            margin-bottom: 15px;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 5px 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .summary-total {
            font-weight: 800;
            font-size: 1.2rem;
            color: #1f2937;
            border-top: 2px solid #667eea;
            padding-top: 10px;
            margin-top: 10px;
        }

        @media (max-width: 768px) {
            header {
                margin: 10px;
                padding: 15px 20px;
                border-radius: 15px;
            }

            .logo {
                font-size: 1.5rem;
            }

            .nav-links {
                display: none;
            }

            .cart-btn {
                padding: 10px 20px;
                font-size: 14px;
            }

            main {
                margin: 10px;
                padding: 20px;
                border-radius: 15px;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1rem;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .product-card {
                border-radius: 15px;
            }

            .product-info {
                padding: 20px;
            }
            
            .cart-panel {
                width: 100%;
                right: -100%;
            }

            .checkout-form {
                max-width: 100%;
                margin: 0;
                padding: 20px;
                border-radius: 15px;
            }

            .checkout-form h2 {
                font-size: 1.5rem !important;
                margin-bottom: 20px !important;
            }

            .order-summary {
                padding: 15px;
                border-radius: 10px;
                margin-bottom: 20px;
            }

            .order-summary h3 {
                font-size: 1.1rem;
            }
            
            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .form-group {
                margin-bottom: 20px;
            }

            .form-group input,
            .form-group textarea {
                padding: 12px;
                border-radius: 8px;
                font-size: 16px; /* Prevents zoom on iOS */
            }

            .form-group label {
                font-size: 14px;
                margin-bottom: 6px;
            }

            /* Button container styling for mobile */
            .checkout-form > div:last-child {
                display: flex;
                flex-direction: column;
                gap: 15px;
                margin-top: 20px;
            }

            .back-btn {
                width: 100%;
                margin-right: 0;
                padding: 12px 20px;
                font-size: 14px;
            }

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

            /* Ensure buttons stay within form boundaries */
            .checkout-form button {
                max-width: 100%;
                box-sizing: border-box;
            }
        }

        @media (max-width: 480px) {
            header {
                margin: 5px;
                padding: 12px 15px;
            }

            .logo {
                font-size: 1.3rem;
            }

            main {
                margin: 5px;
                padding: 15px;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .checkout-form {
                padding: 15px;
            }

            .checkout-form h2 {
                font-size: 1.3rem !important;
            }

            .order-summary {
                padding: 12px;
            }

            .form-group input,
            .form-group textarea {
                padding: 10px;
            }

            .back-btn,
            .submit-btn {
                padding: 10px 15px;
                font-size: 13px;
            }
        }