html { font-size: 14px; }

@media (min-width: 768px) {
  html { font-size: 16px; }
}

:root {
  --leaf: #2f6f3e;
  --leaf-dark: #204d2c;
  --tomato: #b9482f;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --ink: #211f1a;
  --muted: #6f6a5e;
  --line: #e7dfd1;
}

*, *::before, *::after { box-sizing: border-box; }
html { position: relative; min-height: 100%; }
body { position: relative; color: var(--ink); background-color: var(--paper); background-image: var(--theme-page-bg, none); background-size: cover; background-position: center; background-attachment: fixed; font-family: var(--theme-font, system-ui, -apple-system, "Segoe UI", sans-serif); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; opacity: var(--theme-overlay-opacity, 0); }
body > * { position: relative; z-index: 1; }
body main { color: var(--theme-page-text, var(--ink)); background-color: var(--theme-page-bg-color, transparent); font-family: var(--theme-page-font, var(--theme-font)); font-style: var(--theme-page-font-style, normal); font-weight: var(--theme-page-font-weight, inherit); text-align: var(--theme-page-align, inherit); }
img, svg, video, canvas, iframe { max-width: 100%; }
img, svg, video, canvas { height: auto; }
iframe { width: 100%; border: 0; }
a { color: var(--leaf-dark); }
.btn-success { --bs-btn-bg: var(--theme-button, var(--leaf)); --bs-btn-border-color: var(--theme-button, var(--leaf)); --bs-btn-hover-bg: var(--leaf-dark); --bs-btn-hover-border-color: var(--leaf-dark); }
.btn-outline-success { --bs-btn-color: var(--leaf); --bs-btn-border-color: var(--leaf); --bs-btn-hover-bg: var(--leaf); --bs-btn-hover-border-color: var(--leaf); }
.btn:focus, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(47, 111, 62, .18); border-color: var(--leaf); }

