/* ---------- RESET ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  background:#ffffff;
  color:#2b2b2b;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { font-family:inherit; border:none; background:none; cursor:pointer; }
img { max-width:100%; display:block; }

/* ---------- TOKENS ---------- */
:root{
  --sidebar-w: 305px;
  --purple: #8b3fd6;
  --purple-dark:#7530b8;
  --teal:#22b8a3;
  --ink:#2b2b2b;
  --muted:#6f6f6f;
  --border:#ececec;
  --bg-page:#ffffff;
  --pink-1:#e8bcc4;
  --pink-2:#f0d3d8;
  --banner-1:#b95573;
  --banner-2:#c56a86;
  --footer-bg:#fbfbfb;
  --orange:#f5a623;
  --gold:#f0b429;
  --star:#f5a623;
}

/* ---------- LAYOUT ---------- */
.layout{
  display:flex;
  min-height:100vh;
  max-width:1760px;
  margin:0 auto;
}

/* ---------- SIDEBAR ---------- */
.sidebar{
  width:var(--sidebar-w);
  flex:0 0 var(--sidebar-w);
  padding:32px 24px 40px;
  border-right:1px solid var(--border);
  background:#fff;
}
.logo{
  font-size:28px;
  font-weight:700;
  color:var(--teal);
  margin-bottom:34px;
  letter-spacing:0.2px;
}
.logo span{ color:var(--purple); }
.logo img{
  max-width:100%;
  max-height:60px;
  width:auto;
  height:auto;
  display:block;
}
.logo .custom-logo-link{ display:inline-block; }

.nav-group{ margin-bottom:4px; }

.nav-parent{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.4px;
  color:#8a8a8a;
  padding:13px 2px;
  border-bottom:1px solid var(--border);
}
.nav-parent .chev{ color:#9a9a9a; transition:transform .2s ease; flex-shrink:0; }
.nav-parent.open .chev{ transform:rotate(180deg); }

.nav-children{
  overflow:hidden;
  max-height:0;
  transition:max-height .25s ease;
}
.nav-children a{
  display:block;
  padding:9px 4px 9px 14px;
  font-size:14.5px;
  color:#4d4d4d;
  position:relative;
}
.nav-children a::before{
  content:"•";
  position:absolute;
  left:-4px;
  color:#4d4d4d;
}
.nav-children a.active{
  color:var(--purple);
  font-weight:600;
}
.nav-children a.active::before{ color:var(--purple); }
.nav-children a:hover{ color:var(--purple); }

.nav-empty{
  padding:16px 2px;
  font-size:14px;
  color:#8a8a8a;
}
.nav-empty a{
  display:inline-block;
  margin-top:8px;
  color:var(--purple);
  font-weight:600;
  font-size:13.5px;
}

.nav-group-single{ margin-bottom:2px; }
.nav-parent-link{
  display:block;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.4px;
  color:#8a8a8a;
  padding:13px 2px;
  border-bottom:1px solid var(--border);
}
.nav-parent-link:hover{ color:var(--purple); }

/* Desktop-only: keep sidebar fixed in place while page scrolls. */
@media (min-width: 993px){
  .sidebar{
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
  }
}

/* ---------- OVERLAY (mobile) ---------- */
.overlay{
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.4);
  z-index:40;
}
.overlay.show{ display:block; }

