:root {
    --primary: #7c2d12;
    --secondary: #f97316;
    --dark: #111827;
    --muted: #6b7280;
    --light: #fff7ed;
    --white: #ffffff;
    --border: #e5e7eb;
    --danger: #b91c1c;
    --success: #047857;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--dark);
    background: #fafafa;
}

a { color: inherit; text-decoration: none; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 7%;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.8px;
}
.logo span { color: var(--secondary); }

nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

nav a { color: var(--dark); font-weight: 600; }

.btn-small, .btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    display: inline-block;
}

.hero {
    min-height: 500px;
    background: radial-gradient(circle at top left, #fed7aa, transparent 30%),
                linear-gradient(135deg, #fff7ed, #ffffff);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: 70px 7%;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: .95;
    margin: 0 0 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 19px;
    color: var(--muted);
    max-width: 640px;
}

.hero-card {
    background: white;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.container {
    padding: 45px 7%;
}

.section-title {
    font-size: 36px;
    margin: 0 0 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #f3f4f6;
}

.card-body { padding: 18px; }
.card h3 { margin: 0 0 8px; }
.price { font-weight: 900; color: var(--primary); }
.htg { color: var(--muted); font-size: 14px; }

.form-box {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 45px rgba(0,0,0,.06);
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 8px 0 16px;
    font-size: 15px;
}

textarea { min-height: 120px; }

.alert {
    padding: 13px;
    border-radius: 14px;
    margin: 10px 0;
}

.alert-danger { background: #fee2e2; color: var(--danger); }
.alert-success { background: #d1fae5; color: var(--success); }

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
}

.table th, .table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 80vh;
}

.sidebar {
    background: #111827;
    color: white;
    padding: 30px;
}

.sidebar a {
    display: block;
    padding: 12px 0;
    color: white;
}

.admin-content {
    padding: 35px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.danger { color: var(--danger); font-weight: 800; }

.cart-row {
    display: grid;
    grid-template-columns: 90px 1fr 130px 100px;
    gap: 15px;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

.cart-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
}

.site-footer {
    margin-top: 60px;
    padding: 35px 7%;
    background: #111827;
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 900px) {
    .hero, .admin-layout { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .cart-row { grid-template-columns: 70px 1fr; }
}

@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
    .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
}


.notif-wrapper {
    position: relative;
    margin-left: 15px;
}

.notif-icon {
    cursor: pointer;
    font-size: 20px;
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    padding: 15px;
    z-index: 999;
}

.notif-dropdown h4 {
    margin-bottom: 10px;
}

.notif-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.notif-item.unread {
    background: #fff7ed;
}

.notif-item p {
    margin: 4px 0;
    font-size: 13px;
}

.notif-view-all {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #ea580c;
}
