/* ===============================
   GLOBAL RESET
   =============================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    color: #2f2f2f;
    background: #f7f5f2;
    overflow-x: hidden;
}

/* RESET LINKS (CRITICAL) */
a {
    text-decoration: none;
    color: inherit;
}

/* ===============================
   HEADER / BRAND
   =============================== */
.app-header {
    background: #7a1f3d;
    color: #ffffff;
    text-align: center;
    padding: 16px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* ===============================
   CONTENT
   =============================== */
.content {
    padding: 16px;
    padding-bottom: 86px;
}

/* ===============================
   GRID
   =============================== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* ===============================
   ITEM CARD
   =============================== */
.item-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.item-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    background: #eee;
}

.item-card h4 {
    margin: 8px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #7a1f3d;
}

.item-card p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.qty {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9a7b2f;
}

/* ===============================
   FORMS
   =============================== */
.form input,
.form select,
.search-box {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d2c9c5;
    font-size: 14px;
    background: #ffffff;
}

.form input:focus,
.form select:focus {
    outline: none;
    border-color: #7a1f3d;
}

.form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #7a1f3d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

/* ===============================
   LOGIN
   =============================== */
.login-card {
    max-width: 420px;
    margin: 60px auto 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #7a1f3d;
}

.alert {
    background: #ffe6e6;
    border: 1px solid #f5bcbc;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #a40000;
}

/* ===============================
   NAVIGATION — MOBILE FIRST
   =============================== */
.top-nav {
    display: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    z-index: 1000;
}

.bottom-nav svg {
    width: 22px;
    height: 22px;
    stroke: #7a1f3d;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a.active svg {
    stroke: #9a7b2f;
}

/* ===============================
   DESKTOP / TABLET
   =============================== */
@media (min-width: 768px) {

    .content {
        padding-bottom: 24px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .top-nav {
        display: flex;
        justify-content: center;
        gap: 36px;
        background: #ffffff;
        padding: 14px 0;
        border-bottom: 1px solid #e1d9d5;
        box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    }

    .top-nav a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #7a1f3d;
        line-height: 1;
    }

    .top-nav svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bottom-nav {
        display: none;
    }
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.image-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
}

@media (max-width: 600px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery img {
        height: 160px;
    }
}

.edit-card {
    padding: 0;
    overflow: hidden;
}

.edit-card .card-body {
    padding: 16px;
}

