/* Paiseec brand site — design tokens and components */
:root {
  --brand: #E8763D;
  --brand-dark: #B8501A;
  --brand-darker: #8F3D12;
  --brand-soft: #FDF1EA;
  --accent: #D59607;
  --ink: #111418;
  --ink-soft: #2C333C;
  --muted: #5A6472;
  --bg: #F2F2F2;
  --surface: #FFFFFF;
  --border: #E3E6EA;
  --border-strong: #CFD5DC;
  --footer: #14181D;
  --star: #E8A33D;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, .06);
  --shadow: 0 6px 18px rgba(17, 20, 24, .07);
  --shadow-lg: 0 18px 42px rgba(17, 20, 24, .10);
  --container: 1180px;
  --gutter: 20px;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--brand-soft); }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo img { height: 30px; width: auto; }
.brand-logo span { font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }

#site-nav { flex: 1 1 auto; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#site-nav li { margin: 0; position: relative; }
#site-nav a {
  display: block; padding: 10px 12px; color: var(--ink-soft); font-weight: 500;
  font-size: .95rem; border-radius: var(--radius-sm); white-space: nowrap;
}
#site-nav a:hover, #site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-darker); text-decoration: none; }
.nav-group-label { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer; padding: 10px 12px; color: var(--ink-soft); font-weight: 500; border-radius: var(--radius-sm); }
.nav-group-label:hover { background: var(--brand-soft); color: var(--brand-darker); }
.nav-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.nav-item--open > .nav-group-label .nav-caret { transform: rotate(-135deg) translateY(-2px); }
.nav-sub {
  list-style: none; margin: 6px 0 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px;
}
.nav-item--open > .nav-sub { display: flex; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars span, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .97rem;
  border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand-dark); color: #fff; }
.btn--primary:hover { background: var(--brand-darker); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: ' →'; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #FFF 0%, var(--brand-soft) 100%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 0 60px; }
.hero-eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-darker); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-stat strong { display: block; font-size: 1.35rem; color: var(--brand-darker); }
.hero-stat span { font-size: .86rem; color: var(--muted); }
.hero-media { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; }
.hero-media .media-frame { aspect-ratio: 4 / 3; }

/* ---------- Media frames (product imagery) ---------- */
.media-frame {
  position: relative; width: 100%; border-radius: var(--radius); background: #fff; overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: contain; }
.media-frame--cover img { object-fit: cover; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.card .media-frame { border-radius: 0; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--border); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card-body h3 { margin: 0; font-size: 1.06rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand-darker); text-decoration: none; }
.card-text { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.card-text.is-expanded { -webkit-line-clamp: unset; display: block; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.card .btn { margin-top: 6px; }
.card-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.card-actions .btn { margin-top: 0; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-darker); }
.badge--stock { background: #E8F5EC; color: #1E6B3A; }
.badge--out { background: #F1F2F4; color: #56606C; }

/* ---------- Price + rating ---------- */
.price { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.price--lg { font-size: 1.6rem; }
.price-note { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.rating .stars { color: var(--star); letter-spacing: 1px; font-size: .95rem; }

/* ---------- Category cards (stacked) ---------- */
.category-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.category-card .cc-head { padding: 20px 20px 4px; }
.category-card h3 { margin: 0 0 6px; font-size: 1.18rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.category-card .cc-media { padding: 10px 20px 20px; }
.category-card .media-frame { aspect-ratio: 16 / 10; background: var(--bg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Product detail ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 22px 0 8px; }
.gallery-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.gallery-main .media-frame { aspect-ratio: 1 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb {
  display: block; width: 100%; height: 76px; padding: 6px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--brand-dark); box-shadow: 0 0 0 2px rgba(184,80,26,.18); }

.product-info h1 { margin-bottom: 10px; }
.product-info .rating { margin-bottom: 12px; }
.price-area { background: var(--brand-soft); border: 1px solid #F3DCCE; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.price-area .price { margin: 0; }
.price-area .availability { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.variant-block { margin-top: 18px; }
.variant-block label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.variant-select { width: 100%; padding: 12px 14px; font: inherit; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--ink); }
.variant-note { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.quick-facts { margin-top: 20px; display: grid; gap: 10px; }
.quick-fact { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.quick-fact::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-dark); }

/* ---------- Feature / benefit grids ---------- */
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split .media-frame { aspect-ratio: 4 / 3; border: 1px solid var(--border); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { width: 40%; font-weight: 600; color: var(--ink-soft); background: #FAFBFC; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.table-caption { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--brand-dark); line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer { padding: 0 18px 18px; color: var(--ink-soft); font-size: .95rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Reviews / trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.trust strong { display: block; font-size: 1.5rem; color: var(--brand-darker); }
.trust span { font-size: .86rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--footer); color: #fff; border-radius: var(--radius-lg); padding: 38px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D0D8; max-width: 46em; }
/* On the dark band, use the brighter brand orange with dark text so the button
   keeps a legible, high-contrast label against the section background. */
.cta-band .btn--primary { background: var(--brand); color: var(--ink); }
.cta-band .btn--primary:hover { background: #F08A55; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #B9C2CC; margin-top: 64px; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #B9C2CC; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .92rem; }
.footer-brand p { font-size: .92rem; max-width: 34em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }

/* ---------- Legal ---------- */
.legal-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; max-width: 820px; }
.legal-body h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal-body h2:first-of-type { margin-top: .6em; }
.legal-body ul { padding-left: 1.3rem; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.5rem; }
.section-head { max-width: 52em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  #site-nav {
    position: fixed; inset: 72px 0 0 0; background: #fff; padding: 18px var(--gutter) 40px;
    display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--border);
  }
  body.nav-open #site-nav { display: block; }
  #site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #site-nav a, .nav-group-label { padding: 14px 10px; font-size: 1.02rem; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-sub { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0 0 8px; margin: 0; background: #FAFBFC; }
  .nav-item--open > .nav-sub { display: flex; }
  .nav-sub a { padding-left: 22px; font-size: .96rem; }
  .header-actions .btn--primary { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0 42px; }
  .hero-media { order: -1; }
  .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 40px 0; }
  .legal-body { padding: 22px; }
  .cta-band { padding: 26px; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .thumb { height: 62px; padding: 4px; }
  .hero-stats { gap: 18px; }
  .cta-row .btn { width: 100%; }
  .card-actions { flex-direction: column; align-items: stretch; }
}
