﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

:root {
  --ink: #10160f;
  --ink-2: #2a3328;
  --muted: #687166;
  --paper: #f7f8f3;
  --surface: #ffffff;
  --surface-2: #eef3e9;
  --line: #e1e8d9;
  --brand: #78c51b;
  --brand-2: #0b5a25;
  --dark: #050805;
  --shadow: 0 24px 70px rgba(16, 22, 15, 0.1);
}

body[data-theme="dark"] {
  --ink: #f6f9f1;
  --ink-2: #dfe8da;
  --muted: #aab5a5;
  --paper: #050805;
  --surface: #0d130c;
  --surface-2: #121b10;
  --line: rgba(255, 255, 255, 0.12);
  --brand-2: #8dd52e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(167, 242, 10, 0.14), transparent 26rem),
    var(--paper);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.factory-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  min-height: 38px;
  padding: 0 clamp(18px, 5vw, 78px);
  color: #263025;
  background: #f3f4f1;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
}

.factory-strip-label {
  color: #566052;
}

.factory-brand-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #8d9489 transparent;
}

.factory-brand-scroll::-webkit-scrollbar {
  height: 7px;
}

.factory-brand-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8d9489;
}

.factory-brand-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.factory-brand-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: max-content;
  min-width: 100%;
}

.factory-brand-track a,
.factory-help {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 900;
}

.factory-brand-link {
  justify-content: center;
  min-width: 74px;
  max-width: 118px;
  padding: 0 4px;
  color: #1d271b;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.factory-brand-link span {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-brand-link img {
  display: block;
  width: auto;
  max-width: 94px;
  height: 18px;
  object-fit: contain;
}

.factory-brand-track a.active,
.factory-brand-link.active {
  color: #0b5a25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.factory-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-philco {
  color: #0b5a25;
  font-size: 1rem;
}

.brand-britania {
  color: #f2a900;
  font-size: 1rem;
}

.brand-elg {
  color: #38424b;
  font-size: 1rem;
}

.brand-lopas {
  color: #6b6f76;
  font-size: 1rem;
}

.brand-telasul {
  color: #111111;
  font-size: 1rem;
}

.brand-generic {
  color: #3f493d;
  font-size: 0.92rem;
}

.factory-help {
  justify-self: end;
  min-height: 30px !important;
  padding: 0 12px;
  border: 1px solid #d8ddd5;
  border-radius: 999px;
  color: #263025;
  background: #ffffff;
  font-size: 0.74rem;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.factory-help::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 50%;
  color: #ffffff;
  background: #0b5a25;
  font-size: 0.7rem;
  font-weight: 900;
}

.factory-help:hover,
.factory-help.active {
  border-color: #0b5a25;
  background: #eef3e9;
  text-decoration: none !important;
}

body[data-theme="dark"] .factory-strip {
  color: #dfe8da;
  background: #111511;
}

body[data-theme="dark"] .factory-strip-label,
body[data-theme="dark"] .brand-lopas,
body[data-theme="dark"] .brand-telasul,
body[data-theme="dark"] .brand-generic {
  color: #dfe8da;
}

body[data-theme="dark"] .factory-brand-scroll {
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

body[data-theme="dark"] .factory-brand-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
}

body[data-theme="dark"] .factory-help {
  color: #eef5e9;
  border-color: rgba(255, 255, 255, 0.16);
  background: #171d16;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.shop-header {
  display: grid;
  grid-template-columns: 160px minmax(260px, 1fr) auto auto;
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  min-height: 118px;
  padding: 18px clamp(18px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.shop-brand {
  justify-content: flex-start;
}

.site-search {
  position: relative;
  width: 100%;
}

.site-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 58px 0 20px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 1rem;
  outline: none;
}

.site-search input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent);
}

.site-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.site-search button::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.site-search button::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 23px;
  width: 10px;
  height: 2px;
  border-radius: 99px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(520px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e5e8df;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(16, 22, 15, 0.18);
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  color: #142014;
}

.search-suggestion-item:hover {
  background: #f3f6f0;
}

.search-suggestion-item img,
.suggestion-placeholder {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #eef0ea;
}

.search-suggestion-item strong,
.search-suggestion-item small {
  display: block;
}

.search-suggestion-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #142014;
  font-size: 0.92rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-suggestion-item small {
  margin-top: 4px;
  color: #63705f;
  font-size: 0.78rem;
}

.search-all-results,
.search-empty {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #0b5a25;
  font-size: 0.88rem;
  font-weight: 900;
}

.search-all-results:hover {
  background: #eef3e9;
}

.welcome-link,
.client-welcome-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--ink);
  font-size: 0.9rem;
}

.welcome-link strong,
.client-welcome-link strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.user-dot {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
}

.user-dot::before,
.user-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #071006;
}

.user-dot::before {
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.user-dot::after {
  bottom: 7px;
  width: 18px;
  height: 9px;
  border-radius: 999px 999px 4px 4px;
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.cart-button:hover {
  background: var(--surface-2);
}

.cart-header-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #ffffff;
  background: #315f16;
  font-size: 0.68rem;
  line-height: 1;
}

.cart-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 24px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 18px;
  height: 15px;
  border: 2px solid #315f16;
  border-radius: 4px;
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #315f16;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.campaign-slider {
  position: relative;
  min-height: clamp(360px, 42vw, 560px);
  overflow: hidden;
  background: #ffc400;
}

.campaign-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.86fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 7vw, 120px);
  opacity: 0;
  animation: campaignFade 15s infinite;
}

.campaign-slide:nth-child(2) { animation-delay: 5s; }
.campaign-slide:nth-child(3) { animation-delay: 10s; }

@keyframes campaignFade {
  0%, 30% { opacity: 1; }
  36%, 100% { opacity: 0; }
}

.slide-one { background: linear-gradient(110deg, #ffc400 0%, #ffc400 48%, #f7f3e8 48%, #f7f3e8 67%, #ffc400 67%); }
.slide-two { background: linear-gradient(110deg, #10160f 0%, #10160f 48%, #eef3e9 48%, #eef3e9 67%, #78c51b 67%); color: #ffffff; }
.slide-three { background: linear-gradient(110deg, #f7f8f3 0%, #f7f8f3 48%, #dce8d6 48%, #dce8d6 67%, #10160f 67%); }

.campaign-slide small {
  display: block;
  margin-bottom: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-slide h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.88;
}

.campaign-slide p {
  max-width: 520px;
  color: inherit;
  font-size: 1.18rem;
  line-height: 1.55;
}

.campaign-slide a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 26px;
  border-radius: 999px;
  color: #071006;
  background: #ffffff;
  font-weight: 900;
}

.campaign-products {
  position: relative;
  min-height: 320px;
}

.campaign-products span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #879081);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.campaign-products span:nth-child(1) { left: 5%; bottom: 28px; width: 135px; height: 195px; }
.campaign-products span:nth-child(2) { left: 34%; bottom: 54px; width: 210px; height: 128px; border: 12px solid #111; }
.campaign-products span:nth-child(3) { right: 8%; bottom: 20px; width: 108px; height: 168px; border-radius: 999px 999px 16px 16px; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dots span {
  width: 46px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.8);
}

.slider-dots span:first-child {
  background: #10160f;
}

.hub-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1260px;
  margin: -68px auto 0;
  padding: 0 clamp(18px, 5vw, 78px) clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 2;
}

.hub-intro article {
  min-height: 170px;
  padding: 30px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 22, 15, 0.12);
}

.hub-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.hub-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.deals-section {
  padding: clamp(44px, 6vw, 76px) clamp(18px, 5vw, 78px);
  background: var(--surface-2);
}

.deals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1260px;
  margin: 0 auto 22px;
}

.deals-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.deals-head a {
  color: var(--brand-2);
  font-weight: 900;
}

.deals-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1260px;
  margin: 0 auto;
}

.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  padding: 10px 10px 16px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 22, 15, 0.08);
}

.deal-card > button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}

.deal-card > button::before {
  content: "♡";
  color: var(--ink);
}

.deal-card h3 {
  min-height: 48px;
  margin: 0 8px 8px;
  font-size: 0.96rem;
  line-height: 1.24;
}

.deal-card p,
.deal-card small {
  display: block;
  margin: 0 8px 10px;
  color: var(--muted);
}

.deal-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: calc(100% - 16px);
  margin: auto 8px 0;
  border-radius: 8px;
  color: #071006;
  background: #ffc400;
  font-weight: 900;
}

.deal-card-main {
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  background: transparent !important;
}

.deal-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf1e8;
}

.deal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.deal-product-image span {
  color: #687265;
  font-size: 0.82rem;
  font-weight: 800;
}

.dynamic-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #edf1e8;
}

.dynamic-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.dynamic-product-image span,
.dynamic-product-image.is-missing::after {
  color: #687265;
  font-size: 0.82rem;
  font-weight: 800;
}

.dynamic-product-image.is-missing::after {
  content: "Imagem em cadastro";
}

.deal-price {
  display: grid;
  gap: 2px;
  margin: auto 8px 12px;
  padding: 10px 10px 8px;
  border: 1px solid #d8ead0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4faef 0%, #fff 100%);
}

.deal-price strong {
  color: var(--brand-2);
  font-size: 1.58rem;
  line-height: 1.05;
}

.deal-price-table {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.deal-price-table s {
  color: #7b8478;
}

.deal-price-label {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #063f16;
  background: #dff4d3;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.deal-price span,
.catalog-card-price span {
  color: var(--brand-2);
  font-size: 0.82rem;
}

.deal-price .deal-installment {
  color: var(--brand-2);
  font-weight: 850;
}

.deal-price em {
  color: #075f21;
  font-size: .78rem;
  font-style: normal;
  font-weight: 950;
}

.store-product {
  display: flex;
  flex-direction: column;
}

.store-product-main {
  color: inherit;
  text-decoration: none;
}

.catalog-card-price {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 12px;
}

.catalog-card-price strong {
  font-size: 1.28rem;
}

.catalog-login-price {
  display: inline-flex;
  margin-top: auto;
  color: var(--brand-2);
  font-weight: 900;
}

.catalog-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-loading {
  margin: 0;
  padding: 30px;
  color: var(--muted);
}

.market-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(180px, 0.5fr));
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 78px);
  color: #ffffff;
  background: #303330;
}

.footer-info-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 auto -1px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-bottom-color: #303330;
  border-radius: 8px 8px 0 0;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.footer-info-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.footer-info-toggle.is-open::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.market-footer img {
  width: 120px;
  max-height: 66px;
  object-fit: contain;
}

.market-footer p {
  max-width: 330px;
  color: #e5e5e5;
  line-height: 1.55;
}

.market-footer nav {
  display: grid;
  align-content: start;
  gap: 14px;
}

.market-footer strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.market-footer a {
  color: #ffffff;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100vw);
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -24px 0 54px rgba(0, 0, 0, 0.24);
  transform: translateX(102%);
  opacity: 0;
  transition: transform 420ms cubic-bezier(.2, .85, .2, 1), opacity 300ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
}

.cart-drawer header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cart-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.cart-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - 70px);
  padding: 34px;
  text-align: center;
}

