:root {
    --green: #256f52;
    --green-dark: #184d39;
    --pink: #f8dbe2;
    --cream: #fff8ed;
    --beige: #f4ead9;
    --text: #25312c;
    --muted: #66736d;
    --line: #e7ded2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(37, 49, 44, .10);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 1rem; padding: .75rem 1rem; background: var(--green-dark); color: white; z-index: 100; }
.skip-link:focus { left: 1rem; }
.notice-bar { background: var(--green-dark); color: white; text-align: center; padding: .55rem 1rem; font-size: .95rem; }
.header-inner, .site-footer { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.brand, .admin-brand { font-weight: 800; font-size: 1.35rem; color: var(--green-dark); }
.main-nav { display: flex; gap: 1rem; font-weight: 700; }
.header-actions, .hero-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.phone-link { color: var(--green-dark); font-weight: 800; }
.button, button { border: 0; border-radius: 999px; padding: .78rem 1.15rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--green); color: white; }
.button.secondary { background: #f07c95; color: white; }
.button.ghost { border: 1px solid var(--line); background: white; color: var(--green-dark); }
.hero-section, .page-hero, .section-block { max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.hero-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 2rem; align-items: center; }
.hero-copy h1, .page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.15; margin: .4rem 0 1rem; letter-spacing: -.04em; }
.eyebrow { color: #b34d64; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.hero-card, .category-card, .product-card, .info-grid article, .admin-card, .admin-panel, .login-card { background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 1.5rem; }
.hero-card { background: linear-gradient(145deg, var(--cream), var(--pink)); }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.section-heading h2 { margin: .25rem 0 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.category-grid, .product-grid, .info-grid, .admin-grid, .form-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.category-card { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; transition: transform .2s ease, border-color .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--green); }
.category-card span, .product-card h3 { font-size: 1.25rem; font-weight: 900; }
.category-card small, .product-card p, .info-grid p { color: var(--muted); }
.soft-bg { max-width: none; background: var(--cream); padding-left: max(1.25rem, calc((100vw - 1180px) / 2)); padding-right: max(1.25rem, calc((100vw - 1180px) / 2)); }
.product-image-placeholder, .detail-image { border-radius: 18px; min-height: 190px; background: linear-gradient(135deg, #fae6ec, #e9f3df); display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.badge { display: inline-flex; margin-top: 1rem; padding: .35rem .7rem; border-radius: 999px; background: var(--pink); color: #943a51; font-size: .82rem; font-weight: 900; }
.price { color: var(--green-dark); font-weight: 900; }
.price.large { font-size: 2rem; }
.site-footer { border-top: 1px solid var(--line); align-items: flex-start; color: var(--muted); padding-bottom: 6rem; }
.mobile-cta { display: none; }
.compact { padding-bottom: 2rem; }
.filter-bar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-bar button { background: var(--beige); color: var(--green-dark); }
.product-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.check-list { padding-left: 1.15rem; }
.lookup-box, .form-steps article { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; }
.lookup-box { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
label { display: grid; gap: .35rem; font-weight: 800; }
input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; font: inherit; }

.admin-body { background: #f6f4ef; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; background: var(--green-dark); color: white; padding: 1.25rem; overflow-y: auto; }
.admin-brand { display: block; color: white; margin-bottom: 1rem; }
.admin-sidebar nav { display: grid; gap: .35rem; }
.admin-sidebar nav a { padding: .8rem .9rem; border-radius: 12px; color: rgba(255,255,255,.9); }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.12); color: white; }
.admin-shell { margin-left: 260px; min-height: 100vh; }
.admin-topbar { min-height: 72px; background: white; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; }
.admin-topbar span { display: block; color: var(--muted); font-size: .9rem; }
.admin-content { padding: 1.5rem; }
.admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.admin-card span { color: #b34d64; font-weight: 900; }
.admin-card h2 { font-size: 1.2rem; }
.status-message, .error-message { border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; background: #eef8ed; color: var(--green-dark); font-weight: 800; }
.error-message { background: #fff1f1; color: #9f2b2b; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(145deg, var(--cream), var(--pink)); padding: 1rem; }
.login-card { width: min(460px, 100%); }
.login-card form { display: grid; gap: 1rem; margin: 1.25rem 0; }

@media (max-width: 900px) {
    .header-inner { align-items: flex-start; flex-direction: column; }
    .main-nav { width: 100%; overflow-x: auto; padding-bottom: .25rem; }
    .hero-section, .product-detail, .lookup-box { grid-template-columns: 1fr; }
    .category-grid, .product-grid, .info-grid, .admin-grid, .form-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sidebar { position: static; width: auto; }
    .admin-shell { margin-left: 0; }
    .admin-topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .header-actions { display: none; }
    .hero-section, .page-hero, .section-block { padding: 2.5rem 1rem; }
    .category-grid, .product-grid, .info-grid, .admin-grid, .form-steps { grid-template-columns: 1fr; }
    .mobile-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
    .mobile-cta a { min-height: 58px; display: grid; place-items: center; font-weight: 900; color: var(--green-dark); }
    .site-footer { flex-direction: column; }
}

.admin-topbar-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.admin-topbar-actions form { margin: 0; }
.stat-card h2 { font-size: 2rem; margin: .25rem 0; color: var(--green-dark); }
.compact-heading { align-items: flex-start; }
.empty-state { margin-top: 1rem; border: 1px dashed var(--line); border-radius: 18px; background: var(--cream); padding: 1.25rem; color: var(--muted); font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: white; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: .85rem; text-align: left; vertical-align: top; }
.admin-table th { color: var(--green-dark); background: var(--cream); font-weight: 900; }
.table-responsive { width: 100%; overflow-x: auto; }

textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; font: inherit; background: white; }
textarea { resize: vertical; }
del { color: var(--muted); font-size: .9em; margin-right: .35rem; }
.admin-form { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.checkbox-group { display: flex; gap: .75rem; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; background: var(--cream); }
.checkbox-label input { width: auto; min-height: auto; }
.form-actions, .table-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.button.small, button.small { min-height: 38px; padding: .5rem .8rem; font-size: .9rem; }
.button.danger, button.danger { background: #fff1f1; color: #9f2b2b; border: 1px solid #f3c7c7; }
.field-error { color: #9f2b2b; font-size: .9rem; }
.muted-text { display: block; color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; border-radius: 999px; padding: .3rem .65rem; font-size: .82rem; font-weight: 900; }
.status-pill.on { background: #e8f6ee; color: var(--green-dark); }
.status-pill.off { background: #f2eee7; color: var(--muted); }
.admin-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: inline-grid; place-items: center; background: var(--cream); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.admin-preview { width: min(220px, 100%); border-radius: 18px; border: 1px solid var(--line); margin-top: .75rem; }
.product-card-image { width: 100%; min-height: 190px; height: 190px; border-radius: 18px; object-fit: cover; background: var(--cream); }
.product-detail-image { width: 100%; min-height: 360px; object-fit: cover; }
.product-description { white-space: normal; }

@media (max-width: 900px) {
    .admin-form-grid { grid-template-columns: 1fr; }
}

.import-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.import-guide article, .import-alert { border: 1px solid var(--line); border-radius: 18px; background: var(--cream); padding: 1rem; }
.import-guide strong { color: var(--green-dark); font-size: 1.05rem; }
.import-guide p { margin: .35rem 0 0; color: var(--muted); }
.import-alert { margin-top: 1rem; font-weight: 800; }
.import-alert.error { background: #fff1f1; border-color: #f3c7c7; color: #9f2b2b; }
.import-preview-panel { margin-top: 1.25rem; }
.import-summary { display: flex; gap: .5rem; flex-wrap: wrap; }
.status-pill.error { background: #fff1f1; color: #9f2b2b; }
.import-row-error td { background: #fffafa; }
.import-errors { margin: 0; padding-left: 1rem; color: #9f2b2b; }
.import-confirm { width: fit-content; max-width: 100%; }
code { background: rgba(37, 111, 82, .08); border-radius: 6px; padding: .1rem .35rem; }

@media (max-width: 900px) {
    .import-guide { grid-template-columns: 1fr; }
}
