/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
:root {
  color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  --color-primary: #141313; --color-secondary-pink: #efcbd5; --color-secondary-lilac: #d9d0eb;
  --color-secondary-green: #cadfcf; --color-secondary-blue: #c9e0eb; --color-secondary-yellow: #f3e3a8;
  --color-background: #fff; --color-surface: #f7f6f3; --color-text: #191818; --color-muted: #6f6b68;
  --color-border: #dedbd6; --color-success: #227044; --color-warning: #8a6417; --color-danger: #a1322b;
  --radius-sm: .35rem; --radius-md: .75rem; --radius-lg: 1.25rem;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-6: 3rem; --space-8: 4rem;
  --shadow-soft: 0 12px 34px rgb(24 20 18 / 8%); color: var(--color-text); background: var(--color-surface);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; }
.container { width: min(1080px, calc(100% - 2rem)); margin: 3rem auto; }
.navbar { min-height: 64px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-bottom: 1px solid #ddd5c8; }
.navbar nav { display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.link-button { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.hero { max-width: 680px; padding: 4rem 0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1; margin: .4rem 0 1.4rem; }
.eyebrow { color: #8b3f27; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.flash { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: .35rem; background: #e8e1d5; transition: opacity 250ms ease, transform 250ms ease; }
.flash--leaving { opacity: 0; transform: translateY(-4px); }
.flash--alert { background: #f7d9d4; }
@media (prefers-reduced-motion: reduce) { .flash { transition: none; } }
.admin-shell { background: #f2f3f5; }
.page-header { max-width: 760px; margin-bottom: 2rem; }
.page-header h1, .detail-heading h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: .35rem 0; }
.form-card, .confirmation-card { padding: clamp(1.25rem, 4vw, 2.5rem); background: #fff; border: 1px solid #ddd5c8; border-radius: .75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.form-grid__full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .35rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #b9b1a5; border-radius: .35rem; background: #fff; font: inherit; }
.button { display: inline-block; width: auto; padding: .7rem 1rem; border: 0; border-radius: .35rem; color: #fff; background: #723620; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button--danger { background: #9c2d25; }
.form-errors { margin-bottom: 1.5rem; padding: 1rem; border-radius: .35rem; background: #f7d9d4; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #ccc; }
.tabs a { padding: .7rem 1rem; text-decoration: none; }
.tabs a.active { border-bottom: 3px solid #723620; font-weight: 700; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: .5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid #e5e5e5; text-align: left; }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 2rem 0; }
.actions { display: flex; gap: .6rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail-grid > div { padding: 1.5rem; background: #fff; border-radius: .5rem; }
dt { font-weight: 700; }
dd { margin: 0 0 .8rem; }
.timeline { padding-left: 1.2rem; }
@media (max-width: 700px) { .form-grid, .detail-grid { grid-template-columns: 1fr; } .detail-heading { display: block; } .actions { margin-top: 1rem; flex-wrap: wrap; } .navbar { padding: .8rem 1rem; align-items: flex-start; } .navbar nav { flex-wrap: wrap; justify-content: flex-end; } }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.metrics article { padding: 1.25rem; border-radius: .5rem; background: #fff; }
.metrics span, .stock-number span { display: block; color: #68615a; }
.metrics strong, .stock-number strong { display: block; font-size: 2.4rem; line-height: 1.1; }
.badge { display: inline-block; padding: .18rem .5rem; border-radius: 999px; background: #e8e1d5; font-size: .8rem; font-weight: 700; }
.badge--in_stock { color: #195f3d; background: #d8eee2; }
.badge--low_stock { color: #76520d; background: #f8e9b8; }
.badge--out_of_stock { color: #8d281f; background: #f7d9d4; }
.quantity { color: #9c2d25; font-weight: 700; }
.quantity--positive { color: #227044; }
.stock-number { min-width: 150px; padding: 1rem 1.5rem; border-radius: .5rem; background: #fff; text-align: center; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.checkbox label { margin: 0; }
small { color: #68615a; }
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inline-form { display: flex; align-items: center; gap: .5rem; }
.inline-form input, .inline-form select { min-width: 90px; }
.button--small { padding: .45rem .65rem; }
.cart-actions, .checkout-form, .print-actions { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.order-sheet { padding: 1.5rem; background: #fff; }
@media print { .navbar, .print-actions, .flash { display: none !important; } body, .admin-shell { background: #fff; } .container { width: 100%; margin: 0; } .order-sheet { padding: 0; } }
.dashboard-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dashboard-cards article, .compact-metrics article, .chart-card, .ranking-card { padding: 1.25rem; border: 1px solid #e1ddd6; border-radius: .65rem; background: #fff; }
.dashboard-cards span, .compact-metrics span { display: block; min-height: 3rem; color: #68615a; }
.dashboard-cards strong, .compact-metrics strong { display: block; margin: .2rem 0; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.1; }
.dashboard-cards a { font-size: .9rem; }
.dashboard-section { margin-top: 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: 0; }
.dashboard-note { padding: .4rem .7rem; border-radius: .35rem; color: #76520d; background: #f8e9b8; font-weight: 700; }
.charts-grid, .rankings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chart-card h3, .ranking-card h3 { margin-top: 0; }
.bar-chart { display: grid; gap: .6rem; }
.bar-row { display: grid; grid-template-columns: 6.5rem minmax(80px, 1fr) 7rem; align-items: center; gap: .7rem; font-size: .82rem; }
.bar-row div { height: .75rem; overflow: hidden; border-radius: 999px; background: #eeeae4; }
.bar-row i { display: block; min-width: 0; height: 100%; border-radius: inherit; background: #8b3f27; }
.bar-row strong { text-align: right; white-space: nowrap; }
.compact-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ranking-card { padding: 0; overflow: hidden; }
.ranking-card h3 { padding: 1.25rem 1.25rem 0; }
.ranking-card th, .ranking-card td { padding: .7rem .8rem; font-size: .85rem; }
.inactive-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.inactive-list li { padding: .45rem .7rem; border-radius: 999px; background: #fff; border: 1px solid #ddd5c8; }
.dashboard-updated { margin-top: 2rem; color: #68615a; font-size: .85rem; }
@media (max-width: 900px) { .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charts-grid, .rankings-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dashboard-cards, .compact-metrics { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 5rem minmax(50px, 1fr) 5.8rem; } .section-heading { display: block; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ai-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 10rem); overflow: hidden; border: 1px solid #ddd5c8; border-radius: .8rem; background: #fff; }
.ai-sidebar { padding: 1rem; border-right: 1px solid #ddd5c8; background: #f8f5ef; }
.ai-sidebar .button { width: 100%; text-align: center; }
.ai-sidebar h2 { margin: 1.5rem .4rem .6rem; font-size: .8rem; color: #68615a; text-transform: uppercase; letter-spacing: .1em; }
.conversation-list { display: grid; gap: .7rem; margin-top: 1rem; }
.conversation-card { display: block; padding: .75rem; overflow: hidden; border-radius: .45rem; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.conversation-card:hover, .conversation-card.active { background: #e8e1d5; }
.conversation-card strong, .conversation-card span { display: block; overflow: hidden; text-overflow: ellipsis; }
.conversation-card span { margin-top: .2rem; color: #68615a; font-size: .82rem; }
.ai-all-link { display: block; margin: 1rem .75rem; font-size: .85rem; }
.ai-chat { display: flex; min-width: 0; flex-direction: column; }
.ai-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #eee8df; }
.ai-chat__header h1 { max-width: 680px; margin: .15rem 0 0; overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat__header .eyebrow { margin: 0; font-size: .7rem; }
.ai-thread { display: grid; align-content: start; flex: 1; gap: 1rem; min-height: 420px; padding: 1.5rem; background: #fcfbf8; }
.ai-welcome { align-self: center; max-width: 680px; margin: auto; text-align: center; }
.ai-welcome h2 { margin-bottom: .3rem; }
.prompt-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.25rem; }
.prompt-examples button { padding: .55rem .75rem; border: 1px solid #cfc5b8; border-radius: 999px; color: #4d4137; background: #fff; cursor: pointer; }
.prompt-examples button:hover { border-color: #8b3f27; }
.ai-message { max-width: 82%; padding: 1rem 1.25rem; border-radius: .75rem .75rem .75rem .15rem; background: #fff; border: 1px solid #ddd5c8; box-shadow: 0 2px 8px rgb(60 45 32 / 5%); }
.ai-message--user { justify-self: end; border-radius: .75rem .75rem .15rem .75rem; color: #fff; background: #723620; border-color: #723620; }
.ai-message--user small { color: #f3dfd6; }
.ai-message p:last-child { margin-bottom: 0; }
.ai-references { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0 .4rem; }
.ai-references span { padding: .2rem .45rem; border-radius: .3rem; color: #59483a; background: #eee8df; font-size: .75rem; font-weight: 700; }
.ai-composer { position: sticky; bottom: 0; padding: 1rem 1.5rem; background: #fff; border-top: 1px solid #ddd5c8; }
.ai-composer textarea { resize: vertical; }
.ai-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .65rem; }
.ai-chat__footer { padding: 0 1.5rem 1rem; color: #80766d; background: #fff; font-size: .75rem; text-align: right; }
@media (max-width: 760px) { .ai-layout { grid-template-columns: 1fr; } .ai-sidebar { display: flex; align-items: center; gap: 1rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid #ddd5c8; } .ai-sidebar h2, .ai-sidebar .active, .ai-all-link { display: none; } .ai-sidebar .button { width: auto; white-space: nowrap; } .ai-sidebar .conversation-card { min-width: 150px; } .ai-message { max-width: 94%; } }
.image-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-2); }.image-admin-grid article { padding: var(--space-2); background: #fff; }.image-admin-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .image-admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .image-admin-grid { grid-template-columns: 1fr; } }
