/* EZWork — Light Travertine theme */
:root {
  --stone-50: #faf7f2;
  --stone-100: #f4eee5;   /* travertine base */
  --stone-200: #ebe2d5;
  --stone-300: #dccdb9;
  --stone-400: #c4ae92;
  --stone-500: #a68c6d;   /* warm taupe accent */
  --stone-600: #86704f;
  --ink: #3a332b;
  --ink-soft: #6b6157;
  --sale: #b4553a;        /* terracotta */
  --ok: #5f7a58;
  --white: #fffdf9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(58, 51, 43, .06), 0 6px 18px rgba(58, 51, 43, .06);
  --font: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--stone-100);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Top strip ---------- */
.topbar {
  background: var(--ink);
  color: var(--stone-200);
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .02em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--stone-200);
  position: sticky; top: 0; z-index: 50;
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.logo { display: flex; align-items: baseline; gap: 6px; }
.logo b { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .02em; }
.logo span { font-size: 11px; letter-spacing: .25em; color: var(--stone-500); text-transform: uppercase; }
.search {
  display: flex;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  overflow: hidden;
}
.search input {
  flex: 1; border: 0; background: transparent; padding: 11px 18px;
  font: inherit; color: var(--ink); outline: none; min-width: 0;
}
.search button {
  border: 0; background: var(--ink); color: var(--white);
  padding: 0 22px;
}
.header-actions { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.header-actions a { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.header-actions svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -4px;
  background: var(--sale); color: #fff; font-size: 11px; font-weight: 500;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.nav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--stone-200);
}
.nav a {
  padding: 12px 14px; font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-color: var(--stone-500); color: var(--stone-600); }
.nav a.sale { color: var(--sale); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(115deg, var(--stone-200), var(--stone-300));
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.hero-text { padding: 40px 48px; }
.hero-text small { letter-spacing: .3em; text-transform: uppercase; color: var(--stone-600); font-size: 12px; }
.hero-text h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 10px 0 14px; }
.hero-text p { color: var(--ink-soft); max-width: 420px; margin: 0 0 24px; }
.hero-art { height: 100%; display: grid; place-items: center; padding: 24px; }
.hero-art svg { width: min(420px, 100%); }
.hero-dots { position: absolute; bottom: 16px; left: 48px; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(58,51,43,.2); padding: 0; }
.hero-dots button.on { background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 400;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Section ---------- */
.section { margin-top: 44px; scroll-margin-top: 120px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; gap: 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; }
.section-head a { font-size: 14px; color: var(--stone-600); }

/* category circles */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat { text-align: center; font-size: 14px; }
.cat .ico {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--white); border: 1px solid var(--stone-200);
  display: grid; place-items: center; margin-bottom: 8px;
  transition: transform .2s, border-color .2s;
}
.cat .ico svg { width: 58%; }
.cat:hover .ico { transform: translateY(-3px); border-color: var(--stone-400); }

/* flash sale */
.flash {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--stone-200);
}
.flash .section-head h2 { color: var(--sale); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timer { display: flex; gap: 4px; font-family: var(--font); font-size: 15px; }
.timer span { background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 7px; font-weight: 500; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; padding-bottom: 6px; }

/* promo tiles */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo {
  border-radius: var(--radius); padding: 26px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--stone-200);
}
.promo:nth-child(2) { background: #e4d8c6; }
.promo:nth-child(3) { background: #d9cbb7; }
.promo h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0; }
.promo p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.promo a { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filters {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 130px;
}
.filters h4 { margin: 0 0 10px; font-weight: 500; font-size: 15px; }
.filters .group { padding: 14px 0; border-bottom: 1px solid var(--stone-200); }
.filters .group:first-child { padding-top: 0; }
.filters .group:last-child { border: 0; padding-bottom: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.filters input[type=checkbox], .filters input[type=radio] { accent-color: var(--ink); }
.filters .count { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
.price-inputs { display: flex; gap: 6px; align-items: center; }
.price-inputs input {
  width: 100%; padding: 7px 8px; border: 1px solid var(--stone-300); border-radius: 6px;
  font: inherit; font-size: 13px; background: var(--stone-50);
}
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; font-size: 14px;
}
.toolbar select {
  font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--stone-300); background: var(--white); color: var(--ink);
}
.filter-toggle { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }

/* product card */
.card {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { position: relative; aspect-ratio: 1; background: var(--stone-100); display: grid; place-items: center; }
.card .thumb svg { width: 72%; }
.card .thumb img, .pdp-media img, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb { overflow: hidden; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb img { transition: transform .5s; }
.pdp-media { overflow: hidden; }
.hero-art.photo { padding: 0; align-self: stretch; position: relative; min-height: 380px; }
.hero-art.photo img { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
/* checkout */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.summary { position: sticky; top: 130px; }
.ship-tip { font-size: 13px; background: var(--stone-100); border-radius: 8px; padding: 8px 10px; color: var(--stone-600); }
.sum-item { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sum-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--stone-100); flex: none; display: grid; place-items: center; }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qr-card { max-width: 320px; margin: 4px auto 18px; border: 1px solid var(--stone-300); border-radius: 12px; overflow: hidden; text-align: center; background: #fff; }
.qr-head { background: #113566; color: #fff; padding: 10px; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 15px; }
.qr-box { padding: 14px 24px 4px; }
.qr-box svg { width: 100%; height: auto; }
.qr-amount { font-size: 28px; font-weight: 500; color: var(--ink); }
.qr-name { font-size: 14px; color: var(--ink-soft); }
.qr-ref { font-size: 13px; color: var(--ink-soft); padding: 8px 0 14px; }
.pay-steps { font-size: 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); }
.pay-steps b { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

.opts { display: flex; gap: 10px; margin: 8px 0 18px; flex-wrap: wrap; }
.opts button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--stone-300);
  background: var(--white); color: var(--ink); font-size: 14px; min-width: 130px;
}
.opts button small { color: var(--ink-soft); font-size: 12px; }
.opts button.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--white); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--sale); color: #fff; font-size: 12px; font-weight: 500;
  padding: 2px 8px; border-radius: 4px;
}
.badge.new { background: var(--ok); }
.wish {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(255,253,249,.9); display: grid; place-items: center; color: var(--ink-soft);
}
.wish.on { color: var(--sale); }
.wish svg { width: 17px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.brand { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-600); font-weight: 500; }
.name { font-size: 14px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: auto; }
.price b { font-size: 17px; font-weight: 500; }
.price b.sale { color: var(--sale); }
.price s { font-size: 13px; color: var(--ink-soft); }
.rating { font-size: 12px; color: var(--ink-soft); }
.rating .stars { color: #c9954a; letter-spacing: 1px; }
.add {
  margin-top: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 7px; font-size: 13px; transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--white); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--stone-300);
  background: var(--white); color: var(--ink);
}
.pager button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Product page ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 18px; }
.pdp-media { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.pdp-media svg { width: 70%; }
.pdp h1 { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.15; margin: 6px 0 10px; }
.pdp .price b { font-size: 28px; }
.pdp .desc { color: var(--ink-soft); }
.swatches { display: flex; gap: 10px; margin: 8px 0 18px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--stone-300); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.qty { display: inline-flex; border: 1px solid var(--stone-300); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 40px; font-size: 18px; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; background: transparent; color: var(--ink); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--stone-200); }
.specs td:first-child { color: var(--ink-soft); width: 40%; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; font-size: 13px; }
.perks div { background: var(--white); border: 1px solid var(--stone-200); border-radius: 8px; padding: 10px; text-align: center; }

/* ---------- Content pages ---------- */
.page-hero { padding: 56px 0 32px; text-align: center; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); margin: 0 0 8px; }
.page-hero p { color: var(--ink-soft); margin: 0 auto; max-width: 560px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 12px; }
.form { display: grid; gap: 12px; }
.form label { font-size: 14px; display: grid; gap: 4px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--stone-300); border-radius: 8px;
  background: var(--stone-50); color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.values .panel h3 { font-size: 22px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--stone-200); border-top: 1px solid var(--stone-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding: 44px 0 32px; }
.site-footer h5 { font-size: 14px; font-weight: 500; margin: 0 0 12px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { width: 17px; flex: none; margin-top: 3px; color: var(--stone-600); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; font-size: 12px; font-weight: 500; border: 1px solid var(--stone-300);
}
.footer-bottom {
  border-top: 1px solid var(--stone-300); padding: 16px 0; font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); padding: 11px 20px; border-radius: 999px;
  font-size: 14px; transition: .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-main { grid-template-columns: auto auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .header-actions .lbl { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-text { padding: 32px 24px 48px; }
  .hero-dots { left: 24px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promos, .values, .two-col { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card .body { padding: 10px; }
  .perks { grid-template-columns: 1fr; }
}
