:root {
  --ink: #1a1a1a;
  --paper: #faf9f7;
  --sand: #efe9e1;
  --line: #e3ddd3;
  --accent: #b5651d;
  --accent-dark: #8f4e15;
  --muted: #6b6459;
  --danger: #b3261e;
  --success: #2e6b40;
  --radius: 6px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; }
body { margin:0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height:1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display:block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight:700; margin:0 0 12px; }
button, .btn { font-family: var(--font-body); cursor:pointer; }

.announce-bar { background: var(--ink); color:#fff; text-align:center; font-size:13px; padding:8px 12px; }

.site-header { border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:50; }
.header-inner { display:flex; align-items:center; gap:24px; padding:16px 20px; }
.brand-text { font-family: var(--font-display); font-size:26px; font-weight:700; }
.brand img { height:42px; }
.main-nav { display:flex; gap:22px; margin-left:12px; flex:1; }
.main-nav a { font-weight:500; font-size:15px; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display:flex; align-items:center; gap:16px; }
.search-form input { border:1px solid var(--line); border-radius: var(--radius); padding:8px 12px; width:200px; font-size:14px; }
.cart-link { position:relative; font-weight:600; }
.cart-badge { background: var(--accent); color:#fff; border-radius:50%; font-size:11px; padding:1px 6px; margin-left:4px; }
.nav-toggle { display:none; background:none; border:none; font-size:22px; }

.flash { margin:16px 0; padding:12px 16px; border-radius: var(--radius); font-size:14px; }
.flash-success { background:#e6f4ea; color: var(--success); border:1px solid #bfe3cc; }
.flash-error { background:#fbeaea; color: var(--danger); border:1px solid #f3caca; }
.flash-info { background:#eaf1fb; color:#25507d; border:1px solid #cddffa; }

/* Hero / banners */
.hero { position:relative; background:var(--sand); overflow:hidden; }
.hero-slide { display:flex; align-items:center; min-height:420px; background-size:cover; background-position:center; }
.hero-content { padding:60px; background: rgba(250,249,247,0.88); max-width:480px; border-radius: var(--radius); margin-left:40px; }
.hero-content h1 { font-size:40px; }
.hero-content p { color: var(--muted); margin-bottom:20px; }

.btn-primary { display:inline-block; background: var(--ink); color:#fff; padding:12px 28px; border-radius: var(--radius); font-weight:600; border:none; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { display:inline-block; background:transparent; color:var(--ink); padding:11px 26px; border-radius: var(--radius); font-weight:600; border:1px solid var(--ink); }
.btn-wa { display:inline-flex; align-items:center; gap:8px; background:#25D366; color:#fff; padding:12px 26px; border-radius: var(--radius); font-weight:600; border:none; }

/* Sections */
.section { padding:56px 0; }
.section-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:28px; }
.section-head p { color: var(--muted); margin:0; }

.cat-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:18px; }
.cat-card { position:relative; border-radius: var(--radius); overflow:hidden; aspect-ratio:1/1; background:var(--sand); }
.cat-card img { width:100%; height:100%; object-fit:cover; }
.cat-card span { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,.6)); color:#fff; padding:14px; font-weight:600; }

.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:24px; }
.product-card { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:#fff; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.product-thumb { aspect-ratio:3/4; background:var(--sand); overflow:hidden; }
.product-thumb img { width:100%; height:100%; object-fit:cover; }
.product-info { padding:14px; }
.product-info h3 { font-size:15px; margin:0 0 6px; font-family:var(--font-body); font-weight:600; }
.product-price { font-weight:700; }
.badge-featured { position:absolute; background:var(--accent); color:#fff; font-size:11px; padding:3px 8px; border-radius:20px; margin:8px; }
.stock-out { color: var(--danger); font-size:12px; font-weight:600; }

.filters-bar { display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-bottom:24px; }
.filters-bar select, .filters-bar input { padding:8px 10px; border:1px solid var(--line); border-radius: var(--radius); }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:6px 14px; border-radius:20px; border:1px solid var(--line); font-size:13px; }
.chip.active { background: var(--ink); color:#fff; border-color: var(--ink); }

/* Product detail */
.pdp { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; }
.pdp-gallery-main { border-radius: var(--radius); overflow:hidden; aspect-ratio:3/4; background:var(--sand); margin-bottom:10px; }
.pdp-gallery-main img { width:100%; height:100%; object-fit:cover; }
.pdp-thumbs { display:flex; gap:8px; }
.pdp-thumbs img { width:64px; height:80px; object-fit:cover; border-radius:4px; border:1px solid var(--line); cursor:pointer; }
.pdp-info h1 { font-size:30px; }
.pdp-price { font-size:22px; font-weight:700; margin-bottom:16px; }
.option-group { margin-bottom:18px; }
.option-group label.label { display:block; font-weight:600; margin-bottom:8px; font-size:13px; text-transform:uppercase; letter-spacing:.04em; }
.option-btn { display:inline-block; padding:8px 16px; border:1px solid var(--line); border-radius: var(--radius); margin:0 8px 8px 0; cursor:pointer; background:#fff; }
.option-btn.selected { border-color: var(--ink); background: var(--ink); color:#fff; }
.option-btn.disabled { opacity:.35; pointer-events:none; text-decoration:line-through; }
.qty-row { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.qty-row input { width:60px; text-align:center; padding:8px; border:1px solid var(--line); border-radius: var(--radius); }
.qty-btn { width:34px; height:34px; border:1px solid var(--line); background:#fff; border-radius: var(--radius); font-size:16px; }
.pdp-actions { display:flex; gap:12px; flex-wrap:wrap; }
.pdp-desc { margin-top:30px; color: var(--muted); }

/* Cart */
.cart-table { width:100%; border-collapse:collapse; }
.cart-table th { text-align:left; font-size:12px; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--line); padding:10px 8px; }
.cart-table td { padding:14px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.cart-item-thumb { width:64px; height:80px; object-fit:cover; border-radius:4px; }
.cart-summary { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:24px; }
.summary-row { display:flex; justify-content:space-between; margin-bottom:10px; font-size:14px; }
.summary-row.total { font-weight:700; font-size:18px; border-top:1px solid var(--line); padding-top:12px; margin-top:8px; }
.remove-link { color: var(--danger); font-size:13px; }
.qty-input-small { width:56px; padding:6px; border:1px solid var(--line); border-radius:4px; }

/* Forms */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:11px 12px; border:1px solid var(--line); border-radius: var(--radius); font-family:var(--font-body); font-size:14px;
}
.form-group textarea { resize:vertical; }

.empty-state { text-align:center; padding:80px 20px; color: var(--muted); }

/* WhatsApp float button */
.wa-float { position:fixed; bottom:24px; right:24px; background:#25D366; width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.25); z-index:60; }

/* Footer */
.site-footer { background: var(--ink); color:#d8d3c9; margin-top:60px; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; padding:50px 20px; }
.site-footer h3, .site-footer h4 { color:#fff; }
.site-footer p { color:#b8b2a5; font-size:14px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom:8px; font-size:14px; }
.site-footer a:hover { color:#fff; }
.socials { display:flex; gap:14px; margin-top:12px; font-size:13px; }
.footer-bottom { border-top:1px solid #333; padding:16px 20px; font-size:12px; color:#8a8377; }

/* Simple page content */
.page-content { max-width:800px; margin:0 auto; padding:50px 20px; }
.page-content h1 { margin-bottom:20px; }

/* Auth/admin shared */
.auth-wrap { max-width:400px; margin:80px auto; background:#fff; border:1px solid var(--line); border-radius:8px; padding:36px; }
.auth-wrap h1 { font-size:24px; text-align:center; }

table.data-table { width:100%; border-collapse:collapse; background:#fff; }
table.data-table th { background:#f3f1ec; text-align:left; padding:10px 12px; font-size:12px; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--line); }
table.data-table td { padding:10px 12px; border-bottom:1px solid var(--line); font-size:14px; }
.status-pill { padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; display:inline-block; }
.status-pending { background:#fff3cd; color:#7a5a00; }
.status-confirmed, .status-paid { background:#e6f4ea; color:#2e6b40; }
.status-processing { background:#e3edfb; color:#25507d; }
.status-shipped { background:#e6e0f7; color:#4b2e8f; }
.status-delivered { background:#dff5e5; color:#1e6b3a; }
.status-cancelled, .status-unpaid { background:#fbeaea; color:#b3261e; }
.status-partial { background:#fdeecb; color:#8a5a00; }

@media (max-width: 900px) {
  .pdp { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .main-nav { position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; padding:16px 20px; border-bottom:1px solid var(--line); display:none; }
  .main-nav.open { display:flex; }
  .nav-toggle { display:block; }
  .search-form { display:none; }
  .form-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-content { margin:20px; padding:30px; }
}
