/* Lagon Commerce. Deliberately scoped to coexist with ERP and WordPress themes. */
.lc-root,
.lagon-store {
  --lc-ink: #153b36;
  --lc-green: #236c58;
  --lc-muted: #6c7d79;
  --lc-line: #dce7e2;
  --lc-paper: #f6f8f5;
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--lc-ink);
}
.lc-root *,
.lagon-store * {
  box-sizing: border-box;
}
.lc-root a,
.lagon-store a {
  color: inherit;
  text-decoration: none;
}
.lc-root button,
.lagon-store button {
  font: inherit;
  cursor: pointer;
}
.lc-btn {
  border: 1px solid var(--lc-line);
  border-radius: 8px;
  padding: 10px 15px;
  background: white;
  color: var(--lc-ink);
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}
.lc-btn.primary {
  background: var(--lc-green);
  color: white;
  border-color: var(--lc-green);
}
.lc-btn.danger {
  color: #a83232;
}
.lc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lc-btn:focus-visible,
.lc-root input:focus-visible,
.lagon-store input:focus-visible {
  outline: 3px solid #deaa62;
  outline-offset: 2px;
}
.lc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--lc-line);
  padding: 12px 0;
  margin-bottom: 20px;
}
.lc-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--lc-muted);
}
.lc-tabs button.active {
  background: #e1eee8;
  color: var(--lc-ink);
  font-weight: 700;
}
.lc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lc-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.lc-top h2 {
  margin: 0;
  font-size: 23px;
}
.lc-muted {
  color: var(--lc-muted);
}
.lc-panel {
  background: white;
  border: 1px solid var(--lc-line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.lc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.lc-stat {
  padding: 19px;
  border: 1px solid var(--lc-line);
  border-radius: 12px;
  background: white;
}
.lc-stat strong {
  display: block;
  font-size: 25px;
  margin-top: 10px;
}
.lc-table-wrap {
  overflow: auto;
}
.lc-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  background: white;
}
.lc-table th,
.lc-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--lc-line);
  font-size: 13px;
}
.lc-table th {
  color: var(--lc-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lc-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #e4f0e9;
  border-radius: 5px;
  font-size: 11px;
}
.lc-error {
  background: #fff0ed;
  color: #9e3428;
  border: 1px solid #f3c4b9;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
}
.lc-info {
  padding: 12px;
  background: #edf4f0;
  border-radius: 8px;
  margin: 12px 0;
}
.lc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.lc-field.wide {
  grid-column: 1/-1;
}
.lc-field input,
.lc-field select,
.lc-field textarea,
.lc-search,
.shop-filter input,
.shop-filter select {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--lc-line);
  border-radius: 7px;
  background: white;
  color: var(--lc-ink);
  width: 100%;
  min-width: 0;
}
.lc-field textarea {
  min-height: 95px;
  resize: vertical;
}
.lc-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}
.lc-check input {
  width: auto;
}
.lc-dialog {
  border: 0;
  border-radius: 14px;
  max-width: 780px;
  width: calc(100% - 30px);
  max-height: 90vh;
  padding: 0;
  color: #153b36;
  box-shadow: 0 20px 100px #0003;
}
.lc-dialog::backdrop {
  background: #0b282c88;
}
.lc-dialog header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #dce7e2;
}
.lc-dialog h3 {
  margin: 0;
  font-size: 20px;
}
.lc-dialog form {
  padding: 22px;
}
.lc-dialog .lc-actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.lc-pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.lc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.lc-product {
  padding: 14px;
  text-align: left;
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}
.lc-product strong {
  font-size: 14px;
}
.lc-product small {
  color: var(--lc-muted);
}
.lc-product img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 5px;
}
.lc-product b {
  margin-top: auto;
  color: var(--lc-green);
}
.lc-cart {
  position: sticky;
  top: 12px;
}
.lc-cart-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--lc-line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.lc-cart-qty {
  display: flex;
  gap: 7px;
  align-items: center;
}
.lc-cart-qty button {
  background: #f0f5f1;
  border: 0;
  border-radius: 5px;
  width: 26px;
  height: 26px;
}
.lc-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 23px;
  font-weight: 700;
  margin: 20px 0;
}
.lc-bars {
  display: flex;
  align-items: end;
  height: 150px;
  gap: 6px;
  border-bottom: 1px solid var(--lc-line);
  margin: 24px 0 30px;
}
.lc-bar {
  flex: 1;
  min-width: 20px;
  position: relative;
  background: #438775;
  border-radius: 5px 5px 0 0;
}
.lc-bar span {
  position: absolute;
  top: 100%;
  padding-top: 5px;
  left: 0;
  font-size: 10px;
}
.lc-root details {
  border: 1px solid var(--lc-line);
  padding: 12px;
  border-radius: 8px;
}
.lc-root summary {
  cursor: pointer;
  font-weight: 600;
}
.lc-receipt {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  width: 300px;
  margin: auto;
}
.lc-receipt h2 {
  text-align: center;
}
.lc-seo-score {
  display: inline-block;
  border-radius: 100%;
  padding: 20px;
  background: #e0efe7;
  font-size: 25px;
  font-weight: 700;
}
.lagon-store {
  margin: 0;
  background: #fafbf8;
}
.shop-announcement {
  text-align: center;
  background: #153b36;
  color: #ecf2ed;
  padding: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.shop-header {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px;
  border-bottom: 1px solid #dce7e2;
}
.shop-brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.shop-brand span {
  font-size: 11px;
  display: block;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.shop-header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.shop-main {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px 70px;
  min-height: 65vh;
}
.shop-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 65px 0 45px;
}
.shop-hero small,
.shop-section-head small,
.shop-card small {
  letter-spacing: 0.12em;
  font-size: 10px;
}
.shop-hero h1 {
  font:
    500 clamp(36px, 5vw, 66px) / 1.06 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 23px 0;
}
.shop-hero h1 em {
  color: #52947b;
  font-weight: 400;
}
.shop-hero p {
  color: #6c7d79;
  font-size: 16px;
  max-width: 400px;
  margin: 24px 0 30px;
}
.shop-hero-art {
  background: #e7ebe1;
  min-height: 350px;
  border-radius: 130px 130px 8px 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #467467;
}
.shop-hero-art:before {
  content: "";
  position: absolute;
  border: 65px solid #d8e2d4;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  bottom: -100px;
  right: -60px;
}
.shop-hero-art span {
  font:
    29px/1.2 Georgia,
    serif;
  letter-spacing: 2px;
  z-index: 1;
  transform: rotate(-8deg);
}
.shop-hero-art i {
  position: absolute;
  top: 25px;
  right: 40px;
  font-style: normal;
  font-size: 14px;
}
.shop-promises {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid #dce7e2;
  border-bottom: 1px solid #dce7e2;
  font-size: 12px;
  margin-bottom: 50px;
}
.shop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.shop-section-head h2,
.shop-main h2 {
  font:
    28px Georgia,
    serif;
  margin: 12px 0 20px;
}
.shop-filter {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shop-filter input {
  max-width: 210px;
}
.shop-filter select {
  width: auto;
}
.shop-categories {
  display: flex;
  gap: 9px;
  margin: 10px 0 25px;
  flex-wrap: wrap;
}
.lc-pill {
  display: inline-block;
  border: 1px solid #dce7e2;
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 12px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
}
.shop-card {
  min-width: 0;
  background: white;
  border: 1px solid #e5eae2;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 16px;
}
.shop-card > a > small,
.shop-card h3,
.shop-card > a > b {
  margin-left: 16px;
  margin-right: 16px;
  display: block;
}
.shop-card small {
  color: #6c7d79;
  margin-top: 15px;
}
.shop-card h3 {
  font-size: 15px;
  margin-top: 7px;
  margin-bottom: 7px;
}
.shop-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 15px 15px 0;
}
.shop-card-foot .lc-btn {
  font-size: 12px;
  padding: 9px 10px;
}
.shop-image {
  background: #eef1e9;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-image > span {
  color: #87a798;
  font-size: 80px;
}
.shop-breadcrumb {
  font-size: 12px;
  color: #6c7d79;
  padding: 28px 0;
}
.shop-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.shop-product h1 {
  font:
    42px Georgia,
    serif;
}
.shop-price {
  font-size: 24px;
  font-weight: 650;
  margin: 20px 0;
}
.shop-prose {
  white-space: pre-line;
  max-width: 800px;
  line-height: 1.8;
  margin: 24px 0;
}
.shop-muted {
  font-size: 12px;
  color: #6c7d79;
}
.shop-footer {
  background: #e9efe8;
  padding: 40px max(30px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.shop-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.shop-footer small {
  font-size: 10px;
  color: #6c7d79;
}
.shop-pager {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 25px;
}
.shop-review {
  border-bottom: 1px solid #dce7e2;
  padding: 15px 0;
}
.shop-cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.shop-main > h1 {
  padding-top: 35px;
  font:
    40px Georgia,
    serif;
}
#shop-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #153b36;
  color: white;
  border-radius: 10px;
  padding: 14px 25px;
  display: none;
  z-index: 100000;
}
.shop-checkout .lc-field {
  margin-bottom: 15px;
}
.shop-confirm {
  background: #e3f0e6;
  padding: 30px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.shop-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #dce7e2;
  padding: 15px 0;
  gap: 10px;
}
.shop-line button {
  border: 0;
  background: transparent;
  color: #a43b30;
}
.shop-public-message {
  padding: 12px;
  border: 1px solid #e3d4b9;
  background: #fcf6e9;
  border-radius: 8px;
}
@media (max-width: 1050px) {
  .lc-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lc-pos {
    grid-template-columns: 1fr 320px;
  }
  .shop-filter {
    flex-wrap: wrap;
  }
  .shop-header nav {
    gap: 15px;
  }
  .shop-hero {
    gap: 25px;
  }
  .shop-hero-art {
    min-height: 290px;
  }
}
@media (max-width: 700px) {
  .lc-pos,
  .shop-cart-layout,
  .shop-product,
  .shop-hero {
    grid-template-columns: 1fr;
  }
  .lc-cart {
    position: static;
  }
  .lc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lc-top {
    align-items: start;
    flex-direction: column;
  }
  .lc-form-grid {
    grid-template-columns: 1fr;
  }
  .lc-field.wide {
    grid-column: auto;
  }
  .lc-table td,
  .lc-table th {
    padding: 10px;
  }
  .shop-header {
    padding: 20px;
  }
  .shop-header nav {
    display: none;
  }
  .shop-main {
    padding: 0 20px 45px;
  }
  .shop-hero {
    padding: 35px 0;
  }
  .shop-hero-art {
    display: none;
  }
  .shop-promises {
    font-size: 10px;
    gap: 12px;
  }
  .shop-section-head {
    align-items: start;
    flex-direction: column;
  }
  .shop-grid {
    gap: 12px;
  }
  .shop-card h3 {
    font-size: 13px;
  }
  .shop-card-foot {
    padding: 10px 8px 0;
  }
  .shop-card-foot .lc-btn {
    font-size: 10px;
  }
  .shop-footer {
    padding: 30px 20px;
  }
  .shop-product {
    gap: 20px;
  }
  .shop-product h1 {
    font-size: 32px;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  .lc-receipt,
  .lc-receipt * {
    visibility: visible;
  }
  .lc-receipt {
    position: absolute;
    top: 0;
    left: 0;
    width: 76mm;
  }
  .lc-receipt button {
    display: none;
  }
}

.shop-card-foot {
  flex-wrap: wrap;
  gap: 8px;
}
.shop-card-foot [data-product-actions],
.lc-actions [data-product-actions] {
  display: contents;
}
.shop-whatsapp {
  color: #126f47 !important;
  border-color: #9bd5b5 !important;
  background: #eefaf2 !important;
}
.pos-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.pos-map-canvas {
  min-height: 520px;
  height: 60vh;
  border-radius: 18px;
  border: 1px solid #dce4e4;
  z-index: 0;
  background: #eaf1ef;
}
.pos-map-list {
  max-height: 70vh;
  overflow: auto;
}
.pos-map-list h3 {
  margin: 0 0 8px;
}
.pos-map-list .lc-panel {
  margin-bottom: 12px;
}
.demo-banner {
  padding: 14px 20px;
  border: 1px solid #e6c581;
  background: #fff6df;
  color: #765200;
  border-radius: 12px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .pos-map-layout {
    grid-template-columns: 1fr;
  }
  .pos-map-list {
    max-height: none;
  }
  .pos-map-canvas {
    min-height: 360px;
  }
}
