:root {
  color-scheme: light;
  --ink: #1c1f23;
  --muted: #66707a;
  --line: #dce3e8;
  --paper: #ffffff;
  --soft: #f3f5ff;
  --green: #0b7a5a;
  --green-dark: #07533e;
  --blue: #5368f2;
  --blue-dark: #14216f;
  --cream: #fff6a8;
  --gold: #f5c94c;
  --orange: #ff7a2f;
  --mint: #ecfff7;
  --sun: #fff7cf;
  --shadow: 0 18px 45px rgba(20, 30, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(83, 104, 242, 0.07), transparent 220px),
    var(--soft);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 5vw, 56px);
  border-bottom: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--cream);
  font-weight: 800;
}

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

.brand small {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--blue-dark);
  font-size: 14px;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 56px) 34px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 46%, rgba(243, 245, 255, 0.76) 100%),
    url("https://images.unsplash.com/photo-1593095948071-474c5cc2989d?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.eyebrow,
.section-title p,
.cart-head p {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  color: var(--blue-dark);
}

.hero-text {
  max-width: 650px;
  color: #35404a;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: var(--cream);
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-dark);
}

.hero-panel {
  display: grid;
  align-items: end;
  min-height: 420px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(83, 104, 242, 0.94), rgba(20, 33, 111, 0.9));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 168, 0.22), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(255, 122, 47, 0.22), transparent 34%);
}

.hero-panel p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip article {
  display: grid;
  gap: 6px;
  padding: 22px clamp(16px, 5vw, 56px);
  background: white;
}

.trust-strip article:nth-child(1) {
  background: var(--mint);
}

.trust-strip article:nth-child(2) {
  background: var(--sun);
}

.trust-strip article:nth-child(3) {
  background: #eef4ff;
}

.trust-strip strong {
  color: var(--blue-dark);
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
}

.section-title h2,
.cart-head h2 {
  margin: 0;
  font-size: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.filters button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.catalog-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 250px;
}

.product-art {
  display: flex;
  min-height: 100%;
  align-items: end;
  padding: 16px;
  background: #ffffff;
  color: white;
  position: relative;
  overflow: hidden;
}

.product-art span {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 800;
}

.product-art img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
}

.product-art:has(img)::after {
  content: none;
}

.product-body {
  padding: 22px 24px 18px;
}

.category,
.product-brand {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-brand {
  color: var(--orange);
  font-size: 20px;
}

.product h3 {
  margin: 32px 0 26px;
  color: var(--blue-dark);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
}

.catalog-meta {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.catalog-meta p {
  margin: 0;
  color: #455184;
  font-size: 20px;
  line-height: 1.35;
}

.catalog-meta strong {
  color: #455184;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.product-foot small {
  color: var(--muted);
  font-weight: 800;
}

.price-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 550px;
  border: 1px solid #d8ddf0;
}

.price-box {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.price-box + .price-box {
  border-left: 1px solid #bfdccf;
}

.price-box span {
  color: #5f6c98;
  font-size: 16px;
  text-transform: uppercase;
}

.price-box strong {
  font-size: 28px;
  line-height: 1;
}

.price-box.normal {
  background: #f5f7ff;
}

.price-box.normal strong {
  color: var(--blue-dark);
}

.price-box.discount {
  background: #ecfff7;
}

.price-box.discount strong {
  color: var(--green-dark);
}

.variant-select,
.quantity-input {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.variant-select {
  max-width: 550px;
  margin-bottom: 14px;
}

.variant-select select,
.quantity-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
}

.quantity-input {
  width: 110px;
}

.stock-help {
  color: #b64c1d;
  font-size: 13px;
  font-weight: 800;
}

.product-foot button,
.whatsapp {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--cream);
  cursor: pointer;
  font-weight: 800;
}

.product-foot button {
  padding: 0 14px;
}

.cart {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 106px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(20, 30, 40, 0.08);
}

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

.secure-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #e7f5ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 170px;
  overflow-y: auto;
  padding-right: 4px;
}

.empty {
  margin: 0;
  color: var(--muted);
}

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

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.qty button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.customer {
  display: grid;
  gap: 9px;
  overflow: visible;
}

.customer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.customer input,
.customer select,
.customer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
}

.customer textarea {
  min-height: 74px;
  max-height: 96px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 20px;
}

.whatsapp {
  width: 100%;
  flex: 0 0 auto;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.whatsapp.disabled {
  background: #a8b6b0;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-page {
  padding: clamp(24px, 5vw, 56px);
}

.admin-hero {
  max-width: 760px;
  margin-bottom: 26px;
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 74px);
}

.admin-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

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

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-tab {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: white;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.admin-tab.active {
  border-color: var(--orange);
  background: var(--blue);
  color: var(--cream);
}

.admin-panel {
  display: none;
}

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

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.admin-card h2 {
  margin-bottom: 10px;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.45;
}

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

.drop-zone {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--green);
  border-radius: 8px;
  background: #f2fbf7;
  cursor: pointer;
  text-align: center;
}

.photo-zone {
  min-height: 82px;
  margin-top: 12px;
  border-color: var(--blue);
  background: #f2f7fc;
}

.drop-zone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}

.drop-zone span {
  color: var(--green-dark);
  font-weight: 800;
}

.status {
  margin: 12px 0 0;
  font-size: 14px;
}

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

.mapping-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mapping-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.admin-action {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

.admin-action:disabled {
  background: #a8b6b0;
  cursor: not-allowed;
}

.single-product-card {
  margin-bottom: 16px;
}

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

.single-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.single-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.single-photo {
  grid-column: span 3;
}

.single-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.check-line input {
  width: 18px;
  height: 18px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #35404a;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .layout,
  .trust-strip,
  .admin-grid,
  .single-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 300px;
  }

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

  .catalog-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .product h3 {
    margin: 18px 0;
    font-size: 27px;
  }

  .catalog-meta p {
    font-size: 17px;
  }

  .price-board {
    grid-template-columns: 1fr;
  }

  .price-box + .price-box {
    border-left: 0;
    border-top: 1px solid #bfdccf;
  }

  .cart {
    position: static;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .product-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }

  .product-art {
    min-height: 230px;
  }

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

  .admin-card-head {
    display: grid;
  }

  .single-photo {
    grid-column: auto;
  }
}
