/*
Theme Name: Pet Supply Link
Theme URI: https:petsupplylink.online
Author: cypher01-droid
Author URI: https://unrealayment.com
Description: Custom theme for exotic pets and supplies
Version: 1.1.04
License: GPL v2 or later
Text Domain: pet-supply-link
*/
/* =============================================
   COLOUR VARIABLES – Forest Green & Dark palette
   ============================================= */

:root {
  --forest-green: #1B4332;
  --green-dark: #081C15;
  --green-mid: #2D6A4F;
  --green-light: #40916C;
  --green-pale: #52B788;
  --dark-bg: #0D1B2A;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --header-top-bg: var(--green-dark);
  --header-main-bg: var(--forest-green);
  --header-cat-bg: var(--green-mid);
  --accent: var(--green-pale);
  --transition: 0.2s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: var(--font-family);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; top: -100%; left: 0; background: var(--forest-green); color: var(--white); padding: 8px 16px; z-index: 9999; }
.skip-link:focus { top: 0; }

/* TOP BAR – always visible */
.header-top {
  background: var(--header-top-bg);
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 6px 0;
}

.header-top__inner {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-top__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.header-top__link:hover { color: var(--white); }

/* MAIN HEADER */
.site-header {
  background: var(--header-main-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(46, 204, 113, 0.15);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
/* Nested subcategories (grandchildren) */
.subcat-list--nested {
  padding-left: 16px;                /* indent to show hierarchy */
  background: rgba(0,0,0,0.15);
  border-radius: 0;
}

/* Row for name + toggle button */
.subcat-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.subcat-item-row .subcat-link {
  flex: 1;
  padding: 10px 16px;
}

.subcat-item-row .subcat-toggle {
  flex-shrink: 0;
  margin-left: 8px;
}
/* Nested subcategory support */
.subcat-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.subcat-item-row .subcat-link {
  flex: 1;
  padding: 10px 16px;
}

.subcat-item-row .subcat-toggle {
  flex-shrink: 0;
  margin-left: 8px;
}

/* Mobile nested accordion indent */
.subcat-list--nested {
  padding-left: 16px;
  background: rgba(0,0,0,0.15);
}

/* Desktop hover for nested flyouts */
@media (min-width: 1024px) {
  .subcat-list--nested {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    padding-left: 0;
    background: var(--green-mid);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .parent-cat-item .subcat-list li.has-children {
    position: relative;
  }

  .parent-cat-item .subcat-list li.has-children:hover > .subcat-list--nested,
  .parent-cat-item .subcat-list li.has-children:focus-within > .subcat-list--nested {
    display: block;
  }
}
/* Desktop hover: show nested submenus on hover */
@media (min-width: 1024px) {
  .subcat-list--nested {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    padding-left: 0;
    background: var(--green-mid);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  /* Allow hover on parent li to reveal nested subcat-list */
  .parent-cat-item .subcat-list li.has-children {
    position: relative;
  }

  .parent-cat-item .subcat-list li.has-children:hover > .subcat-list--nested,
  .parent-cat-item .subcat-list li.has-children:focus-within > .subcat-list--nested {
    display: block;
  }
}
.site-branding { flex-shrink: 0; }
.site-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; }
.site-title:hover { color: var(--accent); }

.desktop-nav { display: none; }
.nav-list { display: flex; list-style: none; gap: 4px; }
.nav-list a { display: block; padding: 0.5rem 1rem; color: var(--white); text-decoration: none; font-weight: 500; border-radius: 6px; transition: background var(--transition); }
.nav-list a:hover, .nav-list a:focus-visible { background: var(--green-light); color: var(--white); outline: none; }

.mobile-menu-toggle { display: flex; background: none; border: none; color: var(--white); cursor: pointer; padding: 8px; }
.menu-toggle__icon { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.menu-toggle__icon span { display: block; height: 2px; background: currentColor; transition: transform 0.2s; }

.mobile-menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; border-radius: 50%; position: relative; transition: background var(--transition), color var(--transition); }
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(46,204,113,0.15); color: var(--accent); outline: none; }

.cart-count {
  position: absolute; top: 0; right: -2px;
  background: var(--accent); color: var(--dark-bg);
  font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; line-height: 18px;
  border-radius: 50%; text-align: center; border: 2px solid var(--header-main-bg);
  display: none;
}
.cart-count:not(:empty) { display: flex; align-items: center; justify-content: center; }
/* CATEGORY BAR */
.header-categories {
  background: var(--header-cat-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: visible;
}

.categories-mobile-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; color: var(--white); font-size: 1rem; font-weight: 600;
  padding: 12px 0; cursor: pointer;
}

.categories-mobile-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.category-menu { display: none; padding-bottom: 8px; }
.category-menu.active { display: block; }

.parent-cats { list-style: none; margin: 0; padding: 0; }
.parent-cat-item { border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.parent-cat-link { display: block; padding: 12px 16px; color: var(--white); text-decoration: none; font-weight: 500; }

.subcat-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--white); padding: 8px 16px;
  cursor: pointer; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
}
.subcat-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.subcat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: var(--green-mid);
  z-index: 2000;                /* above everything */
}

/* Mobile accordion */
@media (max-width: 1023px) {
  .subcat-list {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.15);
    padding-left: 24px;
  }
  .subcat-list.active { display: block; }
}

