:root {
  color-scheme: light;
  --ink: #1e2527;
  --muted: #627071;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d9d4c8;
  --accent: #c9581a;
  --accent-dark: #8f3415;
  --steel: #5c3b20;
  --gold: #df9d21;
  --logo-red: #c22917;
  --whatsapp: #20ad58;
  --whatsapp-dark: #168d45;
  --shadow: 0 18px 48px rgba(31, 37, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(30, 37, 39, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  border: 2px solid rgba(223, 157, 33, 0.5);
  box-shadow: 0 8px 16px rgba(31, 37, 39, 0.12);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px 8px auto 8px;
  height: 15px;
  background: var(--gold);
  clip-path: polygon(0 54%, 50% 0, 100% 54%, 84% 54%, 50% 20%, 16% 54%);
}

.brand-letter {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: white;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: #334042;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
}

.cart-button,
.admin-toggle,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #211b08;
  font-size: 0.78rem;
}

.admin-toggle {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 900;
}

.admin-toggle.active {
  background: var(--steel);
  color: white;
  border-color: var(--steel);
}

.cart-icon {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--gold), var(--gold)) 4px 13px / 3px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 13px 13px / 3px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 2px 4px / 13px 8px no-repeat;
  clip-path: polygon(0 0, 18px 0, 18px 18px, 0 18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(22px, 4vw, 60px);
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px) 32px;
  background:
    linear-gradient(90deg, rgba(10, 12, 13, 0.76), rgba(10, 12, 13, 0.42) 48%, rgba(10, 12, 13, 0.08)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
}

.hero-copy {
  max-width: 820px;
  padding-bottom: clamp(24px, 6vw, 80px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  line-height: 1;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.58;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  background: var(--accent);
  color: white;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.whatsapp-link:hover,
.whatsapp-checkout:hover {
  background: var(--whatsapp-dark);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  background: rgba(20, 28, 30, 0.78);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.toolbar,
.admin-panel,
.products-section,
.quote-strip,
.services,
.contact {
  padding: 42px clamp(18px, 4vw, 56px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 18px;
  align-items: end;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-box input,
.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.search-box input {
  height: 48px;
  padding: 0 14px;
}

.search-box input:focus,
.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(49, 97, 107, 0.14);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #334042;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.active {
  border-color: var(--steel);
  background: var(--steel);
  color: white;
}

.admin-panel {
  background: #efeae0;
  border-bottom: 1px solid var(--line);
}

.admin-page-section {
  min-height: calc(100vh - 76px);
  padding: 42px clamp(18px, 4vw, 56px);
}

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

.admin-login,
.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-login {
  grid-template-columns: minmax(220px, 360px) auto minmax(160px, 1fr);
  align-items: end;
  margin-bottom: 16px;
}

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

.admin-login[hidden],
.admin-form[hidden] {
  display: none;
}

.admin-login label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-login input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.admin-login input,
.admin-form input {
  height: 46px;
  padding: 0 12px;
}

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

.admin-login input:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(49, 97, 107, 0.14);
}

.wide-field {
  grid-column: span 2;
}

.admin-form .primary-action,
.admin-form .secondary-action {
  align-self: end;
}

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

.admin-form-actions {
  align-items: end;
  flex-wrap: wrap;
}

.admin-row-actions {
  justify-content: end;
}

.admin-row-actions .secondary-action,
.admin-form-actions .secondary-action {
  background: #fff7e8;
  color: var(--accent-dark);
  border: 1px solid rgba(201, 88, 26, 0.28);
}

.admin-row-actions .secondary-action:hover,
.admin-form-actions .secondary-action:hover {
  background: #f7dfb5;
}

.admin-workspace[hidden] {
  display: none;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-subheading {
  margin-top: 36px;
}

.admin-order-row,
.admin-product-row {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-order-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-product-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.admin-product-row img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #d8d4ca;
}

.admin-order-row h3,
.admin-order-row p,
.admin-product-row h3,
.admin-product-row p {
  margin: 0;
}

.admin-order-row h3,
.admin-product-row h3 {
  font-size: 1.05rem;
}

.admin-order-row p,
.admin-order-row small,
.admin-product-row p {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading > p,
.contact p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 22px rgba(31, 37, 39, 0.08);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d4ca;
}

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

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

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(30, 37, 39, 0.88);
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-body h3 {
  margin: 0;
  min-height: 48px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-body p {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  line-height: 1.45;
}

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

.price {
  font-size: 1.25rem;
  font-weight: 950;
}

.add-button,
.qty-button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.add-button {
  min-height: 42px;
  padding: 9px 13px;
}

.delete-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(179, 59, 36, 0.22);
  border-radius: 8px;
  background: #fff3ef;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
}

.services {
  background: #e8e3d6;
}

.quote-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #e8e3d6;
  border-top: 1px solid var(--line);
}

.quote-strip h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.quote-strip .primary-action {
  flex: 0 0 auto;
}

.help-services {
  padding-top: clamp(56px, 8vw, 96px);
}

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

.service-grid article {
  min-height: 178px;
  padding: 24px;
  border-left: 5px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
}

.service-grid h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(26px, 5vw, 70px);
  background: white;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.quote-form input {
  height: 46px;
  padding: 0 12px;
}

.quote-form textarea {
  resize: vertical;
  min-height: 124px;
  padding: 12px;
}

.quote-form .primary-action {
  width: 100%;
}

.whatsapp-checkout,
.whatsapp-link,
.floating-whatsapp {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 14px;
  background: var(--whatsapp);
  color: white;
}

.whatsapp-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  background: var(--whatsapp);
  color: white;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--steel);
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 260ms;
}

.cart-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 26, 0.48);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100%;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 300ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ebe7dc;
  color: var(--ink);
  font-size: 1.15rem;
}