.cart-icon.large {
  transform: scale(1.6);
  margin-bottom: 28px;
}

.cart-empty p {
  color: var(--ink);
  font-size: 1.05rem;
}

.cart-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 220px;
  border-radius: 8px;
  color: #071006;
  background: #ffc400;
  font-weight: 900;
}

.cart-industry-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cart-product-list li {
  border-radius: 10px;
  transition: background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.cart-product-list li.cart-added-highlight {
  background: #ecf8e3;
  box-shadow: 0 0 0 2px #78c51b, 0 14px 30px rgba(15, 91, 31, .16);
  transform: translateX(-3px);
}

.cart-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cart-industry-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.cart-industry-group div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-industry-group strong {
  color: var(--ink);
}

.cart-industry-group span,
.cart-industry-group small {
  color: var(--muted);
}

.cart-product-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-product-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

.cart-product-list li:last-child {
  border-bottom: 0;
}

.cart-product-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-product-list .cart-product-copy span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 28px 30px 28px;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-quantity button {
  width: 28px;
  height: 30px;
  border: 0;
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 900;
}

.cart-remove-button {
  display: grid;
  place-items: center;
}

.trash-icon {
  display: block;
  width: 22px;
  height: 22px;
  border: 0;
  background: url("./assets/icons/delete-recycle.png") center / contain no-repeat;
}

.trash-icon::before,
.trash-icon::after {
  content: none !important;
  display: none !important;
}

.cart-quantity strong {
  text-align: center;
  font-size: 0.86rem;
}

.cart-client-chip {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

.cart-client-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-condition {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.cart-condition span {
  color: var(--muted);
}

.cart-condition strong {
  color: var(--ink-2);
  font-weight: 700;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-total > div {
  display: grid;
  gap: 2px;
}

.cart-total span,
.cart-total small {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-total strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.cart-industry-group a,
.cart-continue,
.cart-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #071006;
  background: var(--brand);
  font-weight: 900;
}

.cart-checkout {
  border: 0;
  cursor: pointer;
}

.cart-checkout.disabled {
  pointer-events: none;
  color: color-mix(in srgb, var(--ink) 48%, transparent);
  background: color-mix(in srgb, var(--brand) 32%, var(--surface-2));
  box-shadow: none;
}

.cart-continue {
  min-height: 46px;
  margin-top: 8px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.cart-rail-toggle {
  position: fixed;
  right: 0;
  top: 52%;
  z-index: 58;
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, #315f16);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #10200b;
  background: var(--brand);
  box-shadow: 0 6px 18px rgba(16, 32, 11, 0.16);
  cursor: pointer;
}

.cart-rail-toggle i {
  font-size: 1.25rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.cart-rail-toggle[aria-expanded="true"] {
  right: min(420px, 100vw);
}

.cart-rail-toggle {
  transition: right 240ms ease, background 160ms ease;
}

.cart-mini-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.cart-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.server-cart-quantity {
  display: grid;
  grid-template-columns: 32px 58px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.server-cart-quantity input {
  width: 58px;
  min-height: 34px;
  border: 0;
  text-align: center;
  background: #fff;
}

.server-cart-quantity .cart-remove-button {
  width: 32px;
  height: 34px;
  border: 0;
  color: #a3332d;
  background: #fff4f2;
  cursor: pointer;
}

.cart-product-list .cart-mini-thumb {
  display: block;
}

.cart-product-list .cart-product-copy {
  display: grid;
  flex: 1 1 auto;
}

.cart-product-list .server-cart-quantity {
  display: grid;
  flex: 0 0 auto;
}

.cart-rail-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

@media (min-width: 761px) {
  .drawer-backdrop {
    pointer-events: none;
    background: transparent;
  }
}

.banner-carousel {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.home-banner {
  min-height: clamp(300px, 38vw, 520px);
}

.catalog-banner {
  display: block;
  min-height: auto;
  margin-bottom: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.banner-slide {
  display: none;
  width: 100%;
}

.banner-slide.active {
  display: block;
}

.banner-slide img,
.banner-slide video {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 420;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #ffffff;
}

.carousel-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid #111111;
  border-left: 3px solid #111111;
}

.carousel-arrow.prev {
  left: 22px;
}

.carousel-arrow.prev::before {
  transform: rotate(-45deg);
}

.carousel-arrow.next {
  right: 22px;
}

.carousel-arrow.next::before {
  transform: rotate(135deg);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.slider-dots button.active {
  background: #ffc400;
}

.departments-menu {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.departments-all::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
}

.departments-menu:hover .departments-all::after,
.departments-menu.is-open .departments-all::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.departments-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 210px minmax(460px, 1fr);
  gap: 18px;
  width: min(880px, calc(100vw - 32px));
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.departments-menu:hover .departments-dropdown,
.departments-menu:focus-within .departments-dropdown,
.departments-menu.is-open .departments-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.department-tabs,
.department-columns {
  display: grid;
  align-content: start;
  gap: 4px;
}

.department-tabs a,
.department-columns a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #4f574d;
  font-size: 0.92rem;
  font-weight: 700;
}

.department-tabs a.active {
  color: #0b5a25;
  font-weight: 900;
  background: #eef3e9;
}

.department-tabs a:hover,
.department-tabs a.active,
.department-columns a:hover {
  color: #071006;
  background: #eef3e9;
}

.department-columns {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  padding: 12px;
  background: #fff9e8;
}

body[data-theme="dark"] .departments-dropdown {
  background: #ffffff;
}

body[data-theme="dark"] .department-tabs {
  background: #ffffff;
}

body[data-theme="dark"] .department-tabs a,
body[data-theme="dark"] .department-columns a {
  color: #4f574d;
}

body[data-theme="dark"] .department-tabs a:hover,
body[data-theme="dark"] .department-columns a:hover {
  color: #071006;
  background: #eef3e9;
}

.brand { display: inline-flex; align-items: center; height: 64px; }
.brand img { display: block; width: 132px; max-height: 62px; object-fit: contain; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 800;
}

.desktop-nav > a,
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
}

.desktop-nav a:hover,
.desktop-nav .active {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.header-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle,
.chat-toggle,
.header-action,
.primary-button,
.secondary-button,
.login-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle {
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.header-action,
.primary-button,
.login-card button {
  padding: 0 22px;
  border: 0;
  color: #071006;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(107, 173, 8, 0.18);
}

.secondary-button {
  padding: 0 22px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-dropdown { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(900px, calc(100vw - 36px));
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.mega-industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.mega-industries section {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
}

.mega-industries h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.mega-industries a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mega-industries a:hover {
  color: var(--ink);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 78px);
}

.home-hero { min-height: calc(100vh - 82px); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.97;
  font-weight: 900;
}

.lead {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.premium-device {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(120, 140, 110, 0.08) 38px 39px);
  box-shadow: var(--shadow);
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.device-top span { width: 10px; height: 10px; border-radius: 99px; background: var(--line); }
.device-top strong { margin-left: auto; color: var(--muted); font-size: 0.86rem; }

.device-search {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.device-grid article,
.device-row,
.explain-grid article,
.segment-showcase article,
.product-card,
.catalog-sidebar,
.service-grid article,
.support-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.device-grid article { padding: 16px; }
.device-grid small { display: block; margin-bottom: 8px; color: var(--brand-2); font-weight: 900; text-transform: uppercase; }
.device-grid strong { font-size: 1.08rem; }

.device-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 15px;
}

.device-row span { color: var(--ink); font-weight: 900; }
.device-row b { color: var(--muted); font-size: 0.9rem; }

.home-explain,
.industry-preview,
.page-main {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 78px);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 30px;
}

.section-heading h2,
.region-band h2,
.page-hero h1,
.access-page h1,
.support-hero h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
}

.explain-grid,
.segment-showcase,
.service-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.explain-grid article,
.segment-showcase article,
.service-grid article {
  padding: 28px;
}

.explain-grid span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--brand-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.explain-grid p,
.segment-showcase p,
.region-band p,
.page-hero p,
.product-body p,
.access-page p,
.support-hero p,
.service-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.region-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: center;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 78px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.region-map-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.region-map-card span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 8px;
  color: var(--brand-2);
  background: var(--surface);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 900;
}

.region-map-card p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); }

.segment-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.page-main { min-height: calc(100vh - 82px); }
.page-hero { max-width: 900px; margin-bottom: 34px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.catalog-sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 16px;
  box-shadow: none;
}

.catalog-sidebar strong { margin: 4px 8px 10px; }
.catalog-sidebar a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 800; }
.catalog-sidebar a:hover, .catalog-sidebar a.active { color: var(--ink); background: var(--surface-2); }

.segment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.segment-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.segment-tabs a.active,
.segment-tabs a:hover {
  color: #071006;
  border-color: transparent;
  background: var(--brand);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-tools input,
.catalog-tools select,
.login-card input {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.product-card { overflow: hidden; box-shadow: none; }

.product-art {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--brand) 30%));
}

.product-art::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 8px;
}

.tv-art::after,
.support-art::after,
.hood-art::after,
.utility-art::after,
.organizer-art::after,
.mattress-art::after,
.cabinet-art::after,
.kitchen-art::after,
.sofa-art::after,
.table-art::after,
.shelf-art::after,
.bed-art::after,
.decor-art::after {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  margin: 58px auto 0;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--muted) 50%, var(--surface)));
  box-shadow: 0 16px 36px rgba(16, 22, 15, 0.18);
}

.tv-art::after { width: 58%; height: 104px; border: 10px solid var(--ink); border-radius: 8px; }
.support-art::after { width: 42%; height: 118px; border-radius: 8px 8px 40px 40px; }
.hood-art::after { width: 62%; height: 58px; margin-top: 82px; border-radius: 8px; }
.utility-art::after { width: 54%; height: 118px; border-radius: 999px 999px 12px 12px; }
.organizer-art::after { width: 56%; height: 112px; border-radius: 8px; }
.mattress-art::after { width: 70%; height: 72px; margin-top: 88px; border-radius: 8px; }
.cabinet-art::after { width: 48%; height: 132px; border-radius: 8px; }
.kitchen-art::after { width: 64%; height: 132px; border-radius: 8px; }
.sofa-art::after { width: 68%; height: 92px; margin-top: 82px; border-radius: 8px 8px 18px 18px; }
.table-art::after { width: 64%; height: 78px; margin-top: 86px; border-radius: 50px 50px 8px 8px; }
.shelf-art::after { width: 50%; height: 130px; border-radius: 8px; }
.bed-art::after { width: 72%; height: 82px; margin-top: 84px; border-radius: 8px; }
.decor-art::after { width: 60%; height: 86px; margin-top: 82px; border-radius: 8px; }

.product-body { padding: 22px; }
.product-body span { display: block; margin-bottom: 8px; color: var(--brand-2); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.product-body h3 { margin-bottom: 10px; font-size: 1.28rem; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.product-footer strong { color: var(--brand-2); font-size: 1.35rem; }
.product-footer button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; color: #071006; background: var(--brand); font-weight: 900; }

.support-hero,
.access-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.support-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; box-shadow: none; }
.support-panel span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; color: var(--brand-2); background: var(--surface-2); font-size: 4rem; font-weight: 900; }
.support-panel strong { grid-column: 1 / -1; font-size: 1.2rem; line-height: 1.35; }

