:root {
    --bg: #FAFAF7;
    --bg-card: #FFFFFF;
    --bg-warm: #F5F3EE;
    --bg-hero: #1B4332;
    --green: #2D6A4F;
    --green-light: #40916C;
    --green-pale: #D8F3DC;
    --amber: #D4A017;
    --amber-light: #F0D68A;
    --text: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #E5E5E0;
    --border-hover: #C0C0B8;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 6px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text);
    line-height: 1.25;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-light); }

/* ===== HEADER ===== */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img { height: 36px; width: auto; }

.nav { display: flex; gap: 4px; }

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-warm);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.15s;
}

.cart-btn:hover {
    color: var(--green);
    background: var(--green-pale);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--green);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN ===== */
.main { flex: 1; padding: 32px 0; }

/* ===== HERO ===== */
.hero {
    background: var(--bg-hero);
    border-radius: 10px;
    padding: 32px 36px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.hero .btn-primary { position: relative; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-danger {
    background: #DC3545;
    color: white;
}

.btn-danger:hover { background: #C82333; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ===== SECTION ===== */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--green-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info { padding: 16px; }

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--green); }

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.price-old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: var(--bg-warm);
    border-radius: 4px;
    display: inline-block;
}

.badge-hit {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--amber);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.product-detail-image {
    width: 100%;
    height: 440px;
    border-radius: var(--radius);
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--green-light);
    border: 1px solid var(--border);
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.product-detail-info .product-price { margin: 18px 0; }
.product-detail-info .price-current { font-size: 1.6rem; }

.product-detail-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--text);
}

.quantity-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.quantity-input {
    width: 52px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-card);
}

/* ===== CART ===== */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-icon { font-size: 3.5rem; margin-bottom: 12px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-remove {
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.15s;
}

.cart-remove:hover { color: #DC3545; background: #FDE8E6; }

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 12px;
    border-top: 2px solid var(--border);
}

.cart-total-label { font-size: 1.1rem; font-weight: 600; }

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

/* ===== CHECKOUT ===== */
.checkout-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    background: var(--bg-card);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.payment-options { display: flex; gap: 12px; margin-top: 8px; }

.payment-option {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    background: var(--bg-card);
}

.payment-option:has(input:checked) {
    border-color: var(--green);
    background: var(--green-pale);
}

.payment-option input { display: none; }

/* ===== ALERT ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: var(--green-pale);
    color: var(--bg-hero);
    border: 1px solid #B7E4C7;
}

.alert-error {
    background: #FDE8E6;
    color: #842029;
    border: 1px solid #F5C2C7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-hero);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 24px;
}

.footer-logo { margin-bottom: 12px; }

.footer-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    margin-bottom: 14px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    padding: 3px 0;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-col p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ===== ADMIN ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-hero);
    padding: 24px 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
    display: block;
}

.admin-sidebar .logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.5);
    transition: all 0.15s;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: var(--amber);
}

.admin-content {
    padding: 28px;
    background: var(--bg);
}

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

.admin-header h1 { font-size: 1.5rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.stat-card .stat-value.honey { color: var(--amber); }

/* ===== TABLES ===== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; }

th {
    background: var(--bg-warm);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-warm); }

/* ===== ADMIN LOGIN ===== */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-hero);
}

.admin-login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.admin-login-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== ORDER SUCCESS ===== */
.order-success {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.order-success-icon { font-size: 4rem; margin-bottom: 16px; }
.order-success h1 { margin-bottom: 10px; }

.order-success p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* ===== SEARCH ===== */
.search-bar { margin-bottom: 24px; }

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

.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-card);
}

.search-form input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .logo-img { height: 30px; }
    .nav { display: none; }
    .hero { padding: 24px 20px; }
    .hero h1 { font-size: 1.75rem; }
    .hero::after { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-detail-image { height: 280px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-item { flex-wrap: wrap; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card { animation: fadeIn 0.3s ease-out; }
