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

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

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
}

.search-bar {
    display: flex;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #2d5016;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background-color: #1e3610;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    flex: 1;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #2d5016;
    background-color: #f9f9f9;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
    text-align: center;
}

.nav-center {
    position: relative;
}

/* Error Container */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.error-container h1 {
    font-size: 72px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.error-container p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

/* Buttons */
.btn-detail,
.btn-add-to-cart,
.btn-edit,
.btn-logout {
    padding: 12px 24px;
    background-color: #2d5016;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-detail:hover,
.btn-add-to-cart:hover,
.btn-edit:hover,
.btn-logout:hover {
    background-color: #1e3610;
}

.btn-add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .search-bar {
        gap: 6px;
    }

    .search-bar input {
        padding: 8px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 8px 12px;
    }
}