.service-grid { margin-top: 28px; }

.login-card { display: grid; gap: 16px; padding: 26px; color: var(--ink); }
.login-card label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
.login-card a { justify-self: center; color: var(--brand-2); font-weight: 800; }

.admin-preview-link {
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.info-page {
  display: grid;
  gap: 28px;
  align-content: start;
}

.info-hero {
  max-width: 920px;
}

.info-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

.info-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.quick-help-grid,
.admin-dashboard,
.admin-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-help-grid a,
.faq-list details,
.text-panel,
.admin-dashboard article,
.admin-modules article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-help-grid a {
  display: grid;
  align-content: start;
  min-height: 154px;
  padding: 24px;
}

.quick-help-grid strong,
.admin-modules h2 {
  color: var(--ink);
  font-size: 1.08rem;
}

.quick-help-grid span,
.admin-dashboard p,
.admin-modules p,
.text-panel p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  padding: 18px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.text-panel {
  max-width: 900px;
  padding: 28px;
}

.text-panel h2 {
  margin-top: 0;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-2);
}

.contact-form small,
.login-card small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-page {
  gap: 28px;
}

.admin-nav .departments-all::before,
.admin-nav .departments-all::after {
  content: none;
}

.admin-login-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.admin-login-preview h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

.admin-login-preview p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-dashboard article,
.admin-modules article {
  padding: 24px;
}

.admin-dashboard span {
  display: block;
  margin-bottom: 16px;
  color: var(--brand-2);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
}

.admin-dashboard strong {
  color: var(--ink);
}

.admin-modules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-modules button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #071006;
  background: var(--brand);
  font-weight: 900;
}

.admin-body,
.admin-login-body {
  background: #f3f5f0;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 clamp(16px, 3vw, 34px);
  border-bottom: 1px solid #dfe5d9;
  background: #ffffff;
}

.admin-header > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #182017;
  font-weight: 900;
}

.admin-header img {
  width: 72px;
  max-height: 42px;
  object-fit: contain;
}

.admin-header div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header div a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #30402e;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-header div a:hover {
  background: #eef3e9;
}

.admin-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.admin-sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 68px);
  padding: 18px 14px;
  border-right: 1px solid #dfe5d9;
  background: #ffffff;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #42513f;
  font-weight: 900;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #071006;
  background: #78c51b;
}

