:root {
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --green: #1a472a;
    --burgundy: #722f37;
    --sand: #e8e0d5;
    --cream: #f5f0e8;
}

* { box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; background: #fff; color: #333; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 0; background: #fff; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid rgba(201,162,39,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo:hover { color: var(--gold); }
.logo-wrap .logo-img { height: 2.25rem; width: auto; max-width: 3rem; object-fit: contain; vertical-align: middle; }
.site-footer .footer-logo-img { height: 1.75rem; width: auto; max-width: 2.5rem; object-fit: contain; vertical-align: middle; }
.site-footer .footer-logo { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.35rem; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; color: #333; font-weight: 500; font-size: 0.9rem; }
nav a:hover, nav a.active { color: var(--gold); }
.cart-link { position: relative; }
.badge { position: absolute; top: -0.5rem; right: -0.75rem; background: var(--gold); color: var(--green); font-size: 0.7rem; font-weight: 700; border-radius: 9999px; width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center; }

.site-footer { border-top: 1px solid rgba(201,162,39,0.3); background: var(--green); color: var(--gold-light); padding: 2rem; margin-top: auto; text-align: center; }
.footer-logo { font-size: 1.25rem; font-weight: 700; color: var(--gold); margin: 0; }
.footer-text { font-size: 0.875rem; margin: 0.5rem 0 0; opacity: 0.9; }

.page-title { font-size: 1.875rem; color: var(--green); margin-bottom: 2rem; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: #fff; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--sand); text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s, border-color 0.2s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: rgba(201,162,39,0.4); }
.product-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product-card .no-img { width: 100%; aspect-ratio: 4/5; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.product-card .info { padding: 1rem; }
.product-card .name { font-size: 1.1rem; color: var(--green); margin: 0.25rem 0; font-weight: 700; }
.product-card .price { font-weight: 600; color: var(--green); }
.product-card { position: relative; }
.out-of-stock-badge { position: absolute; top: 0.5rem; right: 0.5rem; background: #b91c1c; color: #fff; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: #666; }

.pagination-wrap { margin-top: 2.5rem; margin-bottom: 2rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.pagination-info { font-size: 1rem; color: var(--green); font-weight: 600; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--sand); border-radius: 0.5rem; color: var(--green); text-decoration: none; font-size: 1.25rem; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.pagination-btn:hover:not(.disabled) { background: var(--cream); border-color: var(--gold); color: var(--gold); }
.pagination-btn.disabled { color: #999; cursor: not-allowed; }
