/* ShopEase storefront styles */
:root {
  --brand: #f25c05;
  --brand-dark: #c84a00;
  --ink: #1d2433;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --ok: #12805c;
  --warn: #b54708;
  --bad: #c0392b;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { opacity: 0.85; white-space: nowrap; }
.nav a:hover, .nav a.active { opacity: 1; color: #ffd3b8; }
.cart-link { background: var(--brand); padding: 8px 14px; border-radius: 999px; font-weight: 600; opacity: 1 !important; }
.cart-count { background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-size: 13px; }

/* hero */
.hero { background: linear-gradient(120deg, #1d2433 0%, #3a2a5d 55%, #f25c05 140%); color: #fff; padding: 48px 0; }
.hero h1 { font-size: 40px; margin: 0 0 8px; }
.hero p { font-size: 18px; margin: 0; opacity: 0.9; }
.badge-sale { display: inline-block; background: var(--brand); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 20px; }
.search { flex: 1; min-width: 220px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.thumb.Electronics { background: #eef4ff; }
.thumb.Fashion { background: #fdf2fa; }
.thumb.Home { background: #ecfdf3; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.card-body h3 { margin: 0; font-size: 17px; }
.price { font-size: 20px; font-weight: 800; }
.stock { font-size: 13px; color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--bad); }
.card-body .btn { margin-top: auto; }

/* buttons and forms */
.btn { display: inline-block; text-align: center; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { background: #c9ced6; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 13px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; }
textarea { min-height: 80px; }

/* panels and layout */
.page-title { margin: 32px 0 20px; font-size: 28px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } .nav { gap: 12px; font-size: 14px; } }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0 48px; }
.detail .thumb { height: 340px; border-radius: var(--radius); font-size: 140px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { background: #fff; border: 0; width: 34px; height: 34px; font-size: 18px; cursor: pointer; }
.qty span { min-width: 32px; text-align: center; font-weight: 600; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.summary-row { display: flex; justify-content: space-between; margin: 10px 0; }
.summary-row.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 14px; }

/* messages and status */
.msg { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.msg.error { background: #fef3f2; color: var(--bad); border: 1px solid #fecdca; }
.msg.ok { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef4ff; color: #3538cd; }
.status.SHIPPED { background: #fffaeb; color: var(--warn); }
.status.DELIVERED { background: #ecfdf3; color: var(--ok); }
.status.CANCELLED { background: #fef3f2; color: var(--bad); }
.steps { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 90px; text-align: center; padding: 10px 6px; border-radius: 8px; background: #f2f4f7; color: var(--muted); font-size: 13px; font-weight: 600; }
.step.done { background: var(--ok); color: #fff; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
