/* Clouds flatware catalog — shared styles for the WordPress plugin and the static preview */

.cl-wrap {
  --cl-ink: #14141a;
  --cl-ink-soft: #2a2a31;
  --cl-paper: #f8f5f0;
  --cl-paper-2: #f1ece3;
  --cl-line: #e3ddd1;
  --cl-brass: #a57f4a;
  --cl-brass-soft: #c8a978;
  --cl-muted: #6f6a60;
  --cl-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --cl-sans: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cl-paper);
  color: var(--cl-ink);
  font-family: var(--cl-sans);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
.cl-wrap *, .cl-wrap *::before, .cl-wrap *::after { box-sizing: border-box; }
.cl-wrap img { display: block; max-width: 100%; height: auto; }

/* ---------- header ---------- */
.cl-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--cl-line);
  background: var(--cl-paper);
}
.cl-logo {
  font-family: var(--cl-serif); font-size: 26px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cl-ink); text-decoration: none; white-space: nowrap;
  font-weight: 600;
}
.cl-logo span { color: var(--cl-brass); }
.cl-nav { display: flex; gap: 28px; align-items: center; }
.cl-nav a {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cl-muted); text-decoration: none;
}
.cl-nav a:hover { color: var(--cl-ink); }
.cl-nav .cl-btn-nav {
  border: 1px solid var(--cl-ink); color: var(--cl-ink); padding: 10px 18px;
}
.cl-nav .cl-btn-nav:hover { background: var(--cl-ink); color: #fff; }

/* ---------- hero ---------- */
.cl-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--cl-ink); color: #f4f1ea; min-height: 520px;
}
.cl-hero-copy {
  padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.cl-eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cl-brass-soft);
}
.cl-hero h1 {
  font-family: var(--cl-serif); font-weight: 500; margin: 0;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.01em;
}
.cl-hero p { margin: 0; max-width: 46ch; color: #cfcabc; font-size: 15px; line-height: 1.75; }
.cl-hero-stats {
  display: flex; gap: clamp(20px, 4vw, 56px); margin-top: 14px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
}
.cl-hero-stats div strong {
  display: block; font-family: var(--cl-serif); font-size: 30px; font-weight: 600; color: #fff;
}
.cl-hero-stats div span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9c9687; }
.cl-hero-media { position: relative; overflow: hidden; min-height: 320px; }
.cl-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- section head ---------- */
.cl-section-head {
  padding: clamp(38px, 6vw, 80px) clamp(16px, 5vw, 64px) 18px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.cl-section-head h2 {
  font-family: var(--cl-serif); font-weight: 500; margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.15;
}
.cl-section-head p { margin: 0; color: var(--cl-muted); font-size: 14px; max-width: 62ch; line-height: 1.7; }

/* ---------- toolbar ---------- */
.cl-toolbar {
  padding: 0 clamp(16px, 5vw, 64px) 26px;
  display: flex; flex-wrap: wrap; gap: 14px 10px; align-items: center;
  justify-content: space-between;
}
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chip {
  border: 1px solid var(--cl-line); background: transparent; color: var(--cl-muted);
  font-family: var(--cl-sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 16px; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.cl-chip:hover { border-color: var(--cl-ink); color: var(--cl-ink); }
.cl-chip.is-active { background: var(--cl-ink); border-color: var(--cl-ink); color: #fff; }
.cl-search { position: relative; }
.cl-search input {
  width: min(280px, 60vw); border: 1px solid var(--cl-line); background: #fff;
  padding: 11px 14px 11px 36px; font-size: 13px; font-family: var(--cl-sans); color: var(--cl-ink);
  outline: none; border-radius: 0;
}
.cl-search input:focus { border-color: var(--cl-brass); }
.cl-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; fill: none; stroke: var(--cl-muted); stroke-width: 1.6;
}

/* ---------- grid ---------- */
.cl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0 clamp(16px, 5vw, 64px) clamp(40px, 6vw, 72px);
}
.cl-card {
  background: #fff; border: 1px solid var(--cl-line);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  text-align: left;
}
.cl-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,20,26,.09); border-color: #cfc7b8; }
.cl-card.is-hidden { display: none; }
.cl-card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cl-paper-2);
}
.cl-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cl-card:hover .cl-card-media img { transform: scale(1.035); }
.cl-card-tag {
  position: absolute; top: 12px; left: 12px; background: var(--cl-ink); color: #fff;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px;
}
.cl-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cl-card-body h3 {
  font-family: var(--cl-serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.2;
}
.cl-card-meta {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cl-brass);
}
.cl-card-desc { font-size: 13px; line-height: 1.65; color: var(--cl-muted); margin: 2px 0 0; }
.cl-card-more {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cl-line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-ink-soft);
}
.cl-card-more span { display: inline-flex; align-items: center; gap: 8px; }
.cl-arrow { font-size: 14px; color: var(--cl-brass); transition: transform .2s ease; }
.cl-card:hover .cl-arrow { transform: translateX(4px); }

