:root { --brand: #f47b20; --ink: #1e2328; }
html { scroll-behavior: smooth; }
.header-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.header-icon:hover { color: var(--brand); }
.badge { position: absolute; top: -8px; right: 10px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 639px) { .badge { right: -8px; } }
.nav-link { display: block; padding: 14px 6px; position: relative; }
.nav-link:hover { color: var(--brand); }
.category-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; background: #f3f4f6; border-radius: 4px; padding: 10px 6px 12px; height: 100%; text-align: center; font-size: 11.5px; line-height: 1.25; transition: .2s; }
.category-tile:hover { background: #fff3ea; box-shadow: 0 0 0 1px var(--brand) inset; }
.product-card { border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s; overflow: hidden; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.btn-primary { background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; height: 36px; border-radius: 3px; transition: background .15s; }
.btn-primary:hover { background: #dc6812; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: #fff; border: 1px solid #d1d5db; font-weight: 600; font-size: 13px; height: 36px; padding: 0 14px; border-radius: 4px; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.fav-btn { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #6b7280; transition: .15s; }
.fav-btn:hover, .fav-btn.active { color: #e11d48; }
.promo-banner { position: relative; background-size: cover; background-position: center; min-height: 190px; border-radius: 2px; overflow: hidden; color: #fff; }
.promo-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,25,.92) 0%, rgba(20,22,25,.65) 45%, rgba(20,22,25,0) 80%); }
.promo-content { position: relative; padding: 20px 22px; max-width: 70%; }
.promo-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 2px; margin-top: 12px; }
.promo-btn:hover { background: var(--brand); color: #fff; }
.footer-title { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
#site-footer a:hover { color: var(--brand); }
.social-btn { width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.social-btn:hover { background: var(--brand); color: #fff !important; }
.fr-flag { width: 18px; height: 12px; background: linear-gradient(90deg, #002395 33%, #fff 33% 66%, #ed2939 66%); display: inline-block; }
.input { width: 100%; height: 40px; border: 1px solid #d1d5db; border-radius: 4px; padding: 0 12px; font-size: 14px; background: #fff; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
textarea.input { height: auto; padding: 8px 12px; }
.field { display: block; font-size: 13px; font-weight: 600; color: #374151; }
.field .input { margin-top: 4px; font-weight: 400; }
.filter-box { border: 1px solid #e5e7eb; border-radius: 6px; padding: 16px; }
.filter-title { font-weight: 700; margin-bottom: 10px; }
.filter-link { display: block; padding: 4px 8px; border-radius: 4px; }
.filter-link:hover, .filter-link.active { background: #fff3ea; color: var(--brand); }
.qty-box { display: flex; border: 1px solid #d1d5db; border-radius: 4px; overflow: hidden; height: 48px; }
.qty-box button { width: 38px; font-size: 18px; background: #f9fafb; }
.qty-box button:hover { background: #fff3ea; color: var(--brand); }
.qty-box input { width: 50px; text-align: center; border: 0; font-weight: 600; -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-box.sm { height: 34px; } .qty-box.sm button { width: 30px; } .qty-box.sm input { width: 40px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 10px; }
.toast.error { background: #dc2626; }
.cat-dropdown { z-index: 50; }

/* Admin */
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 22px; font-size: 14px; border-left: 3px solid transparent; }
.admin-nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav-link.active { background: rgba(244,123,32,.12); color: #fff; border-left-color: var(--brand); }
.nav-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid #eceef1; }
.stat-card { padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.data-table { width: 100%; font-size: 13.5px; }
.data-table th { text-align: left; font-weight: 600; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 12px 14px; background: #f9fafb; border-bottom: 1px solid #eceef1; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; }
.data-table tr:hover td { background: #fcfcfd; }
.icon-btn { width: 32px; height: 32px; border-radius: 6px; display: inline-grid; place-items: center; color: #6b7280; }
.icon-btn:hover { background: #f3f4f6; color: var(--ink); }
.icon-btn.danger:hover { background: #fee2e2; color: #dc2626; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-gray { background: #f3f4f6; color: #4b5563; } .pill-orange { background: #ffedd5; color: #c2410c; }
.pill-blue { background: #dbeafe; color: #1d4ed8; } .pill-green { background: #dcfce7; color: #15803d; }
.pill-red { background: #fee2e2; color: #b91c1c; } .pill-purple { background: #ede9fe; color: #6d28d9; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,17,20,.55); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 720px; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid #eceef1; display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid #eceef1; display: flex; justify-content: flex-end; gap: 10px; }