.admin-nav-badge {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #d7e4d3;
  background: rgba(255,255,255,.09);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-nav-badge.has-alert {
  color: #11320e;
  background: #dff3d7;
}

.admin-sidebar a:hover .admin-nav-badge,
.admin-sidebar a.active .admin-nav-badge {
  color: #143812;
  background: rgba(255,255,255,.55);
}

.admin-sidebar small {
  color: #7a8576;
  line-height: 1.45;
}

.admin-content {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(20px, 3vw, 36px);
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-page-head span,
.admin-login-card span {
  color: #0b5a25;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-page-head h1,
.admin-login-card h1 {
  margin: 6px 0 8px;
  color: #142014;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.admin-page-head p,
.admin-login-card p {
  margin: 0;
  color: #657060;
  line-height: 1.55;
}

.admin-primary-action,
.admin-login-submit {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #071006 !important;
  background: #78c51b;
  font-weight: 900;
}

.admin-panel,
.admin-toolbar {
  border: 1px solid #dfe5d9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 22, 15, 0.07);
}

.admin-panel {
  padding: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel-head h2,
.admin-panel h2 {
  margin: 0 0 6px;
  color: #142014;
  font-size: 1.15rem;
}

.admin-panel-head p,
.admin-panel p {
  margin: 0;
  color: #657060;
  line-height: 1.55;
}

.cart-industry-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cart-industry-logo {
  width: 78px;
  height: 46px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe5d9;
  border-radius: 8px;
  color: #0b5a25;
  background: #fff;
  font-weight: 900;
}

.cart-industry-logo img {
  display: block;
  max-width: 64px;
  max-height: 30px;
  object-fit: contain;
}

.cart-industry-heading > div {
  min-width: 0;
}

.admin-panel-head a,
.admin-status-list a {
  color: #0b5a25;
  font-weight: 900;
}

.admin-status-list {
  display: grid;
  gap: 10px;
}

.admin-status-list div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8f5;
}

.admin-status-list strong,
.admin-table-row strong {
  color: #142014;
}

.admin-status-list span,
.admin-table-row span {
  color: #52604f;
}

.status-ok,
.status-alert,
.status-neutral {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.status-ok {
  color: #0b5a25;
  background: #e4f8d5;
}

.status-alert {
  color: #815400;
  background: #fff1c7;
}

.status-neutral {
  color: #435066;
  background: #e8edf5;
}

.admin-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label,
.admin-toolbar {
  color: #52604f;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #dfe5d9;
  border-radius: 8px;
  color: #142014;
  background: #ffffff;
}

.admin-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.admin-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.admin-segment-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #dfe5d9;
  border-radius: 8px;
  background: #f7f8f5;
}

.admin-segment-picker legend {
  padding: 0 6px;
  color: #52604f;
  font-weight: 900;
}

.admin-segment-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263025;
}

.admin-segment-picker input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.admin-wide-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-field-note {
  margin: -6px 0 0;
  color: #657060;
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-form button,
.admin-table-row button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #071006;
  background: #78c51b;
  font-weight: 900;
}

.admin-steps {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.admin-steps li::marker {
  color: #0b5a25;
  font-weight: 900;
}

.admin-steps span {
  display: block;
  color: #657060;
  line-height: 1.5;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
}

.admin-table {
  display: grid;
  gap: 1px;
  overflow-x: auto;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 130px 160px minmax(190px, 1fr) 100px 110px;
  gap: 12px;
  align-items: center;
  min-width: 760px;
  padding: 12px;
  background: #f7f8f5;
}

.admin-client-row {
  grid-template-columns: minmax(180px, 1.2fr) 160px 130px 120px 100px 100px;
}

.admin-banner-row {
  grid-template-columns: minmax(180px, 1.2fr) 130px 120px 150px 100px 100px;
}

.admin-industry-row {
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) minmax(160px, 0.8fr) 100px 100px;
}

.admin-carrier-row {
  grid-template-columns: minmax(170px, 1fr) 170px 100px minmax(150px, 0.8fr) 90px 90px;
}

.admin-table-header {
  color: #142014;
  background: #eef3e9;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-banner-guide div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-banner-guide p {
  padding: 14px;
  border-radius: 8px;
  background: #f7f8f5;
}

.admin-rule-grid,
.admin-condition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-condition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-rule-grid article,
.admin-condition-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dfe5d9;
  border-radius: 12px;
  background: #f8faf5;
}

.admin-rule-grid strong,
.admin-condition-grid strong {
  color: #142014;
}

.admin-rule-grid span,
.admin-condition-grid span,
.admin-condition-grid small {
  color: #657060;
  line-height: 1.45;
}

.profile-page {
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.profile-hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-actions a,
.profile-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #071006;
  background: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.profile-actions button {
  color: var(--ink);
  background: var(--surface-2);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.profile-grid span {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-grid strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.profile-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-conditions {
  background: var(--surface);
}

.profile-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-documents {
  display: grid;
  gap: 16px;
}

.profile-document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-document-fields label {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-document-fields label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-document-fields b {
  padding: 3px 6px;
  border-radius: 999px;
  color: #704c08;
  background: #fff1c7;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.profile-document-fields input,
.profile-document-fields textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.profile-document-fields small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.profile-file-row em {
  justify-self: start;
}

.profile-document-note {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-document-list,
.profile-order-list {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.profile-document-list div,
.profile-order-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
}

.profile-order-list div {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.profile-upload {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-upload input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-page {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1260px;
  min-height: 0;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.order-review-page {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1260px;
  min-height: 0;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.order-review-list {
  display: grid;
  gap: 16px;
}

.order-review-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.order-review-head,
.order-review-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-review-head > div,
.order-review-footer > div {
  display: grid;
  gap: 5px;
}

.order-review-head span,
.order-review-head small,
.order-review-footer small {
  color: var(--muted);
  font-size: 0.8rem;
}

.order-review-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.order-review-products {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.order-review-products div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 0.88rem;
}

.order-review-footer {
  align-items: flex-end;
}

.order-review-footer strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.order-review-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #071006;
  background: var(--brand);
  font-weight: 900;
}

.order-review-footer a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.checkout-heading h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.checkout-heading p {
  margin: 0;
  color: var(--muted);
}

.checkout-heading > a {
  color: var(--brand-2);
  font-weight: 900;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 18px;
}

.checkout-main {
  display: grid;
  gap: 16px;
}

.checkout-panel,
.checkout-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-panel-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-panel-head h2,
.checkout-summary h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
}

.checkout-products {
  display: grid;
}

.checkout-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 110px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.checkout-product-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 6px;
  border-radius: 8px;
  background: #ffffff;
}

.checkout-product > div:nth-child(2) {
  display: grid;
  gap: 5px;
}

.checkout-product span,
.checkout-copy,
.checkout-summary small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.checkout-product > strong:last-child {
  text-align: right;
}

.checkout-options,
.checkout-fields,
.checkout-carrier,
.checkout-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.checkout-radio span {
  display: grid;
  gap: 4px;
}

.checkout-radio small {
  color: var(--muted);
}

.checkout-fields label,
.checkout-carrier label,
.checkout-documents label {
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-fields input,
.checkout-fields select,
.checkout-carrier input,
.checkout-documents input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.checkout-carrier {
  margin-top: 12px;
}

.checkout-other-carrier {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-other-carrier[hidden] {
  display: none;
}

.payment-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.payment-info[hidden] {
  display: none;
}

.payment-info span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand-2);
  font-weight: 900;
}

.payment-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.payment-info div {
  display: grid;
  gap: 4px;
}

.payment-info strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.payment-info a {
  color: var(--brand-2);
  font-size: 0.8rem;
  font-weight: 900;
}

.checkout-summary {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.checkout-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.checkout-summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.checkout-summary-total strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.checkout-document-warning {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #704c08;
  background: #fff1c7;
  font-size: 0.8rem;
  line-height: 1.45;
}

.checkout-summary button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #071006;
  background: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-page > a img {
  width: 130px;
  margin: 0 auto 18px;
  display: block;
}

.admin-login-card {
  width: min(440px, calc(100vw - 32px));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 78px);
  color: #dfe8da;
  background: var(--dark);
}

.site-footer img { width: 104px; max-height: 56px; object-fit: contain; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--brand); font-weight: 900; }

.department-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 clamp(18px, 5vw, 78px);
  overflow: visible;
  color: #f6f9f1;
  background: #303330;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.department-bar a,
.department-bar button.departments-all {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #e9eee6;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.department-bar button.departments-all {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.department-bar a:hover,
.department-bar a.active,
.department-bar button.departments-all:hover,
.department-bar .departments-menu.is-open > button.departments-all {
  color: var(--brand);
}

.departments-all::before {
  content: "";
  width: 14px;
  height: 10px;
  margin-right: 8px;
  border-top: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  background: linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat;
}

.catalog-page {
  padding: 24px clamp(18px, 5vw, 78px) clamp(58px, 8vw, 108px);
}

.catalog-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 28px;
  align-items: center;
  min-height: 230px;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 46px);
  color: #071006;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.64), transparent 16rem),
    linear-gradient(135deg, #b8f72d 0%, #f3c400 100%);
  overflow: hidden;
}

body[data-theme="dark"] .catalog-banner {
  color: #071006;
}

.catalog-banner .eyebrow {
  color: #274200;
}

.catalog-banner h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.catalog-banner p {
  max-width: 650px;
  margin-bottom: 0;
  color: #263000;
  font-size: 1.05rem;
  line-height: 1.55;
}

.banner-products {
  position: relative;
  min-height: 170px;
}

.banner-products span {
  position: absolute;
  bottom: 10px;
  display: block;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #6f766c);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.banner-products span:nth-child(1) { left: 8%; width: 94px; height: 134px; }
.banner-products span:nth-child(2) { left: 38%; width: 138px; height: 92px; border: 10px solid #151515; }
.banner-products span:nth-child(3) { right: 8%; width: 82px; height: 118px; border-radius: 999px 999px 14px 14px; }

.store-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}

.filter-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(16, 22, 15, 0.06);
  overflow: hidden;
}

.filter-title {
  padding: 20px;
  font-weight: 900;
  background: var(--surface-2);
}

.filter-panel details {
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
}

.filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  font-weight: 900;
  cursor: pointer;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.filter-panel input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.clear-filters {
  width: calc(100% - 40px);
  min-height: 44px;
  margin: 0 20px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.catalog-results {
  min-width: 0;
}

.catalog-breadcrumb {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-breadcrumb span {
  margin: 0 8px;
  color: var(--brand-2);
}

.catalog-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-2);
}

.catalog-headline h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.catalog-headline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-headline label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.catalog-headline select {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 900;
}

.product-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.store-product {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 360px;
  padding: 10px 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.store-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.store-product > button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}

.store-product > button::before {
  content: "♡";
  color: var(--ink);
  font-size: 1rem;
}

.store-art {
  min-height: 174px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 7rem),
    var(--surface);
}

.store-product h3 {
  min-height: 42px;
  margin: 0 8px 8px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.store-product p {
  margin: 0 8px 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 800;
}

.store-product small {
  margin: 0 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.store-product-price {
  display: block;
  margin: 0 8px 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.store-product-price.locked {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  margin: 0 8px 12px;
}

.product-quantity > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-quantity > div {
  display: grid;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-quantity button {
  width: 30px;
  height: 32px;
  border: 0;
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 900;
}

.product-quantity input {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
  font-weight: 800;
  appearance: textfield;
}

.product-quantity input::-webkit-inner-spin-button,
.product-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-card-image {
  width: 100%;
  height: 170px;
  object-fit: contain;
  display: block;
  margin: 8px 0 18px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #f0f1ed;
}

body[data-theme="dark"] .product-card-image {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #ecefea;
}

.store-product-actions {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 8px;
  margin: auto 8px 0;
}

.store-product-actions a,
.store-product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #071006;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.store-product-actions a {
  background: #ffc400;
}

.store-product-actions button {
  background: var(--brand);
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 8px;
}

.floating-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 30px rgba(16, 22, 15, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 900;
}

.chat-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  min-height: 58px !important;
  padding: 0 !important;
  overflow: visible;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(10, 38, 20, .25) !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 38, 20, .3) !important;
}

.chat-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #35a853;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 41;
  width: min(350px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-widget header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: #174c2b;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-agent img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  object-fit: cover;
}

.chat-agent span {
  display: grid;
  gap: 2px;
}

.chat-agent small {
  color: rgba(255,255,255,.76);
  font-size: .72rem;
}

.chat-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  max-height: 370px;
  overflow-y: auto;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.chat-message img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-body p {
  margin: 0;
  padding: 12px;
  border-radius: 10px 10px 10px 3px;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-visitor-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-visitor-fields[hidden] {
  display: none;
}

.chat-thread {
  display: grid;
  gap: 9px;
}

.chat-thread-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-thread-message.client {
  justify-content: flex-end;
}

.chat-thread-message img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-thread-message p {
  max-width: 82%;
}

.chat-thread-message.client p {
  color: #fff;
  background: #2f7d32;
  border-radius: 10px 10px 3px 10px;
}

.chat-form input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.chat-form button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2f7d32;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .mega-industries { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .segment-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deals-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero, .region-band, .catalog-layout, .support-hero, .access-page { grid-template-columns: 1fr; }
  .admin-login-preview,
  .quick-help-grid,
  .admin-dashboard,
  .admin-modules {
    grid-template-columns: 1fr;
  }
  .home-hero { min-height: auto; }
  .explain-grid, .service-grid, .catalog-grid { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .catalog-tools { grid-template-columns: 1fr; }
  .store-layout,
  .catalog-banner {
    grid-template-columns: 1fr;
  }
  .department-bar {
    top: 0;
  }
  .product-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #dfe5d9;
  }
  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
  }
  .admin-sidebar a {
    white-space: nowrap;
  }
  .admin-sidebar small {
    display: none;
  }
  .admin-two-columns,
  .admin-toolbar,
  .admin-banner-guide div,
  .admin-wide-picker,
  .admin-rule-grid,
  .admin-condition-grid,
  .profile-grid,
  .profile-account-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
  }
  .checkout-product {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }
  .checkout-product > strong:last-child {
    grid-column: 2 / -1;
    text-align: left;
  }
  .checkout-options,
  .checkout-fields,
  .checkout-carrier,
  .checkout-documents,
  .checkout-other-carrier,
  .profile-document-fields {
    grid-template-columns: 1fr;
  }
  .order-review-head,
  .order-review-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-order-list div {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    justify-content: flex-start;
  }
  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .shop-header {
    grid-template-columns: 120px 1fr auto;
  }
  .welcome-link,
  .client-welcome-link {
    grid-column: 1 / 3;
    order: 4;
  }
  .cart-button {
    grid-column: 3;
    grid-row: 1;
  }
  .campaign-slide {
    grid-template-columns: 1fr;
  }
  .campaign-products {
    min-height: 190px;
  }
  .hub-intro {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 34px;
  }
  .deals-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header { height: auto; min-height: 74px; padding: 10px 16px; }
  .factory-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 14px;
    gap: 10px;
  }
  .factory-strip-label {
    display: none;
  }
  .factory-brand-track {
    justify-content: flex-start;
    gap: 20px;
    min-width: max-content;
  }
  .factory-help {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .factory-help::before {
    margin-right: 0;
  }
  .brand img { width: 104px; max-height: 54px; }
  .header-tools { gap: 6px; }
  .theme-toggle, .header-action { min-height: 38px; padding: 0 12px; }
  h1 { font-size: 3rem; }
  .device-grid, .segment-showcase { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .product-store-grid { grid-template-columns: 1fr; }
  .catalog-headline { align-items: flex-start; flex-direction: column; }
  .floating-actions { right: 12px; bottom: 12px; }
  .chat-widget { right: 12px; bottom: 64px; }
  .shop-header {
    grid-template-columns: 92px 1fr 42px;
    gap: 10px;
    padding: 12px 14px;
  }
  .shop-brand img {
    width: 92px;
  }
  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .welcome-link,
  .client-welcome-link {
    grid-column: 1 / 3;
    font-size: 0.82rem;
  }
  .campaign-slide h1 {
    font-size: 2.9rem;
  }
  .campaign-slide {
    padding-inline: 18px;
  }
  .hub-intro,
  .deals-section,
  .market-footer {
    padding-inline: 18px;
  }
  .deals-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .deals-row {
    grid-template-columns: 1fr;
  }
}

[hidden] {
  display: none !important;
}

body {
  background: #eeeeee;
}

body[data-theme="dark"] {
  background: #060906;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 30px 0 10px;
}

.catalog-pagination a,
.catalog-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #dce4d9;
  border-radius: 8px;
  color: #334136;
  background: #fff;
  font-weight: 800;
}

.catalog-pagination a:hover,
.catalog-pagination a.active {
  color: #fff;
  border-color: #357a28;
  background: #357a28;
}

.catalog-pagination a.disabled {
  pointer-events: none;
  opacity: .35;
}

.catalog-pagination span {
  min-width: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.catalog-page-summary {
  margin: 0 0 28px;
  color: #687166;
  font-size: .86rem;
  text-align: center;
}

.catalog-filter-options {
  display: grid;
  max-height: calc(var(--filter-visible, 12) * 40px);
  overflow: auto;
  scrollbar-width: thin;
}

.catalog-filter-options a {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.catalog-filter-options a.active {
  background: #edf5e8;
  color: #176326;
  font-weight: 800;
}

.catalog-filter-options a small {
  background: #edf2e9;
  border-radius: 999px;
  color: #52604f;
  font-size: .72rem;
  min-width: 26px;
  padding: 3px 7px;
  text-align: center;
}

.factory-strip,
.shop-header,
.department-bar {
  padding-left: max(18px, calc((100vw - 1260px) / 2));
  padding-right: max(18px, calc((100vw - 1260px) / 2));
}

.catalog-page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

.home-banner,
.hub-intro,
.deals-head,
.deals-row {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.home-banner {
  border-radius: 0;
}

.catalog-banner.banner-carousel,
.banner-carousel {
  display: block;
  min-height: 0;
  padding: 0;
  color: inherit;
  border-radius: 0;
  background: transparent;
}

.catalog-banner.banner-carousel {
  margin-bottom: 24px;
}

.banner-slide img,
.banner-slide video {
  width: 100%;
  aspect-ratio: 1440 / 420;
  max-height: 360px;
  object-fit: cover;
}

.catalog-banner .banner-slide img,
.catalog-banner .banner-slide video {
  border-radius: 10px;
}

.store-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 84px);
  overflow: auto;
}

.catalog-headline {
  min-height: 76px;
  margin-bottom: 20px;
}

.product-store-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
}

.store-product {
  min-height: 410px;
}

.store-art {
  min-height: 158px;
}

.footer-info-toggle {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.market-footer {
  max-width: none;
}

@media (max-width: 1080px) {
  .product-store-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 860px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    max-height: none;
  }

  .product-store-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .catalog-page {
    padding-inline: 12px;
  }

  .department-bar {
    overflow-x: auto;
    overflow-y: visible;
  }

  .departments-dropdown {
    width: min(720px, calc(100vw - 24px));
  }
}

@media (max-width: 560px) {
  .product-store-grid {
    grid-template-columns: 1fr;
  }

  .banner-slide img,
  .banner-slide video {
    aspect-ratio: 16 / 9;
  }

  .catalog-banner .banner-slide img,
  .catalog-banner .banner-slide video {
    border-radius: 0;
  }
}

/* Access page and shared storefront brand proportions. */
.shop-header {
  grid-template-columns: 132px minmax(260px, 1fr) auto auto;
  min-height: 124px;
  padding-block: 14px;
}

.shop-brand {
  width: 112px;
  height: 94px;
  justify-self: start;
}

.shop-brand img {
  width: auto;
  height: 90px;
  max-width: 112px;
  max-height: none;
}

.access-page {
  display: block;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 72px) 0 78px;
}

.access-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
}

.access-heading h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(2.5rem, 4.8vw, 4.7rem);
}

.access-heading p {
  max-width: 720px;
  margin: 0;
}

.access-security-note {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand-2);
  color: var(--muted);
  background: var(--surface-2);
}

.access-security-note strong {
  color: var(--ink);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.35fr);
  gap: 20px;
  align-items: start;
}

.access-grid .editor-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 52, 29, .08);
}

