* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:hover {
    color: #e63946;
}

[x-cloak] {
    display: none !important;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
}

.homepage-container {
    display: flex;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
}

/* Reset layout.php .content global styles */
.content {
    display: block !important;
    flex-grow: 0 !important;
    align-items: stretch !important;
}


/* Sidebar */
.sidebar {
    width: 260px;
    background: #fff;
    /* border-right: 1px solid #ddd; */
    padding: 20px;
    flex-shrink: 0;
    margin: 20px 0 20px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #e63946;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 12px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.sidebar .last-orders {
    margin-top: 30px;
}

.sidebar .last-orders h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* Main */
.main {
    flex: 1;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    padding: 12px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 15px;
}

.tabs a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

/* Grid Produk */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media(max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease-out;
    --bg-color: #fce8e9;
    /* Light spicy red background */
    --text-color-hover: #e63946;
    --box-shadow-color: rgba(48, 29, 30, 0.15);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px 0 var(--box-shadow-color);
}

.card .overlay {
    width: 0px;
    height: 0px;
    /* border-radius: 50%; */
    background: var(--bg-color);
    position: absolute;
    top: -50px;
    left: -50px;
    z-index: 0;
    transition: transform 0.5s ease-out;
}

.card:hover .overlay {
    width: 100px;
    height: 100px;
    transform: scale(10);
}

.card img,
.card .info {
    position: relative;
    z-index: 1;
}

.card img {
    width: 100%;
    /* height: 360px; */
    height: scale(1.8);
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.card .info {
    padding: 15px;
}

.card .info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card .info p {
    color: #777;
    margin-bottom: 10px;
    font-size: 14px;
    height: 38px;
    overflow: hidden;
}

.card .info span {
    font-weight: bold;
    color: #e63946;
}

/* Banner */
.banner {
    grid-column: span 2;
    background: linear-gradient(135deg, #e63946, #ff7f50);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.banner h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
}

/* Responsive */
@media(max-width:992px) {
    .homepage-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        width: 280px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 15px 0 30px rgba(0, 0, 0, 0.1) !important;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .main {
        width: 100% !important;
        padding: 15px !important;
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.mobile-toggle {
    display: none;
    background: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #e63946;
    font-size: 20px;
}

@media(max-width: 992px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media(max-width:768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .banner {
        grid-column: span 1;
    }
}