:root {
  --bg: #f6f2ea;
  --ink: #171615;
  --muted: #665f56;
  --line: #ded5c7;
  --surface: #fffaf2;
  --accent: #0e7c66;
  --accent-dark: #075a49;
  --wa: #1f9d58;
  --danger: #a33b2f;
  --shadow: 0 18px 60px rgba(54, 44, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 242, 234, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

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

.brand small,
.smallprint,
.cart-empty,
.form-message {
  color: var(--muted);
  font-size: 14px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.client-hero,
.upload-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(36px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.client-copy,
.upload-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
}

.client-copy p,
.upload-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.login-panel,
.upload-panel,
.cart,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel,
.upload-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

.upload-panel h2,
.upload-panel .wide,
.upload-panel button,
.upload-panel .form-message {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input[type="file"] {
  padding: 10px;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 850;
}

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

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

.whatsapp {
  width: 100%;
  color: white;
  background: var(--wa);
}

.ghost-dark {
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}

.disabled {
  pointer-events: none;
  opacity: 0.48;
}

.section {
  padding: clamp(42px, 6vw, 84px) clamp(18px, 4vw, 56px);
}

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

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

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

.product-card {
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

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

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

.tag {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.add-button {
  width: 100%;
  padding: 12px 14px;
  color: white;
  background: var(--ink);
  font-weight: 850;
}

.cart {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.cart-head,
.cart-line,
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-head {
  align-items: center;
  margin-bottom: 14px;
}

.cart-head h2 {
  margin: 0;
  font-size: 28px;
}

.link-button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-line {
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.cart-line span {
  color: var(--muted);
  font-size: 14px;
}

.remove-button {
  padding: 4px 8px;
  color: var(--muted);
  background: #eee6da;
  font-weight: 850;
}

.cart-empty {
  padding: 18px 0;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.totals div {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.cart .button {
  width: 100%;
  margin-top: 10px;
}

.empty-gallery {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 18px;
}

.form-message {
  min-height: 20px;
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .client-hero,
  .upload-page,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

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

  .cart {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .product-grid,
  .upload-panel {
    grid-template-columns: 1fr;
  }
}
