/* ===================================
   Blog / Brands / Deals listing pages
   =================================== */

.blog-listing-meta {
  margin: 0 0 16px;
  font-size: 14px;
  color: #565959;
}

/* ---- Blog: 4 columns ---- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04);
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(15, 17, 17, 0.1);
  transform: translateY(-2px);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f0f2f2;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 42px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.blog-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.blog-card-meta {
  font-size: 12px;
  color: #565959;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}

.blog-card-meta a {
  color: #c45500;
  text-decoration: none;
}

.blog-card-meta a:hover {
  text-decoration: underline;
}

.blog-card-meta .sep {
  color: #aaa;
}

.blog-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.blog-card-title a {
  color: #0f1111;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #c45500;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #565959;
  flex: 1;
}

.blog-card-more {
  font-size: 13px;
  font-weight: 600;
  color: #c45500;
  text-decoration: none;
  margin-top: 4px;
}

.blog-card-more:hover {
  text-decoration: underline;
}

/* Also style home.php legacy grid if used */
.blog-archive .posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-archive .blog-layout {
  display: block;
}

.blog-archive .blog-main {
  width: 100%;
}

.blog-archive .sidebar,
.blog-archive aside {
  display: none;
}

/* ---- Brands directory ---- */
.brands-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04);
}

.brands-az-item {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #0f1111;
  background: #f5f6f8;
  border: 1px solid transparent;
}

a.brands-az-item:hover {
  background: #fff7ed;
  border-color: #f0c14b;
  color: #c45500;
}

.brands-az-item.is-active {
  background: #ffd814;
  border-color: #f0c14b;
  color: #0f1111;
}

.brands-az-item.is-disabled {
  color: #c4c4c4;
  background: transparent;
  cursor: default;
}

.brands-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.brands-letter-head {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 8px 4px 4px;
  font-size: 20px;
  font-weight: 800;
  color: #e47911;
  border-bottom: 2px solid #ffe4c4;
}

.brand-dir-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  padding: 16px 14px 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.04);
  min-height: 88px;
}

.brand-dir-card:hover {
  border-color: #f0c14b;
  box-shadow: 0 6px 18px rgba(15, 17, 17, 0.08);
  transform: translateY(-2px);
}

.brand-dir-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.3;
  padding-right: 20px;
}

.brand-dir-card:hover .brand-dir-name {
  color: #c45500;
}

.brand-dir-count {
  font-size: 12px;
  color: #565959;
}

.brand-dir-arrow {
  position: absolute;
  right: 12px;
  top: 16px;
  color: #aaa;
  font-size: 14px;
}

.brand-dir-card:hover .brand-dir-arrow {
  color: #e47911;
}

/* ---- Deals page ---- */
.deals-hero .cat-hero-kicker {
  color: #b12704;
}

/* Deals: 4 products per row */
.deals-listing-page .deals-products-grid,
.deals-listing-page .cat-products-grid.products-grid,
.deals-listing-page .products-grid.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.deals-products-grid {
  margin-bottom: 28px;
}

.deals-listing-page .cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.deals-listing-page .cat-toolbar-meta {
  margin: 0;
  font-size: 14px;
  color: #565959;
}

.deals-listing-page .cat-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.deals-listing-page .cat-sort-form select {
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: #f0f2f2;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .blog-posts-grid,
  .blog-archive .posts-grid,
  .brands-directory-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals-listing-page .deals-products-grid,
  .deals-listing-page .cat-products-grid.products-grid,
  .deals-listing-page .products-grid.cat-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .deals-listing-page .deals-products-grid,
  .deals-listing-page .cat-products-grid.products-grid,
  .deals-listing-page .products-grid.cat-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .deals-listing-page .deals-products-grid,
  .deals-listing-page .cat-products-grid.products-grid,
  .deals-listing-page .products-grid.cat-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .blog-posts-grid,
  .blog-archive .posts-grid,
  .brands-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-posts-grid,
  .blog-archive .posts-grid,
  .brands-directory-grid {
    grid-template-columns: 1fr;
  }

  .brands-az-item {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ===================================
   404 page — centered message + deals
   =================================== */

.error-404-page {
  background: #f5f6f8;
  padding: 32px 0 64px;
  min-height: 70vh;
}

.error-404-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.error-404-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 36px 24px 32px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 17, 17, 0.04);
}

.error-404-code {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c45500;
}

.error-404-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  color: #0f1111;
}

.error-404-message {
  margin: 0 auto 22px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
  color: #565959;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.error-404-actions .btn {
  min-width: 140px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.error-404-actions .btn-primary {
  background: #ffd814;
  color: #0f1111;
  border: 1px solid #fcd200;
}

.error-404-actions .btn-primary:hover {
  background: #f7ca00;
}

.error-404-actions .btn-secondary {
  background: #fff;
  color: #0f1111;
  border: 1px solid #d5d9d9;
}

.error-404-actions .btn-secondary:hover {
  background: #f7fafa;
  border-color: #c8cccc;
}

.error-404-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.error-404-search .search-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  font-size: 14px;
  background: #f0f2f2;
}

.error-404-search .search-input:focus {
  outline: none;
  border-color: #e77600;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.25);
  background: #fff;
}

.error-404-search .btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #fcd200;
  background: #ffd814;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.error-404-search .btn:hover {
  background: #f7ca00;
}

