﻿/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Tahoma, sans-serif;
    background: #fff176; /* Theme yellow background */
    color: #333;
}

/* ===== Headings ===== */
h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* ===== Card / Box Style ===== */
.theme-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== Buttons ===== */
.theme-btn {
    background: #333;
    color: #fff !important;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .theme-btn:hover {
        background: #555;
    }

/* Yellow button version */
.theme-btn-yellow {
    background: #fdd835;
    color: #000 !important;
}

    .theme-btn-yellow:hover {
        background: #fbc02d;
    }

/* ===== Inputs ===== */
.theme-input,
.theme-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #fdd835;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* ===== Spacing Helpers ===== */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

/* ===== Cart Item ===== */
.cart-item {
    background: #fff;
    border-left: 6px solid #fdd835;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

    /* Image in cart */
    .cart-item img {
        width: 90px;
        height: 90px;
        border-radius: 6px;
        object-fit: cover;
    }

/* ===== Summary Box ===== */
.summary-box {
    background: #333;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
}

    .summary-box h3 {
        color: #fff;
    }

/* ===== Address Box ===== */
.address-box {
    background: #fff;
    border-left: 6px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ===== Table (Service Fees, Orders, etc.) ===== */
.theme-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .theme-table th {
        background: #333;
        color: #fff;
        padding: 10px;
    }

    .theme-table td {
        background: #fff;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

/* ===== Category Cards ===== */
.category-card {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s ease;
    cursor: pointer;
}

    .category-card:hover {
        transform: scale(1.03);
        background: #fdd835;
    }

    /* Category image */
    .category-card img {
        width: 100%;
        border-radius: 10px;
        height: 110px;
        object-fit: cover;
    }
.horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
}

    .horizontal-scroll > * {
        display: inline-block;
        vertical-align: top;
    }
.table-scroll {
    overflow-x: auto;
    width: 100%;
    display: block;
}

    .table-scroll table {
        width: max-content; /* prevents squeezing */
    }
/* ========== Mobile Cart Card Layout ========== */
.cart-card {
    display: none; /* hidden on desktop */
}

/* Mobile View */
@media (max-width: 768px) {
    /* Hide table on mobile */
    .cart-table {
        display: none;
    }

    /* Show card layout */
    .cart-card {
        display: block;
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .cart-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .cart-card-header img {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
        }

    .cart-card-body {
        margin-top: 10px;
    }

    .cart-card-row {
        display: flex;
        justify-content: space-between;
        margin: 6px 0;
    }

        .cart-card-row label {
            font-weight: bold;
            color: #333;
        }

    .cart-card-actions {
        margin-top: 12px;
        display: flex;
        justify-content: space-between;
    }
}
/* Horizontal scroll wrapper for tables */
.table-scroll {
    overflow-x: auto;
    width: 100%;
}

    .table-scroll table {
        width: max-content; /* prevent squeezing */
        min-width: 100%; /* optional: full width if small */
    }

/* Optional: on small screens, always scrollable */
@media (max-width: 768px) {
    .table-scroll table {
        min-width: 600px; /* ensures horizontal scroll */
    }
}



