/* ---------- RESET & BASE ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: #222;
  background: #fafafa;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* ---------- LAYOUT ---------- */

.container {
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
  text-decoration: none;
}

/* ---------- MAIN NAVIGATION ---------- */

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #2e7d32;
}

/* ---------- MOBILE MENU TOGGLE ---------- */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MOBILE NAVIGATION ---------- */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 105;
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin-top: 80px;
  padding: 48px 0 24px;
  background: #f5f5f5;
  border-top: 1px solid #eaeaea;
  font-size: 0.9rem;
  color: #666;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #2e7d32;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #666;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  color: #fff;
}

.social-link.pinterest:hover {
  background: #e60023;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: #2e7d32;
}

/* ---------- TYPOGRAPHY ---------- */

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.75rem;
  margin: 48px 0 24px;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

/* ---------- LINKS & BUTTONS ---------- */

a {
  color: #2e7d32;
}

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  background: #2e7d32;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.btn:hover {
  background: #256428;
}

/* ---------- PRODUCT LIST ---------- */

.product-list {
  margin-top: 40px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .product-card {
    grid-template-columns: 1fr;
  }
}

/* ---------- PRODUCT CONTENT ---------- */

.product-content {
  display: flex;
  flex-direction: column;
}

.best-for {
  color: #555;
  font-size: 0.95rem;
}

.features {
  margin: 12px 0 0;
  padding-left: 18px;
}

.features li {
  margin-bottom: 6px;
}

/* ---------- BADGE ---------- */

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffb703;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid #eaeaea;
}

/* ---------- COMPARISON SECTION ---------- */

.comparison {
  margin: 48px 0 64px;
}

.comparison-cards {
  display: grid;
  gap: 16px;
}

.comparison-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 700px) {
  .comparison-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.comparison-main h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.comparison-best-for {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.comparison-action {
  text-align: right;
}

@media (max-width: 700px) {
  .comparison-action {
    text-align: left;
  }
}

/* ---------- COMPARISON BADGE ---------- */

.comparison-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: #2e7d32;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ---------- SECONDARY BUTTON ---------- */

.btn-secondary {
  background: #ffffff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-secondary:hover {
  background: #2e7d32;
  color: #ffffff;
}

/* ---------- COMPARISON (FIXED UI) ---------- */

.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 700px) {
  .comparison-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.comparison-left img {
  border-radius: 8px;
  background: #f3f3f3;
}

.comparison-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.comparison-best-for {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.comparison-action {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .comparison-action {
    margin-top: 12px;
  }
}

.comparison-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: #2e7d32;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

/* =========================================================
   COMPARISON SECTION (FINAL POLISH)
   ========================================================= */

.comparison {
  margin: 56px 0 72px;
}

.comparison-heading {
  margin-bottom: 24px;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

@media (max-width: 700px) {
  .comparison-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.comparison-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-best-for {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* ---------- BADGE ---------- */

.comparison-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- CTA ---------- */

.comparison-cta {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .comparison-cta {
    margin-top: 8px;
  }
}

.btn-outline {
  background: transparent;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline:hover {
  background: #2e7d32;
  color: #ffffff;
}

/* =========================================================
   HOMEPAGE HERO (PINTEREST-FIRST)
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin: 64px 0 80px;
}

/* Compact hero for mobile - no visual box */
.hero.hero-compact {
  grid-template-columns: 1fr;
  text-align: center;
  margin: 32px 0 48px;
}

.hero.hero-compact .hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero.hero-compact .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero.hero-compact {
    margin: 24px 0 40px;
  }
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 520px;
  margin-bottom: 20px;
}

/* ---------- HERO TRUST BADGES ---------- */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-badge svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .hero-trust {
    flex-direction: column;
    align-items: center;
  }
}

.hero-cta {
  font-size: 1rem;
  padding: 14px 26px;
}

/* ---------- HERO VISUAL ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #2e7d32;
  font-size: 1.1rem;
  text-align: center;
  padding: 24px;
}

/* ---------- HOME CONTENT ---------- */

.home-content {
  margin-top: 40px;
}

/* =========================================================
   FEATURED PRODUCTS SECTION
   ========================================================= */

.featured-section {
  margin: 48px 0 64px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: #222;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.featured-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
  background: #f5f5f5;
}

.featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffb703;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
}

.featured-info {
  padding: 16px;
}

.featured-name {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 6px;
  line-height: 1.3;
}

.featured-best-for {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px;
}

.featured-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e7d32;
}

.featured-cta {
  text-align: center;
  margin-top: 32px;
}

/* =========================================================
   WHY TRUST US SECTION
   ========================================================= */

.why-trust {
  background: #f8f9fa;
  padding: 48px 24px;
  border-radius: 16px;
  margin: 48px 0;
}

.why-trust .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.trust-item {
  text-align: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  color: #2e7d32;
  margin-bottom: 16px;
}

.trust-item h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #222;
}

.trust-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   MOBILE STICKY CTA (BEST PICK)
   ========================================================= */

.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 12px 16px;
    z-index: 1000;
  }

  .sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sticky-cta-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
  }

  .sticky-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .sticky-name {
    font-weight: 600;
    color: #222;
    line-height: 1.2;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Prevent content from being hidden behind sticky bar */
  body {
    padding-bottom: 80px;
  }
}

/* =========================================================
   TRUST BLOCK
   ========================================================= */

.trust-block {
  margin: 24px 0 40px;
  padding: 20px 24px;
  background: #f6f8f7;
  border-radius: 12px;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.trust-points li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.trust-points strong {
  color: #222;
}

/* =========================================================
   PIN IT BUTTON
   ========================================================= */

.product-media {
  position: relative;
}

.pin-it-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #e60023;
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  z-index: 20;
}

