:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --ink: #101414;
  --muted: #626b68;
  --line: #dde2df;
  --green: #0f5137;
  --green-2: #143f31;
  --yellow: #f5c542;
  --yellow-2: #ffe38a;
  --steel: #25302e;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(16, 20, 20, 0.12);
  --soft-shadow: 0 12px 36px rgba(16, 20, 20, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(15, 81, 55, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 81, 55, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  min-height: 38px;
  padding: 8px clamp(16px, 4vw, 64px);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: var(--steel);
  color: #f6faf8;
  font-size: 13px;
  font-weight: 600;
}

.top-login {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), #11251e);
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.18);
}

.brand strong,
.admin-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small,
.admin-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.search {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(16, 20, 20, 0.05);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px 16px;
  outline: 0;
}

.search button,
.header-whatsapp,
.btn,
.category-menu,
.link-button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.search button {
  padding: 0 18px;
  background: var(--green);
  color: #fff;
}

.header-whatsapp {
  padding: 13px 18px;
  background: #19a963;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.category-menu {
  padding: 10px 14px;
  background: var(--yellow);
  color: #201b08;
}

.hero {
  position: relative;
  min-height: calc(100vh - 138px);
  display: flex;
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 64px) 56px;
  overflow: hidden;
  background: #101414;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: rise 700ms ease both;
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.1vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

.hero p {
  margin: 24px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 20, 0.92) 0%, rgba(16, 20, 20, 0.68) 38%, rgba(16, 20, 20, 0.08) 100%);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.product-card:hover,
.category-card:hover {
  transform: translateY(-3px);
}

.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 81, 55, 0.22);
}

.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 18%, rgba(245, 197, 66, 0.35), transparent 28%),
    linear-gradient(135deg, #fefefe, #e7ece9);
  box-shadow: var(--shadow);
  animation: rise 900ms ease 120ms both;
}

.hero-photo {
  min-height: 520px;
  overflow: hidden;
  background: #101414;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 20, 0.08), transparent 44%);
  pointer-events: none;
}

.warehouse {
  position: absolute;
  inset: 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(15, 81, 55, 0.08) 18% 19%, transparent 19% 35%, rgba(15, 81, 55, 0.08) 35% 36%, transparent 36%),
    linear-gradient(180deg, #fff 0 44%, #dfe6e2 44% 45%, #f8faf9 45% 100%);
  border: 1px solid rgba(16, 20, 20, 0.08);
}

.warehouse::before,
.warehouse::after {
  content: "";
  position: absolute;
  background: repeating-linear-gradient(180deg, var(--green) 0 14px, #e5ece8 14px 25px);
  width: 86px;
  height: 310px;
  bottom: 34px;
  border-radius: 6px;
  opacity: 0.92;
}

.warehouse::before {
  left: 62px;
}

.warehouse::after {
  right: 54px;
}

.tool {
  position: absolute;
  border-radius: 8px;
  filter: drop-shadow(0 20px 28px rgba(16, 20, 20, 0.22));
}

.drill {
  width: 220px;
  height: 145px;
  left: 13%;
  bottom: 18%;
  background:
    linear-gradient(90deg, #202a28 0 26%, transparent 26%),
    linear-gradient(135deg, var(--yellow), #d3981e);
  clip-path: polygon(0 21%, 65% 21%, 65% 0, 91% 0, 91% 21%, 100% 21%, 100% 55%, 72% 55%, 56% 100%, 34% 100%, 42% 55%, 0 55%);
  animation: float 5s ease-in-out infinite;
}

.grinder {
  width: 190px;
  height: 190px;
  right: 16%;
  bottom: 19%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f9faf9 0 28%, #97a19d 29% 44%, #25302e 45% 52%, transparent 53%),
    linear-gradient(45deg, transparent 0 56%, var(--yellow) 56% 72%, transparent 72%);
  animation: float 5.6s ease-in-out 400ms infinite;
}

.bolt {
  width: 110px;
  height: 110px;
  right: 11%;
  top: 23%;
  background: linear-gradient(135deg, #c7d0cb, #747f7a);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  animation: float 6s ease-in-out 200ms infinite;
}

.case {
  width: 230px;
  height: 150px;
  left: 34%;
  top: 16%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.45) 44% 56%, transparent 56%),
    linear-gradient(135deg, #1a2723, #0f5137);
  border: 10px solid #25302e;
  animation: float 6.4s ease-in-out 800ms infinite;
}

.section-head,
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 54px clamp(16px, 4vw, 64px) 20px;
}

.section-head h2,
.catalog h2,
.about-copy h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p,
.catalog-head p,
.about-copy p,
.contact-band p {
  color: var(--muted);
  line-height: 1.7;
}

.link-button {
  background: transparent;
  color: var(--green);
}

.category-strip {
  display: flex;
  gap: 14px;
  padding: 0 clamp(16px, 4vw, 64px) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.category-card {
  flex: 0 0 210px;
  height: 138px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  scroll-snap-align: start;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.category-card strong {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 28px;
  font-size: 17px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 2;
}

.category-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 2;
}

.category-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--yellow);
  font-weight: 900;
}

.category-card img,
.category-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: #eef2ef;
  transition: transform 320ms ease, filter 320ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(16, 20, 20, 0.78));
  opacity: 0;
  transition: opacity 220ms ease;
}

