.container {
    display: flex; 
    gap: 20px;    
    width: 100%;
    padding: 10px;
}

.cart-wrapper {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
}


.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #eee;
font-size: 0.9rem;
}

.qty-input {
    width: 50px;
    padding: 3px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

u.cart {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cart-wrapper:hover u.cart {
    color: #28a745;
    border-bottom: 2px solid #28a745;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 100;
    border-radius: 8px;
    margin-top: 10px;
}

.cart-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.cart-wrapper:hover .cart-dropdown {
    display: block;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #666;
    white-space: nowrap;
}

.cart-item-subtotal {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.qty-input {
    width: 45px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

.qty-input:focus {
    outline: none;
    border-color: #007bff;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #c82333;
}

#cart-total {
    margin: 15px 0 10px 0;
    padding-top: 10px;
    border-top: 2px solid #eee;
    font-size: 16px;
    color: #333;
}

.cart-dropdown .checkout-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.2s;
}

.cart-dropdown .checkout-btn:hover {
    background: #218838;
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 20px 0;
}

#----------------------------------------------



.left-div, .right-div {
    padding: 10px;
    background-color: #f0f0f0;
    flex: 1; 
}

.left-div {
    min-width: 200px; 
}

.right-div {
    flex-grow: 3; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.product {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: white;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.product img {
    max-width: 100%;
    height: 180px;

    object-fit: contain;
    object-position: center;
    border-radius: 3px;
    margin-bottom: 10px;
}

.product h3 {
    margin: 10px 0 5px 0;
    font-size: 1.1em;
}

.product button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#----------------------------------------------

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: white;
    border-radius: 8px;
    padding: 30px;

    max-width: 800px;
    margin: 20px auto;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-detail img {
    width: 300px;
    height: 300px;

    object-fit: contain;

    margin-bottom: 20px;

    border-radius: 6px;
}

.product-detail button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

body { 
    font-family: Arial, sans-serif; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}