.product-media:hover .pin-it-btn,
.pin-it-btn:focus {
  opacity: 1;
}

.pin-it-btn:hover {
  background: #ad081b;
}

.pin-it-btn svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   PRODUCT PRICE
   ========================================================= */

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 8px 0;
}

/* =========================================================
   FOOTER NAVIGATION
   ========================================================= */

.footer-nav {
  margin-top: 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

/* =========================================================
   404 ERROR PAGE
   ========================================================= */

.error-page {
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 24px;
}

.error-page ul {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.error-page li {
  margin-bottom: 12px;
}

.error-page a {
  font-weight: 600;
}

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

.product-detail {
  margin: 0 0 48px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

@media (max-width: 800px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
}

/* ---------- PRODUCT GALLERY ---------- */

.product-gallery {
  position: relative;
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f5f5f5;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffb703;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}

/* Large Pin It button for product page */
.pin-it-large {
  position: absolute;
  top: 16px;
  right: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 24px;
  gap: 8px;
  opacity: 1;
}

.pin-it-large span {
  font-size: 0.85rem;
  font-weight: 600;
}

.pin-it-large svg {
  width: 20px;
  height: 20px;
}

.product-gallery:hover .pin-it-large {
  opacity: 1;
}

/* ---------- PRODUCT INFO ---------- */

.product-info {
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 16px;
}

.product-best-for {
  font-size: 1rem;
  color: #555;
  margin-bottom: 16px;
}

.product-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 20px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.product-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0;
}

.affiliate-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 16px;
}

/* =========================================================
   IMAGE CAROUSEL
   ========================================================= */

.product-carousel {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CAROUSEL BUTTONS ---------- */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.product-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #ffffff;
}

.carousel-btn:focus {
  opacity: 1;
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  color: #333;
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

/* ---------- CAROUSEL DOTS ---------- */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background: #bbb;
}

.carousel-dot.active {
  background: #2e7d32;
  transform: scale(1.25);
}

.carousel-dot:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

/* ---------- CAROUSEL RESPONSIVE ---------- */

@media (max-width: 700px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    opacity: 1;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }
}

/* ---------- CAROUSEL WITH BADGE ---------- */

.product-carousel .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
}

/* ---------- CAROUSEL WITH PIN BUTTON ---------- */

.product-carousel .pin-it-btn {
  z-index: 15;
}

.product-carousel:hover .pin-it-btn {
  opacity: 1;
}

/* =========================================================
   VIDEO PLAYER
   ========================================================= */

.product-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.product-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- VIDEO PLAY BUTTON ---------- */

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
  margin-left: 4px;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* Hide play button when video is playing */
.product-video-wrapper.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* Show pause indicator on hover when playing */
.product-video-wrapper.is-playing:hover .video-play-btn {
  opacity: 1;
  pointer-events: auto;
}

.product-video-wrapper.is-playing .video-play-btn svg {
  display: none;
}

.product-video-wrapper.is-playing .video-play-btn::before {
  content: "";
  display: flex;
  gap: 8px;
}

.product-video-wrapper.is-playing .video-play-btn::after {
  content: "";
  width: 8px;
  height: 24px;
  background: #ffffff;
  box-shadow: 16px 0 0 #ffffff;
}

/* ---------- VIDEO IN CAROUSEL ---------- */

.carousel-slide .product-video-wrapper {
  border-radius: 0;
}

/* ---------- VIDEO DOT INDICATOR ---------- */

.carousel-dot-video {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot-video .dot-video-icon {
  width: 8px;
  height: 8px;
}

.carousel-dot-video.active {
  background: #2e7d32;
}

.carousel-dot-video.active .dot-video-icon {
  color: #ffffff;
}

/* ---------- VIDEO LAZY LOADING ---------- */

.video-poster-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Hide poster when video is loaded */
.video-loaded .video-poster-fallback {
  display: none;
}

/* Ensure play button is above poster */
[data-video-lazy] .video-play-btn {
  z-index: 2;
}

/* Loading indicator for lazy videos */
[data-video-lazy]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: video-spinner 0.8s linear infinite;
  opacity: 0;
  z-index: 0;
}

/* Show spinner when loading (after click) */
[data-video-lazy].is-loading::before {
  opacity: 1;
}

@keyframes video-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   LIGHTBOX IMAGE VIEWER
   ========================================================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

/* ---------- LIGHTBOX CLOSE BUTTON ---------- */

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 99;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---------- LIGHTBOX CONTENT ---------- */

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  max-height: 70vh;
  padding: 0 80px;
  z-index: 10;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 70vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-video-wrapper {
  max-width: 100%;
  max-height: 70vh;
}

.lightbox-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

/* ---------- LIGHTBOX NAVIGATION ---------- */

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 99;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* ---------- LIGHTBOX COUNTER ---------- */

.lightbox-counter {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 99;
}

/* ---------- LIGHTBOX THUMBNAILS ---------- */

.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  padding: 0 16px;
  z-index: 99;
  overflow-x: auto;
  max-width: 100%;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.lightbox-thumb:hover {
  opacity: 0.9;
}

.lightbox-thumb.active {
  border-color: #ffffff;
  opacity: 1;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-video {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumb-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.thumb-play-icon svg {
  margin-left: 2px;
}

/* ---------- LIGHTBOX RESPONSIVE ---------- */

@media (max-width: 768px) {
  .lightbox-content {
    padding: 0 60px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .lightbox-thumb {
    width: 48px;
    height: 48px;
  }

  .lightbox-thumbnails {
    margin-top: 16px;
  }
}

/* ---------- VIDEO RESPONSIVE ---------- */

@media (max-width: 700px) {
  .video-play-btn {
    width: 56px;
    height: 56px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }
}
