/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff9f1c;
}

/* Navbar Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    margin-left: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9f1c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Cart Popup */
.cart-popup {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-popup.active {
    display: block;
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5em;
    color: #ffffff;
}

.cart-items {
    padding: 10px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.cart-item-details {
    flex-grow: 1;
    color: #ffffff;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #444;
    font-weight: bold;
    text-align: right;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    background: #ff9f1c;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.checkout-btn:hover {
    background: #ff8c00;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls label {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.filter-controls select {
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    background: #333;
    color: #ffffff;
    font-size: 16px;
}

/* Product Showcase */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

/* Item Card */
.item-card {
    background: #252525;
    max-width: 450px;
    height: 500px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.item-card:hover {
    transform: scale(1.05);
}

.item-image {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.item-details {
    flex: 1;
    text-align: center;
    padding-top: 10px;
    color: #ffffff;
}

.item-details h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #ff9f1c;
}

.item-details p {
    color: #cccccc;
    font-size: 14px;
}

.cost {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #ff9f1c;
}

/* Purchase Buttons */
.purchase-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.cart-btn, .instant-buy {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    flex: 1;
}

.cart-btn {
    background: #28a745;
    color: white;
}

.cart-btn:hover {
    background: #218838;
}

.instant-buy {
    background: #007bff;
    color: white;
}

.instant-buy:hover {
    background: #0056b3;
}

/* Make cart icon black when navbar is scrolled */
.navbar.scrolled .cart-icon {
    color: #000 !important;
}