.access-login-card {
  position: sticky;
  top: 18px;
}

.access-card-heading {
  margin-bottom: 4px;
}

.access-card-heading h2 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.access-card-heading p {
  margin: 0;
}

.access-grid .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-grid label {
  min-width: 0;
}

.access-grid input {
  width: 100%;
  box-sizing: border-box;
}

.access-grid .system-primary {
  min-height: 48px;
}

.company-registration-fields[hidden] {
  display: none;
}

.company-registration-fields > .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cnpj-lookup-message {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #d4ddd0;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
}

.cnpj-lookup-message[hidden] {
  display: none;
}

.cnpj-lookup-message strong {
  color: var(--ink);
}

.cnpj-lookup-message.found {
  border-color: #9fc991;
  background: #edf7e8;
}

.cnpj-lookup-message.new {
  border-color: #e2cc83;
  background: #fff8df;
}

@media (max-width: 980px) {
  .access-heading,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-login-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .shop-brand {
    width: 82px;
    height: 76px;
  }

  .shop-brand img {
    width: auto;
    height: 72px;
    max-width: 82px;
    max-height: none;
  }

  .access-page {
    width: min(calc(100% - 28px), 1280px);
    padding-top: 30px;
  }

  .access-heading {
    gap: 18px;
  }

  .access-security-note {
    display: none;
  }

  .access-grid .field-grid {
    grid-template-columns: 1fr;
  }

  .company-registration-fields > .field-grid {
    grid-template-columns: 1fr;
  }

  .access-grid .field-grid .wide {
    grid-column: auto;
  }
}

