/* Aqualila — base styles
   Palette: natural fiber tan + river green, inspired by water hyacinth
   and woven handicraft textures. Swap --accent/--ink if the real brand
   colors (from logo/Instagram) differ. */

:root {
  --ink: #2b2420;
  --paper: #faf6ef;
  --tan: #d9c6a3;
  --tan-dark: #b89a68;
  --green: #4b6c3a;
  --green-dark: #35501f;
  --muted: #6b6258;
  --radius: 10px;
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--green-dark); }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--green-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-sub { max-width: 640px; }

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--tan);
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img { display: block; height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eadfc5 0%, var(--paper) 60%);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text, .hero-media { min-width: 0; }

.hero-sub { font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost { border-color: var(--green); color: var(--green-dark); }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text, .about-media { min-width: 0; }

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-points li { margin-bottom: 0.5rem; }

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* Process */
.process { background: #f1ead9; }

.process-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-steps li {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--tan);
}

.process-steps li img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.process-steps li > div { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.process-steps h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.process-steps p { margin: 0; font-size: 0.95rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { margin-bottom: 0.6rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--tan-dark);
  border-radius: calc(var(--radius) / 2);
  background: var(--paper);
}

.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }

.form-status { font-size: 0.9rem; font-weight: 600; margin: 0; min-height: 1.2em; }
.form-status-ok { color: var(--green-dark); }
.form-status-error { color: #a33; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--tan);
  padding: 1.5rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-row p { margin: 0; font-size: 0.9rem; }

.footer-credit { margin-top: 0.5rem; }
.footer-credit p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Responsive */
@media (max-width: 820px) {
  .about-grid,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { order: -1; }

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

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--tan);
    flex-direction: column;
    padding: 1rem 1.5rem;
    display: none;
    gap: 1rem;
  }

  .nav-links.open { display: flex; }
}

/* ===== Catalog, cart & quote request UI ===== */

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--tan);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.cart-button:hover { background: #f1ead9; }
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* product grid & card */

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(43, 36, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(43, 36, 32, 0.1); }

.product-card .image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #eadfc5, var(--paper));
}
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.catalog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--tan-dark);
}
.catalog-image-placeholder .leaf { font-size: 1.6rem; }
.catalog-image-placeholder span { font-size: 0.75rem; color: var(--muted); }

.category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(250, 246, 239, 0.95);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(43, 36, 32, 0.08);
}

.product-card .body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.product-card h3 { font-size: 1.05rem; color: var(--ink); margin: 0; }
.product-card .ref { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0; }
.product-card .dims { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink); }
.product-card .see-more { margin-top: 0.75rem; font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }
.product-card-link { display: block; text-decoration: none; }

.price-tag { font-weight: 700; font-size: 1.05rem; color: var(--green-dark); }
.price-tag.detail-price { font-size: 1.4rem; margin-top: 0.75rem; }

.product-card-actions { padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.product-card-actions.detail-actions { padding: 0; margin-top: 1.25rem; }

.qty-add-row { display: flex; gap: 0.5rem; }
.qty-input {
  width: 4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--tan);
  border-radius: calc(var(--radius) / 2);
  font-family: inherit;
  font-size: 0.9rem;
}
.btn-add-quote {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) / 2);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}
.btn-add-quote:hover { background: var(--green-dark); }
.btn-add-quote:disabled { opacity: 0.7; cursor: default; }

/* filter chips */

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-chip {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--tan);
  cursor: pointer;
}
.filter-chip:hover { background: #f1ead9; }
.filter-chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* quote request forms */

.form-message {
  border-radius: calc(var(--radius) / 2);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.form-message.error { background: #fbe4e4; color: #a33; }
.form-message.success { background: #eef3ea; color: var(--green-dark); border: 1px solid var(--green); text-align: center; padding: 2rem; }
.hidden { display: none !important; }
.empty-state { color: var(--muted); padding: 2rem 0; }

/* quote cart modal */

body.cart-open { overflow: hidden; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 36, 32, 0.45);
  display: flex;
  justify-content: flex-end;
  z-index: 100;
}

.cart-panel {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(43, 36, 32, 0.15);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--tan);
}
.cart-panel-header h2 { font-size: 1.2rem; color: var(--ink); margin: 0; }
.cart-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: #f1ead9;
  color: var(--green-dark);
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-close:hover { background: var(--tan); }

.cart-panel-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

.cart-item-row {
  display: grid;
  grid-template-columns: 3rem 1fr 3.5rem auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tan);
}
.cart-item-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--radius) / 2);
  background: #f1ead9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tan-dark);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; min-width: 0; }
.cart-item-info strong { font-size: 0.9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info .meta { font-size: 0.75rem; color: var(--muted); }
.cart-item-qty {
  width: 3.5rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--tan);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.85rem;
}
.cart-item-subtotal { font-size: 0.85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-item-remove {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: none;
  background: #fbe4e4;
  color: #a33;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 1.25rem 0;
}

#cart-form-wrap { margin-top: 1rem; }
