/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Cart Summary Bar */
.cart-summary-top {
    background: #f8f9fa;
    padding: 1px 5px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    position: relative; /* normal flow */
    z-index: 1000; /* Can keep or remove if not needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0;
}


.cart-summary-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-summary-label {
    font-weight: bold;
    color: #555;
}

.cart-summary-value {
    font-weight: bold;
}

#cart-count {
    color: #0066cc;
}

#cart-net-total {
    color: #666;
}

#cart-discount-total {
    color: #ff3333;
}

#cart-save-total {
    color: #009900;
}

#cart-total {
    color: #0066cc;
    font-size: 16px;
}

/* Table Styles */
.products-table-box {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    box-sizing: border-box;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.products-table th {
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #ddd;
}

.products-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.cat-row td {
    background-color: #ff3333;
    color: white;
    font-weight: bold;
    text-align: center !important;
    padding: 10px;
}

.prod-name {
    font-weight: bold;
}

.prod-image img {
    max-width: 70px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    display: block;
}

.new-price {
    color: #009900;
    font-weight: bold;
    display: block;
}

.prod-qty-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.prod-row-total {
    font-weight: bold;
    color: #0066cc;
}

.discount-percent {
    text-align: center;
}

/* Cart FAB Button */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff6600;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 24px;
    transition: all 0.3s;
}

.cart-fab:hover {
    background: #e65c00;
    transform: scale(1.1);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Cart Modal */
.cart-modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cart-modal-head {
    background: #ff6600;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

#cart-modal-items {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-modal-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.cart-list-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-prod-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-prod-info {
    flex-grow: 1;
}

.cart-prod-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-prod-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-prod-qty button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 3px;
}

.cart-prod-qty input {
    width: 40px;
    text-align: center;
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.cart-prod-price {
    margin-left: 10px;
    font-weight: bold;
    color: #0066cc;
}

.cart-prod-del {
    background: none;
    border: none;
    color: #ff3333;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.cart-modal-tot {
    padding: 0 15px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
}

.cart-modal-btn {
    background: #009900;
    color: white;
    border: none;
    padding: 12px;
    margin: 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.cart-modal-btn:hover {
    background: #008800;
}

/* Banner Styles */
.banner-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-slider {
    width: 100%;
    position: relative;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .products-table th, 
    .products-table td {
        padding: 8px 4px;
        font-size: 14px;
    }
    .prod-image img {
        max-width: 50px;
    }
    .prod-qty-input {
        width: 50px;
    }
    .cart-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    .fab-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    .cart-summary-top {
        padding: 8px 10px;
    }
    .cart-summary-container {
        flex-direction: column;
        gap: 5px;
    }
    .cart-summary-item {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .products-table {
        font-size: 13px;
    }
    .products-table th, 
    .products-table td {
        padding: 6px 2px;
    }
    .prod-image img {
        max-width: 40px;
    }
    .prod-qty-input {
        width: 40px;
        padding: 3px;
    }
    .cart-summary-top {
        font-size: 14px;
        padding: 6px 8px;
    }
    .cart-modal {
        width: 95%;
    }
}
