/*
Theme Name: Qelvoro
Theme URI: https://qelvoro.com
Author: Qelvoro
Description: Custom hand-coded theme for the Qelvoro TikTok-traffic-funnel site — trending product showcase, in-site TikTok video embeds, and TikTok Shop checkout funnel. Pairs with the glownova-core plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: glownova
*/

/* ===========================
   RESET & BASE
=========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #fe2c55;
  --cyan: #25f4ee;
  --dark: #1a1a1a;
  --gray-bg: #f7f7f8;
  --text-muted: #6b6b70;
  --border: #ececec;
  --radius: 14px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.section-heading p { color: var(--text-muted); font-size: 16px; }
.section-heading.light h2 { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(254,44,85,.3); }
.btn-tiktok { background: var(--dark); color: #fff; }
.btn-outline { background: #fff; border: 2px solid var(--dark); color: var(--dark); }
.btn-buy { background: var(--dark); color: #fff; width: 100%; justify-content: center; margin-top: 12px; }
.btn-buy:hover { background: var(--pink); }

/* ===========================
   ANNOUNCEMENT BAR
=========================== */
.announcement-bar {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}
.logo { font-size: 24px; font-weight: 800; font-family: 'Poppins', sans-serif; display: inline-flex; align-items: center; }
.logo span { color: var(--pink); }
.logo img { height: 80px; width: auto; display: block; }
.footer-logo { display: inline-flex; width: fit-content; background: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 10px; }
.footer-logo img { height: 48px; }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.search-box { position: relative; }
.search-box input {
  width: 220px;
  padding: 10px 40px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--gray-bg);
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--pink); }
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  overflow: hidden;
  display: none;
}
.search-suggestions.active { display: block; }
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.search-suggestions .suggestion-item:hover { background: var(--gray-bg); }
.search-suggestions .suggestion-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.search-suggestions .suggestion-item .price { margin-left: auto; font-weight: 600; color: var(--pink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-search { display: none; }

/* ===========================
   PAGE BANNER (shop / product / blog / legal pages)
=========================== */
.page-banner {
  background: var(--gray-bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { color: var(--dark); font-weight: 600; }
.page-banner h1 { font-size: 30px; font-weight: 700; }
.page-banner-sub { color: var(--text-muted); margin-top: 8px; max-width: 600px; }

/* ===========================
   SHOP LAYOUT
=========================== */
.shop-section { padding-top: 48px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop-sidebar { position: sticky; top: 96px; }
.filter-group { margin-bottom: 32px; }
.filter-group h4 { font-size: 15px; margin-bottom: 14px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; color: #333; cursor: pointer; }
.filter-clear { width: 100%; }
.filter-toggle-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  cursor: pointer;
  margin-bottom: 16px;
}
.filter-toggle-btn svg { transition: transform .2s ease; }
.filter-toggle-btn.active svg { transform: rotate(180deg); }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.sort-select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}
.product-grid.shop-grid { grid-template-columns: repeat(3, 1fr); }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: all .15s ease;
}
.page-btn:not(.disabled):not(.active):hover { border-color: var(--pink); color: var(--pink); }
.page-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-btn-nav {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  color: var(--text-muted);
  border-color: transparent;
  background: var(--gray-bg);
}
.page-btn-nav:not(.disabled):hover { background: #fff; border-color: var(--pink); color: var(--pink); }

/* ===========================
   PRODUCT DETAIL
=========================== */
.page-banner-sm { padding: 20px 0; }
.product-detail { padding-top: 40px; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.product-detail-layout > * { min-width: 0; }

.product-gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--gray-bg); aspect-ratio: 1 / 1; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-gallery-thumbs-wrap { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.product-gallery-thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.product-gallery-thumbs::-webkit-scrollbar { display: none; }
.thumbs-scroll-btn {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border, #eee);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--pink);
}
.thumbs-scroll-btn.hidden { visibility: hidden; }
.gallery-thumb-img {
  width: 76px; height: 76px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumb-img.active { border-color: var(--pink); }
.product-gallery-thumb-play {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.product-gallery-thumb-play .gallery-thumb-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: none; }
.mini-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--pink);
}

.product-tag {
  display: inline-block;
  background: #fff5f7;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.product-info-panel { display: flex; flex-direction: column; }
.product-info-panel h1 { font-size: 28px; margin-bottom: 10px; }
.product-info-panel .stars { font-size: 15px; margin-bottom: 20px; }
.price-lg { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-lg .current { font-size: 30px; }
.save-badge { background: #e8f8ee; color: #1a9d4c; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-desc { color: var(--text-muted); margin-bottom: 20px; max-width: 520px; }
.product-bullets { margin-bottom: 28px; }
.product-bullets li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 14px; color: #333; }
.product-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pink);
}
.product-cta { margin-bottom: 24px; }
.btn-lg { width: 100%; justify-content: center; padding: 18px; font-size: 16px; }
.product-cta-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.product-shop-link { display: block; text-align: center; font-size: 14px; font-weight: 600; color: var(--pink); margin-top: 12px; }
.product-shop-link:hover { text-decoration: underline; }
.product-trust { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.product-trust span { display: flex; align-items: center; gap: 8px; }
.product-trust svg { color: var(--pink); flex-shrink: 0; }

.product-tabs { max-width: 900px; }
.tab-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 14px 20px;
  font-size: 15px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--dark); border-color: var(--pink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: #333; margin-bottom: 14px; max-width: 700px; }
/* The global reset (`* { margin:0; padding:0 }` and `ul { list-style: none }`)
   strips all spacing/bullets from rich-text product descriptions written in
   the block editor. Restore normal WYSIWYG typography scoped to this tab so
   the rest of the site's reset stays untouched. */
#tab-description h2, #tab-description h3, #tab-description h4 {
  margin: 28px 0 12px;
  font-weight: 700;
  line-height: 1.3;
}
#tab-description h2:first-child, #tab-description h3:first-child, #tab-description h4:first-child { margin-top: 0; }
#tab-description h2 { font-size: 22px; }
#tab-description h3 { font-size: 19px; }
#tab-description h4 { font-size: 17px; }
#tab-description ul, #tab-description ol {
  margin: 0 0 16px;
  padding-left: 22px;
  max-width: 700px;
}
#tab-description ul { list-style: disc; }
#tab-description ol { list-style: decimal; }
#tab-description li { margin-bottom: 8px; color: #333; }
#tab-description strong { font-weight: 700; }
.related-products { background: var(--gray-bg); }

/* ===========================
   HERO
=========================== */
.hero { padding: 64px 0 80px; background: linear-gradient(180deg, #fff5f7 0%, #fff 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-text h1 { font-size: 44px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.hero-text .highlight { color: var(--pink); }
.hero-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.trust-badges { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.trust-badges span { display: flex; align-items: center; gap: 8px; }
.trust-badges svg { color: var(--pink); flex-shrink: 0; }
.hero-media img { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }

/* ===========================
   TRUST BAR (As Featured On)
=========================== */
.trust-bar { padding: 32px 0; background: #fff; border-bottom: 1px solid var(--border); }
.trust-bar-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.trust-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: .5;
}

/* ===========================
   ABOUT PAGE
=========================== */
.about-story { padding-top: 56px; }
.about-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text .eyebrow { display: inline-block; background: #fff5f7; border: none; }
.about-text h2 { font-size: 30px; margin: 16px 0 20px; line-height: 1.3; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-image img { width: 100%; height: auto; display: block; border-radius: 24px; }
.about-values { background: var(--dark); color: #fff; }
.about-cta { text-align: center; }
.about-cta-inner h2 { font-size: 26px; margin-bottom: 20px; }

/* ===========================
   CATEGORIES
=========================== */
.categories { background: #fff; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  text-align: center;
  transition: transform .15s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 12px; }
.category-card span { font-weight: 600; font-size: 14px; }

/* ===========================
   BESTSELLERS
=========================== */
.bestsellers { background: var(--gray-bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.stars { color: #ffb400; font-size: 14px; margin-bottom: 8px; }
.stars span { color: var(--text-muted); font-size: 13px; margin-left: 4px; }
.price .current { font-size: 18px; font-weight: 700; color: var(--dark); }
.price .original { font-size: 14px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.view-all { text-align: center; margin-top: 40px; }

/* ===========================
   TIKTOK VIDEOS
=========================== */
.tiktok-videos { background: #fff; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.video-card { text-align: center; }
.video-facade {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 20px;
  color: var(--pink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-tag-badge {
  position: absolute;
  left: 10px; bottom: 10px;
  max-width: calc(100% - 20px);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-caption { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; }
a.video-caption:hover { color: var(--pink); }

/* ===========================
   WHY US
=========================== */
.why-us { background: var(--dark); color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card { text-align: center; padding: 24px; }
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: #b8b8b8; font-size: 14px; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials { background: #fff5f7; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.testimonial-card p { margin: 16px 0 20px; font-size: 15px; color: #333; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author small { color: var(--text-muted); font-size: 12px; }

/* ===========================
   BLOG LISTING
=========================== */
.blog-section { padding-top: 48px; }
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.blog-filter-tags { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.tag-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}
.tag-pill.active, .tag-pill:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.blog-grid-list { grid-template-columns: repeat(2, 1fr); }
.blog-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.blog-sidebar { position: sticky; top: 96px; }
.search-box-block { width: 100%; }
.search-box-block input { width: 100%; }
.sidebar-link {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: #333;
}
.sidebar-link:hover { color: var(--pink); }
.sidebar-link span { color: var(--text-muted); }

/* ===========================
   BLOG POST
=========================== */
.post-section { padding-top: 40px; }
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.post-title { font-size: 32px; margin: 14px 0 10px; line-height: 1.3; }
.post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.post-content h2 { font-size: 22px; margin: 32px 0 14px; }
.post-content p { color: #333; font-size: 16px; line-height: 1.75; margin-bottom: 18px; }

/* Inline TikTok product card — the reusable "shortcode" block for blog content */
.tiktok-product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.tiktok-product-card img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.tiktok-product-card-body { flex: 1; min-width: 0; }
.tiktok-product-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pink);
  margin-bottom: 4px;
}
.tiktok-product-card-body h4 { font-size: 16px; margin-bottom: 4px; }
.tiktok-product-card-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.tiktok-product-card-rating { font-size: 12px; color: #d99a00; font-weight: 600; margin-bottom: 6px; }
.tiktok-product-card .price .current { font-size: 16px; }
.tiktok-product-card-btn { flex-shrink: 0; width: auto; margin-top: 0; padding: 12px 24px; }

.post-content figure { margin: 24px auto; max-width: 600px; }
.post-content figure img { border-radius: var(--radius); width: 100%; max-width: 600px; display: block; margin: 0 auto; }
.post-content figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* How-to steps block */
.post-howto-steps { counter-reset: howto-step; list-style: none; padding-left: 0; margin: 20px 0 28px; }
.post-howto-steps li {
  counter-increment: howto-step;
  position: relative;
  padding: 16px 20px 16px 56px;
  margin-bottom: 12px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-howto-steps li::before {
  content: counter(howto-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-howto-steps li strong { display: block; font-size: 16px; margin-bottom: 4px; }
.post-howto-steps li p { margin-bottom: 0; font-size: 15px; color: #333; }

/* FAQ block */
.post-faq { margin: 20px 0 28px; }
.post-faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.post-faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.post-faq-item p { margin-bottom: 0; font-size: 15px; color: #333; }

/* Related guides block */
.post-related-guides { margin: 24px 0 28px; padding: 18px 20px; background: var(--gray-bg); border-radius: var(--radius); }
.post-related-guides h2 { font-size: 18px; margin-bottom: 10px; }
.post-related-guides ul { margin: 0; padding-left: 20px; }
.post-related-guides li { font-size: 15px; margin-bottom: 6px; }

.post-video-embed { max-width: 320px; margin: 24px auto; }

.post-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 32px 0; font-size: 14px; color: var(--text-muted); }
.post-tags .tag-pill { padding: 6px 14px; font-size: 13px; }

.post-author {
  display: flex;
  gap: 16px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 24px;
}
.post-author .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.post-author p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===========================
   CONTACT PAGE
=========================== */
.contact-section { padding-top: 48px; }
.contact-layout { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex;
  gap: 16px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.whatsapp-bg { background: #25D366; }
.email-bg { background: var(--pink); }
.tiktok-bg { background: var(--dark); }
.contact-info-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.contact-link { font-size: 14px; font-weight: 600; color: var(--dark); }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-form h2 { font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--pink); }

/* ===========================
   FAQ
=========================== */
.faq { background: #fff; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  color: var(--dark);
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .2s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--pink); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p { padding: 0 4px 20px; color: var(--text-muted); font-size: 15px; max-width: 640px; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-page { max-width: 820px; margin: 0 auto; }
.faq-group-title { font-size: 20px; margin: 40px 0 12px; }
.faq-group-title:first-child { margin-top: 0; }
.faq-cta { text-align: center; background: var(--gray-bg); border-radius: var(--radius); padding: 40px; margin-top: 48px; }
.faq-cta h3 { font-size: 20px; margin-bottom: 8px; }
.faq-cta p { color: var(--text-muted); margin-bottom: 20px; }

/* ===========================
   BLOG PREVIEW
=========================== */
.blog-preview { background: var(--gray-bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  background: #fff5f7;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--text-muted); }

/* ===========================
   NEWSLETTER
=========================== */
.newsletter { background: linear-gradient(135deg, var(--pink), #ff6a88); padding: 56px 0; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.newsletter-inner h2 { font-size: 26px; margin-bottom: 6px; }
.newsletter-inner p { opacity: .9; font-size: 15px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  font-size: 14px;
  outline: none;
}
.newsletter-form .btn-primary { background: var(--dark); box-shadow: none; }

/* ===========================
   LEGAL PAGES
=========================== */
.legal-section { padding-top: 48px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; margin: 32px 0 12px; }
.legal-content p { color: #333; font-size: 15px; line-height: 1.75; margin-bottom: 16px; }

/* ===========================
   FOOTER
=========================== */
.site-footer { background: var(--dark); color: #fff; padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}
.footer-col h4 { margin-bottom: 16px; font-size: 15px; }
.footer-col a { display: block; color: #b8b8b8; margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #b8b8b8; font-size: 14px; margin-top: 12px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #888; }

/* ===========================
   FLOATING CONTACTS
=========================== */
.floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.whatsapp { background: #25D366; }
.float-btn.email { background: var(--pink); }

/* ===========================
   VIDEO MODAL
=========================== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  position: relative;
  width: 325px;
  /* Match TikTok's own player proportions (325:723) so the embed fills the
     box with no letterboxing, while still shrinking to fit narrow/short
     viewports without distorting that ratio. */
  max-width: min(90vw, 85vh * 325 / 723);
  aspect-ratio: 325 / 723;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.video-modal-inner iframe, .video-modal-inner video { width: 100%; height: 100%; border: none; display: block; }
.video-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover { background: rgba(0,0,0,.65); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-grid.shop-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid-list { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .tiktok-product-card { flex-wrap: wrap; }
  .tiktok-product-card-btn { width: 100%; text-align: center; }
  .about-story-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-actions .search-box { display: none; }
  .menu-toggle { display: flex; }
  body.nav-open { overflow: hidden; }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0,0,0,.1);
    padding: 4px 24px 16px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 2px; font-size: 16px; }

  .mobile-search { display: block; padding: 14px 2px 16px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  .mobile-search .search-box { display: block; }
  .mobile-search .search-box input { width: 100%; }

  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 26px; }

  /* "As Seen On" logos — horizontal swipe strip instead of wrapping/stacking
     vertically once the row runs out of width on small screens. */
  .trust-bar-logos {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 32px;
    padding: 4px 24px;
    margin: 0 -24px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .trust-bar-logos::-webkit-scrollbar { display: none; }
  .trust-bar-logos img { flex-shrink: 0; scroll-snap-align: start; }
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-tabs .tab-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { white-space: nowrap; padding: 12px 16px; }
  .product-gallery-thumbs { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .gallery-thumb-img, .product-gallery-thumb-play { flex-shrink: 0; }
  .contact-form { padding: 24px; }
  .faq-cta { padding: 28px 20px; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }

  /* Shop filters — collapsed behind a toggle button instead of a long
     always-open block above the product grid. */
  .filter-toggle-btn { display: flex; }
  .shop-sidebar { display: none; margin-bottom: 8px; }
  .shop-sidebar.open { display: block; }

  .float-btn { width: 44px; height: 44px; }
  .floating-contacts { right: 16px; bottom: 16px; gap: 10px; }
}

/* Product/video/blog card grids: 2 columns feels cramped once the viewport
   drops below ~600px, so switch to a single full-width column here. */
@media (max-width: 600px) {
  .product-grid.shop-grid, .product-grid, .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-grid-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .announcement-bar { font-size: 11px; padding: 8px 12px; }
  .announcement-bar p { line-height: 1.5; }
  .logo { font-size: 20px; }
  .logo img { height: 48px; }
  .header-inner { height: 72px; }
  .main-nav { max-height: calc(100vh - 72px); }
  .hero-text h1 { font-size: 26px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .tiktok-product-card { flex-direction: column; text-align: center; }
  .tiktok-product-card img { width: 100%; height: 160px; }
  .contact-form { padding: 20px; }
  .contact-form h2 { font-size: 19px; }
  .about-cta-inner h2 { font-size: 22px; }
}