.category-card:hover .category-photo {
  transform: scale(1.08);
  filter: brightness(0.74);
}

.category-card:hover::after,
.category-card:hover strong,
.category-card:hover span {
  opacity: 1;
  transform: translateY(0);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 64px) 42px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  background: #eef2ef;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 450ms ease;
}

.card-photo {
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
  background-color: #eef2ef;
}

.product-card:hover img {
  transform: scale(1.05);
}

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
}

.stock-badge.low {
  color: #9a6700;
}

.stock-badge.out {
  color: var(--danger);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px;
}

.product-category {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.product-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

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

.price {
  font-size: 20px;
  font-weight: 900;
}

.buy {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #19a963;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.buy.disabled {
  pointer-events: none;
  background: #b9c2be;
  color: #fff;
}

.about-band,
.contact-band {
  margin: 32px clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy p,
.contact-band p {
  color: rgba(255, 255, 255, 0.75);
}

.about-visual {
  min-height: 320px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.86) 0 10%, transparent 10%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #10221d, #0f5137);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 48%;
  left: 18%;
  bottom: 16%;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(16, 20, 20, 0.22) 18% 20%, transparent 20% 38%, rgba(16, 20, 20, 0.22) 38% 40%, transparent 40%),
    linear-gradient(180deg, #f6faf8, #cfd8d3);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.proofs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.proofs span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--yellow-2);
  font-weight: 850;
}

.catalog {
  padding-top: 20px;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  font-weight: 750;
}

.contact-band {
  grid-template-columns: 1fr auto;
  background: linear-gradient(135deg, var(--green), #101414);
}

.quote-section {
  margin: 32px clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, var(--green), #101414);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.quote-section p,
.contact-lines {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  padding: 13px;
  outline: 0;
}

.map-section {
  margin: 0 clamp(16px, 4vw, 64px) 44px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.map-section iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px clamp(16px, 4vw, 64px) 28px;
  color: rgba(255, 255, 255, 0.7);
  background: #111917;
}

.footer strong {
  color: #fff;
  font-size: 20px;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.footer a,
.footer span {
  display: block;
  margin: 8px 0;
}

.footer small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.product-detail-page {
  padding-top: 34px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin: 0 clamp(16px, 4vw, 64px);
  padding: clamp(18px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.detail-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef2ef;
}

.detail-image img,
.detail-photo {
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-color: #eef2ef;
}

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
}

.detail-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}

.detail-meta strong {
  font-size: 30px;
}

.detail-stock {
  padding: 9px 12px;
  border-radius: var(--radius);
  background: #edf8f1;
  color: var(--green);
  font-weight: 900;
}

.simple-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) 18px;
}

.simple-page h1 {
  margin: 44px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.simple-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(16, 20, 20, 0.46);
  backdrop-filter: blur(8px);
}

.admin-page {
  min-height: 100vh;
  background: #f4f6f5;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(420px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(24px, 5vw, 58px);
}

.login-card,
.login-visual,
.admin-sidebar,
.admin-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.login-card {
  align-self: center;
  padding: clamp(24px, 4vw, 44px);
}

.login-card h1 {
  margin: 34px 0 8px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.login-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
}

.login-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 20, 0.12), rgba(16, 20, 20, 0.72));
}

.login-visual div {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 1;
}

.login-visual strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.login-visual span {
  display: block;
  max-width: 430px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.admin-dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #17211f;
  color: #fff;
}

.admin-sidebar .brand-mark {
  background: #f5c542;
  color: #17211f;
}

.admin-sidebar small {
  color: rgba(255, 255, 255, 0.64);
}

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