/* Deals section under 404 */
.error-404-deals {
  background: transparent;
  padding: 0;
  min-height: 0;
}

.error-404-deals-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 2px;
}

.error-404-deals-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c45500;
}

.error-404-deals-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.2;
}

.error-404-deals-desc {
  margin: 0;
  font-size: 14px;
  color: #565959;
}

.error-404-deals-more {
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffd814;
  border: 1px solid #fcd200;
  color: #0f1111;
  font-weight: 600;
  font-size: 14px;
}

.error-404-deals-more:hover {
  background: #f7ca00;
}

/* 4 columns × 3 rows */
.error-404-products-grid.cat-products-grid,
.error-404-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  margin-bottom: 28px;
}

.error-404-products-grid .product-card,
.error-404-products-grid .amz-rel-card {
  height: 100%;
}

.error-404-deals-footer {
  text-align: center;
  padding-top: 8px;
}

.error-404-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 10px;
  background: #ffd814;
  border: 1px solid #fcd200;
  color: #0f1111;
  font-size: 15px;
  font-weight: 700;
}

.error-404-more-btn:hover {
  background: #f7ca00;
}

.error-404-deals-empty {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e6e6;
}

.error-404-deals-empty p {
  margin: 0 0 14px;
  color: #565959;
}

@media (max-width: 1100px) {
  .error-404-products-grid.cat-products-grid,
  .error-404-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .error-404-products-grid.cat-products-grid,
  .error-404-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .error-404-deals-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .error-404-hero {
    padding: 28px 16px 24px;
  }

  .error-404-products-grid.cat-products-grid,
  .error-404-products-grid {
    grid-template-columns: 1fr !important;
  }

  .error-404-search {
    flex-direction: column;
  }

  .error-404-search .btn {
    width: 100%;
  }
}/* ---- Support / FAQ page ---- */
.support-page .support-hero {
  margin-bottom: 20px;
}

.support-search-wrap {
  margin: 0 0 20px;
}

.support-faq-filter {
  width: 100%;
  max-width: 560px;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d5d9d9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.06);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-faq-filter:focus {
  border-color: #f90;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.25);
}

.support-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.support-quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.support-quick-card:hover {
  border-color: #fbd38d;
  box-shadow: 0 6px 18px rgba(15, 17, 17, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.support-quick-label {
  font-size: 15px;
  font-weight: 700;
  color: #0f1111;
}

.support-quick-desc {
  font-size: 13px;
  color: #565959;
}

.support-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.support-toc {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  padding: 16px 14px;
}

.support-toc-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #565959;
}

.support-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-toc li + li {
  margin-top: 4px;
}

.support-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f1111;
  text-decoration: none;
}

.support-toc a:hover {
  background: #fff8e8;
  color: #c45500;
  text-decoration: none;
}

.support-toc .toc-ico {
  font-size: 15px;
  line-height: 1;
}

.support-faq-group {
  margin-bottom: 28px;
}

.support-faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #0f1111;
}

.support-faq-group-title .group-ico {
  font-size: 22px;
  line-height: 1;
}

.support-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-faq-item {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.support-faq-item[open] {
  border-color: #fbd38d;
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.06);
}

.support-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
  color: #0f1111;
  user-select: none;
}

.support-faq-q::-webkit-details-marker {
  display: none;
}

.support-faq-q::marker {
  content: "";
}

.support-faq-q .q-text {
  flex: 1;
  line-height: 1.4;
}

.support-faq-q .q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f2f2;
  position: relative;
  transition: background 0.15s ease, transform 0.2s ease;
}

.support-faq-q .q-icon::before,
.support-faq-q .q-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #0f1111;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.support-faq-q .q-icon::before {
  width: 12px;
  height: 2px;
}

.support-faq-q .q-icon::after {
  width: 2px;
  height: 12px;
  transition: opacity 0.15s ease;
}

.support-faq-item[open] .q-icon {
  background: #ffd814;
}

.support-faq-item[open] .q-icon::after {
  opacity: 0;
}

.support-faq-item[open] .support-faq-q {
  border-bottom: 1px solid #f0f2f2;
}

.support-faq-a {
  padding: 4px 18px 18px;
}

.support-faq-a p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #565959;
}

.support-faq-empty {
  padding: 24px;
  text-align: center;
  color: #565959;
  background: #f7f8f8;
  border-radius: 12px;
  border: 1px dashed #d5d9d9;
}

.support-contact-box {
  margin-top: 12px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #fff8e8 0%, #ffffff 55%);
  border: 1px solid #fbd38d;
  border-radius: 14px;
}

.support-contact-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0f1111;
}

.support-contact-box p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #565959;
  max-width: 640px;
}

.support-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-contact-actions .btn-primary,
.support-contact-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.support-contact-actions .btn-primary {
  background: #ffd814;
  border-color: #fcd200;
  color: #0f1111;
}

.support-contact-actions .btn-primary:hover {
  background: #f7ca00;
  text-decoration: none;
  color: #0f1111;
}

.support-contact-actions .btn-secondary {
  background: #fff;
  border-color: #d5d9d9;
  color: #0f1111;
}

.support-contact-actions .btn-secondary:hover {
  background: #f7f8f8;
  text-decoration: none;
  color: #0f1111;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-toc {
    position: static;
  }

  .support-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .support-toc li + li {
    margin-top: 0;
  }

  .support-quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .support-quick-links {
    grid-template-columns: 1fr;
  }
}