/* Customer operations and checkout validation */
.admin-bulk-panel { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid #b9d99e; border-radius: 9px; background: #eff7e8; }
.admin-bulk-panel[hidden] { display: none; }
.admin-bulk-panel > strong { margin-right: auto; align-self: center; color: #0b5a25; }
.admin-bulk-panel label { display: grid; gap: 5px; color: #52604f; font-size: .78rem; font-weight: 800; }
.admin-bulk-panel select { min-height: 38px; border: 1px solid #cfd8ca; border-radius: 7px; background: #fff; }
.admin-bulk-panel button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: #69bd16; font-weight: 900; cursor: pointer; }
.catalog-structure-board {
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid #d7e5cf;
  border-radius: 8px;
  background: linear-gradient(180deg,#fbfdf8 0%,#f2f8ed 100%);
}
.catalog-structure-board-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 12px;
}
.catalog-structure-board-head div { display: grid; gap: 3px; }
.catalog-structure-board-head strong { color: #063f1d; font-size: 1.02rem; }
.catalog-structure-board-head span { color: #5d6b58; font-size: .9rem; line-height: 1.35; }
.catalog-structure-board-head em {
  min-width: 118px;
  justify-self: end;
  padding: 8px 11px;
  border: 1px solid #cfe1c2;
  border-radius: 999px;
  color: #0b5a25;
  background: #fff;
  font-style: normal;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}
.catalog-organizer-controls {
  display: grid;
  grid-template-columns: minmax(230px,1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e1eadb;
  border-radius: 8px;
  background: #fff;
}
.catalog-organizer-controls label {
  display: grid;
  gap: 6px;
  color: #52604f;
  font-size: .78rem;
  font-weight: 900;
}
.catalog-organizer-controls select {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cfd8ca;
  border-radius: 7px;
  color: #132012;
  background: #fff;
  font-weight: 800;
}
.catalog-organizer-controls button { min-height: 42px; white-space: nowrap; }
.catalog-organizer-controls p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64725f;
  font-size: .86rem;
  line-height: 1.35;
}
.catalog-drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 236px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}
.catalog-drop-card {
  min-height: 74px;
  display: grid;
  gap: 5px;
  align-content: center;
  text-align: left;
  border: 1px solid #dbe6d5;
  border-radius: 8px;
  background: #fff;
  color: #132012;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.catalog-drop-root { border-color: #9bcf6f; background: #f5fbef; }
.catalog-drop-card strong { font-size: .88rem; color: #063f1d; line-height: 1.2; }
.catalog-drop-card small { color: #64725f; line-height: 1.3; font-size: .78rem; }
.catalog-drop-card:hover,
.catalog-drop-card.is-drag-over { border-color: #2f7d26; box-shadow: 0 10px 24px rgb(28 75 22 / .14); transform: translateY(-1px); background: #f7fcf3; }
.data-table tr[draggable="true"] { cursor: grab; }
.data-table tr[draggable="true"]:active { cursor: grabbing; }
.admin-client-select-row { grid-template-columns: 36px minmax(190px, 1fr) 160px minmax(190px, .9fr) 100px 90px; }
.admin-client-select-row input[type="checkbox"] { width: 17px; height: 17px; }
.admin-editable-conditions { display: grid; gap: 12px; margin-top: 16px; }
.admin-editable-conditions article { display: grid; grid-template-columns: minmax(160px, .8fr) repeat(4, minmax(130px, 1fr)); align-items: end; gap: 12px; padding: 16px; border: 1px solid #dfe5d9; border-radius: 9px; background: #fafbf9; }
.admin-editable-conditions article > div { align-self: center; display: grid; gap: 7px; }
.admin-editable-conditions label { display: grid; gap: 5px; color: #52604f; font-size: .78rem; font-weight: 800; }
.admin-editable-conditions input,
.admin-editable-conditions select,
.admin-document-editor input,
.admin-document-editor select { min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid #cfd8ca; border-radius: 7px; background: #fff; }
.admin-document-editor { display: grid; gap: 1px; margin-top: 16px; border-radius: 9px; overflow: hidden; }
.admin-document-editor article { display: grid; grid-template-columns: minmax(220px, 1fr) 170px auto; align-items: center; gap: 12px; padding: 14px; background: #f7f9f5; }
.admin-document-editor article > div { display: grid; gap: 4px; }
.admin-document-editor article span { color: #657060; font-size: .84rem; }
.admin-file-action { position: relative; min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #cfd8ca; border-radius: 7px; color: #0b5a25; background: #fff; font-weight: 900; cursor: pointer; overflow: hidden; }
.admin-file-action input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.required-mark { display: inline-block; margin-left: 5px; color: #8a5b00; font-size: .68rem; }
.checkout-carrier { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.checkout-carrier-head { display: grid; gap: 3px; margin-bottom: 13px; }
.checkout-carrier-head span { color: var(--muted); font-size: .88rem; }
.checkout-carrier-select { display: grid; gap: 7px; color: var(--ink-2); font-weight: 800; }
.checkout-carrier-select select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.checkout-other-carrier { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.checkout-other-carrier:not([hidden]) { display: grid; }
.checkout-contact-warning { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; margin-top: 14px; padding: 13px 15px; border: 1px solid #e7c96d; border-radius: 8px; color: #704c08; background: #fff7da; }
.checkout-contact-warning[hidden] { display: none; }
.checkout-contact-warning span { font-size: .88rem; }
.checkout-contact-warning a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #0b5a25; font-weight: 900; }
.checkout-summary button:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(.4); }
.admin-order-row { grid-template-columns: 110px minmax(180px, 1fr) minmax(160px, .8fr) 130px 160px 90px; }
.industry-product-toolbar { margin: 16px 0 12px; }
.industry-price-bulk { margin-bottom: 12px; }
.industry-product-row {
  grid-template-columns: 34px minmax(210px, 1.4fr) 90px 110px 110px 110px 90px 70px 80px;
  min-width: 1100px;
}
.industry-product-row input[type="text"] { width: 92px; min-height: 34px; border: 1px solid #d4dcd0; border-radius: 6px; padding: 0 8px; }
.import-preview { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e1e6dd; }
.missing-products-review { display: grid; gap: 9px; margin-top: 14px; padding: 16px; border: 1px solid #ead79b; border-radius: 9px; background: #fffaf0; }
.missing-products-review p { margin: 0; }
.missing-products-review label { display: flex; align-items: center; gap: 8px; color: #52604f; }
.missing-products-review .admin-action { justify-self: start; }
.admin-choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; }
.admin-choice-cards legend { grid-column: 1 / -1; margin-bottom: 3px; color: #52604f; font-weight: 900; }
.admin-choice-cards label { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #dce3d8; border-radius: 9px; background: #fafbf9; }
.admin-choice-cards label:has(input:checked) { border-color: #78c51b; background: #f1f8eb; }
.admin-choice-cards input { width: auto; min-height: auto; margin: 3px 0 0; }
.admin-choice-cards span { display: grid; gap: 4px; }
.admin-choice-cards small { color: #657060; font-weight: 500; }
.client-condition-card { grid-template-columns: repeat(4, minmax(140px, 1fr)) !important; }
.client-condition-card > div { grid-column: 1 / -1; }
.client-condition-card select[multiple] { min-height: 76px; padding-block: 5px; }
.checkout-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-redelivery { display: grid; gap: 4px; margin-top: 14px; padding: 15px; border: 1px solid #cfe1c2; border-radius: 9px; background: #f2f8ed; }
.checkout-redelivery[hidden] { display: none; }
.checkout-redelivery span,
.checkout-redelivery small { color: var(--muted); }
.checkout-tax-note { padding: 10px; border-radius: 7px; background: #f2f8ed; }
.stock-warning { display: block; color: #946200 !important; font-size: .76rem !important; font-weight: 800; }
.add-cart-button.budget { background: #e8b53b; }
.installment-preview {
  display: grid; gap: 6px; margin-top: 14px; padding: 15px 16px;
  border: 1px solid #cfe1c2; border-radius: 9px; background: #f2f8ed;
}
.installment-preview div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.installment-preview span,
.installment-preview small { color: var(--muted); }
.installment-preview strong { color: #0b5a25; font-size: 1.08rem; }
.industry-payment-plans { padding-top: 8px; }
.payment-plan-editor { display: grid; gap: 8px; margin-top: 12px; }
.payment-plan-editor > div {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.3fr) 100px 38px;
  align-items: end; gap: 10px; padding: 12px; border: 1px solid #dfe5d9; border-radius: 8px; background: #fafbf9;
}
.payment-plan-editor label { display: grid; gap: 5px; font-size: .78rem; }
.payment-plan-editor input { width: 100%; min-height: 38px; margin: 0; }
.payment-plan-editor button {
  width: 38px; height: 38px; padding: 0; border: 1px solid #d9dfd5;
  border-radius: 7px; color: #5f6b5c; background: #fff; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 980px) {
  .admin-editable-conditions article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editable-conditions article > div { grid-column: 1 / -1; }
  .checkout-options-three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .admin-editable-conditions article,
  .admin-document-editor article,
  .checkout-other-carrier:not([hidden]) { grid-template-columns: 1fr; }
  .checkout-contact-warning { grid-template-columns: 1fr; }
  .checkout-contact-warning a { grid-column: auto; grid-row: auto; }
  .payment-plan-editor > div { grid-template-columns: 1fr; }
  .installment-preview div { align-items: flex-start; flex-direction: column; }
  .admin-choice-cards,
  .client-condition-card { grid-template-columns: 1fr !important; }
  .catalog-structure-board { margin-inline: 10px; }
  .catalog-structure-board-head,
  .catalog-organizer-controls { grid-template-columns: 1fr; }
  .catalog-structure-board-head em { justify-self: start; }
  .catalog-organizer-controls button { width: 100%; }
}

.home-banner {
  max-width: none;
  width: 100%;
}

.home-banner::after,
.catalog-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(70px, 13vw, 150px);
  background: linear-gradient(180deg, transparent, #eeeeee);
  pointer-events: none;
}

body[data-theme="dark"] .home-banner::after,
body[data-theme="dark"] .catalog-banner::after {
  background: linear-gradient(180deg, transparent, #060906);
}

.home-banner .banner-slide img,
.home-banner .banner-slide video {
  max-height: 520px;
  border-radius: 0;
}

.catalog-banner.banner-carousel {
  width: min(100%, 1260px);
  margin-inline: auto;
}

.catalog-banner .banner-slide img,
.catalog-banner .banner-slide video {
  max-height: 330px;
}

.slider-dots {
  bottom: clamp(54px, 8vw, 92px);
}

.catalog-banner .slider-dots {
  bottom: 18px;
}

.slider-dots button {
  width: 34px;
  height: 6px;
  border-radius: 999px;
}

.campaign-products span,
.hub-intro article,
.deal-card,
.store-product,
.filter-panel,
.catalog-headline,
.product-detail,
.buy-box,
.locked-price {
  border-radius: 12px;
}

.product-page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.product-breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-breadcrumb a {
  color: #1672ff;
}

.product-detail {
  display: grid;
  grid-template-columns: 70px minmax(320px, 1fr) minmax(340px, 0.95fr) minmax(280px, 330px);
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 22, 15, 0.08);
}

.product-thumbs {
  display: grid;
  gap: 10px;
}

.product-thumbs button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}

.product-thumbs button.active {
  border-color: #1672ff;
  box-shadow: 0 0 0 1px #1672ff;
}

.product-thumbs .store-art {
  width: 100%;
  min-height: 58px;
  transform: scale(0.6);
  margin: 0;
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.product-gallery {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: var(--surface);
}

.product-gallery .store-art {
  width: min(100%, 560px);
  min-height: 440px;
}

.product-main-image {
  width: min(100%, 640px);
  max-height: 520px;
  object-fit: contain;
  display: block;
  padding: 28px;
}

.product-info h1 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.16;
}

.product-meta,
.product-rating {
  color: var(--muted);
}

.product-rating {
  margin-bottom: 20px;
}

.product-rating span {
  color: var(--muted);
}

.locked-price {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.locked-price strong {
  font-size: 1.45rem;
}

.locked-price p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.locked-price a,
.buy-primary,
.buy-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
}

.locked-price a,
.buy-primary {
  color: #071006;
  background: var(--brand);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.product-specs div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-specs dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.product-specs dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.product-info h2 {
  font-size: 1rem;
}

.product-info li {
  margin-bottom: 9px;
  color: var(--ink-2);
  line-height: 1.5;
}

.buy-box {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.buy-box strong {
  font-size: 1.2rem;
}

.buy-box p,
.buy-box small {
  color: var(--muted);
  line-height: 1.5;
}

.buy-secondary {
  border: 0;
  color: #1672ff;
  background: #e8f1ff;
}

@media (max-width: 1120px) {
  .product-detail {
    grid-template-columns: 70px minmax(280px, 1fr) minmax(300px, 0.9fr);
  }

  .buy-box {
    grid-column: 2 / -1;
    position: static;
  }
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-thumbs {
    display: flex;
    overflow-x: auto;
  }

  .product-gallery {
    min-height: 320px;
  }

  .product-gallery .store-art {
    min-height: 300px;
  }

  .buy-box {
    grid-column: auto;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }
}

.department-bar .departments-dropdown {
  color: #1f281d;
  background: #ffffff;
  border: 1px solid #e5e8df;
  box-shadow: 0 24px 60px rgba(16, 22, 15, 0.18);
}

.department-bar .department-tabs {
  background: #ffffff;
}

.department-bar .department-columns {
  background: #fff8e4;
}

.department-bar .department-tabs a,
.department-bar .department-columns a {
  color: #465044;
  font-weight: 700;
  opacity: 1;
}

.department-bar .department-tabs a.active {
  color: #0b5a25;
  font-weight: 900;
  background: #eef3e9;
}

.department-bar .department-tabs a:hover,
.department-bar .department-tabs a.active,
.department-bar .department-columns a:hover {
  color: #071006;
  background: #eef3e9;
}

.department-bar .departments-menu.is-open > .departments-all,
.department-bar .departments-menu:hover > .departments-all {
  color: var(--brand);
}

/* Admin operational layout */
.admin-head-actions { display: flex; align-items: center; gap: 10px; }
.admin-info-button {
  width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid #cfd8ca; border-radius: 50%; color: #0b5a25; background: #fff;
  font: 900 1rem/1 Arial, sans-serif; cursor: pointer;
}
.admin-info-button:hover { background: #eef3e9; }
.admin-panel-flush { padding: 0; overflow: hidden; }
.admin-panel-flush .admin-table-row { padding-inline: 18px; }
.admin-table-row span { min-width: 0; }
.admin-table-row span > strong,
.admin-table-row span > small { display: block; }
.admin-table-row span > small { margin-top: 4px; color: #7a8576; font-size: .78rem; }
.admin-action,
.admin-secondary-action {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid #cfd8ca; border-radius: 7px;
  color: #0b5a25; background: #fff; font-weight: 900; cursor: pointer;
}
.admin-action:hover,
.admin-secondary-action:hover { border-color: #78c51b; background: #eef7e5; }
.column-picker {
  position: relative;
}
.column-picker summary {
  list-style: none;
}
.column-picker summary::-webkit-details-marker {
  display: none;
}
.column-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(280px, calc(100vw - 36px));
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #d8e1d2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 36, 21, .16);
}
.column-picker-menu strong {
  padding-bottom: 4px;
  color: #172318;
  font-size: .95rem;
}
.column-picker-menu label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: #334131;
  font-weight: 800;
}
.column-picker-menu input {
  width: 16px;
  height: 16px;
}
.company-table th[hidden],
.company-table td[hidden] {
  display: none;
}
.inline-status-form {
  margin: 0;
}
.admin-inline-create-quote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.admin-inline-create-quote select {
  min-height: 40px;
  min-width: 210px;
  border: 1px solid #cfd8ca;
  border-radius: 7px;
  background: #fff;
  color: #0a1a0d;
  font-weight: 800;
}
.status-toggle-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfd8ca;
  border-radius: 999px;
  color: #0b5a25;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.status-toggle-button.is-active {
  border-color: #d9edcf;
  background: #ddf2d2;
}
.status-toggle-button.is-inactive {
  color: #8b1f1f;
  border-color: #f0cccc;
  background: #fff1f1;
}
.admin-warning-line {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border: 1px solid #edd28f;
  border-radius: 8px;
  color: #6f4d00;
  background: #fff8df;
  font-weight: 800;
}
.client-condition-toolbar,
.admin-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid #e2e7de;
}
.client-condition-toolbar select,
.admin-bulk-toolbar select {
  min-height: 38px;
  border: 1px solid #cfd8ca;
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}
.client-condition-list-flat {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.client-condition-row-selectable {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1fr) repeat(4, minmax(130px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7d4;
  border-radius: 9px;
  background: #fbfdfa;
}
.client-condition-row-selectable > strong {
  align-self: center;
  color: #0a1a0d;
}
.client-condition-select {
  align-self: center;
}
.client-condition-row-selectable label:not(.client-condition-select) {
  display: grid;
  gap: 5px;
  color: #52604f;
  font-size: .78rem;
  font-weight: 900;
}
.client-condition-row-selectable input,
.client-condition-row-selectable select {
  min-height: 38px;
  border: 1px solid #cbd9c4;
  border-radius: 7px;
  background: #fff;
  color: #0a1a0d;
  font: inherit;
}
.company-status-bulk-form {
  margin: 0;
}
.company-status-bulk-form .admin-bulk-toolbar {
  justify-content: flex-start;
  background: #f7faf4;
}
.admin-dashboard-compact article { min-height: 132px; }
.admin-dashboard-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px;
}
.catalog-only-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.admin-compact-ranking { display: grid; margin-top: 8px; }
.admin-compact-ranking div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px;
  padding: 13px 0; border-bottom: 1px solid #e5e9e1;
}
.admin-compact-ranking div:last-child { border-bottom: 0; }
.admin-compact-ranking span { color: #657060; font-size: .84rem; }
.admin-compact-ranking b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #142014; }
.admin-info-dialog {
  width: min(560px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 12px;
  color: #142014; box-shadow: 0 24px 70px rgb(0 0 0 / .22);
}
.admin-info-dialog::backdrop { background: rgb(6 16 8 / .48); }
.admin-info-dialog > button {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #eef3e9; font-size: 1.3rem; cursor: pointer;
}
.admin-info-dialog h2 { margin: 0 36px 12px 0; }
.admin-info-dialog p { color: #5f6b5c; line-height: 1.6; }
.admin-info-dialog dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.admin-info-dialog dl div { padding: 14px; border-radius: 8px; background: #f4f6f1; }
.admin-info-dialog dt { font-weight: 900; }
.admin-info-dialog dd { margin: 5px 0 0; color: #657060; }
.admin-back-link { color: #0b5a25; font-size: .88rem; font-weight: 900; }
.admin-edit-tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px;
  border: 1px solid #dfe5d9; border-radius: 9px; background: #fff;
}
.admin-edit-tabs button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px;
  color: #596555; background: transparent; font-weight: 900; white-space: nowrap; cursor: pointer;
}
.admin-edit-tabs button.active { color: #0b5a25; background: #eaf4e1; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form-full { grid-column: 1 / -1; }
.admin-form-card { width: min(920px, 100%); }
.admin-inline-status {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e7de;
}
.admin-inline-status span { padding: 9px 12px; border-radius: 7px; color: #52604f; background: #f3f6f0; }
.admin-inline-status a { margin-left: auto; color: #0b5a25; font-weight: 900; }
.admin-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.admin-report-grid a {
  display: grid; gap: 5px; padding: 16px; border: 1px solid #e0e6dc;
  border-radius: 8px; color: #142014; background: #fafbf9;
}
.admin-report-grid a:hover { border-color: #78c51b; }
.admin-report-grid span { color: #657060; font-size: .88rem; }

@media (max-width: 820px) {
  .admin-dashboard-grid,
  .admin-form-grid,
  .admin-report-grid { grid-template-columns: 1fr; }
  .client-condition-row-selectable { grid-template-columns: 28px 1fr; }
  .client-condition-row-selectable label:not(.client-condition-select) { grid-column: 1 / -1; }
  .admin-inline-create-quote { width: 100%; }
  .admin-inline-create-quote select { flex: 1; min-width: 0; }
  .admin-form-full { grid-column: auto; }
  .admin-head-actions { width: 100%; justify-content: flex-end; }
  .admin-info-dialog dl { grid-template-columns: 1fr; }
}

/* Compact client profile */
.profile-dashboard-page {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(38px, 5vw, 64px) 0 72px;
  box-sizing: border-box;
}

.profile-hero-compact {
  align-items: center;
  padding: 24px 28px;
}

.profile-hero-compact h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.profile-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-overview article {
  display: grid;
  gap: 4px;
  min-height: 108px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.profile-overview article.has-warning {
  border-color: #ecd89b;
  background: #fffaf0;
}

.profile-overview span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-overview strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.profile-overview small {
  color: var(--muted);
}

.profile-dashboard-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-dashboard-nav button {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  cursor: pointer;
}

.profile-dashboard-nav button:hover,
.profile-dashboard-nav button.active {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgb(15 43 20 / .08);
}

.profile-dashboard-nav button > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.profile-dashboard-nav strong {
  font-size: 1rem;
}

.profile-dashboard-nav small {
  color: var(--muted);
}

.profile-nav-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0b5a25;
  background: #edf5e8;
  font-size: .8rem;
  font-weight: 900;
}

.profile-detail-panel {
  scroll-margin-top: 90px;
}

.profile-detail-panel[hidden] {
  display: none;
}

.profile-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-panel-heading span {
  color: var(--brand-2);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-panel-heading h2 {
  margin: 4px 0 5px;
}

.profile-panel-heading p {
  margin: 0;
}

.profile-alert {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #ecd89b;
  border-radius: 8px;
  color: #704c08;
  background: #fff8df;
}

.profile-alert span {
  font-size: .88rem;
}

@media (max-width: 820px) {
  .profile-overview,
  .profile-dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }
  .profile-dashboard-nav button {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .profile-dashboard-nav button > em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .profile-dashboard-page {
    width: min(100% - 20px, 1180px);
    margin-inline: auto;
    padding-top: 28px;
  }
  .profile-overview,
  .profile-dashboard-nav {
    grid-template-columns: 1fr;
  }
  .profile-overview article {
    min-height: 88px;
  }
  .profile-panel-heading {
    flex-direction: column;
  }
}

/* Featured offers hardening: images must stay inside their cards. */
.deals-section .deals-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
}

.deals-section .deal-card {
  min-width: 0;
  overflow: hidden;
}

.deals-section .deal-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / .72;
  overflow: hidden;
}

.deals-section .deal-product-image img,
.deals-section img.deal-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

@media (max-width:1080px) {
  .deals-section .deals-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width:980px) {
  .deals-section .deals-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width:640px) {
  .deals-section .deals-row { grid-template-columns: 1fr; }
}

/* Final storefront card containment. Keep product photos boxed even with large source images. */
.deals-section .deal-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.deals-section .deal-card-main {
  display: grid !important;
  gap: 10px;
  width: 100% !important;
  margin: 0 0 8px !important;
}

.deals-section .deal-product-image {
  width: 100%;
  height: 188px;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  contain: paint;
}

.deals-section .deal-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  padding: 12px;
  object-fit: contain;
  object-position: center;
}

.deals-section .deal-product-image span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.deals-section .deal-card h3,
.deals-section .deal-card p,
.deals-section .deal-card small,
.deals-section .deal-price {
  position: relative;
  z-index: 1;
  background: var(--surface);
}

/* Storefront marketplace refinements */
.shop-header {
  position: relative;
  z-index: 120;
  grid-template-columns: 220px minmax(380px, 1fr) auto;
  gap: clamp(14px, 1.8vw, 28px);
  min-height: 78px;
  padding-block: 10px;
  overflow: visible;
}

.shop-brand {
  width: 206px;
  height: 54px;
  justify-self: start;
}

.shop-brand img {
  display: block;
  width: 206px;
  height: 54px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.shop-header .site-search {
  z-index: 130;
}

.shop-header .site-search input {
  min-height: 48px;
}

.shop-header .search-suggestions {
  z-index: 140;
}

.shop-header-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  gap: 8px;
  justify-self: end;
}

.client-welcome-link,
.header-orders-link,
.header-alert-link,
.cart-button.live-header-cart {
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.client-welcome-link,
.header-orders-link,
.header-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

.client-welcome-link:hover,
.header-orders-link:hover,
.header-alert-link:hover,
.cart-button.live-header-cart:hover {
  background: var(--surface-2);
}

.client-welcome-link span:last-child,
.header-orders-link,
.header-alert-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
}

.client-welcome-link strong,
.header-orders-link strong,
.header-alert-link strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.client-welcome-link span:not(.user-dot),
.header-orders-link span,
.header-alert-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.client-welcome-link em {
  display: block;
  margin-top: 4px;
  color: #0e4f17;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.header-alert-link strong {
  min-width: 26px;
  padding: 4px 8px;
  color: #0e4f17;
  border-radius: 999px;
  background: #dff3d7;
  text-align: center;
}

.cart-button.live-header-cart {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  column-gap: 6px;
  position: relative;
  padding: 8px;
  border-radius: 8px;
}

.cart-symbol {
  width: 32px;
  height: 32px;
  color: #255f18;
}

.cart-button.live-header-cart > span:not(.cart-icon) {
  color: var(--ink);
  font-weight: 900;
}

.cart-button.live-header-cart .cart-header-count {
  position: absolute;
  top: 1px;
  left: 28px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  border-radius: 999px;
  background: #0f6a22;
  font-size: 0.72rem;
}

.header-cart-menu {
  position: relative;
}

.header-cart-dropdown {
  display: none !important;
}

.header-cart-menu:hover .header-cart-dropdown,
.header-cart-menu:focus-within .header-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(330px, 88vw);
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(17, 31, 20, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.header-cart-dropdown > strong {
  color: var(--ink);
  font-size: .95rem;
}

.header-cart-dropdown p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.header-cart-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  background: var(--surface-2);
}

.header-cart-dropdown a small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-cart-dropdown a:hover {
  background: #e3f2dc;
}

.header-cart-dropdown .header-cart-new {
  justify-content: center;
  border: 1px dashed #94bd88;
  color: #0f641f;
  background: transparent;
}

.header-cart-dropdown .header-cart-review {
  justify-content: center;
  color: #fff;
  background: var(--brand);
}

.campaign-bar {
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  z-index: 40;
  width: 100%;
  padding-inline: clamp(16px, 1.8vw, 34px);
}

.campaign-bar::before { content: none; }

.campaign-bar .departments-menu {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.campaign-bar .departments-all {
  min-height: 48px;
  padding: 0 16px 0 0;
  color: var(--brand);
}

.campaign-bar .departments-all::before {
  content: "";
  width: 16px;
  height: 12px;
  margin-right: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat;
}

.campaign-bar .departments-dropdown[data-server-departments] {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: 340px minmax(260px, 420px);
  grid-template-rows: auto 1fr;
  width: min(760px, calc(100vw - 28px));
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 22px 0 55px rgba(0,0,0,.32);
  transform: translateX(-105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}

.campaign-bar .departments-menu.is-open .departments-dropdown[data-server-departments] {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.departments-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  transition: opacity 180ms ease;
}

.departments-backdrop.is-open {
  opacity: 1;
}

body.departments-is-open {
  overflow: hidden;
}

.departments-drawer-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px 0 28px;
  color: #fff;
  background: #17321f;
  font-size: 1.08rem;
  font-weight: 900;
}

.departments-close {
  position: static;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.16);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.departments-close:hover {
  background: rgba(0,0,0,.28);
}

.campaign-bar .department-tabs,
.campaign-bar .department-columns {
  min-height: 0;
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 16px;
}

.campaign-bar .department-tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.campaign-bar .department-tabs a,
.campaign-bar .department-columns a {
  min-height: 42px;
  color: var(--ink);
  white-space: normal;
}

.campaign-bar .department-tabs a {
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 6px;
}

.campaign-bar .department-tabs a::after {
  content: "›";
  color: var(--muted);
  font-size: 1.2rem;
}

.campaign-bar .department-tabs a.active,
.campaign-bar .department-tabs a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.campaign-bar .department-columns {
  background: #fbf5e5;
}

.campaign-bar .department-submenu {
  display: none;
  align-content: start;
  gap: 8px;
}

.campaign-bar .department-submenu.active {
  display: grid;
}

.search-query-suggestion {
  grid-template-columns: 34px 1fr;
}

.search-query-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-2);
}

.search-query-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.search-query-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 19px;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: var(--muted);
  transform: rotate(45deg);
}

.catalog-page {
  width: 100%;
  max-width: none;
  padding-inline: clamp(14px, 1.6vw, 32px);
}

.store-layout {
  width: 100%;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
}

.product-store-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.1vw, 18px);
}

.store-product {
  min-height: 392px;
}

.storefront-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-card {
  min-height: 100%;
}

.storefront-header-card,
.storefront-order-panel,
.home-offer-blocks-panel {
  width: 100%;
  margin-bottom: 18px;
}

.storefront-header-card .navigation-editor {
  display: grid;
  gap: 10px;
}

.storefront-header-card .navigation-editor > div {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(260px, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.storefront-section-order {
  display: grid;
  gap: 10px;
}

.storefront-section-order-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: grab;
}

.storefront-section-order-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--brand-2);
  background: #e9f4e3;
  font-weight: 950;
}

.storefront-section-order-row.is-dragging,
.home-offer-block-row.is-dragging {
  opacity: .55;
  cursor: grabbing;
}

@media (min-width: 1500px) {
  .product-store-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .product-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .storefront-grid {
    grid-template-columns: 1fr;
  }

  .storefront-header-card .navigation-editor > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .product-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .shop-header {
    grid-template-columns: 118px minmax(260px, 1fr) auto;
  }

  .shop-header-actions {
    gap: 4px;
  }

  .client-welcome-link,
  .header-orders-link,
  .cart-button.live-header-cart {
    padding-inline: 6px;
  }
}

@media (max-width: 720px) {
  .shop-header {
    grid-template-columns: 88px 1fr;
  }

  .shop-header-actions {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
  }

  .client-welcome-link,
  .header-orders-link,
  .cart-button.live-header-cart {
    justify-content: center;
    min-width: 0;
  }

  .client-welcome-link span:last-child,
  .header-orders-link,
  .cart-button.live-header-cart > span:not(.cart-icon) {
    display: flex;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }
}

main.catalog-page.live-catalog-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(14px, 1.4vw, 28px);
}

main.catalog-page.live-catalog-page .store-layout {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

main.catalog-page.live-catalog-page .product-store-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1380px) {
  main.catalog-page.live-catalog-page .product-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  main.catalog-page.live-catalog-page .product-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main.catalog-page.live-catalog-page .store-layout {
    grid-template-columns: 1fr;
  }

  main.catalog-page.live-catalog-page .product-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MVP navigation drawer: simple left-side category menu. */
.campaign-bar .departments-dropdown[data-server-departments] {
  z-index: 1200;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto 1fr !important;
  width: min(430px, calc(100vw - 20px)) !important;
  max-width: none !important;
}

.departments-backdrop {
  z-index: 1000;
}

.campaign-bar .department-tabs,
.campaign-bar .department-columns {
  max-height: none;
  overflow: visible;
}

.campaign-bar .department-tabs {
  grid-row: 2;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 8px;
}

.campaign-bar .department-columns {
  grid-row: 3;
  padding: 10px 16px 22px;
  overflow: auto;
  background: #fff;
  transform: translateX(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 220ms ease;
}

.campaign-bar .department-tabs a,
.campaign-bar .department-columns a {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
}

.campaign-bar .department-submenu.active {
  display: grid;
  gap: 2px;
}

.campaign-bar .departments-dropdown[data-server-departments].submenu-view .department-tabs {
  display: none;
}

.campaign-bar .departments-dropdown[data-server-departments].submenu-view .department-columns {
  grid-row: 2 / 4;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.campaign-bar .departments-dropdown[data-server-departments] .department-columns,
.campaign-bar .departments-dropdown[data-server-departments] .department-submenu {
  grid-template-columns: 1fr !important;
  background: #fff !important;
}

.campaign-bar .departments-dropdown[data-server-departments] .department-submenu.active {
  display: grid;
  gap: 4px;
}

.campaign-bar .departments-dropdown[data-server-departments] .department-submenu a {
  justify-content: flex-start;
}

.department-panel-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  margin-bottom: 6px;
  border: 0;
  color: var(--brand-2);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.department-panel-back span {
  margin-right: 8px;
  font-size: 1.35rem;
  line-height: 1;
}

.department-panel-title {
  display: block;
  padding: 2px 10px 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-drawer {
  z-index: 1300;
}

.drawer-backdrop {
  z-index: 1290;
}

/* Final storefront drawer sizing. */
.campaign-bar .departments-dropdown[data-server-departments] {
  width: min(430px, 100vw) !important;
  height: auto !important;
  max-height: 100vh !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
}

.campaign-bar .departments-dropdown[data-server-departments]:not(.submenu-view) .department-columns {
  display: none !important;
}

.campaign-bar .departments-dropdown[data-server-departments]:not(.submenu-view) .department-tabs {
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding-bottom: 16px;
}

.campaign-bar .departments-dropdown[data-server-departments].submenu-view {
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100vh !important;
}

.campaign-bar .departments-dropdown[data-server-departments].submenu-view .department-columns {
  grid-row: 2 !important;
  max-height: calc(100vh - 64px);
  overflow: auto;
}

.cart-rail-toggle {
  z-index: 1280;
}

/* Keep the category drawer above the page overlay. */
.departments-backdrop {
  z-index: 1180 !important;
}

.campaign-bar .departments-menu.is-open .departments-dropdown[data-server-departments],
.campaign-bar .departments-dropdown[data-server-departments] {
  z-index: 1210 !important;
  background: #fff !important;
}

.campaign-bar .departments-dropdown[data-server-departments] .departments-drawer-head,
.campaign-bar .departments-dropdown[data-server-departments] .department-tabs,
.campaign-bar .departments-dropdown[data-server-departments] .department-columns {
  position: relative;
  z-index: 1;
}

.campaign-bar .departments-dropdown[data-server-departments] .department-tabs,
.campaign-bar .departments-dropdown[data-server-departments] .department-columns {
  background: #fff !important;
}

/* Drawer stacking fix: the drawer lives inside the dark campaign bar, so the
   bar itself must rise above the page dimmer while the menu is open. */
body.departments-is-open .department-bar.campaign-bar {
  z-index: 1225 !important;
  overflow: visible !important;
}

body.departments-is-open .campaign-bar .departments-dropdown[data-server-departments] {
  top: 0 !important;
  left: 0 !important;
  width: min(430px, 100vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  color: #1f281d !important;
  background: #fff !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.departments-is-open .campaign-bar .departments-dropdown[data-server-departments] .departments-drawer-head {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 16px 0 24px !important;
  color: #fff !important;
  background: #11351f !important;
}

body.departments-is-open .campaign-bar .departments-dropdown[data-server-departments]:not(.submenu-view) .department-tabs {
  display: grid !important;
  max-height: calc(100vh - 56px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
}

body.departments-is-open .campaign-bar .departments-dropdown[data-server-departments].submenu-view .department-columns {
  max-height: calc(100vh - 56px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
}

.checkout-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.checkout-industry-logo {
  width: 120px;
  height: 64px;
  object-fit: contain;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-logistics-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf4;
}

.checkout-logistics-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-logistics-box .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.checkout-logistics-box small {
  color: var(--muted);
  line-height: 1.35;
}

.checkout-carrier-fields {
  display: grid;
  gap: 12px;
}

.checkout-carrier-fields[hidden] {
  display: none;
}

.checkout-carrier-fields label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 800;
}

.checkout-carrier-fields input,
.checkout-carrier-fields select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.checkout-carrier-fields small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-carrier-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.carrier-info-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef8e8;
  color: #07551e;
  font-weight: 950;
  cursor: pointer;
}

.carrier-info-button:hover {
  border-color: #86c56f;
  background: #dff3d7;
}

.carrier-rate-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.carrier-rate-dialog::backdrop {
  background: rgba(4, 20, 10, .58);
}

.carrier-rate-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.carrier-rate-dialog-head h3 {
  margin: 2px 0 0;
}

.carrier-rate-dialog-head button {
  align-self: start;
}

.carrier-rate-dialog-body {
  padding: 20px;
  overflow: auto;
}

.carrier-rate-dialog-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carrier-rate-dialog-body pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  color: var(--ink-2);
  font: inherit;
  line-height: 1.45;
}

.carrier-rate-link {
  display: inline-flex;
  width: auto;
}

/* Home offer blocks configured in Admin > Vitrine. */
.home-offer-section {
  padding-block: clamp(34px, 4.4vw, 58px);
}

.home-offer-section + .home-offer-section {
  padding-top: clamp(22px, 3vw, 42px);
}

.home-offer-section .deals-head,
.home-offer-section .deals-row {
  max-width: 1520px;
  margin-inline: auto;
}

.home-offer-section .deals-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.home-offer-vitrine {
  background: #fff;
}

.home-offer-vitrine .deals-row {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
}

.home-offer-vitrine .deal-card:first-child {
  background: linear-gradient(180deg, #f4f9f1 0%, #fff 68%);
  border-color: #cfe4c7;
}

.home-offer-vitrine .deal-card:first-child .deal-product-image {
  height: 246px;
}

.home-offer-compacto .deals-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-offer-compacto .deal-card {
  min-height: 330px;
  padding: 8px 8px 14px;
}

.home-offer-compacto .deal-product-image {
  height: 150px;
}

.home-offer-faixa {
  background: #253029;
  color: #fff;
}

.home-offer-faixa .deals-head h2,
.home-offer-faixa .deals-head a,
.home-offer-faixa .deals-head p {
  color: #fff;
}

.home-offer-faixa .deal-card {
  border-color: rgba(255,255,255,.22);
  box-shadow: none;
}

.storefront-add-offer-block {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px 0;
}

.storefront-add-offer-block label {
  display: grid;
  gap: 6px;
  min-width: min(420px, 100%);
  font-weight: 800;
}

.home-offer-block-editor {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
}

.home-offer-block-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr) 160px 110px 42px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.home-offer-block-row strong,
.home-offer-block-row label {
  display: grid;
  gap: 5px;
}

.home-offer-block-row button {
  min-height: 42px;
}

.admin-settings-subhead {
  margin-top: 6px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--border);
}

.admin-settings-subhead h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-settings-subhead p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .home-offer-vitrine .deals-row,
  .home-offer-compacto .deals-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-offer-block-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-offer-vitrine .deals-row,
  .home-offer-compacto .deals-row {
    grid-template-columns: 1fr;
  }
  .home-offer-block-row {
    grid-template-columns: 1fr;
  }
}

/* Product cards: keep catalog and showcase photos fully visible. */
.deal-product-image,
.deals-section .deal-product-image,
.dynamic-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 232px;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf1e8;
}

.deal-product-image img,
.deals-section .deal-product-image img,
.deals-section img.deal-product-image,
.dynamic-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.deal-product-image span,
.dynamic-product-image span,
.dynamic-product-image.is-missing::after {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.home-offer-vitrine .deal-card:first-child .deal-product-image,
.home-offer-compacto .deal-product-image {
  min-height: 232px;
  height: auto;
  aspect-ratio: 4 / 3;
}

@media (min-width: 1320px) {
  .deal-product-image,
  .deals-section .deal-product-image,
  .dynamic-product-image {
    min-height: 246px;
  }
}

@media (max-width: 760px) {
  .deal-product-image,
  .deals-section .deal-product-image,
  .dynamic-product-image,
  .home-offer-vitrine .deal-card:first-child .deal-product-image,
  .home-offer-compacto .deal-product-image {
    min-height: 220px;
  }
}

.home-category-showcase {
  max-width: 1520px;
  margin: clamp(22px, 3vw, 40px) auto clamp(36px, 5vw, 70px);
  padding: 0 clamp(18px, 4vw, 42px);
}

.home-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.home-category-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: .95;
}

.home-category-head a {
  color: var(--brand-2);
  font-weight: 900;
  white-space: nowrap;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.home-category-card {
  display: grid;
  grid-template-rows: 126px auto auto auto;
  gap: 7px;
  min-width: 0;
  min-height: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(16, 22, 15, .06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-category-card:hover {
  transform: translateY(-2px);
  border-color: #b8d9a8;
  box-shadow: 0 20px 54px rgba(16, 22, 15, .1);
}

.home-category-image {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef7e8 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px #e4ebdd;
}

.home-category-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
}

.home-category-image em {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-2);
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 950;
}

.home-category-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-category-card small {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-category-card span:last-child {
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 900;
}

.home-industry-showcase {
  margin-top: clamp(12px, 2vw, 28px);
}

.home-industry-card {
  grid-template-rows: 112px auto auto auto;
}

.home-industry-image {
  background: #fff;
}

.home-industry-image img {
  max-width: 82%;
  max-height: 82%;
  padding: 10px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .home-category-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .home-category-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .home-category-head {
    align-items: start;
    flex-direction: column;
  }
  .home-category-card {
    flex-basis: 170px;
    grid-template-rows: 112px auto auto auto;
  }
}