/* Desktop flyout */
@media (min-width: 1024px) {
  .subcat-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    border-radius: 0 0 8px 8px;
  }

  .parent-cat-item:hover > .subcat-list,
  .parent-cat-item:focus-within > .subcat-list { display: block; }

  .subcat-toggle { display: none; }

  .subcat-list .subcat-list {
    left: 100%;
    top: 0;
  }

  .subcat-list a {
    padding: 8px 20px;
    display: block;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
  }
  .subcat-list a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
  }
}

/* MODALS */
.modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 3000;
  justify-content: center; align-items: flex-start; overflow-y: auto;
}
.modal.active { display: flex; }

.modal-content {
  background: #111; border-radius: 24px; max-width: 500px; width: 90%;
  margin: 15vh auto; max-height: 80vh; overflow-y: auto;
  padding: 24px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  color: #fff; border: 1px solid rgba(46,204,113,0.2);
}
.modal-content.large { max-width: 600px; }

.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 28px; cursor: pointer; color: #aaa; line-height: 1;
}
.modal-close:hover { color: var(--accent); }

.modal-title { margin: 0 0 20px; color: var(--accent); font-weight: 700; font-size: 1.5rem; }

.search-modal .woocommerce-product-search { display: flex; flex-direction: column; gap: 16px; }
.search-modal input[type="search"] {
  padding: 14px 18px; border: 1px solid rgba(46,204,113,0.3); border-radius: 60px;
  background: #1c1c1c; color: #fff; font-size: 1rem;
}
.search-modal button[type="submit"] {
  background: var(--accent); color: var(--dark-bg); border: none;
  padding: 12px 24px; border-radius: 60px; font-weight: 700; cursor: pointer;
}
/* Logo – controlled via direct URL */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Optional site title fallback (if logo doesn't load) */
.site-title {
  font-size: 1.2rem;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}
.cart-modal .widget_shopping_cart_content { /* inherit WooCommerce styles */ }
.cart-modal .woocommerce-mini-cart__buttons {
  display: flex; gap: 12px; margin-top: 20px; justify-content: space-between;
}
.cart-modal .woocommerce-mini-cart__buttons a {
  background: var(--accent); color: var(--dark-bg); padding: 10px 20px;
  border-radius: 40px; text-decoration: none; font-weight: 600; flex: 1; text-align: center;
}

/* MOBILE SLIDE-OUT NAV */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: 85vw; max-width: 400px; height: 100vh;
  background: var(--header-main-bg); transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2000;
  padding: 24px 20px; overflow-y: auto; border-left: 1px solid rgba(46,204,113,0.2);
}
.mobile-nav[aria-hidden="false"] { transform: translateX(0); }
.mobile-nav-list { list-style: none; margin-top: 30px; }
.mobile-nav-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav-link { display: block; padding: 16px 0; color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.mobile-nav-link:hover { color: var(--accent); padding-left: 8px; }
.mobile-nav-footer { margin-top: 40px; color: var(--text-muted); font-size: 0.85rem; }

.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1500;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

/* DESKTOP (≥1024px) */
@media (min-width: 1024px) {
  .header-top__inner { justify-content: flex-end; }
  .desktop-nav { display: block; }
  .mobile-menu-toggle { display: none; }
  .header-icons { gap: 8px; }
  .header-categories { display: block; overflow: visible; }
  .categories-mobile-toggle { display: none; }
  .category-menu { display: block !important; padding: 0; }

  .parent-cats { display: flex; flex-wrap: wrap; }
  .parent-cat-item { border-bottom: none; position: relative; }
  .parent-cat-link { padding: 14px 20px; white-space: nowrap; }

  .subcat-list {
    position: absolute; top: 100%; left: 0;
    background: var(--green-mid); min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3); display: none; padding: 8px 0;
  }
  .parent-cat-item:hover .subcat-list,
  .parent-cat-item:focus-within .subcat-list { display: block; }
  .subcat-toggle { display: none; }
  .subcat-list a { padding: 8px 20px; }
}