.navbar { background: rgba(255, 253, 248, .96) !important; backdrop-filter: blur(12px); }
.brand-mark { color: var(--leaf-dark); letter-spacing: 0; }
.cart-link { color: var(--tomato) !important; font-weight: 700; }
.public-cart-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--leaf-dark) !important; }
.public-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .35rem; border-radius: 999px; color: #fff; background: var(--theme-accent, var(--tomato)); font-size: .78rem; line-height: 1; box-shadow: 0 .45rem .9rem rgba(185, 72, 47, .18); transition: transform .2s ease, box-shadow .2s ease; }
.public-cart-count-pulse { transform: scale(1.18); box-shadow: 0 .65rem 1.2rem rgba(185, 72, 47, .28); }
.store-toast-wrap { position: fixed; top: 5.25rem; right: 1rem; z-index: 1080; width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
.store-cart-toast { width: 100%; border: 1px solid rgba(47, 111, 62, .18); border-radius: var(--theme-radius, 12px); box-shadow: 0 1rem 2.2rem rgba(33, 31, 26, .14); pointer-events: auto; overflow: hidden; }
.store-cart-toast .toast-body { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: var(--ink); background: rgba(255, 253, 248, .98); font-weight: 800; }
.store-cart-toast-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; color: #fff; background: var(--theme-primary, var(--leaf)); flex: 0 0 auto; }
.store-cart-toast a { margin-left: auto; color: var(--theme-primary, var(--leaf-dark)); font-size: .9rem; white-space: nowrap; text-decoration: none; }
.currency-symbol-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.35rem; min-height: 2rem; padding: .25rem .55rem; border-radius: 999px; background: #f8fafc; border: 1px solid #dbe4ee; color: #0f172a; font-weight: 900; font-family: "Noto Sans", "Segoe UI Symbol", "Segoe UI", Arial, sans-serif; }
.footer a { color: inherit; text-decoration: none; }

.public-hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, #fff4df 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.public-hero .row,
.public-hero [class*="col-"],
.hero-centered-content { min-width: 0; }
.public-hero h1 { max-width: 100%; font-size: clamp(2.25rem, 6.4vw, 5.35rem); line-height: 1; font-weight: 800; letter-spacing: 0; color: var(--leaf-dark); overflow-wrap: anywhere; text-wrap: balance; }
.public-hero .lead { max-width: min(39rem, 100%); color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.25rem); }
.home-section-hero > .container { max-width: min(var(--theme-layout-max, 1320px), max(var(--section-content-width, 960px), 720px)); }
.hero-custom-content-host { display: flex; justify-content: center; width: 100%; min-width: 0; }
.hero-custom-content-host > * { max-width: 100%; }
.public-hero .hero-custom-content-host > .hero-content { width: min(100%, 700px); max-width: 100%; margin-inline: auto; box-sizing: border-box; }
.public-hero .hero-custom-content-host .hero-title { font-size: clamp(2.2rem, 6vw, 5rem) !important; line-height: 1.05 !important; overflow-wrap: anywhere; text-wrap: balance; }
.public-hero .hero-custom-content-host .hero-subtitle { font-size: clamp(1.15rem, 2.6vw, 2rem) !important; overflow-wrap: anywhere; text-wrap: balance; }
.public-hero .hero-custom-content-host .hero-description { max-width: 100% !important; overflow-wrap: anywhere; }
.public-hero .hero-custom-content-host .hero-buttons { justify-content: center; min-width: 0; }
.hero-rich-content { line-height: 1.7; overflow-wrap: anywhere; }
.hero-rich-content * { max-width: 100%; }
.hero-rich-content img,
.hero-rich-content video,
.hero-rich-content iframe,
.hero-rich-content table { max-width: 100%; }
.hero-rich-content img,
.hero-rich-content video { height: auto; }
.hero-rich-content table { display: block; overflow-x: auto; }
.public-hero .d-flex { min-width: 0; }
.hero-rich-content p { margin: 0 0 1rem; }
.hero-rich-content p:last-child { margin-bottom: 0; }
.hero-rich-content strong, .hero-rich-content b { color: var(--leaf-dark); font-weight: 900; }
.hero-rich-content em { color: var(--tomato); }
.hero-rich-content ul, .hero-rich-content ol { display: grid; gap: .4rem; padding-left: 1.2rem; margin: 1rem 0 0; }
.hero-rich-content a { color: var(--leaf-dark); font-weight: 800; text-underline-offset: .2rem; }
.hero-centered-content .lead, .hero-centered-content .hero-rich-content { margin-right: auto; margin-left: auto; }
.hero-centered-content .hero-rich-content ul, .hero-centered-content .hero-rich-content ol { display: inline-grid; text-align: left; }
.eyebrow { margin-bottom: .45rem; color: var(--tomato); font-size: .78rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.hero-photo, .story-photo, .detail-photo { width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 1.25rem 2.5rem rgba(66, 53, 31, .12); }
.hero-photo { aspect-ratio: 5 / 4; }
.story-photo { aspect-ratio: 4 / 3; }
.detail-photo { aspect-ratio: 1 / 1; }

.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-weight: 800; color: var(--leaf-dark); }
.bg-warm { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--theme-spacing, 1rem); }
.public-tile { min-height: 170px; border-color: var(--line); background: #fff; }
.public-tile:hover, .public-card:hover { border-color: rgba(47, 111, 62, .35); }
.public-card h2, .public-card h3 { margin: .8rem 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.public-card h2 a, .public-card h3 a { color: var(--ink); text-decoration: none; }

.product-card { border: 1px solid var(--theme-card-border, var(--line)); border-radius: var(--theme-radius, 8px); overflow: hidden; background: #fff; box-shadow: var(--theme-card-shadow, none); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--theme-card-shadow, 0 1rem 2rem rgba(47, 38, 21, .08)); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3efe4; }
.store-card-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; justify-content: space-between; }
.store-card-actions form { flex: 1 1 130px; }
.store-card-actions .store-btn { width: 100%; }
.store-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: var(--theme-button-radius, max(10px, var(--theme-radius, 8px))); font-weight: 900; line-height: 1.1; text-align: center; text-decoration: none; letter-spacing: 0; cursor: pointer; transition: transform var(--theme-transition, .18s ease), box-shadow var(--theme-transition, .18s ease), background-color var(--theme-transition, .18s ease), border-color var(--theme-transition, .18s ease), color var(--theme-transition, .18s ease); }
.store-btn:hover { transform: var(--theme-hover-transform, translateY(-2px)); text-decoration: none; box-shadow: 0 .8rem 1.45rem rgba(47, 111, 62, .16); }
.store-btn:active { transform: translateY(0); box-shadow: none; }
.store-btn:focus-visible { outline: 3px solid rgba(47, 111, 62, .28); outline-offset: 3px; }
.store-btn-primary { color: #fff; background: var(--theme-button, var(--leaf)); border-color: var(--theme-button, var(--leaf)); }
.store-btn-primary:hover { color: #fff; background: var(--leaf-dark); border-color: var(--leaf-dark); }
.store-btn-accent { color: #fff; background: var(--theme-secondary, var(--tomato)); border-color: var(--theme-secondary, var(--tomato)); }
.store-btn-accent:hover { color: #fff; background: #8e3524; border-color: #8e3524; }
.store-btn-ghost { color: var(--leaf-dark); background: #fff; border-color: rgba(47, 111, 62, .26); }
.store-btn-ghost:hover { color: #fff; background: var(--leaf); border-color: var(--leaf); }
.store-btn-link { color: var(--leaf-dark); background: transparent; border-color: transparent; box-shadow: none; }
.store-btn-link:hover { color: var(--tomato); background: rgba(47, 111, 62, .08); box-shadow: none; }
.store-btn-sm { min-height: 38px; padding: .55rem .8rem; font-size: .9rem; }
.store-btn-xs { min-height: 34px; padding: .45rem .65rem; font-size: .82rem; }
.store-remove-btn { border: 0; padding: 0; color: #b42318; background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: .18rem; }
.store-remove-btn:hover { color: #7a1b13; }
.coupon-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: center; }
.coupon-form .form-control { min-height: 38px; border-radius: 10px; }
.category-tile { display: grid; gap: .4rem; padding: 1.25rem; color: inherit; text-decoration: none; border-radius: var(--theme-radius, 8px); }
.category-tile strong { font-size: 1.25rem; }
.category-tile small, .category-tile span:last-child { color: var(--muted); }
.feature-list { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.feature-list span { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--leaf-dark); font-weight: 700; }

.page-banner { padding: 4rem 0; background: linear-gradient(180deg, #fff4df, #fffdf8); border-bottom: 1px solid var(--line); }
.page-banner h1 { max-width: 760px; margin: 0; font-weight: 800; color: var(--leaf-dark); }
.page-banner p:last-child { max-width: 680px; margin: .75rem 0 0; color: var(--muted); }
.products-market-hero { padding: 3rem 0; background: linear-gradient(135deg, rgba(47,111,62,.12), rgba(185,72,47,.08)), var(--paper); }
.products-marketplace { --market-line: #d8e0d6; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; background: #fff; border: 1px solid var(--market-line); border-radius: 10px; box-shadow: 0 .5rem 1rem rgba(33, 31, 26, .04); }
.market-toolbar h2 { margin: .15rem 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.market-kicker { color: var(--tomato); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.market-sort { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .85rem; font-weight: 800; white-space: nowrap; }
.market-sort .form-select { min-width: 170px; border-radius: 8px; }
.market-layout { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.market-filters { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.market-filter-card { padding: 1rem; background: #fff; border: 1px solid var(--market-line); border-radius: 10px; box-shadow: 0 .5rem 1rem rgba(33, 31, 26, .04); }
.market-filter-card h2 { margin: 0 0 .75rem; color: var(--leaf-dark); font-size: .95rem; font-weight: 900; }
.market-filter-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .62rem .7rem; color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 800; }
.market-filter-link:hover, .market-filter-link.active { color: #fff; background: var(--leaf); }
.market-filter-link strong { color: inherit; font-size: .85rem; }
.market-promise { display: grid; gap: .15rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.market-promise:first-of-type { border-top: 0; }
.market-promise strong { color: var(--ink); font-size: .9rem; }
.market-promise span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.market-results { display: grid; gap: .85rem; }
.market-product-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(190px, 230px); gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--market-line); border-radius: 10px; box-shadow: 0 .45rem 1rem rgba(33, 31, 26, .045); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.market-product-card:hover { border-color: rgba(47,111,62,.38); box-shadow: 0 .9rem 1.8rem rgba(33, 31, 26, .08); transform: var(--theme-card-transform, translateY(-1px)); }
.market-product-media { position: relative; display: block; overflow: hidden; min-height: 168px; background: #f5f2ea; border: 1px solid var(--line); border-radius: 8px; }
.market-product-media img { width: 100%; height: 100%; min-height: 168px; object-fit: cover; transition: transform .2s ease; }
.market-product-card:hover .market-product-media img { transform: var(--theme-img-scale, scale(1.035)); }
.market-deal-badge { position: absolute; left: .65rem; top: .65rem; z-index: 2; padding: .32rem .55rem; color: #fff; background: var(--tomato); border-radius: 999px; font-size: .72rem; font-weight: 900; box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); }
.market-product-info { min-width: 0; }
.market-product-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .45rem; }
.market-product-meta span { padding: .25rem .5rem; color: var(--leaf-dark); background: rgba(47,111,62,.08); border-radius: 999px; font-size: .76rem; font-weight: 800; }
.market-product-info h2 { margin: 0 0 .45rem; font-size: 1.18rem; font-weight: 900; line-height: 1.25; }
.market-product-info h2 a { color: var(--ink); text-decoration: none; }
.market-product-info h2 a:hover { color: var(--leaf-dark); text-decoration: underline; text-underline-offset: .18rem; }
.market-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .45rem 0; color: #b77900; }
.market-rating span { letter-spacing: .04em; }
.market-rating strong { color: #7a4f00; }
.market-rating small { color: var(--muted); }
.market-stock { display: inline-grid; gap: .05rem; margin-top: .4rem; padding: .45rem .6rem; border-radius: 8px; }
.market-stock span { font-size: .86rem; font-weight: 900; }
.market-stock small { color: var(--muted); font-size: .76rem; }
.market-stock.ready { color: #146c43; background: rgba(25,135,84,.1); }
.market-stock.low { color: #9a3412; background: rgba(253,126,20,.12); }
.market-buy-box { display: flex; flex-direction: column; justify-content: center; padding-left: 1rem; border-left: 1px solid var(--line); }
.market-price { color: var(--tomato); font-size: 1.55rem; font-weight: 950; line-height: 1; }
.market-buy-box > small { display: block; margin-top: .45rem; color: var(--muted); line-height: 1.35; }
.detail-price { margin: 1.2rem 0 .35rem; color: var(--tomato); font-size: 2rem; font-weight: 800; }
.info-panel, .contact-card, .checkout-summary, .checkout-form, .table-panel { background: #fff; border: 1px solid var(--theme-card-border, var(--line)); border-radius: var(--theme-radius, 8px); box-shadow: var(--theme-card-shadow, none); }
.info-panel { display: grid; gap: .45rem; padding: 1.25rem; min-height: 130px; }
.info-panel strong, .checkout-summary h2 { color: var(--leaf-dark); }
.info-panel span, .contact-card span { color: var(--muted); }
.contact-card { display: grid; gap: .75rem; padding: 1.5rem; }
.checkout-form { padding: 1.5rem; }
.checkout-summary { padding: 1.25rem; position: sticky; top: 6rem; }
.checkout-summary div { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.checkout-summary .total { font-size: 1.15rem; border-bottom: 0; }
.cart-row { display: grid; grid-template-columns: 84px minmax(180px, 1fr) minmax(180px, 220px) minmax(120px, auto); gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 84px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-row a { color: var(--ink); text-decoration: none; }
.cart-quantity-form { display: grid; grid-template-columns: 76px minmax(92px, auto); gap: .5rem; align-items: center; justify-content: end; }
.cart-quantity-form .form-control, .quantity-input { max-width: 90px; }
.cart-row .text-end { min-width: 110px; }
.policy-page { max-width: 850px; }
.policy-page h1, .policy-page h2 { color: var(--leaf-dark); font-weight: 800; }
.policy-page h2 { margin-top: 2rem; font-size: 1.35rem; }
.empty-state, .confirmation-card { max-width: 760px; margin: 0 auto; padding: 2rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.empty-state h2, .confirmation-card strong { color: var(--leaf-dark); }
.confirmation-card > span { display: block; color: var(--muted); text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.confirmation-card > strong { display: block; margin-top: .35rem; font-size: 2rem; }
.home-section > .container { max-width: var(--section-content-width, var(--theme-layout-max, 1320px)); }
.home-section.home-section-hero > .container { max-width: min(var(--theme-layout-max, 1320px), max(var(--section-content-width, 960px), 720px)) !important; }
.home-section .btn { border-radius: var(--theme-button-radius, var(--theme-radius)); }
.theme-live-preview { border: 1px solid var(--line); transition: all .18s ease; }
.theme-live-preview .product-card, .theme-live-preview .checkout-form { box-shadow: var(--theme-card-shadow); }

.management-shell { background: #f8faf8; min-height: 70vh; }
.management-shell,
.container,
.container-fluid,
.row,
[class*="col-"] { min-width: 0; }
.management-shell > .d-flex:first-child { min-width: 0; }
.management-shell h1,
.management-shell h2,
.management-shell h3,
.management-shell p,
.management-shell td,
.management-shell th,
.management-shell label,
.management-shell a,
.management-shell button { overflow-wrap: anywhere; }
.management-card,
.table-panel,
.bo-panel,
.checkout-form,
.checkout-summary,
.contact-form-panel,
.company-contact-card,
.admin-login-card,
.product-card,
.public-card,
.media-card {
  max-width: 100%;
}
.management-card,
.table-panel,
.bo-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.management-shell .table-responsive,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.management-shell table,
.table-panel table {
  width: 100%;
}
.management-shell table:not(.table-sm),
.table-panel table:not(.table-sm) {
  min-width: 720px;
}
.management-shell .form-control,
.management-shell .form-select,
.management-shell textarea,
.management-shell input,
.management-shell select,
.management-shell button,
.management-shell .btn,
.checkout-form .form-control,
.checkout-form .form-select,
.contact-form-panel .form-control,
.contact-form-panel .form-select {
  max-width: 100%;
}
.management-shell .btn,
.management-shell .store-btn {
  white-space: normal;
}
.management-shell .d-flex,
.bo-panel-heading,
.market-toolbar,
.store-card-actions,
.bo-top-actions {
  min-width: 0;
}
.metric-tile { display: grid; gap: .35rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.metric-tile span { color: var(--muted); font-size: .88rem; }
.metric-tile strong { font-size: 1.65rem; line-height: 1.1; }
.metric-tile small { color: var(--muted); }
.panel-heading { padding: 1rem; border-bottom: 1px solid var(--line); }
.admin-login-card { max-width: 440px; margin: 0 auto; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.admin-form .form-check { margin-bottom: .7rem; }
.product-image-preview { padding: .5rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.product-image-preview img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; }
.cms-editor { font-family: Consolas, "Courier New", monospace; }
.admin-table td, .admin-table th { white-space: nowrap; }
.retail-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.retail-nav a { padding: .45rem .7rem; color: var(--leaf-dark); text-decoration: none; border-radius: 6px; font-weight: 700; font-size: .9rem; }
.retail-nav a:hover { background: var(--cream); }
.metric-card { display: flex; min-height: 96px; flex-direction: column; justify-content: center; gap: .4rem; padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--theme-radius, 8px); box-shadow: var(--theme-card-shadow, none); }
.metric-card span { color: var(--muted); font-size: .88rem; font-weight: 700; }
.metric-card strong { color: var(--ink); font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.order-processing-table td { vertical-align: top; }
.order-update-form { display: grid; grid-template-columns: 1fr; gap: .45rem; min-width: 260px; max-width: 320px; }
.order-update-form .form-select, .order-update-form .form-control, .order-update-form .btn { width: 100%; }
.order-update-form .form-check { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--muted); }

.backoffice-app { --bo-text: #172033; --bo-muted: #8390a6; --bo-line: #dbe3ec; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--bo-bg, #eef3f8); color: var(--bo-text); }
.backoffice-app,
.bo-sidebar,
.bo-brand span,
.bo-nav a,
.bo-nav-group > summary,
.bo-nav-subgroup > summary { transition: grid-template-columns .18s ease, transform .18s ease, width .18s ease, padding .18s ease, opacity .12s ease; }
.bo-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--bo-sidebar-bg, #ffffff) 0%, var(--bo-sidebar-bg, #f8fafc) 100%); border-right: 1px solid var(--bo-line); box-shadow: 4px 0 18px rgba(33, 46, 73, .05); }
.bo-brand { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .75rem 1rem; color: var(--bo-text); text-decoration: none; border-bottom: 1px solid var(--bo-line); }
.bo-brand-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #00c2d4, #0f172a); font-weight: 900; font-size: 1.15rem; }
.bo-brand strong { display: block; font-size: 1.3rem; line-height: 1; }
.bo-brand small { display: block; margin-top: .2rem; color: #008577; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bo-nav { display: grid; gap: .7rem; padding: .85rem .85rem 1.5rem; }
.bo-nav a { display: flex; align-items: center; min-height: 34px; padding: .48rem .7rem; color: var(--bo-menu-color, #334155); text-decoration: none; border-radius: 7px; font-weight: 750; font-size: .9rem; }
.bo-nav a:hover { color: #fff; background: var(--bo-active-menu, #008577); box-shadow: 0 .65rem 1.1rem rgba(0, 125, 112, .16); }
.bo-nav-root { min-height: 40px !important; color: #fff !important; background: var(--bo-active-menu, #008577); box-shadow: 0 .75rem 1.4rem rgba(0, 125, 112, .2); font-weight: 900 !important; }
.bo-nav-group { display: block; padding-top: .3rem; border-top: 1px solid rgba(203, 213, 225, .72); }
.bo-nav-group > summary,
.bo-nav-subgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 36px;
  padding: .45rem .45rem .25rem;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
}
.bo-nav-group > summary::-webkit-details-marker,
.bo-nav-subgroup > summary::-webkit-details-marker { display: none; }
.bo-nav-group > summary::after,
.bo-nav-subgroup > summary::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #94a3b8;
  transition: transform .18s ease;
  font-size: 1.05rem;
  line-height: 1;
}
.bo-nav-group[open] > summary::after,
.bo-nav-subgroup[open] > summary::after { transform: rotate(90deg); }
.bo-nav-group > summary:hover,
.bo-nav-subgroup > summary:hover { color: #0f766e; background: #eefaf7; }
.bo-nav-group > a { position: relative; padding-left: 1.35rem; }
.bo-nav-group > a::before { content: ""; position: absolute; left: .65rem; width: .28rem; height: .28rem; border-radius: 50%; background: #94a3b8; }
.bo-nav-group > a:hover::before { background: #fff; }
.bo-nav-subgroup { display: block; margin: .15rem 0 0 .6rem; padding: .25rem 0 .25rem .65rem; border-left: 1px dashed #cbd5e1; }
.bo-nav-subgroup > summary { min-height: 30px; padding: .3rem .45rem .15rem; color: #7c8a9f; font-size: .72rem; }
.bo-nav-subgroup a { min-height: 30px; padding-left: .8rem; font-size: .84rem; }
.bo-main { min-width: 0; }
.bo-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .65rem 1.3rem; background: var(--bo-topbar-bg, rgba(255,255,255,.94)); border-bottom: 1px solid var(--bo-line); backdrop-filter: blur(12px); }
.bo-topbar > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; }
.bo-topbar small { grid-column: 2; color: #445066; }
.bo-menu-button { grid-row: 1 / span 2; width: 36px; height: 36px; border: 0; border-radius: 8px; color: #007d70; background: #e6f7f4; font-size: 1.1rem; }
.bo-menu-button:hover { color: #fff; background: #008577; }
.backoffice-app.bo-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.backoffice-app.bo-sidebar-collapsed .bo-brand { justify-content: center; padding-inline: .5rem; }
.backoffice-app.bo-sidebar-collapsed .bo-brand span:not(.bo-brand-mark) { width: 0; opacity: 0; overflow: hidden; }
.backoffice-app.bo-sidebar-collapsed .bo-brand-mark { width: 44px; height: 44px; }
.backoffice-app.bo-sidebar-collapsed .bo-nav { gap: .45rem; padding-inline: .45rem; }
.backoffice-app.bo-sidebar-collapsed .bo-nav-root,
.backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary,
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup > summary,
.backoffice-app.bo-sidebar-collapsed .bo-nav a {
  justify-content: center;
  min-height: 42px;
  padding: .45rem;
  font-size: 0;
}
.backoffice-app.bo-sidebar-collapsed .bo-nav-group,
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup {
  margin: 0;
  padding: 0;
  border: 0;
}
.backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary::after,
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup > summary::after,
.backoffice-app.bo-sidebar-collapsed .bo-nav-group > a::before {
  display: none;
}
.backoffice-app.bo-sidebar-collapsed .bo-nav-root::before,
.backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary::before,
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup > summary::before,
.backoffice-app.bo-sidebar-collapsed .bo-nav a::before {
  content: attr(data-icon);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #007d70;
  background: #e6f7f4;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
}
.backoffice-app.bo-sidebar-collapsed .bo-nav-root::before,
.backoffice-app.bo-sidebar-collapsed .bo-nav a:hover::before,
.backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary:hover::before {
  color: #fff;
  background: linear-gradient(135deg, #009b8c, #007d70);
}
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup a { padding-left: .45rem; }
.backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup { border-left: 0; }
.bo-welcome { color: #007d70; font-weight: 900; }
.bo-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; min-width: 280px; }
.bo-search { display: flex; align-items: center; gap: .55rem; width: min(340px, 36vw); padding: .55rem .75rem; background: #f0f4f8; border: 1px solid transparent; border-radius: 10px; color: #64748b; }
.bo-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #334155; }
.bo-icon-button { padding: .55rem .75rem; border-radius: 10px; color: #334155; background: #f8fafc; border: 1px solid var(--bo-line); text-decoration: none; font-weight: 800; }
.bo-bell { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f8fafc; border: 1px solid var(--bo-line); color: #ef4444; font-weight: 900; font-size: .78rem; }
.bo-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: #008577; font-weight: 900; }
.bo-content .management-shell { min-height: calc(100vh - 64px); padding: 1.5rem !important; background: transparent; }
.bo-content { min-width: 0; }
.bo-content .row { --bs-gutter-x: 1rem; }
.bo-content .table { margin-bottom: 0; }
.bo-content .table th,
.bo-content .table td { vertical-align: middle; }
.backoffice-app .retail-nav { display: none; }
.bo-subnav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: 0 .4rem 1rem rgba(15, 23, 42, .04); }
.bo-subnav a { padding: .45rem .7rem; color: #334155; text-decoration: none; border-radius: 8px; font-weight: 800; font-size: .88rem; }
.bo-subnav a:hover { color: #fff; background: #008577; }
.bo-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.bo-stat { min-height: 90px; padding: 1rem; border-radius: 12px; color: #fff; box-shadow: 0 .75rem 1.2rem rgba(15, 23, 42, .08); }
.bo-stat span { display: block; font-size: .78rem; font-weight: 900; text-transform: uppercase; opacity: .92; }
.bo-stat strong { display: block; margin-top: .25rem; font-size: 2rem; line-height: 1; }
.bo-stat small { display: block; margin-top: .45rem; opacity: .85; }
.bo-stat.teal { background: linear-gradient(135deg, #009b8c, #10bfb0); }
.bo-stat.green { background: linear-gradient(135deg, #007e44, #08b867); }
.bo-stat.blue { background: linear-gradient(135deg, #4547d9, #4b78f0); }
.bo-stat.dark { background: linear-gradient(135deg, #263144, #111827); }
.bo-panel { overflow: hidden; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: 0 .5rem 1.1rem rgba(15, 23, 42, .05); }
.bo-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--bo-line); }
.bo-panel-heading h2 { margin: 0; color: var(--bo-text); font-size: 1rem; font-weight: 900; }
.bo-panel-heading span { color: var(--bo-muted); font-size: .78rem; font-weight: 700; }
.bo-panel-heading a { padding: .35rem .7rem; color: #0f172a; border: 1px solid var(--bo-line); border-radius: 8px; text-decoration: none; font-weight: 800; font-size: .82rem; }
.revenue-chart { padding: .9rem 1rem .7rem; }
.revenue-chart svg { display: block; width: 100%; height: 150px; background-image: linear-gradient(to bottom, transparent 24%, rgba(148, 163, 184, .22) 25%, transparent 26%, transparent 49%, rgba(148, 163, 184, .22) 50%, transparent 51%, transparent 74%, rgba(148, 163, 184, .22) 75%, transparent 76%); }
.chart-labels { display: flex; justify-content: space-between; color: #64748b; font-size: .8rem; }
.bo-dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(330px, .95fr); gap: .9rem; align-items: start; }
.bo-main-column, .bo-side-column { display: grid; gap: .9rem; }
.bo-table thead th { background: #f1f5f9; color: #475569; font-size: .78rem; text-transform: uppercase; border-bottom: 1px solid var(--bo-line); }
.bo-table td { border-color: var(--bo-line); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .75rem; }
.quick-grid a { display: grid; gap: .2rem; min-height: 54px; padding: .75rem; color: #1e293b; background: #f8fafc; border: 1px solid var(--bo-line); border-radius: 10px; text-decoration: none; }
.quick-grid strong { font-size: .9rem; }
.quick-grid span { color: var(--bo-muted); font-size: .78rem; }
.activity-list { max-height: 300px; overflow-y: auto; padding: .8rem 1rem; }
.activity-item { position: relative; display: grid; gap: .18rem; padding: 0 0 .85rem 1rem; margin-left: .4rem; border-left: 1px dashed #cbd5e1; }
.activity-item::before { content: ""; position: absolute; left: -.35rem; top: .1rem; width: .65rem; height: .65rem; border-radius: 50%; background: #bfdbfe; border: 2px solid #eff6ff; }
.activity-item strong { font-size: .86rem; }
.activity-item span, .activity-item small { color: var(--bo-muted); font-size: .78rem; }
.purchase-workbench { --purchase-green: #139a43; --purchase-blue: #1769e0; }
.purchase-page-head { padding: .6rem .75rem; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: 0 .45rem 1rem rgba(15,23,42,.04); }
.purchase-page-head h1 { color: #079034; font-size: 1.2rem; }
.purchase-actions .btn { min-height: 36px; border-radius: 7px; font-size: .82rem; font-weight: 800; }
.purchase-flow-nav { position: sticky; top: 72px; z-index: 8; padding: .55rem; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: 0 .35rem .85rem rgba(15,23,42,.04); }
.purchase-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.purchase-tabs button { border: 0; background: transparent; }
.purchase-flow-nav .nav-link { color: #334155; border-radius: 8px; font-size: .84rem; font-weight: 900; }
.purchase-flow-nav .nav-link.active,
.purchase-flow-nav .nav-link:hover { color: #fff; background: var(--purchase-green); }
.purchase-tab-pane { display: none; }
.purchase-tab-pane.active { display: block; }
.purchase-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; border-bottom: 1px solid var(--bo-line); }
.purchase-grid-head h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 900; }
.purchase-grid-head span { color: var(--bo-muted); font-size: .78rem; font-weight: 700; }
.purchase-grid-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.purchase-grid-tools .form-control { width: min(320px, 44vw); min-height: 36px; }
.purchase-dialog { width: min(1100px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, .22); }
.purchase-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.purchase-dialog .purchase-document { margin: 0; max-height: 88vh; overflow-y: auto; background: #fff; }
.purchase-report-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.purchase-report-menu a { display: grid; gap: .25rem; min-height: 86px; padding: .9rem; color: #1e293b; background: #fff; border: 1px solid var(--bo-line); border-radius: 10px; text-decoration: none; box-shadow: 0 .35rem .85rem rgba(15,23,42,.04); }
.purchase-report-menu a.active,
.purchase-report-menu a:hover { color: #fff; background: var(--purchase-green); border-color: var(--purchase-green); }
.purchase-report-menu strong { font-size: .9rem; }
.purchase-report-menu span { color: inherit; opacity: .78; font-size: .78rem; }
.purchase-workbench .metric-card { min-height: 86px; padding: .9rem 1rem; border: 1px solid #dfe7ef; box-shadow: 0 .45rem 1rem rgba(15,23,42,.04); }
.purchase-document { border-radius: 10px; }
.purchase-document-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-bottom: .8rem; margin-bottom: .85rem; border-bottom: 1px solid var(--bo-line); }
.purchase-document-head h2 { color: #0f172a; font-size: 1rem; }
.purchase-document .form-control,
.purchase-document .form-select { min-height: 34px; border-color: #d9e2ec; border-radius: 6px; font-size: .84rem; }
.purchase-lines-table { border: 1px solid var(--bo-line); border-radius: 8px; overflow: hidden; }
.purchase-lines-table .table { min-width: 780px; }
.purchase-lines-table thead th { color: #475569; background: #f6f8fb; border-bottom: 1px solid var(--bo-line); font-size: .74rem; text-transform: uppercase; }
.purchase-lines-table td { background: #fff; border-color: #eef2f6; }
.purchase-form-footer { display: flex; justify-content: flex-end; gap: .55rem; padding-top: .9rem; }
.purchase-workbench .btn-success { background: var(--purchase-green); border-color: var(--purchase-green); }
.purchase-workbench .btn-primary { background: var(--purchase-blue); border-color: var(--purchase-blue); }
.purchase-workbench .btn-outline-success { color: var(--purchase-green); border-color: rgba(19,154,67,.35); }
.purchase-workbench .btn-outline-success:hover { color: #fff; background: var(--purchase-green); border-color: var(--purchase-green); }
.cms-public-hero { position: relative; min-height: 320px; display: flex; align-items: end; color: #fff; background-size: cover; background-position: center; background-color: var(--leaf-dark); }
.cms-public-hero::before { content: ""; position: absolute; inset: 0; background: #122018; opacity: var(--overlay-opacity, .35); }
.cms-public-hero .container { position: relative; z-index: 1; }
.cms-public-hero h1 { max-width: 780px; margin: .5rem 0 0; font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 900; line-height: .98; }
.cms-public-hero p { max-width: 720px; margin: 1rem 0 0; font-size: 1.1rem; opacity: .92; }
.cms-page-icon { display: inline-flex; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 800; }
.cms-public-content { max-width: 920px; font-size: 1.05rem; line-height: 1.8; }
.cms-public-content h2, .cms-public-content h3 { color: var(--leaf-dark); font-weight: 900; }
.cms-banner-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.public-header-contact { background: #123d24; color: #fff; font-size: .9rem; padding: .35rem 0; }
.public-header-contact a { color: inherit; text-decoration: none; }
.header-social-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.header-social-links a,
.footer-social-links a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #102417;
  background: #eef8ef;
  border: 1px solid rgba(16, 36, 23, .08);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.header-social-links a { width: 28px; height: 28px; color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); }
.header-social-links a:hover,
.footer-social-links a:hover { transform: translateY(-1px); color: #fff; background: var(--leaf); box-shadow: 0 .35rem .8rem rgba(0,0,0,.16); }
.social-icon {
  display: block;
}
.header-social-links svg,
.footer-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.header-social-links img,
.footer-social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.header-social-links img { filter: none; }
.social-icon-letter { fill: #fff; font-size: 11px; font-weight: 900; font-family: Arial, sans-serif; }
.site-logo { width: auto; max-width: 150px; height: 42px; object-fit: contain; }
.public-header-compact .navbar { --bs-navbar-padding-y: .35rem; }
.public-header-compact .site-logo { height: 34px; }
.public-header-accent .navbar { border-bottom: 3px solid #2f8f46 !important; }
.header-cta { white-space: nowrap; }
.currency-selector { min-width: 82px; }
.currency-selector .form-select { border-color: var(--line); color: var(--leaf-dark); font-weight: 800; }
.header-image-preview { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: .75rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }
.header-image-preview img { max-width: 100%; max-height: 88px; object-fit: contain; }
.theme-image-preview { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: .75rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }
.theme-image-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; }
.home-section { background-size: cover; background-position: center; }
.home-section-hero { background-size: cover; background-position: center; }
.home-testimonial { max-width: 860px; padding: 1.5rem; font-size: 1.1rem; line-height: 1.8; }
.home-image-banner { padding: 5rem 0; color: #fff; background-color: var(--leaf-dark); background-size: cover; background-position: center; }
.home-image-banner h2 { max-width: 760px; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
.home-image-banner p { max-width: 640px; font-size: 1.08rem; opacity: .92; }
.home-video { overflow: hidden; border: 1px solid var(--line); border-radius: var(--theme-radius, 8px); background: #111; box-shadow: var(--theme-card-shadow, none); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.media-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 .5rem 1rem rgba(15, 23, 42, .04); }
.media-card-inactive { opacity: .68; }
.media-preview { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #f8fafc, #eef2f7); border-bottom: 1px solid var(--line); }
.media-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.media-card-body { padding: .9rem; }
.media-url { display: block; max-width: 100%; margin-top: .35rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer { color: #dce9df; background: #102417; }
.site-footer h2 { margin-bottom: .9rem; color: #fff; font-size: 1rem; font-weight: 900; }
.footer-brand { display: flex; align-items: center; min-height: 44px; margin-bottom: 1rem; color: #fff; font-size: 1.4rem; font-weight: 900; }
.footer-brand img { max-width: 170px; max-height: 56px; object-fit: contain; }
.footer-description { max-width: 420px; color: #b9cbbc; line-height: 1.7; }
.footer-contact { display: grid; gap: .4rem; color: #cfe0d2; }
.footer-contact a, .site-footer ul a { color: inherit; text-decoration: none; }
.footer-contact a:hover, .site-footer ul a:hover { color: #fff; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.site-footer ul { display: grid; gap: .45rem; padding: 0; margin: 0; list-style: none; color: #cfe0d2; }
.footer-policy-links { display: flex !important; flex-wrap: wrap; gap: .45rem 1rem !important; margin-top: 1.25rem !important; }
.footer-payment-icons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.footer-payment-icons img, .footer-payment-icons span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: .25rem .55rem; color: #123d24; background: #f8faf8; border-radius: 6px; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.footer-payment-icons img { object-fit: contain; }
.footer-bottom { padding: .9rem 0; color: #b9cbbc; background: #0b1b11; font-size: .9rem; }
.contact-form-panel,
.company-contact-card {
  height: 100%;
  padding: 1.4rem;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--theme-radius, 8px);
  box-shadow: var(--theme-card-shadow, 0 .6rem 1.4rem rgba(15, 23, 42, .06));
}
.contact-form-panel h2,
.company-contact-card h2 {
  margin-bottom: 1rem;
  color: var(--leaf-dark);
  font-size: 1.35rem;
  font-weight: 900;
}
.company-contact-card img {
  max-width: 180px;
  max-height: 78px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.company-contact-card p {
  color: #5d6a60;
  line-height: 1.7;
}
.company-contact-card dl {
  display: grid;
  gap: .65rem;
  margin: 1rem 0 0;
}
.company-contact-card dt {
  color: var(--leaf-dark);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.company-contact-card dd {
  margin: -.35rem 0 .15rem;
  color: #334155;
}
.company-contact-card a {
  color: var(--leaf);
  font-weight: 800;
  text-decoration: none;
}
.contact-inbox-list {
  max-height: 720px;
  overflow-y: auto;
}
.contact-inbox-item {
  display: grid;
  gap: .22rem;
  padding: .9rem 1rem;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid var(--bo-line);
}
.contact-inbox-item:hover,
.contact-inbox-item.active {
  background: #eefaf4;
}
.contact-inbox-item span,
.contact-inbox-item small {
  color: #64748b;
}
.contact-message-body {
  color: #273548;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.security-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.security-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .5rem;
  color: #075e54;
  background: #e7fbf3;
  border: 1px solid #b7f0dc;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}
.security-check-grid,
.security-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .55rem;
}
.security-permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-height: 360px;
  overflow-y: auto;
  padding-right: .25rem;
}
.security-check-grid label,
.security-permission-grid label {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  min-height: 46px;
  padding: .65rem;
  background: #f8fafc;
  border: 1px solid var(--bo-line);
  border-radius: 10px;
  cursor: pointer;
}
.security-check-grid input,
.security-permission-grid input {
  margin-top: .2rem;
}
.security-permission-grid span {
  display: grid;
  gap: .15rem;
}
.security-permission-grid strong {
  color: #1e293b;
  font-size: .82rem;
}
.security-permission-grid small {
  color: #64748b;
  line-height: 1.35;
}
.pos-register { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: 1rem; align-items: start; }
.pos-permission-strip { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; }
.pos-products-panel, .pos-cart-panel, .pos-receipt { background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: 0 .5rem 1.2rem rgba(15, 23, 42, .05); }
.pos-products-panel { padding: 1rem; }
.pos-scan-bar, .pos-searchbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: end; margin-bottom: .85rem; }
.pos-scan-bar .form-label { font-size: .78rem; font-weight: 900; color: #475569; text-transform: uppercase; letter-spacing: .04em; }
.pos-category-filter { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .75rem; margin-bottom: .75rem; }
.pos-category-filter button { white-space: nowrap; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 999px; padding: .42rem .8rem; font-weight: 800; }
.pos-category-filter button.active, .pos-category-filter button:hover { background: #008d7f; color: #fff; border-color: #008d7f; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .75rem; max-height: calc(100vh - 285px); overflow-y: auto; padding-right: .25rem; }
.pos-product-card { display: grid; gap: .28rem; min-height: 188px; padding: .75rem; text-align: left; background: #f8fafc; border: 1px solid var(--bo-line); border-radius: 10px; }
.pos-product-card:hover { border-color: #00a38f; box-shadow: 0 .55rem 1rem rgba(0, 125, 112, .1); }
.pos-product-card img, .pos-product-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #e6f7f4; }
.pos-product-placeholder { display: grid; place-items: center; color: #007d70; font-size: 2rem; font-weight: 900; }
.pos-product-card strong { color: #172033; line-height: 1.2; }
.pos-product-card small, .pos-product-card em { color: #64748b; font-style: normal; font-size: .78rem; }
.pos-product-card span { color: #b9482f; font-weight: 900; }
.pos-cart-panel { position: sticky; top: 82px; padding: 1rem; }
.pos-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pos-cart-heading h2 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.pos-cart-heading span { color: #64748b; font-size: .82rem; font-weight: 700; }
.pos-cart-lines { display: grid; gap: .55rem; max-height: 330px; overflow-y: auto; padding-right: .2rem; }
.pos-empty-cart { padding: 1.4rem; color: #64748b; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; }
.pos-cart-line { display: grid; grid-template-columns: minmax(150px, 1fr) auto 86px 92px 28px; gap: .5rem; align-items: center; padding: .62rem; background: #f8fafc; border: 1px solid var(--bo-line); border-radius: 10px; }
.pos-cart-line small { display: block; color: #64748b; font-size: .78rem; }
.pos-qty { display: grid; grid-template-columns: 30px 54px 30px; gap: .25rem; align-items: center; }
.pos-qty button, .pos-remove { border: 1px solid var(--bo-line); border-radius: 7px; background: #fff; color: #334155; font-weight: 900; min-height: 32px; }
.pos-qty input { width: 54px; min-height: 30px; text-align: center; border: 1px solid var(--bo-line); border-radius: 7px; }
.pos-line-discount { display: grid; gap: .15rem; margin: 0; }
.pos-line-discount span { color: #64748b; font-size: .72rem; font-weight: 900; }
.pos-line-discount input { width: 100%; min-height: 32px; border: 1px solid var(--bo-line); border-radius: 7px; padding: .25rem .35rem; }
.pos-line-total { text-align: right; }
.pos-line-total strong { display: block; color: #0f766e; }
.pos-remove { width: 28px; color: #b42318; font-size: 0; position: relative; }
.pos-remove::before { content: "x"; font-size: .95rem; }
.pos-summary { display: grid; gap: .55rem; margin-top: 1rem; }
.pos-summary label, .pos-summary div, .pos-receipt-totals div, .pos-receipt-lines div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pos-summary label span { color: #64748b; font-weight: 800; }
.pos-summary label { display: grid; grid-template-columns: 90px minmax(0, 1fr); }
.pos-summary div, .pos-receipt-totals div { padding: .45rem 0; border-top: 1px solid var(--bo-line); }
.pos-total { color: #0f766e; font-size: 1.25rem; font-weight: 900; }
.pos-credit-panel { display: grid; gap: .35rem; margin-top: .75rem; padding: .75rem; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.pos-credit-panel div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #1e3a8a; font-weight: 800; }
.pos-credit-panel small { font-weight: 800; }
.pos-split-lines { display: grid; gap: .35rem; }
.pos-split-line, .pos-split-balance { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; padding: .45rem .55rem !important; border: 1px solid #dbeafe !important; border-radius: 8px; background: #f8fafc; }
.pos-split-line button { width: 26px; height: 26px; border: 1px solid #fecaca; border-radius: 6px; background: #fff; color: #b42318; font-weight: 900; }
.pos-split-balance { grid-template-columns: minmax(0, 1fr) auto; font-weight: 900; color: #0f766e; }
.pos-receipt { max-width: 520px; margin: 0 auto; padding: 1.25rem; }
.pos-receipt-logo { max-width: 96px; max-height: 64px; object-fit: contain; margin-bottom: .5rem; }
.pos-receipt-code { margin-top: .85rem; padding: .55rem; text-align: center; letter-spacing: .16em; font-family: monospace; border: 1px dashed #94a3b8; border-radius: 6px; }
.pos-receipt-lines { display: grid; gap: .55rem; }
.pos-receipt-lines small { display: block; color: #64748b; }

.pos-shell {
  --pos-bg: #eef4f6;
  --pos-surface: #ffffff;
  --pos-soft: #f6fafb;
  --pos-line: #dbe5ea;
  --pos-text: #132237;
  --pos-muted: #64748b;
  --pos-primary: #008d7f;
  --pos-primary-strong: #047268;
  --pos-danger: #b42318;
  --pos-shadow: 0 .85rem 1.8rem rgba(15, 23, 42, .08);
  min-height: calc(100vh - 72px);
}
.pos-shell.pos-dark {
  --pos-bg: #0f172a;
  --pos-surface: #162033;
  --pos-soft: #101827;
  --pos-line: #2b3a52;
  --pos-text: #e5edf8;
  --pos-muted: #9fb0c8;
  --pos-primary: #21b6a8;
  --pos-primary-strong: #14a092;
  --pos-shadow: 0 .85rem 1.8rem rgba(0, 0, 0, .24);
  background: var(--pos-bg) !important;
  color: var(--pos-text);
}
.pos-register-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pos-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.pos-shell .btn,
.pos-shell .form-control,
.pos-shell .form-select {
  min-height: 44px;
  border-radius: 10px;
}
.pos-shell .btn {
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.pos-shell .btn:hover,
.pos-product-card:hover {
  transform: translateY(-1px);
}
.pos-shell .btn-success {
  background: var(--pos-primary);
  border-color: var(--pos-primary);
}
.pos-shell .btn-success:hover {
  background: var(--pos-primary-strong);
  border-color: var(--pos-primary-strong);
  box-shadow: 0 .6rem 1.2rem rgba(0, 141, 127, .18);
}
.pos-permission-strip {
  background: var(--pos-surface);
  border-color: var(--pos-line);
  box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .04);
}
.pos-mobile-tabs,
.pos-mobile-sticky {
  display: none;
}
.pos-register {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(460px, 1.02fr) minmax(330px, .76fr);
  gap: 1rem;
  align-items: start;
}
.pos-right-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 76px;
}
.pos-products-panel,
.pos-cart-panel,
.pos-customer-panel,
.pos-payment-panel {
  min-width: 0;
  background: var(--pos-surface);
  border: 1px solid var(--pos-line);
  border-radius: 14px;
  box-shadow: var(--pos-shadow);
  color: var(--pos-text);
}
.pos-products-panel,
.pos-cart-panel,
.pos-customer-panel,
.pos-payment-panel {
  padding: 1rem;
}
.pos-products-panel,
.pos-cart-panel {
  position: sticky;
  top: 76px;
}
.pos-panel-title,
.pos-cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .95rem;
}
.pos-panel-title h2,
.pos-cart-heading h2 {
  margin: 0;
  color: var(--pos-text);
  font-size: 1.08rem;
  font-weight: 900;
}
.pos-panel-title span,
.pos-cart-heading span,
.pos-shortcut {
  color: var(--pos-muted);
  font-size: .78rem;
  font-weight: 750;
}
.pos-shortcut {
  flex: 0 0 auto;
  padding: .28rem .5rem;
  border: 1px solid var(--pos-line);
  border-radius: 999px;
  background: var(--pos-soft);
}
.pos-scan-bar {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .65rem;
  align-items: end;
}
.pos-category-filter {
  scrollbar-width: thin;
}
.pos-category-filter button,
.pos-quick-row button {
  min-height: 40px;
  border: 1px solid var(--pos-line);
  background: var(--pos-soft);
  color: var(--pos-text);
  border-radius: 999px;
  padding: .48rem .85rem;
}
.pos-category-filter button.active,
.pos-category-filter button:hover,
.pos-quick-row button:hover {
  background: var(--pos-primary);
  border-color: var(--pos-primary);
  color: #fff;
}
.pos-quick-row {
  display: flex;
  gap: .45rem;
  align-items: center;
  overflow-x: auto;
  padding-bottom: .65rem;
  margin-bottom: .65rem;
}
.pos-quick-row span {
  flex: 0 0 auto;
  color: var(--pos-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.pos-quick-row button {
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 800;
}
.pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .8rem;
  max-height: calc(100vh - 330px);
  min-height: 320px;
}
.pos-product-card {
  min-height: 202px;
  padding: .78rem;
  background: var(--pos-soft);
  border-color: var(--pos-line);
  border-radius: 12px;
  color: var(--pos-text);
  box-shadow: none;
}
.pos-product-card:hover {
  border-color: var(--pos-primary);
  box-shadow: 0 .75rem 1.3rem rgba(0, 141, 127, .13);
}
.pos-product-card strong {
  color: var(--pos-text);
  font-size: .92rem;
}
.pos-product-card span {
  color: var(--pos-primary-strong);
  font-size: 1rem;
}
.pos-cart-panel {
  padding: 1rem;
}
.pos-cart-table-head,
.pos-cart-line {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 112px 90px 96px 42px;
  gap: .55rem;
  align-items: center;
}
.pos-cart-table-head {
  padding: 0 .65rem .45rem;
  color: var(--pos-muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.pos-cart-lines {
  max-height: calc(100vh - 302px);
  min-height: 230px;
}
.pos-cart-line {
  padding: .7rem;
  background: var(--pos-soft);
  border-color: var(--pos-line);
  border-radius: 12px;
}
.pos-cart-line small,
.pos-line-discount span {
  color: var(--pos-muted);
}
.pos-qty {
  grid-template-columns: 34px minmax(42px, 1fr) 34px;
}
.pos-qty button,
.pos-remove {
  min-height: 40px;
  border-color: var(--pos-line);
  border-radius: 10px;
  background: var(--pos-surface);
  color: var(--pos-text);
}
.pos-qty input,
.pos-line-discount input {
  min-height: 40px;
  border-color: var(--pos-line);
  border-radius: 10px;
  background: var(--pos-surface);
  color: var(--pos-text);
}
.pos-remove {
  width: 40px;
  color: var(--pos-danger);
}
.pos-summary {
  gap: .6rem;
}
.pos-summary label {
  grid-template-columns: minmax(96px, .42fr) minmax(0, 1fr);
  align-items: center;
}
.pos-summary label span,
.pos-summary div span {
  color: var(--pos-muted);
  font-weight: 850;
}
.pos-summary div,
.pos-receipt-totals div {
  border-top-color: var(--pos-line);
}
.pos-total {
  color: var(--pos-primary-strong);
  font-size: 1.28rem;
}
.pos-credit-panel,
.pos-receipt-preview {
  margin-top: .9rem;
  padding: .8rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pos-primary) 8%, var(--pos-surface));
}
.pos-receipt-preview {
  display: grid;
  gap: .25rem;
  color: var(--pos-muted);
}
.pos-receipt-preview strong {
  color: var(--pos-text);
}
.pos-loading {
  position: relative;
  pointer-events: none;
}
.pos-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(1px);
}
.pos-dark .pos-loading::after {
  background: rgba(15, 23, 42, .52);
}
.pos-empty-cart {
  background: var(--pos-soft);
  border-color: var(--pos-line);
  color: var(--pos-muted);
}

@media (max-width: 1499.98px) and (min-width: 992px) {
  .pos-register {
    grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr);
  }
  .pos-right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
  .pos-scan-bar {
    grid-template-columns: 1fr;
  }
  .pos-products-panel,
  .pos-cart-panel {
    position: sticky;
    top: 76px;
  }
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  body { background: #fff !important; }
  .bo-sidebar, .bo-topbar, .pos-receipt .btn, .pos-receipt a, .pos-shell .btn, header, footer { display: none !important; }
  .management-shell, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .pos-receipt { width: 80mm; max-width: 80mm; margin: 0 auto; padding: 4mm; border: 0; box-shadow: none; font-size: 11px; }
  .pos-a4-print .pos-receipt { width: 190mm; max-width: 190mm; padding: 12mm; font-size: 13px; }
  .pos-receipt h1 { font-size: 15px; }
  .pos-a4-print .pos-receipt h1 { font-size: 22px; }
  .pos-receipt-lines div, .pos-receipt-totals div { break-inside: avoid; }
}

@media (max-width: 991.98px) {
  .public-hero h1,
  .page-banner h1,
  .cms-public-hero h1 { line-height: 1.05; }
  .public-hero h1 { font-size: clamp(2.1rem, 8vw, 4rem); }
  .public-hero .row { gap: 1.5rem; }
  .checkout-summary { position: static; }
  .management-shell > .d-flex:first-child,
  .bo-panel-heading,
  .market-toolbar {
    align-items: stretch !important;
    flex-direction: column;
  }
  .management-shell > .d-flex:first-child .btn,
  .bo-panel-heading a,
  .market-toolbar .form-select,
  .market-sort {
    width: 100%;
  }
  .management-shell .row.g-4,
  .management-shell .row.g-3 { --bs-gutter-y: .9rem; }
  .bo-dashboard-grid,
  .media-grid,
  .security-check-grid,
  .security-permission-grid {
    grid-template-columns: 1fr;
  }
  .pos-shell { padding-bottom: 5.75rem !important; }
  .pos-register-header {
    align-items: stretch;
    flex-direction: column;
  }
  .pos-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
  .pos-header-actions .btn:first-child {
    grid-column: 1 / -1;
  }
  .pos-permission-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pos-permission-strip .btn {
    width: 100%;
  }
  .pos-mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
    margin: 0 0 .85rem;
    padding: .45rem;
    border: 1px solid var(--pos-line);
    border-radius: 14px;
    background: var(--pos-surface);
    box-shadow: 0 .5rem 1.2rem rgba(15, 23, 42, .08);
  }
  .pos-mobile-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--pos-muted);
    font-weight: 900;
  }
  .pos-mobile-tabs button.active {
    background: var(--pos-primary);
    color: #fff;
  }
  .pos-mobile-tabs span {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    place-items: center;
    margin-left: .2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: .74rem;
  }
  .pos-register {
    display: block;
  }
  .pos-right-stack {
    display: contents;
    position: static;
  }
  .pos-products-panel,
  .pos-cart-panel,
  .pos-customer-panel,
  .pos-payment-panel {
    display: none;
    position: static;
    padding: .9rem;
  }
  .pos-products-panel.active,
  .pos-cart-panel.active,
  .pos-customer-panel.active,
  .pos-payment-panel.active {
    display: block;
  }
  .pos-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .pos-product-card {
    min-height: 210px;
    padding: .9rem;
  }
  .pos-cart-lines {
    max-height: none;
    min-height: 220px;
  }
  .pos-cart-line {
    grid-template-columns: minmax(0, 1fr) 124px 100px 106px 42px;
  }
  .pos-mobile-sticky {
    position: fixed;
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem;
    border: 1px solid var(--pos-line);
    border-radius: 16px;
    background: var(--pos-surface);
    box-shadow: 0 .9rem 2rem rgba(15, 23, 42, .18);
  }
  .pos-mobile-sticky span {
    display: block;
    color: var(--pos-muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
  }
  .pos-mobile-sticky strong {
    color: var(--pos-primary-strong);
    font-size: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  body { background-attachment: scroll; }
  .container,
  .container-fluid { padding-right: 1rem; padding-left: 1rem; }
  .page-banner,
  .public-hero,
  .cms-public-hero { padding-top: 2.25rem; padding-bottom: 2.25rem; min-height: auto; }
  .page-banner h1,
  .public-hero h1,
  .cms-public-hero h1 { font-size: clamp(1.9rem, 10.5vw, 2.85rem); }
  .page-banner p:last-child,
  .cms-public-hero p,
  .public-hero .lead { font-size: .98rem; }
  .public-hero .hero-rich-content [style*="font-size"] { font-size: clamp(.95rem, 4.2vw, 1.1rem) !important; }
  .public-hero .hero-rich-content [style*="width"],
  .public-hero .hero-rich-content [style*="min-width"] { width: 100% !important; min-width: 0 !important; }
  .public-hero .eyebrow { font-size: .72rem; }
  .public-hero .d-flex { justify-content: center; width: 100%; }
  .public-hero .btn,
  .public-hero .store-btn { width: 100%; max-width: 320px; }
  .public-hero .hero-custom-content-host > .hero-content { padding: 1.4rem !important; border-radius: max(16px, var(--theme-radius, 8px)) !important; }
  .public-hero .hero-custom-content-host .hero-title { font-size: clamp(2rem, 10vw, 3rem) !important; }
  .public-hero .hero-custom-content-host .hero-subtitle { font-size: clamp(1.05rem, 5vw, 1.35rem) !important; }
  .public-hero .hero-custom-content-host .hero-description { padding-left: .85rem !important; font-size: .98rem !important; line-height: 1.65 !important; }
  .public-hero .hero-custom-content-host .hero-buttons { display: grid !important; grid-template-columns: 1fr; width: 100%; }
  .public-hero .hero-custom-content-host .hero-buttons a { width: 100% !important; text-align: center; }
  .management-shell { padding: 1rem !important; }
  .bo-content .management-shell { padding: 1rem !important; }
  .management-card,
  .contact-form-panel,
  .company-contact-card,
  .checkout-form,
  .checkout-summary,
  .empty-state,
  .confirmation-card { padding: 1rem !important; }
  .management-shell table:not(.table-sm),
  .table-panel table:not(.table-sm) { min-width: 620px; }
  .management-shell .btn,
  .management-shell .store-btn,
  .checkout-form .btn,
  .checkout-form .store-btn,
  .contact-form-panel .store-btn {
    width: 100%;
  }
  .management-shell .d-flex.gap-2,
  .management-shell .d-flex.gap-3 {
    align-items: stretch !important;
    flex-direction: column;
  }
  .detail-price { font-size: 1.55rem; }
  .feature-list span { width: 100%; border-radius: 8px; }
  .pos-shell { padding: .75rem .75rem 5.75rem !important; }
  .pos-header-actions,
  .pos-permission-strip,
  .pos-scan-bar,
  .pos-searchbar {
    grid-template-columns: 1fr;
  }
  .pos-mobile-tabs {
    top: .35rem;
    gap: .28rem;
    padding: .35rem;
  }
  .pos-mobile-tabs button {
    min-height: 42px;
    padding: .35rem .2rem;
    font-size: .78rem;
  }
  .pos-panel-title,
  .pos-cart-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .pos-product-card { min-height: 188px; padding: .65rem; }
  .pos-product-card strong { font-size: .86rem; }
  .pos-product-card span { font-size: .95rem; }
  .pos-product-card small,
  .pos-product-card em { font-size: .72rem; }
  .pos-cart-table-head { display: none; }
  .pos-cart-line {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: .8rem;
  }
  .pos-qty { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .pos-qty input { width: 100%; }
  .pos-remove { width: 100%; font-size: .9rem; }
  .pos-remove::before { content: none; }
  .pos-line-total { text-align: left; }
  .pos-summary label { grid-template-columns: 1fr; }
  .pos-summary {
    gap: .7rem;
  }
  .pos-summary div {
    align-items: flex-start;
  }
  .public-hero { padding: 3rem 0; }
  .products-market-hero { padding: 2.25rem 0; }
  .market-filter-card:first-child { grid-template-columns: 1fr; }
  .market-product-card { grid-template-columns: 1fr; }
  .market-product-media, .market-product-media img { min-height: 210px; }
  .cart-row { grid-template-columns: 64px 1fr; align-items: start; }
  .cart-row img { width: 64px; height: 60px; }
  .cart-quantity-form { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; }
  .cart-row .text-end { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left !important; }
  .store-card-actions, .coupon-form { grid-template-columns: 1fr; }
  .store-card-actions { display: grid; }
  .store-card-actions form, .store-card-actions .store-btn, .coupon-form .store-btn { width: 100%; }
}

@media (max-width: 1199.98px) {
  .backoffice-app { grid-template-columns: 220px minmax(0, 1fr); }
  .bo-dashboard-grid { grid-template-columns: 1fr; }
  .bo-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-product-card { grid-template-columns: 160px minmax(0, 1fr); }
  .market-buy-box { grid-column: 2; padding: .75rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 767.98px) {
  .market-toolbar { align-items: stretch; flex-direction: column; }
  .market-sort { justify-content: space-between; }
  .market-layout { grid-template-columns: 1fr; }
  .market-filters { position: static; }
  .market-filter-card:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .market-filter-card:first-child h2 { grid-column: 1 / -1; }
  .market-product-card { grid-template-columns: 120px minmax(0, 1fr); gap: .75rem; padding: .75rem; }
  .market-product-media, .market-product-media img { min-height: 128px; }
  .market-product-info h2 { font-size: 1rem; }
  .market-buy-box { grid-column: 1 / -1; }
  .market-price { font-size: 1.35rem; }
  .backoffice-app { display: block; }
  .bo-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(82vw, 280px); height: 100vh; transform: translateX(-102%); }
  .backoffice-app.bo-mobile-sidebar-open .bo-sidebar { transform: translateX(0); }
  .backoffice-app::before { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .36); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  .backoffice-app.bo-mobile-sidebar-open::before { opacity: 1; pointer-events: auto; }
  .backoffice-app.bo-sidebar-collapsed { grid-template-columns: none; }
  .backoffice-app.bo-sidebar-collapsed .bo-brand span:not(.bo-brand-mark) { width: auto; opacity: 1; overflow: visible; }
  .backoffice-app.bo-sidebar-collapsed .bo-nav-root,
  .backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary,
  .backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup > summary,
  .backoffice-app.bo-sidebar-collapsed .bo-nav a { justify-content: flex-start; min-height: 34px; padding: .48rem .7rem; font-size: .9rem; }
  .backoffice-app.bo-sidebar-collapsed .bo-nav-root::before,
  .backoffice-app.bo-sidebar-collapsed .bo-nav-group > summary::before,
  .backoffice-app.bo-sidebar-collapsed .bo-nav-subgroup > summary::before,
  .backoffice-app.bo-sidebar-collapsed .bo-nav a::before { display: none; }
  .bo-nav { grid-template-columns: 1fr; }
  .bo-topbar { position: static; align-items: stretch; flex-direction: column; }
  .bo-top-actions { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; }
  .bo-search { width: 100%; }
  .bo-metric-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .market-filter-card:first-child { grid-template-columns: 1fr; }
  .market-product-card { grid-template-columns: 1fr; }
  .market-product-media, .market-product-media img { min-height: 210px; }
}
