/* ===============================
   GLOBAL THEME
================================ */
:root{
    --yellow: #FFD23F;
    --blue: #0B5ED7;
    --light-blue: #E8F1FF;
    --orange: #FF7A00;
    --dark: #222;
    --white: #fff;
}

*{
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body{
    margin: 0;
    background: linear-gradient(135deg, var(--light-blue), #fffbe6);
    color: orange;
}

/* ===============================
   TOP BAR
================================ */
.top-bar{
    background: linear-gradient(90deg, var(--blue), #004aad);
    color: white;
    padding: 14px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h2{
    margin: 0;
    color: yellow;
    font-weight: 700;
}

.top-bar a{
    color: white;
    text-decoration: none;
    margin-left: 12px;
    font-weight: 500;
}

.top-bar a:hover{
    text-decoration: underline;
}

/* ===============================
   GRID / CARDS
================================ */
.grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    padding: 25px;
}

.card{
    background: var(--white);
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.card:hover{
    transform: translateY(-6px);
}

.card img{
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.card h4{
    margin: 10px 0 5px;
    color: blue;
}

.card p{
    margin: 5px 0;
    font-weight: 600;
}

/* ===============================
   BUTTONS
================================ */
button{
    background: linear-gradient(90deg, var(--orange), #ff9f43);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

button:hover{
    opacity: 0.9;
}

input[type="number"],
input[type="text"],
select{
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
}

/* ===============================
   CART TABLE
================================ */
table{
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

table th{
    background: var(--blue);
    color: white;
    padding: 12px;
}

table td{
    padding: 10px;
    text-align: center;
}

table tr:nth-child(even){
    background: #f9f9f9;
}

table tr:last-child th{
    background:yellow;
    color: var(--dark);
}

/* ===============================
   HEADINGS & LINKS
================================ */
h2{
    text-align: center;
    color: blue;
    margin-top: 20px;
}

a{
    text-decoration: none;
}

a button{
    width: auto;
    padding: 10px 25px;
    margin: 20px auto;
    display: block;
}

/* ===============================
   MOBILE FRIENDLY
================================ */
@media(max-width:768px){
    table{
        width: 98%;
    }
}
.status {
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
}
.status.pending { background: orange; color: white; }
.status.delivered { background: green; color: white; }
.status.cancelled { background: red; color: white; }