/* ---------- empty ---------- */
.cl-empty { padding: 40px clamp(16px,5vw,64px) 80px; color: var(--cl-muted); font-size: 14px; }

/* ---------- footer ---------- */
.cl-footer {
  background: var(--cl-ink); color: #b8b2a4; padding: clamp(34px,5vw,64px) clamp(16px,5vw,64px);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start;
}
.cl-footer h4 { font-family: var(--cl-serif); color: #fff; font-size: 20px; margin: 0 0 8px; letter-spacing: .04em; }
.cl-footer div p { margin: 0; font-size: 12.5px; line-height: 1.8; }
.cl-footer a { color: #ddd6c6; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.cl-footer .cl-fine { font-size: 11px; color: #837d6f; margin-top: 10px; }

/* ---------- responsive (base) ---------- */
@media (max-width: 1080px) {
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-hero { grid-template-columns: 1fr; }
  .cl-hero-media { min-height: 300px; order: -1; }
}
@media (max-width: 720px) {
  .cl-nav { display: none; }
  .cl-grid { grid-template-columns: 1fr; }
  .cl-card-media { aspect-ratio: 5 / 4; }
  .cl-toolbar { flex-direction: column; align-items: stretch; }
  .cl-search input { width: 100%; }
  .cl-hide-mobile { display: none; }
}

/* ==================================================================
   v1.1 additions — homepage merchandising + application filters
   ================================================================== */

/* buttons */
.cl-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid var(--cl-ink); color: var(--cl-ink); background: transparent;
  transition: all .2s ease; cursor: pointer; }
.cl-btn:hover { background: var(--cl-ink); color: #fff; }
.cl-btn-solid { background: var(--cl-brass); border-color: var(--cl-brass); color: #fff; }
.cl-btn-solid:hover { background: var(--cl-ink); border-color: var(--cl-ink); }
.cl-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* badges (color-coded merchandising) */
.cl-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 11px; color: #fff; font-weight: 600;
}
.cl-badge + .cl-badge { left: auto; right: 12px; }
.cl-badge--new { background: #2d5fa8; }
.cl-badge--hot { background: linear-gradient(135deg, #c99b4a, #a06a1e); }
.cl-badge--pat { background: #fff; color: var(--cl-muted); border: 1.5px solid var(--cl-muted); }

/* per-piece price hint */
.cl-price-sub { display: block; font-size: 11.5px; color: var(--cl-brass); font-weight: 600; letter-spacing: .02em; }

/* section head with kicker */
.cl-kicker { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cl-brass); font-weight: 700; margin-bottom: 6px; }
.cl-section-head--row { align-items: flex-end; }
.cl-more { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cl-brass); font-weight: 700; text-decoration: none; white-space: nowrap; padding-bottom: 6px; }
.cl-more:hover { color: var(--cl-ink); }

/* new arrivals carousel */
.cl-newsec { background: #fff; border-block: 1px solid var(--cl-line); padding: clamp(34px, 4vw, 60px) 0 clamp(30px, 4vw, 50px); }
.cl-newsec .cl-section-head { padding-bottom: 10px; }
.cl-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px clamp(16px, 5vw, 64px) 16px; scrollbar-width: thin;
  scrollbar-color: var(--cl-line) transparent;
}
.cl-carousel .cl-card { flex: 0 0 250px; scroll-snap-align: start; }

/* best sellers */
.cl-hotify { padding: clamp(34px, 4vw, 60px) 0 clamp(38px, 5vw, 66px); }
.cl-hotify .cl-grid { padding: 0 clamp(16px, 5vw, 64px); }
.cl-grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.cl-why { font-size: 12px; line-height: 1.6; color: var(--cl-muted); margin: 4px 0 0; }

/* application tiles */
.cl-apps-sec { padding-bottom: clamp(30px, 4vw, 50px); }
.cl-apps-sec .cl-section-head { padding-bottom: 20px; }
.cl-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 clamp(16px, 5vw, 64px); }
.cl-app { position: relative; display: flex; align-items: flex-end; min-height: 185px; overflow: hidden;
  text-decoration: none; color: #fff; box-shadow: 0 10px 26px rgba(20,20,26,.16); background: var(--cl-paper-2); }
.cl-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cl-app:hover img { transform: scale(1.045); }
.cl-app .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,26,.06) 30%, rgba(20,20,26,.82)); }
.cl-app .lb { position: relative; padding: 14px; width: 100%; }
.cl-app .lb b { display: block; font-family: var(--cl-serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
.cl-app .lb span { font-size: 10.5px; opacity: .85; letter-spacing: .14em; text-transform: uppercase; }

/* sticky toolbar with grouped chips */
.cl-toolbar--sticky {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,245,240,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cl-line);
  padding: 14px clamp(16px, 5vw, 64px);
  flex-direction: column; align-items: stretch;
}
body.admin-bar .cl-toolbar--sticky { top: 32px; }
.cl-chiprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-chiprow + .cl-chiprow { margin-top: 8px; }
.cl-chiprow-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--cl-brass); font-weight: 700; width: 92px; flex: 0 0 auto; }
.cl-toolbar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cl-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cl-muted); }
.cl-sort select { font-family: var(--cl-sans); font-size: 12px; border: 1px solid var(--cl-line); background: #fff; padding: 9px 12px; color: var(--cl-ink); outline: none; cursor: pointer; }
.cl-sort select:focus { border-color: var(--cl-brass); }

/* why-clouds dark band */
.cl-whyband { background: var(--cl-ink); color: #cfcabc; padding: clamp(40px, 5vw, 72px) clamp(16px, 5vw, 64px); }
.cl-whyband h2 { font-family: var(--cl-serif); color: #fff; font-weight: 500; font-size: clamp(26px, 3vw, 40px); margin: 0 0 8px; }
.cl-whyband p.lead { color: #9c9687; font-size: 14px; max-width: 60ch; margin: 0 0 30px; line-height: 1.7; }
.cl-whygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cl-whygrid .no { display: inline-flex; width: 38px; height: 38px; border-radius: 9px; background: rgba(200,169,120,.14); border: 1px solid rgba(200,169,120,.35); color: var(--cl-brass-soft); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; font-family: var(--cl-serif); font-size: 17px; }
.cl-whygrid h4 { color: #fff; font-family: var(--cl-serif); font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.cl-whygrid p { font-size: 12.5px; line-height: 1.7; color: #9c9687; margin: 0; }

/* tier ladder */
.cl-ladder-sec { padding-bottom: clamp(38px, 5vw, 66px); }
.cl-ladder-sec .cl-section-head { padding-bottom: 20px; }
.cl-ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: end; padding: 0 clamp(16px, 5vw, 64px); }
.cl-step { background: #fff; border: 1px solid var(--cl-line); padding: 22px; text-align: center; }
.cl-step .cond { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-muted); }
.cl-step .amt { font-family: var(--cl-serif); font-size: 31px; margin: 8px 0 2px; color: var(--cl-ink); }
.cl-step .eg { font-size: 12px; color: var(--cl-muted); }
.cl-step .eg del { color: #a49d8d; margin-left: 5px; }
.cl-step .bar { height: 7px; border-radius: 99px; background: #e9e2d0; margin-top: 16px; overflow: hidden; }
.cl-step .bar i { display: block; height: 100%; border-radius: 99px; }
.cl-step.s1 .bar i { width: 33%; background: #c9c2b0; }
.cl-step.s2 { border-color: #7fae8f; }
.cl-step.s2 .amt { color: #2e6b46; }
.cl-step.s2 .bar i { width: 66%; background: #7fae8f; }
.cl-step.s3 { border-color: var(--cl-brass); box-shadow: 0 12px 30px rgba(165,127,74,.18); }
.cl-step.s3 .amt { color: var(--cl-brass); }
.cl-step.s3 .bar i { width: 100%; background: var(--cl-brass); }
.cl-laddernote { font-size: 12px; color: var(--cl-muted); padding: 14px clamp(16px, 5vw, 64px) 0; margin: 0; }

/* final CTA band */
.cl-finalcta {
  background: linear-gradient(135deg, #14141a, #2b3050);
  color: #fff; padding: clamp(38px, 5vw, 64px) clamp(16px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
}
.cl-finalcta h3 { font-family: var(--cl-serif); font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 6px; color: #fff; font-weight: 500; }
.cl-finalcta p { color: #9c9687; font-size: 13.5px; margin: 0; }
.cl-finalcta .cl-ctas { margin-left: auto; }

/* reveal on scroll (JS adds html.cl-js; without JS everything stays visible) */
html.cl-js .cl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
html.cl-js .cl-reveal.cl-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.cl-js .cl-reveal { opacity: 1; transform: none; transition: none; }
}

/* v1.1 responsive */
@media (max-width: 1080px) {
  .cl-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cl-apps { grid-template-columns: repeat(3, 1fr); }
  .cl-whygrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cl-grid--4 { grid-template-columns: 1fr; }
  .cl-apps { grid-template-columns: repeat(2, 1fr); }
  .cl-ladder { grid-template-columns: 1fr; }
  .cl-chiprow-label { width: 100%; }
  .cl-carousel .cl-card { flex-basis: 74%; }
  .cl-finalcta .cl-ctas { margin-left: 0; width: 100%; }
  .cl-toolbar-right { flex-direction: column; align-items: stretch; }
  .cl-sort { justify-content: space-between; }
  .cl-sort select { flex: 1; }
  .cl-app { min-height: 150px; }
}

/* ------------------------------------------------------------------
 * v1.3 sale price presentation — tag + note above the price,
 * headline price at 50% off, list price struck through
 * ------------------------------------------------------------------ */
.cl-price-row { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; flex-wrap: wrap; }
.cl-price-tag { display: inline-block; background: #c0392b; color: #fff; font-family: var(--cl-sans); font-size: 10px; font-weight: bold; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.cl-price-note { color: #c0392b; font-family: var(--cl-sans); font-size: 10px; font-weight: bold; letter-spacing: .02em; }
.cl-price-sub { margin-top: 2px; }

/* ------------------------------------------------------------------
 * v1.2 floating contact rail — pinned to the right edge, vertically
 * centered, visible at any scroll position (WhatsApp + E-mail)
 * ------------------------------------------------------------------ */
.cl-float {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 12px;
}
.cl-float-btn {
  display: flex; align-items: center; justify-content: flex-end;
  box-sizing: border-box;
  width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  color: #fff; text-decoration: none; padding-right: 12px;
  box-shadow: 0 8px 24px rgba(20, 20, 26, .22);
  transition: width .22s ease, transform .22s ease;
}
.cl-float-btn:hover { width: 148px; transform: translateX(-2px); }
.cl-float-btn svg { width: 24px; height: 24px; flex: 0 0 24px; }
.cl-float-lb {
  font-family: Arial, sans-serif; font-size: 13px; font-weight: bold;
  color: #fff; white-space: nowrap; margin-right: 0; max-width: 0;
  opacity: 0; overflow: hidden; transition: all .22s ease;
}
.cl-float-btn:hover .cl-float-lb { margin-right: 10px; max-width: 96px; opacity: 1; }
.cl-float-wa { background: #25d366; }
.cl-float-wa:hover { background: #1fbd5a; }
.cl-float-mail { background: #1a1a2e; }
.cl-float-mail:hover { background: #2d2d4a; }
@media (max-width: 720px) {
  .cl-float { right: 8px; gap: 9px; }
  .cl-float-btn { width: 40px; height: 40px; border-radius: 11px; padding-right: 10px; }
  .cl-float-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
}
