* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }
        body {
            background-color: #faf9f6;
        }
        /* Header */
        header {
            background-color: #1e2a2e;
            color: white;
            padding: 1rem 2rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }
        .Brand h1 {
            font-size: 1.8rem;
            letter-spacing: 1px;
        }
        .nav-main nav ul {
            display: flex;
            gap: 1.8rem;
            list-style: none;
            flex-wrap: wrap;
        }
        .nav-main nav ul a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.2s;
        }
        .nav-main nav ul a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
        /* Cart icon badge */
        .cart-icon {
            position: relative;
            cursor: pointer;
            background: #2c3e2f;
            padding: 8px 16px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: bold;
            transition: background 0.2s;
        }
        .cart-icon:hover {
            background: #3a5540;
        }
        .cart-count {
            background-color: #e67e22;
            border-radius: 30px;
            padding: 2px 8px;
            font-size: 0.8rem;
            font-weight: bold;
            color: white;
        }
        /* main layout */
        .products-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 30px;
            padding: 40px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .product-card {
            background-color: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: transform 0.25s ease, box-shadow 0.2s;
        }
        .product-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        }
        .product-image {
            height: 280px;
            background-color: #f0ede8;
            position: relative;
            overflow: hidden;
        }
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }
        .product-card:hover .product-image img {
            transform: scale(1.03);
        }
        .product-info {
            padding: 18px;
        }
        .brand {
            font-size: 13px;
            font-weight: 600;
            color: #7f8c8d;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        .product-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .prices {
            display: flex;
            gap: 12px;
            align-items: baseline;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }
        .current-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: #1e2a2e;
        }
        .original-price {
            text-decoration: line-through;
            color: #999;
            font-size: 0.85rem;
        }
        .discount-price {
            background: #e67e22;
            color: white;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
        }
        .buy-now-btn, .add-to-cart-btn {
            background-color: #1e2a2e;
            color: white;
            border: none;
            padding: 10px 0;
            width: 100%;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 5px;
        }
        .buy-now-btn:hover, .add-to-cart-btn:hover {
            background-color: #2c3e2f;
        }
.cart-controls {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }
        .add-to-cart-btn {
            background-color: #2c5538;
        }
        /* cart sidebar */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -420px;
            width: 380px;
            max-width: 90vw;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 25px rgba(0,0,0,0.2);
            z-index: 1000;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
            padding: 20px;
            overflow-y: auto;
        }
        .cart-sidebar.open {
            right: 0;
        }
        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #eee;
            padding-bottom: 12px;
            margin-bottom: 20px;
        }
        .cart-items {
            flex: 1;
            margin-bottom: 20px;
        }
        .cart-item {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        .cart-item-img {
            width: 65px;
            height: 65px;
            object-fit: cover;
            border-radius: 8px;
        }
        .cart-item-details {
            flex: 1;
        }
        .cart-item-name {
            font-weight: 600;
        }
        .cart-item-price {
            color: #2c3e2f;
            font-weight: 500;
        }
        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
        }
        .qty-btn {
            background: #e9ecef;
            border: none;
            width: 26px;
            height: 26px;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
        }
        .remove-item {
            color: #c0392b;
            font-size: 12px;
            cursor: pointer;
            margin-left: 8px;
            text-decoration: underline;
        }
        .cart-total {
            font-size: 1.4rem;
            font-weight: bold;
            border-top: 2px dashed #ddd;
            padding-top: 15px;
            text-align: right;
        }
        .checkout-cart-btn {
            background-color: #1e2a2e;
            color: white;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 40px;
            font-weight: bold;
            margin-top: 16px;
            font-size: 1rem;
            cursor: pointer;
        }
        .close-cart {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }
        .overlay.active {
            display: block;
        }
        /* existing purchase form */
        .purchase-form {
            display: none;
            background-color: white;
            padding: 30px;
            border-radius: 24px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            max-width: 650px;
            margin: 40px auto;
        }
        .product-sumary {
            display: flex;
            align-items: center;
            gap: 15px;
            background: #f9f9f9;
            padding: 15px;
            border-radius: 18px;
            margin-bottom: 20px;
        }
        .product-sumary img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
        }
        .form-group {
            margin-bottom: 18px;
        }
        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 30px;
        }
        .submit-btn {
            background-color: #1e2a2e;
            border: none;
            padding: 12px;
            width: 100%;
            border-radius: 40px;
            color: white;
            font-weight: bold;
        }
        .thank-you {
            display: none;
            text-align: center;
            background: #d4edda;
            padding: 35px;
            border-radius: 24px;
            max-width: 600px;
            margin: 40px auto;
        }
        footer {
            background: #1e2a2e;
            color: white;
            text-align: center;
            padding: 28px;
            margin-top: 40px;
        }
        @media (max-width: 600px) {
            .products-container { padding: 20px; gap: 16px; }
            .cart-sidebar { width: 100%; right: -100%; }
        }
        .empty-cart-msg {
            text-align: center;
            color: gray;
            padding: 30px 0;
        }