.mobile-toggle{
  display:none;
  position:fixed;
  top:16px; left:16px;
  z-index:60;
  width:42px; height:42px;
  background:#fff;
  border-radius:8px;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.mobile-toggle.is-hidden{ display:none !important; }

/* ---------- MAIN ---------- */
.main{
  flex:1;
  min-width:0;
  padding:32px 40px 0;
}

/* ---------- TOPBAR / SEARCH ---------- */
.topbar{
  display:flex;
  align-items:center;
  gap:24px;
  margin-bottom:28px;
}
.search-wrap{
  flex:1;
  max-width:460px;
  position:relative;
}
.mobile-logo{ display:none; }
.search-input{
  width:100%;
  padding:14px 48px 14px 20px;
  border:1px solid #e1e1e1;
  border-radius:10px;
  font-size:15px;
  color:#333;
  outline:none;
  background:#fff;
}
.search-input::placeholder{ color:#a3a3a3; }
.search-input:focus{ border-color:var(--purple); }
.search-btn{
  position:absolute;
  right:6px; top:50%;
  transform:translateY(-50%);
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
}

/* Live search dropdown */
.search-results{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid #ececec;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  max-height:360px;
  overflow-y:auto;
  z-index:50;
}
.search-results.show{ display:block; }
.search-result-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-bottom:1px solid #f2f2f2;
}
.search-result-item:last-child{ border-bottom:none; }
.search-result-item:hover{ background:#faf7ff; }
.search-result-thumb{
  width:42px; height:42px;
  border-radius:6px;
  overflow:hidden;
  flex-shrink:0;
  background:linear-gradient(160deg, var(--pink-1), var(--pink-2));
}
.search-result-thumb img{ width:100%; height:100%; object-fit:cover; }
.search-result-info{ flex:1; min-width:0; }
.search-result-title{
  font-size:14px;
  font-weight:600;
  color:#232323;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.search-result-price{ font-size:12.5px; color:#8a8a8a; }
.search-result-empty{
  padding:14px;
  font-size:13.5px;
  color:#9a9a9a;
}

/* ---------- HERO SLIDER ---------- */
.hero-slider{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:44px;
  min-height:320px;
  background:linear-gradient(135deg, var(--banner-1), var(--banner-2));
}
.hero-track{
  position:relative;
  width:100%;
  height:320px;
}
.hero-slide{
  position:absolute;
  inset:0;
  display:block;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity .7s ease;
}
.hero-slide.active{ opacity:1; z-index:2; }
.hero-slide-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 40px;
  text-align:center;
  color:#fdf6f0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size:22px;
}
.hero-slide-fallback.fallback-1{ background:linear-gradient(135deg,#b95573,#c56a86); }
.hero-slide-fallback.fallback-2{ background:linear-gradient(135deg,#3f8f7a,#6fb9a4); }
.hero-slide-fallback.fallback-3{ background:linear-gradient(135deg,#c9436b,#e0a63c); }

.hero-dots{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:9px;
  z-index:5;
}
.hero-dot{
  width:10px; height:10px;
  padding:0;
  margin:0;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  flex-shrink:0;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.hero-dot.active{ background:#fff; transform:scale(1.2); }

/* ---------- CATEGORY ROW ---------- */
.category-section{ margin-bottom:48px; }
.category-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.category-item{ display:block; }
.category-thumb{
  aspect-ratio:1/0.86;
  border-radius:12px;
  margin-bottom:16px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  background-color:#f2eef2;
}
.cat-planner{ background-image:linear-gradient(135deg,#c9436b,#e08aa5); }
.cat-sticker{ background-image:linear-gradient(135deg,#e0a63c,#f0c878); }
.cat-calendar{ background-image:linear-gradient(135deg,#3f8f7a,#6fb9a4); }
.cat-kids{ background-image:linear-gradient(135deg,#e0664a,#f0a487); }
.category-title{
  font-size:22px;
  font-weight:700;
  text-align:center;
  color:#232323;
}

/* ---------- PRODUCTS ---------- */
.products-section{ margin-bottom:48px; }
.section-title{
  font-size:28px;
  font-weight:700;
  margin-bottom:22px;
  color:#232323;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.product-grid-3col{
  grid-template-columns:repeat(3, 1fr);
}
.product-card{ background:#fff; }
.card-thumb{
  position:relative;
  aspect-ratio:1/1.2;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(160deg, var(--pink-1), var(--pink-2));
}
.card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.planner-mock{
  width:78%;
  height:78%;
  background:#fff;
  border-radius:2px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  padding:16px;
  position:relative;
  display:flex;
  align-items:flex-start;
}
.planner-mock::before{
  content:"";
  position:absolute;
  top:38px; left:16px; right:16px; bottom:16px;
  background-image: repeating-linear-gradient(
    to bottom, #e5e5e5, #e5e5e5 1px, transparent 1px, transparent 22px
  );
}
.pm-title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  color:#333;
}
.badge{
  position:absolute;
  top:10px; left:10px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  padding:5px 9px;
  border-radius:4px;
  z-index:3;
  color:#fff;
  background:var(--ink);
  text-transform:uppercase;
}
.card-title{
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:6px;
  color:#232323;
}
.card-title a:hover{ color:var(--purple); }
.card-rating{
  font-size:14px;
  color:#5c5c5c;
  margin-bottom:4px;
}
.stars{ color:var(--star); letter-spacing:1px; margin-right:4px; }
.card-price-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:8px;
  flex-wrap:wrap;
}
.card-price{
  font-size:14.5px;
  font-weight:700;
  color:#232323;
}
.card-price-old{
  font-size:12.5px;
  color:#9a9a9a;
  text-decoration:line-through;
}
.card-btn{
  display:inline-block;
  background:var(--ink);
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.3px;
  padding:9px 18px;
  border-radius:6px;
}
.card-btn:hover{ background:var(--purple); }

.cozy-empty-state{
  border:1.5px dashed var(--border);
  border-radius:12px;
  padding:36px 24px;
  text-align:center;
  color:#9a9a9a;
  font-size:14.5px;
}

/* ---------- BLOG POST CARDS (Latest Posts) ---------- */
.post-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.post-card{ background:#fff; }
.post-card-thumb{
  position:relative;
  aspect-ratio:1/0.75;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
  background:linear-gradient(160deg, var(--pink-1), var(--pink-2));
}
.post-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-card-date{
  font-size:12.5px;
  color:#9a9a9a;
  margin-bottom:6px;
}
.post-card-title{
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:6px;
  color:#232323;
}
.post-card-title a:hover{ color:var(--purple); }
.post-card-excerpt{
  font-size:13.5px;
  line-height:1.6;
  color:#6f6f6f;
}

.section-more-wrap{
  text-align:center;
  margin-top:28px;
}
.section-more-btn{
  display:inline-block;
  border:1.5px solid var(--ink);
  color:var(--ink);
  padding:12px 32px;
  border-radius:8px;
  font-weight:700;
  font-size:13.5px;
  letter-spacing:.3px;
}
.section-more-btn:hover{
  background:var(--ink);
  color:#fff;
}

/* ---------- ARCHIVE PAGES (products & blog) ---------- */
.archive-header{
  margin-bottom:40px;
  max-width:800px;
}
.archive-title{
  font-size:36px;
  font-weight:700;
  color:#232323;
  margin-bottom:12px;
}
.archive-description{
  font-size:15px;
  line-height:1.75;
  color:#5c5c5c;
}
.archive-description p{ margin-bottom:1em; }

.load-more-wrap{
  text-align:center;
  margin-top:36px;
}
.load-more-btn{
  background:var(--ink);
  color:#fff;
  padding:14px 40px;
  border-radius:8px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.4px;
}
.load-more-btn:hover{ background:var(--purple); }
.load-more-btn:disabled{ opacity:.6; cursor:default; }

/* ---------- FOOTER ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:28px 0 34px;
  text-align:left;
}
.footer-links{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:14px;
  margin-bottom:10px;
  color:var(--muted);
}
.footer-links li{ display:inline-flex; align-items:center; }
.footer-links li:not(:last-child)::after{
  content:"|";
  color:#c9c9c9;
  margin-left:8px;
}
.footer-links a{ color:var(--purple); }
.footer-links a:hover{ text-decoration:underline; }
.footer-copy{
  font-size:13px;
  color:#8a8a8a;
}
.footer-copy a{ color:var(--purple); }

/* ---------- DEFAULT PAGE / POST CONTENT ---------- */
.cozy-page-content{
  max-width:900px;
  margin:0 0 56px;
}
.cozy-page-title{
  font-size:32px;
  font-weight:700;
  margin-bottom:12px;
  color:#232323;
}
.cozy-page-meta{
  font-size:13.5px;
  color:#9a9a9a;
  margin-bottom:20px;
}
.cozy-page-thumb{
  border-radius:12px;
  overflow:hidden;
  margin-bottom:24px;
}
.cozy-page-thumb img{ width:100%; height:auto; }
.cozy-page-body{
  font-size:15.5px;
  line-height:1.75;
  color:#3a3a3a;
}
.cozy-page-body p{ margin-bottom:1.2em; }
.cozy-page-body h2,
.cozy-page-body h3{
  margin:1.4em 0 .6em;
  color:#232323;
}
.cozy-page-body img{ border-radius:10px; }
.cozy-page-body a{ color:var(--purple); text-decoration:underline; }

/* ---------- SINGLE POST + SIDEBAR ---------- */
.single-post-layout{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:48px;
  margin-bottom:56px;
}
.single-post-main{ margin-bottom:0; min-width:0; }
.post-sidebar{ min-width:0; }

.sidebar-widget{
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px;
  position:sticky;
  top:24px;
}
.sidebar-widget-title{
  font-size:16px;
  font-weight:700;
  color:#232323;
  margin-bottom:18px;
}
.sidebar-product-list{ list-style:none; }
.sidebar-product-item{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.sidebar-product-item:last-child{ border-bottom:none; padding-bottom:0; }
.sidebar-product-thumb{
  width:56px; height:56px;
  border-radius:6px;
  overflow:hidden;
  flex-shrink:0;
  background:linear-gradient(160deg, var(--pink-1), var(--pink-2));
}
.sidebar-product-thumb img{ width:100%; height:100%; object-fit:cover; }
.sidebar-product-info{ min-width:0; }
.sidebar-product-title{
  display:block;
  font-size:13.5px;
  font-weight:600;
  color:#232323;
  line-height:1.4;
  margin-bottom:4px;
}
.sidebar-product-title:hover{ color:var(--purple); }
.sidebar-product-price{
  font-size:12.5px;
  font-weight:700;
  color:#8a8a8a;
}
.sidebar-empty{
  font-size:13.5px;
  color:#9a9a9a;
}

@media (max-width: 992px){
  .single-post-layout{ grid-template-columns:1fr; gap:32px; }
  .sidebar-widget{ position:static; }
}

/* ================= SINGLE PRODUCT PAGE ================= */

.single-product{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  margin-bottom:56px;
}

/* Gallery */
.product-gallery{ min-width:0; }
.gallery-main{
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(160deg, var(--pink-1), var(--pink-2));
  aspect-ratio:1/1;
  margin-bottom:16px;
}
.gallery-main-img{
  width:100%; height:100%;
  object-fit:cover;
  cursor:zoom-in;
  transition:transform .35s ease;
}
.gallery-main-img:hover{
  transform:scale(1.08);
}
.gallery-main-placeholder{ width:100%; height:100%; }
.gallery-thumbs{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.gallery-thumb{
  width:76px; height:76px;
  border-radius:8px;
  overflow:hidden;
  border:2px solid transparent;
  flex-shrink:0;
  opacity:.7;
  transition:opacity .15s ease, border-color .15s ease;
}
.gallery-thumb img{ width:100%; height:100%; object-fit:cover; }
.gallery-thumb:hover{ opacity:1; }
.gallery-thumb.active{ opacity:1; border-color:var(--purple); }

/* Lightbox */
.cozy-lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(10,10,10,.92);
  z-index:1000;
  align-items:center;
  justify-content:center;
}
.cozy-lightbox.show{ display:flex; }
.lightbox-image{
  max-width:88vw;
  max-height:86vh;
  object-fit:contain;
  border-radius:6px;
}
.lightbox-close{
  position:absolute;
  top:22px; right:28px;
  font-size:36px;
  line-height:1;
  color:#fff;
  opacity:.85;
}
.lightbox-close:hover{ opacity:1; }
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:44px;
  color:#fff;
  opacity:.75;
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-nav:hover{ opacity:1; }
.lightbox-prev{ left:18px; }
.lightbox-next{ right:18px; }

/* Info panel */
.product-info{ min-width:0; }
.product-title{
  font-size:32px;
  font-weight:700;
  color:#232323;
  margin-bottom:12px;
}
.product-categories{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.product-categories a{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--purple);
  background:#f5edff;
  padding:5px 12px;
  border-radius:20px;
}
.product-categories a:hover{ background:#ecdcff; }

.product-rating{
  font-size:15px;
  color:#5c5c5c;
  margin-bottom:14px;
}
.product-rating .stars{ color:var(--star); letter-spacing:2px; margin-right:6px; }

.product-price-row{
  display:flex;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.price-new{
  font-size:32px;
  font-weight:700;
  color:#232323;
}
.price-old{
  font-size:18px;
  color:#9a9a9a;
  text-decoration:line-through;
}
.price-off{
  background:#e8f8ef;
  color:#1e8a4c;
  font-size:13px;
  font-weight:700;
  padding:4px 10px;
  border-radius:6px;
}

.product-description{
  font-size:15.5px;
  line-height:1.75;
  color:#3a3a3a;
  margin-bottom:24px;
}
.product-description p{ margin-bottom:1.1em; }

.product-buy-btn{
  display:inline-block;
  background:var(--ink);
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.4px;
  padding:15px 36px;
  border-radius:8px;
  margin-bottom:20px;
}
.product-buy-btn:hover{ background:var(--purple); }

.product-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.product-tags a{
  font-size:13px;
  color:#8a8a8a;
}
.product-tags a:hover{ color:var(--purple); }

/* Video / FAQ shared section title */
.product-section-title{
  font-size:24px;
  font-weight:700;
  color:#232323;
  margin-bottom:20px;
}
.product-video{ margin-bottom:56px; }
.product-video-embed{
  border-radius:12px;
  overflow:hidden;
}
.video-responsive{
  position:relative;
  padding-bottom:56.25%; /* 16:9 */
  height:0;
  overflow:hidden;
  border-radius:12px;
}
.video-responsive iframe{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* FAQ accordion */
.product-faqs{ margin-bottom:56px; max-width:800px; }
.faq-item{
  border-bottom:1px solid var(--border);
}
.faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 4px;
  font-size:15.5px;
  font-weight:600;
  color:#232323;
  text-align:left;
}
.faq-icon{
  font-size:20px;
  color:var(--purple);
  transition:transform .2s ease;
  flex-shrink:0;
  margin-left:16px;
}
.faq-question.open .faq-icon{ transform:rotate(45deg); }
.faq-answer{
  overflow:hidden;
  max-height:0;
  transition:max-height .25s ease;
}
.faq-answer p{
  padding:0 4px 18px;
  font-size:14.5px;
  line-height:1.7;
  color:#5c5c5c;
}

/* ================= RESPONSIVE: SINGLE PRODUCT ================= */
@media (max-width: 992px){
  .single-product{ grid-template-columns:1fr; gap:32px; }
}
@media (max-width: 560px){
  .product-title{ font-size:24px; }
  .price-new{ font-size:22px; }
  .gallery-thumb{ width:60px; height:60px; }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px){
  .product-grid{ grid-template-columns:repeat(3, 1fr); }
  .post-grid{ grid-template-columns:repeat(3, 1fr); }
  .category-grid{ grid-template-columns:repeat(4, 1fr); }
}

@media (max-width: 992px){
  .sidebar{
    position:fixed;
    top:0; left:0; bottom:0;
    z-index:50;
    transform:translateX(-100%);
    transition:transform .25s ease;
    box-shadow:0 0 24px rgba(0,0,0,.15);
    overflow-y:auto;
  }
  .sidebar.show{ transform:translateX(0); }
  .mobile-toggle{ display:flex; }
  .main{ padding:30px 20px 0; }
  .product-grid{ grid-template-columns:repeat(2, 1fr); }
  .post-grid{ grid-template-columns:repeat(2, 1fr); }
  .category-grid{ grid-template-columns:repeat(4, 1fr); gap:14px; }
  .category-title{ font-size:17px; }
  .hero-track, .hero-slider{ min-height:260px; }
  .hero-track{ height:260px; }

  .topbar{ flex-wrap:wrap; }
  .mobile-logo{
    display:block;
    flex-basis:100%;
    text-align:center;
    order:-1;
    margin-bottom:0px;
  }
  .mobile-logo a{ display:inline-block; }
  .mobile-logo img {
    max-height: 90px;
    width: auto;
    margin: 0 auto;
  }
  .search-wrap{ max-width:100%; flex-basis:100%; }
}

@media (max-width: 560px){
  .topbar{ flex-wrap:wrap; }
  .search-wrap{ max-width:100%; flex-basis:100%; }
  .product-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .post-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .category-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .category-title{ font-size:16px; }
  .card-title{ font-size:14px; }
  .post-card-title{ font-size:14px; }
  .section-title{ font-size:22px; }
  .hero-track, .hero-slider{ min-height:200px; }
  .hero-track{ height:200px; }
  .hero-slide-fallback{ font-size:15px; }
  .footer-links{ font-size:12.5px; }
}

@media (max-width: 380px){
  .product-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .post-grid{ grid-template-columns:1fr 1fr; gap:10px; }
}

/* ---------- RELATED PRODUCTS + INFINITE SCROLL ---------- */
.related-products{ margin-bottom:56px; }
.infinite-scroll-sentinel{ height:1px; }
.infinite-scroll-loading{
  text-align:center;
  font-size:13.5px;
  color:#9a9a9a;
  padding:20px 0;
}

/* ---------- CONTACT PAGE ---------- */
.contact-layout{
  display:grid;
  grid-template-columns:4fr 1fr;
  gap:40px;
  margin-bottom:56px;
}
.contact-form-panel{ min-width:0; }
.contact-form-embed{ margin-top:24px; }
.contact-info-panel{
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px;
  align-self:start;
}
.contact-info-list{ list-style:none; }
.contact-info-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}
.contact-info-item:first-child{ padding-top:0; }
.contact-info-item:last-child{ border-bottom:none; padding-bottom:0; }
.contact-info-icon{
  width:38px; height:38px;
  border-radius:50%;
  background:#f5edff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.contact-info-label{
  font-size:12px;
  color:#9a9a9a;
  margin-bottom:3px;
}
.contact-info-value{
  font-size:14px;
  font-weight:600;
  color:#232323;
}
.contact-info-value:hover{ color:var(--purple); }

@media (max-width: 992px){
  .contact-layout{ grid-template-columns:1fr; gap:32px; }
  .contact-info-panel{ align-self:auto; }
}

@media (max-width: 992px){
  .product-grid-3col{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 560px){
  .product-grid-3col{ grid-template-columns:repeat(2, 1fr); gap:14px; }
}
