
        /* Cart Icon Styles */
        .cart-icon-container {
            position: relative;
            display: inline-block;
            margin-left: 15px;
        }
        
        .cart-icon {
            font-size: 1.5rem;
            color: #ff9500;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .cart-icon:hover {
            color: #ff9500;
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #ff9500;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.8rem;
            font-weight: bold;
        }
        
        /* Cart Modal Styles */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 400px;
            height: 100%;
            background-color: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            z-index: 1050;
            overflow-y: auto;
        }
        
        .cart-modal.open {
            display: block;
        }
        
        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            background-color: #f8f9fa;
        }
        
        .cart-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 0;
        }
        
        .close-cart {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .cart-content {
            padding: 20px;
        }
        
        .cart-items {
            margin-bottom: 20px;
        }
        
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        
        .cart-item-info {
            flex-grow: 1;
        }
        
        .cart-item-name {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .cart-item-price {
            color: #666;
        }
        
        .cart-item-quantity {
            display: flex;
            align-items: center;
        }
        
        .quantity-btn {
            width: 25px;
            height: 25px;
            background-color: #f2f2f2;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }
        
        .quantity-input {
            width: 40px;
            text-align: center;
            margin: 0 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .remove-item {
            color: #e63946;
            cursor: pointer;
            margin-left: 10px;
        }
        
        .cart-totals {
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-bottom: 20px;
        }
        
        .cart-subtotal, .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .cart-total {
            font-weight: bold;
            font-size: 1.1rem;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }
        
        .cart-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .view-cart-btn, .checkout-btn {
            padding: 12px;
            text-align: center;
            border-radius: 4px;
            font-weight: bold;
            text-decoration: none;
            transition: background-color 0.3s;
        }
        
        .view-cart-btn {
            background-color: #f8f9fa;
            color: #333;
            border: 1px solid #ddd;
        }
        
        .view-cart-btn:hover {
            background-color: #e9ecef;
        }
        
        .checkout-btn {
            background-color: #000;
            color: white;
        }
        
        .checkout-btn:hover {
            background-color: #000;
        }
        
        .empty-cart {
            text-align: center;
            color: #666;
            padding: 40px 20px;
        }
        
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1040;
        }
        
        .overlay.active {
            display: block;
        }
        
        /* Product Styles */
        * {
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        h1 {
            text-align: center;
            color: #333;
            margin-top: 20px;
            margin-bottom: 40px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .continue-shopping {
            color: #4CAF50;
            text-decoration: none;
            font-weight: bold;
        }

/* Centered Products Container */
.products-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

/* Product Card Styling */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 320px;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Image Section */
.product-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #f7f7f7; /* fallback background */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes image fill space perfectly without distortion */
  display: block;
  transition: transform 0.4s ease;
}

/* Subtle zoom effect on hover */
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Info Section */
.product-info {
  padding: 20px;
  text-align: center;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.product-price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #ff9500;
  margin-bottom: 15px;
}

/* Button */
.add-to-cart {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #000;
}


        .add-to-cart {
            width: 100%;
            padding: 12px;
            background-color: #ff9500;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: background-color 0.3s;
        }

        .add-to-cart:hover {
            background-color: #000;
        }

        .view-cart-container {
            text-align: center;
            margin-top: 30px;
        }

        .view-cart-btn-main {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background-color: #000;
            color: white;
            padding: 14px 28px;
            border-radius: 8px;
            font-weight: bold;
            text-decoration: none;
            transition: background 0.3s;
            font-size: 1.1rem;
        }

        .view-cart-btn-main:hover {
            background-color: #000;
        }
        
        /* Navbar Styles */
        .navbar-nav {
            display: flex;
            align-items: center;
        }
        
        /* Default navbar style */
        .navbar {
            transition: background-color 0.3s ease;
        }
    
        /* White background only on mobile devices */
        @media (max-width: 991.98px) {
            .navbar-white-bg {
                background-color: white !important;
                border: none;
            }
            
            .cart-icon {
                color: #333;
            }
        }

        /* Product Preview Modal Styles */
        .product-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1060;
            overflow-y: auto;
            padding: 20px;
            box-sizing: border-box;
        }

        .modal-product-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

        .product-modal.open {
            display: block;
        }

        .product-modal-content {
            background-color: white;
            margin: 40px auto;
            border-radius: 12px;
            width: 90%;
            max-width: 900px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: modalFadeIn 0.4s;
        }

        .modal-product-image img {
  width: 100%;
  max-width: 350px; /* keeps image from being too big */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .product-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            border-bottom: 1px solid #eee;
            background-color: #f8f9fa;
        }

        .product-modal-title {
            font-size: 1.8rem;
            color: #2c3e50;
            margin: 0;
        }

        .close-product-modal {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #7f8c8d;
            transition: color 0.3s;
        }

        .close-product-modal:hover {
            color: #e74c3c;
        }

        .product-modal-body {
            display: flex;
            flex-wrap: wrap;
            padding: 0;
        }

        .product-modal-image {
            flex: 1;
            min-width: 300px;
            background: linear-gradient(135deg, #3498db, #2c3e50);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 5rem;
            padding: 40px;
        }

        .product-modal-details {
            flex: 1;
            min-width: 300px;
            padding: 30px;
        }

        .product-modal-price {
            font-size: 1.8rem;
            color: #ff9500;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .product-modal-description {
            margin-bottom: 25px;
            line-height: 1.7;
            color: #555;
        }

        .product-features {
            margin-bottom: 25px;
        }

        .features-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .features-list {
            list-style-type: none;
        }

        .features-list li {
            padding: 8px 0;
            border-bottom: 1px dashed #eee;
            position: relative;
            padding-left: 25px;
        }

        .features-list li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #2ecc71;
            font-weight: bold;
        }

        .product-modal-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            background: #f8f9fa;
            border-radius: 6px;
            padding: 5px;
        }

        .quantity-btn {
            width: 36px;
            height: 36px;
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #555;
        }

        .quantity-input {
            width: 50px;
            text-align: center;
            border: none;
            background: none;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .product-modal-add-to-cart {
            flex: 1;
            padding: 12px;
            background-color: #ff9500;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 600;
            transition: background-color 0.3s;
        }

        .product-modal-add-to-cart:hover {
            background-color: #e68600;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .product-modal-body {
                flex-direction: column;
            }
            
            .product-modal-image {
                min-height: 250px;
            }
            
            .product-modal-actions {
                flex-direction: column;
            }
            
            .quantity-selector {
                justify-content: center;
            }
        }
