:root {
    --primary: #e11d48;
    /* Rose/Pinkish red for Pempek/Food theme */
    --primary-dark: #be123c;
    --secondary: #10b981;
    --bg: #fff1f2;
    /* Light rose background */
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --sidebar-width: 260px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Navbar */
header {
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav {
    display: flex;
    gap: 25px;
}

header nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
}

header nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('aseet/flamboyant.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 24px;
    margin: 20px 0 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: white;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 100px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 30px;
    margin-bottom: 30px;
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
}

.info-card p,
.info-card ul {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.history-section {
    padding: 30px;
    background: #fff1f2;
    border-radius: 20px;
    margin: 0 30px;
    border: 1px dashed var(--primary);
    scroll-margin-top: 100px;
}

.history-section h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 18px;
}

/* Product Grid (Smaller Cards) */
.product-container {
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 20px;
    background: var(--primary);
    border-radius: 10px;
}

.search-container {
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box input {
    padding: 15px 25px;
    padding-right: 100px;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 20px;
    border-radius: 25px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.alert {
    background: #dcfce7;
    color: #166534;
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.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: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 800;
    height: 40px;
    overflow: hidden;
}

.card-body p {
    font-size: 12px;
    color: var(--muted);
    height: 36px;
    overflow: hidden;
    margin-bottom: 10px;
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 13px;
}

.btn-buy {
    background: var(--primary);
    color: white;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a:hover:not(.active) {
    background: #f1f5f9;
}

/* Admin Sidebar Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.02);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.admin-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff1f2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.admin-name {
    font-weight: 800;
    color: var(--text);
    font-size: 16px;
}

.admin-role {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    min-height: 100vh;
}

.admin-content {
    padding: 50px;
    flex: 1;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
    text-decoration: none;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
    font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #fff1f2;
    color: var(--primary);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
}

.stat-card h4 {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--muted);
    cursor: pointer;
}

input,
textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 8px 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

th {
    text-align: left;
    padding: 15px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    scroll-margin-top: 100px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-header h4 {
    font-weight: 800;
    font-size: 16px;
}

.stars {
    font-size: 12px;
    margin-top: 2px;
}

.review-card p {
    color: var(--muted);
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
footer {
    width: 100%;
    background: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
    scroll-margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text);
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p,
.footer-col li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    list-style: none;
}

.footer-col ul {
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
}

/* Admin Footer Adjustments */
.admin-main footer {
    margin-top: auto;
}

.admin-main footer .container {
    max-width: 100%;
    padding: 40px;
}