.cart-items {
  overflow: auto;
  padding: 10px 18px;
}

.empty-cart {
  color: var(--muted);
  line-height: 1.5;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line.just-added {
  animation: cart-line-pop 520ms ease both;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
}

.quantity {
  display: grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  text-align: center;
}

.qty-button {
  height: 32px;
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.checkout-action {
  width: 100%;
}

.cart-footer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer {
  padding: 22px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 16px 32px rgba(31, 37, 39, 0.22);
}

.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.floating-alert {
  position: absolute;
  top: -8px;
  left: -4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ef1f18;
  color: white;
  border: 3px solid white;
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1;
  animation: alert-bounce 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.whatsapp-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.whatsapp-chat {
  fill: white;
}

.whatsapp-phone {
  fill: var(--whatsapp);
}

.floating-whatsapp:focus-visible {
  outline: 4px solid rgba(223, 157, 33, 0.45);
  outline-offset: 4px;
}

@keyframes cart-line-pop {
  0% {
    transform: translateX(22px) scale(0.98);
    background: #fff7e8;
    opacity: 0;
  }

  58% {
    transform: translateX(0) scale(1.02);
    background: #fff1d3;
    opacity: 1;
  }

  100% {
    transform: translateX(0) scale(1);
    background: transparent;
    opacity: 1;
  }
}

@keyframes alert-bounce {
  0%,
  56%,
  100% {
    transform: translateY(0) scale(1);
  }

  66% {
    transform: translateY(-9px) scale(1.04);
  }

  76% {
    transform: translateY(0) scale(0.98);
  }

  86% {
    transform: translateY(-4px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer,
  .cart-panel,
  .cart-line.just-added,
  .floating-alert,
  .floating-whatsapp:hover {
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 66px;
    height: 66px;
  }

  .floating-alert {
    width: 32px;
    height: 32px;
  }

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

@media (max-width: 840px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow: auto;
  }

  .hero,
  .toolbar,
  .admin-panel,
  .quote-strip,
  .contact {
    grid-template-columns: 1fr;
  }

  .quote-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .admin-product-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

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

  .admin-product-row .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .cart-button span:not(.cart-icon) {
    display: none;
  }

  .hero,
  .toolbar,
  .admin-panel,
  .products-section,
  .quote-strip,
  .services,
  .contact {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .product-grid,
  .service-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-order-row,
  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .admin-product-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2;
  }

  .admin-form-actions,
  .admin-row-actions {
    display: grid;
  }

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