/* Very small screens */
@media (max-width: 400px) {
  .header-top__inner { gap: 10px; }
}

/* =============================================
   FOOTER – Premium Multi‑Column
   ============================================= */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 0.95rem;
  border-top: 1px solid rgba(46,204,113,0.15);
  margin-top: 60px;
}

/* Newsletter bar */
.footer-newsletter {
  background: var(--forest-green);
  padding: 30px 0;
}

.footer-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-newsletter__heading {
  color: var(--white);
  font-size: 1.4rem;
  margin: 0;
}

.footer-newsletter__text {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0;
}

.footer-newsletter__form {
  display: flex;
  width: 100%;
  max-width: 450px;
  gap: 8px;
}

.footer-newsletter__form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.footer-newsletter__form button {
  background: var(--accent);
  color: var(--dark-bg);
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.footer-newsletter__form button:hover {
  background: var(--green-light);
}

/* Main footer grid */
.footer-main {
  padding: 50px 0 30px;
}

.footer-main__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 600px) {
  .footer-main__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-main__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-widget-title {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-widget p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark-bg);
}

/* Footer link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Contact list */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* Bottom bar */
.footer-bottom {
  background: var(--green-dark);
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
}

.footer-payment {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-payment svg {
  display: block;
}

/* Responsive newsletter form on very small screens */
@media (max-width: 480px) {
  .footer-newsletter__form {
    flex-direction: column;
  }
  .footer-newsletter__form button {
    padding: 12px;
  }
}
/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.hero-slides::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 16px;
}

