@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #202c36;
  --muted: #78838a;
  --line: #e8ebea;
  --orange: #e97047;
  --green: #2e9b69;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f6f7f5; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.admin-topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.admin-brand-copy { display: flex; flex-direction: column; gap: 4px; }
.admin-brand-copy strong { font: 800 16px/1.1 "Baloo 2", "Trebuchet MS", sans-serif; letter-spacing: .01em; color: #e85c50; background: linear-gradient(95deg, #ed514f, #167fc0 38%, #f0ad28 68%, #49a35a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.admin-brand-copy small { color: #899194; font-size: 8px; letter-spacing: .16em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.view-store, .logout-button { color: #56636b; font-size: 11px; font-weight: 600; }
.view-store span { color: var(--orange); padding-left: 4px; }
.logout-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.login-view { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px 18px; background: radial-gradient(circle at 15% 14%, #fff0e8 0, transparent 26%), radial-gradient(circle at 90% 90%, #e6f0df 0, transparent 24%), #f6f7f5; }
.login-card { width: min(390px, 100%); padding: 38px; border: 1px solid #eceeea; border-radius: 17px; background: white; box-shadow: 0 20px 60px rgba(32, 44, 54, .08); }
.login-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 14px; background: #fff0e8; color: var(--orange); font-size: 24px; }
.admin-eyebrow { color: #a06b50; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.login-card h1 { margin: 8px 0; font: 800 29px Manrope, sans-serif; letter-spacing: -.06em; }
.login-card > p { margin: 0 0 24px; color: #7d8588; font-size: 11px; line-height: 1.7; }
.login-card label, .product-modal label { display: flex; flex-direction: column; gap: 7px; color: #59646a; font-size: 10px; font-weight: 600; }
.login-card input, .product-modal input, .product-modal select, .product-modal textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dfe4e2; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font-size: 11px; }
.login-card input:focus, .product-modal input:focus, .product-modal select:focus, .product-modal textarea:focus { border-color: #94b5a2; box-shadow: 0 0 0 3px rgba(46, 155, 105, .11); }
.login-card form { display: flex; flex-direction: column; gap: 15px; }
.primary-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--ink); color: white; font-size: 10px; font-weight: 700; transition: background .2s, transform .2s; }
.primary-button:hover { background: #354b5b; transform: translateY(-1px); }
.login-card .primary-button { width: 100%; margin-top: 3px; }
.login-card .primary-button span { font-size: 16px; }
.forgot-password-button { display: block; margin: 13px auto 0; padding: 3px; border: 0; background: transparent; color: #527b91; font-size: 10px; text-decoration: underline; cursor: pointer; }
.login-card > .forgot-password-help { margin: 10px 0 0; color: #82683d; font-size: 9px; line-height: 1.6; }
.login-note { display: block; margin-top: 20px; color: #9aa2a1; text-align: center; font-size: 9px; }
.form-error { margin: 0; color: #b6453f; font-size: 10px; line-height: 1.5; }
.admin-layout { max-width: 1440px; min-height: calc(100vh - 72px); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar { display: flex; flex-direction: column; gap: 5px; padding: 32px 17px; border-right: 1px solid var(--line); background: #fbfcfa; }
.sidebar-label { padding: 0 10px 12px; color: #9aa2a1; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.sidebar-link { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #69747a; text-align: left; font-size: 10px; font-weight: 600; }
.sidebar-link > span { width: 16px; color: #8d999a; font-size: 16px; text-align: center; }
.sidebar-link b { min-width: 19px; margin-left: auto; padding: 3px; border-radius: 9px; background: #edf0ed; color: #75807f; text-align: center; font-size: 8px; }
.sidebar-link.active { background: #fff0e8; color: #a95031; }
.sidebar-link.active > span { color: var(--orange); }
.sidebar-link.active b { background: white; color: #a95031; }
.sidebar-note { display: flex; flex-direction: column; gap: 7px; margin: auto 5px 0; padding: 15px 13px; border-radius: 9px; background: #edf4e9; }
.sidebar-note span { color: #72926a; font-size: 17px; }
.sidebar-note strong { font: 700 10px Manrope, sans-serif; }
.sidebar-note small { color: #788377; font-size: 9px; line-height: 1.6; }
.admin-content { min-width: 0; padding: 35px clamp(22px, 4vw, 55px) 55px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.admin-heading h1 { margin: 6px 0 4px; font: 800 29px Manrope, sans-serif; letter-spacing: -.055em; }
.admin-heading p { margin: 0; color: #818a8d; font-size: 10px; }
.admin-heading > .primary-button { margin-bottom: 1px; }
.admin-page { display: flex; flex-direction: column; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 134px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; overflow: hidden; padding: 17px; border-radius: 10px; }
.stat-card > span { color: #777e7f; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.stat-card strong { color: var(--ink); font: 800 27px Manrope, sans-serif; letter-spacing: -.05em; }
.stat-card small { color: #7a8281; font-size: 9px; }
.stat-card i { position: absolute; right: 12px; top: 10px; color: rgba(36, 54, 60, .12); font-size: 37px; font-style: normal; }
.stat-coral { background: #fff0e8; }
.stat-green { background: #e8f1e4; }
.stat-lavender { background: #eee9f8; }
.stat-yellow { background: #fbf2d9; }
.panel-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 16px; }
.panel-heading h2 { margin: 0 0 5px; font: 700 14px Manrope, sans-serif; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: #8b9394; font-size: 9px; }
.quiet-button { border: 0; background: transparent; color: #596d75; white-space: nowrap; font-size: 9px; font-weight: 700; }
.quiet-button span { color: var(--orange); padding-left: 4px; }
.recent-enquiries { display: flex; flex-direction: column; }
.recent-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr auto; align-items: center; gap: 12px; min-height: 53px; border-top: 1px solid #eff1ef; }
.recent-row strong { display: block; color: #34434c; font-size: 10px; }
.recent-row small { display: block; margin-top: 4px; color: #949c9d; font-size: 8px; }
.recent-products { color: #707b7e; font-size: 9px; }
.recent-time { color: #8c9495; font-size: 8px; }
.top-products { display: grid; }
.top-product-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 43px; border-top: 1px solid #eff1ef; color: #788286; font-size: 9px; }
.top-product-row strong { overflow: hidden; color: #39474e; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.top-product-rank { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #fff0e8; color: #a95031; font-weight: 700; }
.status-pill { width: max-content; padding: 5px 8px; border-radius: 20px; background: #fff2dd; color: #9a6b22; font-size: 8px; font-weight: 700; text-transform: capitalize; }
.status-pill.contacted { background: #e8eefb; color: #5270a4; }
.status-pill.complete { background: #e3f2e8; color: #39815c; }
.no-data { padding: 23px 10px; color: #899192; text-align: center; font-size: 10px; }
.admin-tip { display: flex; gap: 11px; padding: 14px 16px; border-radius: 8px; background: #eef4ed; }
.admin-tip > span { color: #71946c; font-size: 17px; }
.admin-tip strong { font: 700 10px Manrope, sans-serif; }
.admin-tip p { margin: 5px 0 0; color: #798579; font-size: 9px; line-height: 1.6; }
.table-search { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e6e9e7; border-radius: 6px; color: #88908e; }
.table-search input { width: 150px; height: 31px; border: 0; outline: 0; font-size: 9px; }
.table-scroll { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 10px; border-top: 1px solid #eff1ef; border-bottom: 1px solid #eff1ef; color: #98a09f; white-space: nowrap; font-size: 8px; letter-spacing: .09em; }
td { padding: 10px; border-bottom: 1px solid #f0f2f0; color: #677277; vertical-align: middle; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
.product-cell { min-width: 190px; display: flex; align-items: center; gap: 10px; }
.product-cell img { width: 43px; height: 43px; flex: 0 0 43px; object-fit: cover; border-radius: 6px; background: #f2f2ef; }
.product-cell strong { display: block; color: #35444d; font-size: 9px; }
.product-cell small { display: block; margin-top: 4px; color: #98a09f; font-size: 8px; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions button { padding: 6px 8px; border: 1px solid #e7eae8; border-radius: 5px; background: white; color: #536169; font-size: 8px; }
.row-actions button.delete-action { color: #b6544d; }
.availability { display: inline-block; padding: 5px 7px; border-radius: 12px; background: #e5f3e8; color: #438354; font-size: 8px; font-weight: 700; }
.availability.hidden-status { background: #f0f0ee; color: #838b8b; }
#pricing-table input { width: 112px; min-height: 36px; padding: 7px 8px; border: 1px solid #dfe4e2; border-radius: 6px; outline: 0; color: var(--ink); font-size: 10px; }
#pricing-table input:focus { border-color: #94b5a2; box-shadow: 0 0 0 3px rgba(46, 155, 105, .11); }
#pricing-table input:invalid { border-color: #c65b53; }
#pricing-table .pricing-save { min-height: 34px; padding: 0 12px; }
.enquiry-customer { min-width: 125px; }
.enquiry-customer strong { display: block; color: #39474e; font-size: 9px; }
.enquiry-customer a { display: inline-block; margin-top: 4px; color: #3a8a62; font-size: 8px; }
.request-list { min-width: 160px; max-width: 240px; color: #606d70; line-height: 1.6; }
.request-list span { display: block; }
.message-cell { min-width: 150px; max-width: 230px; color: #828b8d; line-height: 1.5; }
.status-select { padding: 6px 7px; border: 1px solid #e4e8e5; border-radius: 5px; background: #fff; color: #546067; font-size: 8px; }
.table-empty { margin: 0; padding: 24px; color: #8b9394; text-align: center; font-size: 10px; }
.admin-message { margin: 0 0 17px; padding: 10px 13px; border-radius: 7px; background: #e9f4e9; color: #3c7954; font-size: 10px; }
.product-modal { width: min(650px, calc(100vw - 24px)); max-width: none; padding: 25px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgba(25, 35, 40, .22); }
.product-modal::backdrop { background: rgba(21, 31, 37, .45); backdrop-filter: blur(2px); }
.modal-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-heading h2 { margin: 5px 0 0; font: 800 20px Manrope, sans-serif; letter-spacing: -.04em; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f0f2ef; color: #667075; font-size: 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-modal label { font-size: 9px; }
.product-modal textarea { resize: vertical; }
.product-modal select[multiple] { min-height: 110px; }
.full-field { grid-column: 1 / -1; }
.active-toggle { grid-column: 1 / -1; flex-direction: row !important; align-items: center; gap: 8px !important; color: #687578 !important; }
.active-toggle input { width: 15px; min-height: 15px; accent-color: var(--green); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 19px; }
.secondary-button { min-height: 39px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #697378; font-size: 10px; }
.product-modal .form-error { margin-top: 12px; }
.admin-toast { position: fixed; z-index: 20; right: 25px; bottom: 24px; max-width: min(360px, calc(100vw - 30px)); padding: 12px 16px; border-radius: 7px; background: var(--ink); color: white; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.admin-toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 950px) {
  .admin-layout { grid-template-columns: 185px minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-row { grid-template-columns: 1fr 1.2fr auto; }
  .recent-time { display: none; }
}
@media (max-width: 680px) {
  .admin-topbar { height: 62px; padding: 0 15px; }
  .admin-logo { width: 48px; height: 48px; }
  .login-view { min-height: calc(100vh - 62px); }
  .login-card { padding: 29px 24px; }
  .admin-layout { display: block; min-height: calc(100vh - 62px); }
  .admin-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 9px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-label, .sidebar-note { display: none; }
  .sidebar-link { justify-content: center; gap: 5px; padding: 0 5px; font-size: 9px; }
  .sidebar-link > span { width: auto; }
  .sidebar-link b { margin: 0; }
  .admin-content { padding: 26px 15px 40px; }
  .admin-heading h1 { font-size: 25px; }
  .admin-heading { align-items: center; }
  .admin-heading > .primary-button { font-size: 9px; padding: 0 10px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 112px; padding: 13px; }
  .stat-card strong { font-size: 24px; }
  .panel-card { padding: 15px 12px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .quiet-button { padding: 0; }
  .recent-row { grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; }
  .recent-products { grid-column: 1; }
  .recent-row .status-pill { grid-column: 2; grid-row: 1 / span 2; }
  .table-search { align-self: stretch; }
  .table-search input { flex: 1; }
  th, td { padding: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field, .active-toggle { grid-column: auto; }
  .product-modal { padding: 20px 15px; }
  .banner-form { grid-template-columns: 1fr; }
  .banner-form .banner-error, .banner-form-actions { grid-column: auto; }
}
.admin-discount { display: block; margin-top: 4px; color: #b94d38; font-size: 8px; }
.order-edit-cell { min-width: 170px; }
.review-admin-copy { display: grid; gap: 5px; min-width: 180px; max-width: 360px; }
.review-admin-copy strong { color: #a06b50; }
.review-admin-copy span { color: #657176; white-space: pre-line; }
.order-edit-cell select, .order-edit-cell input, [data-order-payment] { display: block; width: 100%; margin: 3px 0; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: 8px; }
.row-save, .delete-coupon { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #536169; font-size: 8px; cursor: pointer; }
.delete-coupon { color: #b6544d; }
.inline-admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 4px 0 18px; }
.inline-admin-form label { display: grid; gap: 5px; color: #697274; font-size: 9px; font-weight: 600; }
.inline-admin-form input:not([type="checkbox"]) { width: 150px; min-height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.inline-admin-form .inline-check { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.recovery-email-form input:not([type="checkbox"]) { width: min(320px, calc(100vw - 100px)); }
.settings-help { margin: 0; color: #8b9394; font-size: 9px; line-height: 1.6; }
.banner-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 0 20px; }
.banner-form label { display: grid; gap: 6px; color: #697274; font-size: 9px; font-weight: 600; }
.banner-form input:not([type="checkbox"]) { width: 100%; min-height: 37px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.banner-form input[type="file"] { padding: 6px; }
.banner-form label small { color: #909999; font-size: 8px; font-weight: 400; overflow-wrap: anywhere; }
.banner-form .inline-check { display: flex; align-items: center; gap: 7px; min-height: 37px; }
.banner-form .inline-check input { accent-color: var(--green); }
.banner-form .banner-error, .banner-form-actions { grid-column: 1 / -1; }
.banner-form-actions { display: flex; gap: 8px; }
.banner-thumb { width: 75px; height: 42px; object-fit: cover; border-radius: 5px; background: #f0f2ef; }
.banner-subtitle { display: block; max-width: 260px; margin-top: 4px; color: #929a9a; font-size: 8px; }
.featured-marker { display: inline-block; margin-left: 5px; padding: 3px 5px; border-radius: 8px; background: #fff0e8; color: #a95031; font-size: 7px; vertical-align: middle; }
@media (max-width: 680px) {
  .banner-form { grid-template-columns: 1fr; }
  .banner-form .banner-error, .banner-form-actions { grid-column: auto; }
}
