/*
Theme Name: Single Product Lite
Theme URI: https://example.com
Author: Your Store
Author URI: https://example.com
Description: A very light, fast single-product landing page theme — hero gallery, feature sections, specs grid, guarantee, reviews and FAQ, with a sticky buy bar. Edit product content in Appearance > Customize, or directly in template-product.php.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: single-product-lite
*/

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #ececec;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --accent: #b8912f; /* gold-ish accent, change freely */
  --accent-ink: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
}

html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section{ padding: 64px 0; }
.section-tight{ padding: 40px 0; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.center{ text-align: center; }
.muted{ color: var(--ink-soft); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); opacity: .92; }
.btn-block{ width: 100%; }

/* ---------- Top announcement bar ---------- */
.announce{
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
}
.announce span{ margin: 0 10px; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 50;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand{ font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.brand em{ font-style: normal; color: var(--accent); }
.site-nav ul{ display: flex; gap: 28px; align-items: center; }
.site-nav a{ font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.site-nav .btn{ padding: 10px 20px; font-size: 14px; color:#fff; }

/* ---------- Hero ---------- */
.hero{ padding: 40px 0 56px; }
.hero .wrap{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.gallery-main{
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1/1;
}
.gallery-main img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs{ display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button{
  border: 2px solid var(--line);
  padding: 0; background: none; border-radius: 8px; overflow: hidden;
  width: 64px; height: 64px; cursor: pointer;
}
.gallery-thumbs button.active{ border-color: var(--accent); }

.rating-line{ display:flex; align-items:center; gap:8px; font-size: 14px; margin-bottom: 10px;}
.stars{ color: var(--accent); letter-spacing: 2px; }

.price-row{ display:flex; align-items:baseline; gap:12px; margin: 14px 0; }
.price-now{ font-size: 32px; font-weight: 800; }
.price-was{ text-decoration: line-through; color: #999; font-size: 18px; }
.price-save{
  background: #fdece0; color: #b45309; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

.hero-desc{ color: var(--ink-soft); margin: 16px 0; }
.hero-points li{
  display: flex; gap: 10px; margin-bottom: 8px; font-size: 15px;
}
.hero-points li::before{ content: "✓"; color: var(--accent); font-weight: 800; }

.trust-row{
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px;
  font-size: 13px; color: var(--ink-soft);
}
.trust-row span{ display:flex; align-items:center; gap:6px; }

/* ---------- Feature grid ---------- */
.feature-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px;
}
.feature-card{
  background: var(--bg-soft); border-radius: var(--radius); padding: 26px;
}
.feature-icon{ font-size: 26px; margin-bottom: 12px; }
.feature-card h3{ font-size: 17px; }
.feature-card p{ font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Alternating feature rows ---------- */
.feature-row{
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.feature-row.reverse .feature-row-media{ order: 2; }
.feature-row-media img{ border-radius: var(--radius); }
.feature-row-copy .eyebrow{ margin-bottom: 6px; }
.feature-row-copy ul{ margin-top: 16px; }
.feature-row-copy li{ display:flex; gap:10px; margin-bottom: 8px; font-size: 15px; }
.feature-row-copy li::before{ content: "—"; color: var(--accent); }

/* ---------- Controls / spec-style triple columns ---------- */
.trio-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 36px; }
.trio-card{ border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.trio-card h3{ font-size: 16px; }
.trio-card ul{ margin-top: 12px; }
.trio-card li{ font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }

.spec-grid{
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 32px;
}
.spec-card{
  background: var(--bg-soft); border-radius: var(--radius); padding: 20px; text-align: center;
}
.spec-icon{ font-size: 22px; margin-bottom: 8px; }
.spec-label{ font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.spec-value{ font-weight: 700; margin-top: 4px; }

/* ---------- Guarantee ---------- */
.guarantee{
  background: var(--bg-soft); border-radius: var(--radius); padding: 48px; text-align: center;
}
.guarantee-badges{
  display:flex; justify-content:center; gap: 40px; margin-top: 28px; flex-wrap: wrap;
}
.guarantee-badges div{ max-width: 200px; font-size: 14px; }
.guarantee-badges strong{ display:block; margin-bottom: 4px; }

/* ---------- Reviews ---------- */
.reviews-summary{
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; margin-bottom: 36px;
}
.reviews-score{ text-align: center; }
.reviews-score .num{ font-size: 48px; font-weight: 800; }
.rating-bars div{ display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.rating-bars .bar{ flex:1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rating-bars .bar span{ display:block; height:100%; background: var(--accent); }

.review-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review-card{ border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-card h4{ font-size: 15px; margin-bottom: 6px; }
.review-card p{ font-size: 14px; color: var(--ink-soft); }
.review-meta{ display:flex; align-items:center; gap:8px; font-size: 13px; margin-top: 12px; }
.review-avatar{
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display:flex; align-items:center; justify-content:center; font-size: 12px; font-weight:700;
}

/* ---------- FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-size: 16px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after{ content: "+"; font-size: 22px; color: var(--accent); transition: transform .2s ease; }
.faq-item.open .faq-q::after{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 14px; color: var(--ink-soft); }
.faq-a-inner{ padding-bottom: 20px; }

/* ---------- Sticky buy bar ---------- */
.sticky-bar{
  position: fixed; left: 0; right: 0; bottom: -100px; transition: bottom .25s ease;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  z-index: 60;
}
.sticky-bar.show{ bottom: 0; }
.sticky-bar .wrap{
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
}
.sticky-bar img{ width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.sticky-bar .info{ flex: 1; min-width: 0; }
.sticky-bar .info .name{ font-size: 14px; font-weight: 700; }
.sticky-bar .info .price{ font-size: 13px; color: var(--ink-soft); }
.sticky-bar .btn{ padding: 12px 22px; font-size: 14px; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 48px 0 90px; margin-top: 40px; }
.footer-top{ display:flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-nav ul{ display:flex; gap: 20px; font-size: 14px; }
.footer-note{ font-size: 12px; color: #999; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; gap: 28px; }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .trio-grid{ grid-template-columns: 1fr; }
  .spec-grid{ grid-template-columns: repeat(2,1fr); }
  .feature-row, .feature-row.reverse{ grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-media{ order: 0; }
  .reviews-summary{ grid-template-columns: 1fr; }
  .review-grid{ grid-template-columns: 1fr; }
  .site-nav ul{ display: none; }
}
