/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Version: 1.0
*/
body{
    background: #fff !important;
    overflow-x: hidden;
}

.gz-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px 15px;
}
.adrow{
    display: block;
    width: 100%;
}

/* HERO */
.hero-img {
  background: url('/wp-content/uploads/home/hero-desktop.png') center/cover no-repeat;
  height: 520px;
  border-radius: 16px;
  margin-bottom: 40px;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero-img {
    background: url('/wp-content/uploads/home/hero-mobile.png') center/cover no-repeat;
    height: 420px;
    border-radius: 0;
  }

  .gz-container {
    padding: 0;
  }

  #categories, .home-category {
    margin: 20px;
  }
}

/* SEO-visible but hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.category-box img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.category-box span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  text-align: center;
}

/* HOME CATEGORY SECTION */
.home-category {
  margin-bottom: 60px;
}

.category-header {
  margin-bottom: 20px;
}

/* PRODUCTS GRID — 2 PER ROW (KEY CHANGE) */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Mobile */
@media (max-width: 640px) {
  .trending-grid, .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-box img {
  height: 200px;
}
}

/* PRODUCT CARD */
.product-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #111;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

/* Rating */
.rating-badge {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Title */
.product-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 600;
}

/* Price */
.product-card .price {
  font-size: 16px;
  font-weight: 700;
  color: #ff5722;
  margin: 0;
}

/* VIEW ALL */
.view-all-wrap {
  text-align: center;
  margin-top: 20px;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.2s;
}

.view-all-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
/* PAGINATION */
.pagination-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 50px 0 20px;
}

.pagination-link {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Current page */
.pagination-link.active,
.pagination-link[aria-current="page"] {
    background: #ff5722;
    color: #fff;
    border-color: #ff5722;
    font-weight: 600;
    pointer-events: none;
}


/* Mobile */
@media (max-width: 640px) {
  .pagination-link {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* SINGLE PRODUCT PAGE */
.product-page {
  padding-bottom: 80px;
}

.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}

.product-image img {
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
}

.product-info h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.rating-line {
  font-size: 15px;
  margin-bottom: 10px;
  color: #444;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

.price-box .price {
  font-size: 26px;
  font-weight: 700;
  color: #ff5722;
}

.price-box .old-price {
  text-decoration: line-through;
  color: #777;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
}

.trust-points li {
  margin-bottom: 6px;
  font-size: 14px;
}

.buy-btn {
  display: inline-block;
  background: #ff5722;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.buy-btn:hover {
  background: #e64a19;
}

/* SPECS */
.product-specs h2 {
  margin: 40px 0 15px;
}

.product-specs details {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
}

.product-specs summary {
  font-weight: 600;
  cursor: pointer;
}

.mobile-buy {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .product-top {
    grid-template-columns: 1fr;
  }

  .buy-btn {
    display: none;
  }

  .mobile-buy {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ff5722;
    text-align: center;
    padding: 14px;
    z-index: 9999;
  }

  .mobile-buy a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }
}
/* SIMILAR PRODUCTS */
.similar-products {
  margin-top: 50px;
}

.similar-products h2 {
  margin-bottom: 20px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Desktop */
@media (min-width: 900px) {
  .similar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.similar-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: #111;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.similar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.similar-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.similar-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 6px 0;
}

.similar-card .price {
  font-weight: 700;
  color: #ff5722;
  margin: 0;
}

/* FAQ SECTION */
.product-faq {
  margin-top: 50px;
}

.product-faq h2 {
  margin-bottom: 16px;
}

.product-faq details {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}

.product-faq summary {
  font-weight: 600;
  cursor: pointer;
}

.product-faq p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}
/* TOP LIST PAGE */
.top-list-page h1 {
  margin-bottom: 10px;
}

.intro-text {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.top-list-page{
    margin: 15px;
}

.top-product {
  position: relative;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  text-align: center;
  max-width: 360px;
  margin: 0 auto 24px;
}

.top-product img{
  height: auto;
}

/* Rank badge */
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff5722;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* Product image */
.top-product-img {
  width: 100%;
  max-width: 220px;
  height: 300px;
  margin: 20px auto 12px;
  display: block;
  object-fit: contain;
}

/* Info below image */
.top-product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Title */
.top-product-info h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.top-product-info h2 a {
  text-decoration: none;
  color: #111;
}

/* Price */
.top-product-info .price {
  font-size: 18px;
  font-weight: 700;
  color: #ff5722;
  margin: 4px 0;
}

/* Button */
.buy-btn {
  margin-top: 6px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.buy-btn:hover {
  background: #ff5722;
}

.top-product-info h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.top-product-info .price {
  font-weight: 700;
  color: #ff5722;
  margin: 6px 0;
}
.top-product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
    }
/* Mobile */
@media (max-width: 768px) {
    .top-product-grid{
  grid-template-columns: repeat(2, 1fr);
    }
    
  .top-product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rank-badge {
    margin-bottom: 6px;
  }
}
/* PRODUCT → TOP LIST LINKS */
.product-toplists {
  margin-top: 40px;
}

.product-toplists ul {
  padding-left: 2px;
}

.product-toplists li {
  margin-bottom: 6px;
}

.product-toplists a {
  text-decoration: none;
  color: #0066cc;
}

.product-toplists a:hover {
  text-decoration: underline;
}
/* CATEGORY → TOP LIST LINKS */
.category-toplists {
  margin: 30px 0;
  padding: 20px;
  background: #f9fafb;
  border-radius: 14px;
}

.toplist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toplist-links a {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

.toplist-links a:hover {
  background: #000;
  color: #fff;
}
.last-updated {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar select,
.filter-bar button {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.reset-filter {
  padding: 8px 12px;
  text-decoration: none;
  background: #f2f2f2;
  border-radius: 8px;
  color: #333;
}
#productResults {
  transition: opacity 0.2s ease;
}
.active-filters span {
  display:inline-block;
  background:#f3f3f3;
  padding:5px 10px;
  border-radius:20px;
  font-size:13px;
  margin-right:6px;
}
.product-description h2 {
  font-size: 18px;
  margin: 24px 0 8px;
  font-weight: 700;
}

.product-description p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}
.specs-section {
  margin: 40px 0;
}

.spec-group-title {
  font-size: 18px;
  margin: 28px 0 10px;
  border-left: 4px solid #ff5722;
  padding-left: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border: 1px solid #eee;
  font-size: 14px;
  vertical-align: top;
}

.spec-table th {
  width: 35%;
  background: #fafafa;
  font-weight: 600;
  color: #333;
}

.spec-table td {
  color: #444;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .spec-table th {
    width: 45%;
  }
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
  margin: 30px 0;
}

.pros-cons h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pros-cons ul {
  padding-left: 18px;
}

.pros-cons li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.pros li { color: #2e7d32; }
.cons li { color: #c62828; }

.site-footer a {
  color: #666;
  text-decoration: none;
  margin: 0 6px;
}

.site-footer a:hover {
  color: #ff5722;
}








