/* Default: Show cart-icon and hide cart-icon2 */
.cart-icon {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-left: 1rem; /* Space between the last nav item and cart icon */
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #940C0E;
    color: #fff;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-icon2 {
    display: none;
}

/* Cart SVG Styling */
.cart-icon .cart-svg,
.cart-icon2 .cart-svg {
    width: 32px;
    height: 32px;
    fill: #DFE4E8;
    transition: transform 0.3s ease;
}

/* Hover Effect for Cart SVG */
.cart-icon:hover .cart-svg,
.cart-icon2:hover .cart-svg {
    transform: scale(1.1);
}

/* Product Details Layout */
.product-details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 10rem auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .product-image img {
    max-width: 300px;
    max-height: 100vh;
  }
  
  .product-info {
    margin-left: 20px;
    max-width: 500px;
  }
  
  .product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .product-platform {
    font-size: 18px;
    color: #474748;
    margin-bottom: 10px;
  }
  
  .product-price {
    font-size: 24px;
    color: #940C0E;
    margin: 10px 0;
  }
  
  .product-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .add-to-cart-btn {
    background-color: #940C0E;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .add-to-cart-btn:hover {
    background-color: #6b090b;
  }


/* Responsive Adjustments for 1024px and below */
@media (max-width: 1024px) {
    .cart-icon {
        display: none; /* Hide desktop cart icon */
    }

    .cart-icon2 {
        display: flex; /* Show mobile cart icon */
        position: relative;
        margin-left: auto; /* Push to the right within the nav */
        cursor: pointer;
    }

    .menu {
        display: none; /* Hide the menu by default on smaller screens */
        flex-direction: column;
        background-color: #940C0E;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        padding: 1rem;
        z-index: 99;
    }

    .cart-count2 {
        position: absolute;
        top: -5px;
        right: -8px;
        background-color: #940C0E;
        color: #fff;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .menu.show {
        display: flex; /* Show the menu when toggled */
    }
}

/* Responsive Adjustments for 768px and below */
@media (max-width: 768px) {
    .cart-icon2 .cart-svg {
        width: 28px;
        height: 28px;
    }

    .cart-count2 {
        top: -4px;
        right: -6px;
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}