.admin-sidebar nav a {
  padding: 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.admin-nav-btn {
  width: 100%;
  border: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar nav a:hover,
.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar .btn {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-content {
  min-width: 0;
  margin: 24px;
  padding: clamp(20px, 3vw, 34px);
}

.admin-content .dashboard-top h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.company-settings-alone {
  max-width: 980px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 110px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 38px;
}

.stat-card.wide {
  min-width: 0;
}

.chart-card {
  background:
    linear-gradient(rgba(15, 81, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 81, 55, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 100% 24px, 32px 100%;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chart-head strong {
  margin: 0;
  font-size: 14px;
  color: var(--green);
  text-transform: capitalize;
}

.visit-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 108px;
  margin-top: 16px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}

.visit-bars i {
  position: relative;
  flex: 1;
  min-width: 4px;
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--yellow), var(--green));
  box-shadow: 0 10px 18px rgba(15, 81, 55, 0.16);
}

.visit-bars b {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
  font-style: normal;
}

.requests-list {
  display: grid;
  gap: 12px;
}

.request-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.request-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.request-item span,
.request-item small {
  color: var(--muted);
  font-weight: 750;
}

.request-item p {
  margin: 12px 0;
  line-height: 1.6;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-import {
  display: grid;
  gap: 10px;
}

.image-import > label {
  color: var(--steel);
  font-weight: 850;
  font-size: 13px;
}

.image-preview {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2ef;
}

.image-preview img,
.table-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.table-thumb {
  width: 74px;
  height: 54px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.check-row input {
  width: auto;
}

.category-admin-form {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

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

.category-admin-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-admin-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-drawer.open {
  display: flex;
}

.admin-shell {
  position: relative;
  width: min(1180px, 96vw);
  height: 100%;
  overflow: auto;
  background: #f8faf9;
  padding: 28px;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.22);
  animation: slideIn 260ms ease both;
}

.close-admin {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--steel);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.login-panel {
  max-width: 480px;
  margin: 12vh auto 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-panel h2,
.dashboard h2 {
  margin: 24px 0 8px;
  font-size: 34px;
}

.muted,
.dashboard p {
  color: var(--muted);
}

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

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-weight: 850;
  font-size: 13px;
}

.admin-form input,
.admin-form textarea,
.company-form input,
.company-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  outline: 0;
}

.error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 850;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.product-editor,
.settings-card,
.admin-table-wrap {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.product-editor {
  align-self: start;
}

.product-editor h3,
.settings-card h3 {
  margin: 0 0 16px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.admin-table-wrap {
  overflow: auto;
}

.settings-card {
  margin-bottom: 18px;
  box-shadow: none;
}

.company-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-form textarea,
.company-form button {
  grid-column: 1 / -1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.tiny-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.tiny-btn.delete {
  color: var(--danger);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(34px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero,
  .about-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 430px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

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

  .stat-card.wide {
    grid-column: 1 / -1;
  }

  .admin-login-page,
  .admin-dashboard-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    justify-content: center;
  }

  .search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search button {
    min-height: 44px;
  }

  .header-whatsapp {
    text-align: center;
  }

  .nav {
    overflow-x: auto;
    gap: 14px;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-stage {
    min-height: 330px;
  }

  .hero-photo img {
    min-height: 330px;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(16, 20, 20, 0.84), rgba(16, 20, 20, 0.48));
  }

  .hero p {
    font-size: 16px;
  }

  .tool.case {
    width: 150px;
    height: 96px;
  }

  .tool.drill {
    width: 150px;
    height: 100px;
  }

  .tool.grinder {
    width: 120px;
    height: 120px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .category-card {
    flex-basis: 158px;
    height: 118px;
  }

  .section-head,
  .catalog-head,
  .dashboard-top {
    align-items: stretch;
    flex-direction: column;
  }

  .filters,
  .company-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .about-band,
  .contact-band {
    margin-inline: 16px;
    padding: 22px;
  }

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

  .admin-shell {
    width: 100vw;
    padding: 18px;
  }

  .admin-login-page,
  .admin-content {
    padding: 16px;
    margin: 0;
  }

  .login-visual {
    min-height: 300px;
  }

  .two-fields {
    grid-template-columns: 1fr;
  }

  .quote-section,
  .product-detail,
  .footer,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quote-section {
    margin-inline: 16px;
    padding: 20px;
  }

  .quote-form .form-actions {
    flex-direction: column;
  }

  .quote-form .btn {
    width: 100%;
  }

  .visit-bars {
    overflow-x: auto;
    gap: 6px;
  }

  .visit-bars i {
    flex: 0 0 10px;
  }

  .category-admin-form,
  .category-admin-item {
    grid-template-columns: 1fr;
  }
}
