/* --- THE MEAT PRO: CORE STYLES --- */
:root {
    --primary-red: #C62828;
    --dark-grey: #1a1a1a;
    --light-grey: #f8f8f8;
    --white: #ffffff;
    --border-color: #eeeeee;
    --rounded: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--light-grey);
    margin: 0;
    color: var(--dark-grey);
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-red);
}

/* --- CATEGORY SELECTION --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 30px 8%;
}

.cat-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card h3 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: white;
    margin: 0;
    font-weight: 900;
    font-size: 1.2rem;
}

/* --- PRODUCT GRID --- */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 8%;
}

.product-card {
    background: var(--white);
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-info {
    padding: 20px;
}

.price-tag {
    color: var(--primary-red);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.currency-icon {
    height: 0.85em;
    margin-right: 4px;
}

/* --- THE BIG CARD (FULL SCREEN SLIDE-IN) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    right: -100vw; /* Hidden off-screen */
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 5000;
    transition: var(--transition);
    display: flex;
}

.modal-overlay.active {
    right: 0;
}

.modal-left {
    flex: 1.2;
    height: 100%;
    background: #f0f0f0;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    flex: 1;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.close-big-card {
    position: absolute;
    top: 40px;
    left: 40px;
    background: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.close-big-card:hover {
    background: var(--light-grey);
}

/* --- SIDEBAR CART --- */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 4000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}

#cart-sidebar.active {
    right: 0;
}

/* --- UI ELEMENTS (QTY, BUTTONS) --- */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    background: #f4f4f4;
    width: fit-content;
    padding: 10px;
    border-radius: 50px;
}

.qty-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-controls button:hover {
    background: var(--primary-red);
    color: white;
}

.qty-controls input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 900;
    font-size: 1.5rem;
    outline: none;
}

.confirm-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
    transition: var(--transition);
}

.confirm-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.add-btn {
    background: var(--dark-grey);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--primary-red);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1100px) {
    .modal-overlay {
        flex-direction: column;
    }
    .modal-left {
        flex: 0.8;
    }
    .modal-right {
        flex: 1.2;
        padding: 40px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 5%;
    }
    #cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .modal-left {
        flex: 0.6;
    }
    .modal-right {
        padding: 30px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}