.hero-slide__tag {
  display: inline-block;
  background: var(--accent);
  color: var(--dark-bg);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-slide__title {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-slide__text {
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 500px;
  color: rgba(255,255,255,0.9);
}

.btn--primary {
  display: inline-block;
  background: var(--accent);
  color: var(--dark-bg);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}

.btn--primary:hover {
  background: var(--green-light);
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none; /* hidden on mobile, visible on desktop */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.hero-arrow:hover {
  background: var(--accent);
  color: var(--dark-bg);
}

.hero-arrow--prev {
  left: 20px;
}

.hero-arrow--next {
  right: 20px;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.active {
  background: var(--accent);
}

@media (min-width: 768px) {
  .hero-arrow {
    display: flex; /* show arrows on tablets and up */
  }
}

@media (max-width: 480px) {
  .hero-slide__title {
    font-size: 1.6rem;
  }
  .hero-slide__text {
    font-size: 1rem;
  }
}

/* =============================================
   SHOP BY CATEGORY GRID
   ============================================= */
.category-grid-section {
  padding: 60px 0;
  background: var(--dark-bg);
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 500px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 1;
}

.category-card__content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
}

.category-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.category-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  display: none; /* hide on small cards */
}

@media (min-width: 500px) {
  .category-card__desc {
    display: block;
  }
}

.category-card__link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.category-card:hover .category-card__link {
  text-decoration: underline;
}

.no-categories {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
/* =============================================
   TRUST BAR – TABBED TESTIMONIALS
   ============================================= */
.trust-bar {
  padding: 70px 0;
  background: var(--green-dark);
  text-align: center;
}

.trust-bar .section-heading {
  color: var(--white);
  margin-bottom: 32px;
}

/* Tabs navigation */
.trust-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.trust-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 40px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.trust-tab:hover {
  background: rgba(46,204,113,0.2);
}

.trust-tab.active {
  background: var(--accent);
  color: var(--dark-bg);
  border-color: var(--accent);
}

/* Panels */
.trust-panels {
  position: relative;
}

.trust-panel {
  display: none;
}

.trust-panel.active {
  display: block;
}

.trust-panel__header {
  margin-bottom: 24px;
}

.trust-panel__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-panel__stars {
  display: flex;
  gap: 3px;
}

.trust-panel__score {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

/* Testimonial grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

@media (min-width: 600px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-card__author span {
  color: var(--text-muted);
  font-weight: 400;
}
/* =============================================
   FEATURED PRODUCTS (most expensive per category)
   ============================================= */
.featured-products {
  padding: 60px 0;
  background: var(--dark-bg);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 500px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.featured-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.featured-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.featured-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-card:hover .featured-card__image {
  transform: scale(1.05);
}

.featured-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card__category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.featured-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.featured-card__title a {
  color: var(--white);
  text-decoration: none;
}

.featured-card__title a:hover {
  color: var(--accent);
}

.featured-card__price {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.featured-card__add-to-cart {
  margin-top: auto; /* push to bottom */
  display: inline-block;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  background: var(--accent);
  color: var(--dark-bg);
  text-decoration: none;
  transition: background var(--transition);
}

.featured-card__add-to-cart:hover {
  background: var(--green-light);
  color: var(--dark-bg);
}

.featured-card__out-of-stock {
  color: #e74c3c;
  font-weight: 600;
  margin-top: auto;
  font-size: 0.9rem;
}

.no-products {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-choose {
  padding: 70px 0;
  background: var(--green-dark);
  text-align: center;
}

.why-choose .section-heading {
  color: var(--white);
  margin-bottom: 40px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 500px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .why-choose-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 12px;
  padding: 30px 20px;
  transition: transform 0.3s, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.why-card__icon {
  margin-bottom: 20px;
}

.why-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
/* Ensure the anchor is relative so the overlay is positioned inside it */
.woocommerce-product-gallery__image a {
  position: relative;
  display: block;
}

/* The wrapper we added */
.product-image-wrapper {
  position: relative;
  display: block;
  line-height: 0;
}

/* Overlay logo */
.brand-logo-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;        /* increased from 36px */
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;      /* slightly more opaque */
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s;
}

/* Hover effect */
.woocommerce-product-gallery__image:hover .brand-logo-overlay,
.product-card:hover .brand-logo-overlay {
  opacity: 1;
}

/* On mobile, still keep it decently sized */
@media (max-width: 768px) {
  .brand-logo-overlay {
    width: 40px;
    height: 40px;
    bottom: 8px;
    right: 8px;
  }
}

/* Extra large screens can handle an even bigger logo */
@media (min-width: 1400px) {
  .brand-logo-overlay {
    width: 60px;
    height: 60px;
  }
}
/* =============================================
   RELATED & UPSELL PRODUCTS (default WooCommerce markup)
   ============================================= */
.related.products,
.upsells.products {
  margin-top: 60px;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 1.8rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Override the default columns grid */
.related.products ul.products,
.upsells.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each product card */
.related.products ul.products li.product,
.upsells.products ul.products li.product {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Product image */
.related.products ul.products li.product .product-image-wrapper,
.upsells.products ul.products li.product .product-image-wrapper {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 16px;
  line-height: 0;
}

.related.products ul.products li.product img,
.upsells.products ul.products li.product img {
  width: 100%;
  border-radius: 16px;
  transition: transform 0.2s;
  display: block;
}

.related.products ul.products li.product:hover img,
.upsells.products ul.products li.product:hover img {
  transform: scale(1.02);
}

/* Product title */
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  margin: 10px 0;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.related.products ul.products li.product .woocommerce-loop-product__title a,
.upsells.products ul.products li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

.related.products ul.products li.product .woocommerce-loop-product__title a:hover,
.upsells.products ul.products li.product .woocommerce-loop-product__title a:hover {
  color: var(--accent);
}

/* Price */
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
}

/* Add to cart button */
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
  background: var(--accent);
  color: var(--dark-bg);
  padding: 8px 16px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: auto;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  color: var(--dark-bg);
}

/* Star ratings (if displayed) */
.related.products ul.products li.product .star-rating,
.upsells.products ul.products li.product .star-rating {
  margin: 0 auto 8px;
  color: var(--sp-star);
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Ensure the brand overlay also works inside related products */
.related.products ul.products li.product .product-image-wrapper,
.upsells.products ul.products li.product .product-image-wrapper {
  position: relative;
}