:root {
  color-scheme: light;
  --site-primary: #67452f;
  --site-on-primary: #ffffff;
  --site-secondary: #e8ded2;
  --site-on-secondary: #2a211b;
  --site-background: #f8f6f2;
  --site-on-background: #29231f;
  --site-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-font-heading: Georgia, "Times New Roman", serif;
  --site-heading-scale: 1;
  --site-spacing-scale: 1;
  --site-radius-scale: 1;
  --site-decoration-opacity: 1;
  --muted: #786f68;
  --line: #e4ddd5;
  --surface: #ffffff;
}
* { box-sizing: border-box; }
html { background: var(--site-background); }
body { margin: 0; font-family: var(--site-font-body); color: var(--site-on-background); background: var(--site-background); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100vh; width: 100%; background-color: var(--site-background); color: var(--site-on-background); border-radius: 0; }
.hero { color: #fff; min-height: 300px; display: grid; place-items: center; text-align: center; padding: calc(44px * var(--site-spacing-scale)) 20px; background: linear-gradient(180deg, rgba(20,13,9,.62), rgba(20,13,9,.48) 50%, rgba(20,13,9,.68)), url('https://images.unsplash.com/photo-1573227896778-8f378c4029d4?auto=format&fit=crop&w=2000&q=80') center 55% / cover no-repeat, linear-gradient(115deg, #241913 0%, #67452f 46%, #211914 100%); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.brand { font-family: var(--site-font-heading); font-size: clamp(2.15rem, 5vw, calc(4.4rem * var(--site-heading-scale))); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 18px; }
.phone { display: inline-flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.phone svg { width: 1.05em; height: 1.05em; flex: none; }
.phone:hover { text-decoration: underline; }
.tagline { color: #f0e2d3; margin: 14px 0 0; font-size: .93rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-bar { background: #2a211b; color: #f2e8dd; padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; font-size: .9rem; }
.admin-bar strong { color: #fff; }
.admin-bar .status { color: #d9c7b5; }
.admin-bar .status.dirty { color: #ffc98a; font-weight: 650; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions button { border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 650; }
.publish-btn { background: #e5b57a; color: #2a211b; }
.reset-btn { background: transparent; color: #f2e8dd; border: 1px solid #6b5a4c !important; }
main { max-width: 1600px; margin: 0 auto; padding: calc(24px * var(--site-spacing-scale)) 24px 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eyebrow { color: var(--site-primary); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 750; margin: 0 0 8px; }
h2 { font-family: var(--site-font-heading); font-size: calc(2rem * var(--site-heading-scale)); font-weight: 500; letter-spacing: -.025em; margin: 0; }
.subtext { color: var(--muted); margin: 9px 0 0; max-width: 650px; line-height: 1.55; }
.primary-btn, .secondary-btn, .category-btn, .delete-btn { border: 0; border-radius: calc(10px * var(--site-radius-scale)); transition: transform .15s ease, background .15s ease; }
.primary-btn { background: var(--site-primary); color: var(--site-on-primary); padding: 12px 17px; font-weight: 650; box-shadow: 0 5px 16px rgba(63,38,22,.13); }
.primary-btn:hover { background: #4e3323; transform: translateY(-1px); }
.secondary-btn { background: var(--site-secondary); color: var(--site-on-secondary); padding: 10px 14px; font-weight: 600; }
.category-bar { display: flex; gap: 9px; overflow-x: auto; padding: 4px 1px 18px; margin-bottom: 8px; scrollbar-width: thin; }
.category-btn { white-space: nowrap; padding: 10px 17px; background: #eee9e3; color: #55483e; border: 1px solid transparent; }
.category-btn:hover { border-color: #c8b7a7; }
.category-btn.active { background: var(--site-primary); color: var(--site-on-primary); }
.toolbar { display: flex; gap: 12px; margin: 0 0 22px; align-items: center; }
.search { flex: 1; min-width: 140px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--site-on-background); outline-color: var(--site-primary); }
.count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: calc(14px * var(--site-radius-scale)); background: var(--surface); min-width: 0; box-shadow: 0 5px 18px rgba(48,35,24,.035); }
.product-photo { height: 205px; width: 100%; object-fit: cover; display: block; background: #e8dfd4; }
.photo-placeholder { height: 205px; display: grid; place-items: center; color: #8a7766; background: linear-gradient(135deg, #e9dfd4, #d8c6b4); }
.photo-placeholder svg { width: 50px; height: 50px; opacity: .75; }
.badge { position: absolute; top: 10px; left: 10px; background: #8b2e1f; color: #fff; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }
.card.sold-out .product-photo, .card.sold-out .photo-placeholder { filter: grayscale(.7); opacity: .7; }
.card.sold-out .detail-qty strong { color: #8b2e1f; }
.card-body { padding: 16px; }
.type-line { font-size: .74rem; text-transform: uppercase; letter-spacing: .11em; color: var(--site-primary); font-weight: 750; margin: 0 0 8px; }
.product-title { font-family: var(--site-font-heading); font-size: 1.35rem; font-weight: 500; margin: 0 0 12px; overflow-wrap: anywhere; }
.details { display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.detail { display: flex; justify-content: space-between; gap: 12px; }
.detail strong { color: var(--site-on-background); font-weight: 600; text-align: right; }
.price-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 13px; font-weight: 700; color: var(--site-primary); font-size: .93rem; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions a, .card-actions button { flex: 1; text-align: center; text-decoration: none; font-size: .84rem; padding: 10px 8px; border-radius: 8px; }
.call-btn { background: var(--site-primary); color: #fff; border: 0; font-weight: 650; }
.edit-btn { background: var(--site-secondary); color: var(--site-on-secondary); border: 0; font-weight: 600; }
.delete-btn { background: transparent; border: 1px solid var(--line); color: #77675b; }
.empty { grid-column: 1/-1; border: 1px dashed #cbbdaf; border-radius: 14px; padding: 52px 22px; text-align: center; color: var(--muted); background: rgba(255,255,255,.42); }
.empty h3 { color: var(--site-on-background); font-family: var(--site-font-heading); font-size: 1.6rem; font-weight: 500; margin: 0 0 8px; }
.empty p { max-width: 500px; margin: 0 auto 18px; line-height: 1.6; }
footer { border-top: 1px solid var(--line); padding: 22px; text-align: center; color: var(--muted); font-size: .88rem; }
footer a { color: var(--site-primary); text-decoration: none; font-weight: 650; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10; padding: 18px; overflow-y: auto; background: rgba(26,19,14,.62); align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { width: min(600px, 100%); max-height: 94vh; overflow-y: auto; background: var(--surface); color: var(--site-on-background); border-radius: 16px; padding: 24px; box-shadow: 0 20px 80px rgba(0,0,0,.22); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.modal-head h3 { font-family: var(--site-font-heading); font-size: 1.8rem; font-weight: 500; margin: 0; }
.close-btn { background: transparent; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font-size: 1.2rem; color: var(--site-on-background); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: .88rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--site-background); color: var(--site-on-background); border-radius: 9px; padding: 11px 12px; }
.field textarea { min-height: 86px; resize: vertical; }
.field small { color: var(--muted); line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.preview { width: 100%; max-height: 170px; object-fit: cover; border-radius: 9px; display: none; }
.notice { margin-top: 18px; border-radius: 10px; background: #f3ece4; color: #65452e; padding: 12px 14px; font-size: .86rem; line-height: 1.5; }
.notice a { color: inherit; font-weight: 700; }
@media (max-width: 1250px) { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .hero { min-height: 230px; } main { padding: 26px 16px 44px; } .admin-bar { padding: 12px 16px; } .section-head { align-items: start; flex-direction: column; } .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .product-photo, .photo-placeholder { height: 150px; } .card-body { padding: 12px; } .product-title { font-size: 1.15rem; } .detail { flex-direction: column; gap: 2px; } .detail strong { text-align: left; } .card-actions { flex-direction: column; } }
@media (max-width: 430px) { .grid { grid-template-columns: 1fr; } .product-photo, .photo-placeholder { height: 220px; } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .toolbar { flex-wrap: wrap; } .count { width: 100%; } }
