/*!
 * NexGen Theme — Extended Features CSS
 * Covers: Tabs, Animated Heading, Hotspot, Image Gallery, Popup,
 *         AJAX Live Search, Cookie Bar, Wishlist, Swatches,
 *         Catalog Mode, Page Title, One-Pager, Dot Nav, CTA Box,
 *         Google Maps overlay, WC Products, Posts Carousel
 */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --nexgen-popup-z:    9999;
  --nexgen-cookiebar-z: 9990;
  --nexgen-dotnav-z:    8000;
  --nexgen-tab-radius:  6px;
  --nexgen-swatch-size: 28px;
}

/* =========================================================================
   TABS
   ========================================================================= */
.nexgen-tabs { display: flex; flex-direction: column; gap: 0; }

/* Nav bar */
.nexgen-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--nexgen-border, #e5e7eb);
  margin-bottom: 24px;
}

.nexgen-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--nexgen-text-light, #6b7280);
  border-radius: var(--nexgen-tab-radius) var(--nexgen-tab-radius) 0 0;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.nexgen-tab-btn:hover { color: var(--nexgen-primary, #4f46e5); }
.nexgen-tab-btn.active {
  color: var(--nexgen-primary, #4f46e5);
  border-bottom-color: var(--nexgen-primary, #4f46e5);
}

/* Pill style */
.nexgen-tabs-style-pill .nexgen-tabs-nav {
  border-bottom: none;
  background: var(--nexgen-bg-alt, #f3f4f6);
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
  display: inline-flex;
  margin-bottom: 24px;
}
.nexgen-tabs-style-pill .nexgen-tab-btn {
  border: none;
  border-radius: 50px;
  margin-bottom: 0;
}
.nexgen-tabs-style-pill .nexgen-tab-btn.active {
  background: #fff;
  color: var(--nexgen-primary, #4f46e5);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Centered */
.nexgen-tabs-align-center .nexgen-tabs-nav { justify-content: center; }
.nexgen-tabs-align-right  .nexgen-tabs-nav { justify-content: flex-end; }

/* Vertical */
.nexgen-tabs-layout-vertical { flex-direction: row; align-items: flex-start; gap: 24px; }
.nexgen-tabs-layout-vertical .nexgen-tabs-nav {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid var(--nexgen-border, #e5e7eb);
  margin-bottom: 0;
  min-width: 180px;
  flex-shrink: 0;
}
.nexgen-tabs-layout-vertical .nexgen-tab-btn {
  border-bottom: none;
  border-right: 2px solid transparent;
  margin-bottom: 0;
  margin-right: -2px;
  border-radius: var(--nexgen-tab-radius) 0 0 var(--nexgen-tab-radius);
  text-align: left;
}
.nexgen-tabs-layout-vertical .nexgen-tab-btn.active {
  border-right-color: var(--nexgen-primary, #4f46e5);
}

/* Panels */
.nexgen-tab-panel { display: none; }
.nexgen-tab-panel.active { display: block; }

.nexgen-tabs-layout-vertical .nexgen-tabs-content { flex: 1; min-width: 0; }


/* =========================================================================
   ANIMATED HEADING
   ========================================================================= */
.nexgen-animated-heading { display: inline; }

.nexgen-animated-word {
  display: inline-block;
  color: var(--nexgen-primary, #4f46e5);
  min-width: 20px;
}

/* Typing cursor */
.nexgen-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: middle;
  animation: nexgen-blink .7s step-end infinite;
}
@keyframes nexgen-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Flip/slide/fade transitions */
.nexgen-ah-visible { opacity: 1; transform: translateY(0); transition: opacity .3s, transform .3s; }
.nexgen-ah-hidden  { opacity: 0; transform: translateY(-8px); }

/* Highlight type */
.nexgen-ah-highlight {
  position: relative;
  z-index: 0;
}
.nexgen-ah-highlight::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: -2px; top: auto;
  height: 40%;
  background: var(--nexgen-primary, #4f46e5);
  opacity: .15;
  border-radius: 4px;
  z-index: -1;
}

/* Wave type */
.nexgen-ah-wave .nexgen-wave-char {
  display: inline-block;
  animation: nexgen-wave-char .6s ease-in-out infinite alternate;
}
@keyframes nexgen-wave-char {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}


/* =========================================================================
   HOTSPOT
   ========================================================================= */
.nexgen-hotspot-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.nexgen-hotspot-wrap img { display: block; width: 100%; height: auto; }

.nexgen-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Pulse dot */
.nexgen-hotspot-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nexgen-primary, #4f46e5);
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: transform .2s;
}
.nexgen-hotspot-dot:hover { transform: scale(1.15); }

.nexgen-hotspot-dot svg { width: 16px; height: 16px; fill: currentColor; }

/* Pulse ring */
.nexgen-hotspot-pulse .nexgen-hotspot-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--nexgen-primary, #4f46e5);
  animation: nexgen-hotspot-pulse 2s ease-out infinite;
  opacity: .5;
}
@keyframes nexgen-hotspot-pulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(2.2); opacity: 0;  }
}

/* Tooltip */
.nexgen-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 12px 16px;
  min-width: 200px;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  transform: translateX(-50%) translateY(4px);
  z-index: 20;
}
.nexgen-hotspot-tooltip-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.nexgen-hotspot-tooltip-text {
  font-size: 13px;
  color: var(--nexgen-text-light, #6b7280);
  line-height: 1.5;
}
.nexgen-hotspot-tooltip img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Tooltip directions */
.nexgen-hotspot-tooltip-bottom {
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}
.nexgen-hotspot-tooltip-left {
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(4px);
}
.nexgen-hotspot-tooltip-right {
  left: calc(100% + 12px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(-4px);
}

/* Open state */
.nexgen-hotspot-open .nexgen-hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nexgen-hotspot-open .nexgen-hotspot-tooltip-left  { transform: translateY(-50%) translateX(0); }
.nexgen-hotspot-open .nexgen-hotspot-tooltip-right { transform: translateY(-50%) translateX(0); }
.nexgen-hotspot-open .nexgen-hotspot-tooltip-bottom { transform: translateX(-50%) translateY(0); }


/* =========================================================================
   IMAGE GALLERY
   ========================================================================= */
.nexgen-gallery-grid { width: 100%; }

/* Grid layout */
.nexgen-gallery-grid[data-layout="grid"] {
  display: grid;
  grid-template-columns: repeat(var(--nexgen-gallery-cols, 3), 1fr);
  gap: var(--nexgen-gallery-gap, 12px);
}

/* Masonry via CSS columns */
.nexgen-gallery-grid[data-layout="masonry"] {
  column-gap: var(--nexgen-gallery-gap, 12px);
}
.nexgen-gallery-grid[data-layout="masonry"] .nexgen-gallery-item {
  break-inside: avoid;
  margin-bottom: var(--nexgen-gallery-gap, 12px);
}

/* Justified rows (equal height) */
.nexgen-gallery-grid[data-layout="justified"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexgen-gallery-gap, 12px);
}
.nexgen-gallery-grid[data-layout="justified"] .nexgen-gallery-item {
  flex: 1 1 200px;
}

/* Item */
.nexgen-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--nexgen-radius, 8px);
  cursor: pointer;
  display: block;
}
.nexgen-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* Hover effects */
.nexgen-gallery-hover-zoom .nexgen-gallery-item:hover img { transform: scale(1.08); }
.nexgen-gallery-hover-grayscale .nexgen-gallery-item img { filter: grayscale(100%); transition: filter .3s, transform .4s; }
.nexgen-gallery-hover-grayscale .nexgen-gallery-item:hover img { filter: grayscale(0); }
.nexgen-gallery-hover-fade .nexgen-gallery-item img { opacity: .75; transition: opacity .3s, transform .4s; }
.nexgen-gallery-hover-fade .nexgen-gallery-item:hover img { opacity: 1; }

/* Caption overlay */
.nexgen-gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.nexgen-gallery-item:hover .nexgen-gallery-caption { opacity: 1; }

/* Carousel layout uses Swiper */
.nexgen-gallery-grid[data-layout="carousel"] {
  position: relative;
}


/* =========================================================================
   POPUP
   ========================================================================= */
.nexgen-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--nexgen-popup-z, 9999);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Overlay */
.nexgen-popup::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: -1;
}

.nexgen-popup-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--nexgen-radius, 12px);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .3s, opacity .3s;
  width: 100%;
  max-width: var(--nexgen-popup-width, 640px);
}
.nexgen-popup-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Animations */
.nexgen-popup[data-animation="fade"] .nexgen-popup-dialog { transform: none; }
.nexgen-popup[data-animation="slide-up"] .nexgen-popup-dialog { transform: translateY(40px); }
.nexgen-popup[data-animation="slide-down"] .nexgen-popup-dialog { transform: translateY(-40px); }
.nexgen-popup[data-animation="zoom"] .nexgen-popup-dialog { transform: scale(.85); }
.nexgen-popup[data-animation] .nexgen-popup-in { transform: none !important; opacity: 1; }

.nexgen-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
  transition: background .2s;
}
.nexgen-popup-close:hover { background: rgba(0,0,0,.16); }

/* Body lock when popup open */
body.nexgen-popup-active { overflow: hidden; }

/* Popup size variants */
.nexgen-popup[data-width="small"]  { --nexgen-popup-width: 420px; }
.nexgen-popup[data-width="large"]  { --nexgen-popup-width: 900px; }
.nexgen-popup[data-width="full"]   { --nexgen-popup-width: calc(100vw - 40px); }


/* =========================================================================
   AJAX LIVE SEARCH
   ========================================================================= */
.nexgen-search-form { position: relative; }

.nexgen-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--nexgen-radius, 8px);
  box-shadow: 0 8px 40px rgba(0,0,0,.16);
  z-index: 500;
  max-height: 480px;
  overflow-y: auto;
  display: none;
}

.nexgen-search-result-list { list-style: none; margin: 0; padding: 8px 0; }

.nexgen-search-result-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--nexgen-heading, #111827);
  transition: background .15s;
}
.nexgen-search-result-item a:hover { background: var(--nexgen-bg-alt, #f3f4f6); }

.nexgen-sr-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--nexgen-bg-alt, #f3f4f6);
}
.nexgen-sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nexgen-search-thumb-placeholder { display: block; width: 100%; height: 100%; }

.nexgen-sr-info { flex: 1; min-width: 0; }
.nexgen-sr-title { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nexgen-sr-meta  { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nexgen-text-light, #6b7280); margin-top: 2px; }
.nexgen-sr-price { font-weight: 600; color: var(--nexgen-primary, #4f46e5); }

.nexgen-search-view-all {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid var(--nexgen-border, #e5e7eb);
  font-size: 13px;
  font-weight: 500;
  color: var(--nexgen-primary, #4f46e5);
  text-decoration: none;
}
.nexgen-search-view-all:hover { background: var(--nexgen-bg-alt, #f3f4f6); }

.nexgen-no-results-search { margin: 0; padding: 20px 16px; text-align: center; color: var(--nexgen-text-light, #6b7280); font-size: 14px; }

/* Search loading spinner */
.nexgen-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nexgen-search-loading span {
  width: 24px;
  height: 24px;
  border: 3px solid var(--nexgen-border, #e5e7eb);
  border-top-color: var(--nexgen-primary, #4f46e5);
  border-radius: 50%;
  animation: nexgen-spin .7s linear infinite;
}
@keyframes nexgen-spin { to { transform: rotate(360deg); } }


/* =========================================================================
   COOKIE BAR
   ========================================================================= */
#nexgen-cookie-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nexgen-heading, #111827);
  color: #fff;
  z-index: var(--nexgen-cookiebar-z, 9990);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
}
#nexgen-cookie-bar.nexgen-cookie-top {
  top: 0;
  bottom: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.nexgen-cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--nexgen-container, 1280px);
  margin: 0 auto;
}

.nexgen-cookie-icon { font-size: 28px; flex-shrink: 0; }

.nexgen-cookie-text { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.6; }
.nexgen-cookie-text a { color: var(--nexgen-primary-light, #818cf8); }

.nexgen-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

#nexgen-cookie-accept {
  background: var(--nexgen-primary, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
#nexgen-cookie-accept:hover { opacity: .85; }

#nexgen-cookie-decline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
#nexgen-cookie-decline:hover { background: rgba(255,255,255,.2); }


/* =========================================================================
   WISHLIST
   ========================================================================= */
/* Toggle button */
.nexgen-wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--nexgen-text-light, #6b7280);
  transition: color .2s, transform .2s;
  border-radius: 50%;
}
.nexgen-wishlist-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; transition: fill .2s; }
.nexgen-wishlist-btn:hover { color: #ef4444; transform: scale(1.1); }
.nexgen-wishlist-btn.nexgen-in-wishlist { color: #ef4444; }
.nexgen-wishlist-btn.nexgen-in-wishlist svg { fill: #ef4444; }

.nexgen-wishlist-btn.nexgen-wishlist-loading { pointer-events: none; opacity: .6; }

/* Count badge */
.nexgen-wishlist-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* Wishlist page table */
.nexgen-wishlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.nexgen-wishlist-table th,
.nexgen-wishlist-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--nexgen-border, #e5e7eb);
  text-align: left;
}
.nexgen-wishlist-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nexgen-text-light, #6b7280);
  background: var(--nexgen-bg-alt, #f3f4f6);
}
.nexgen-wishlist-row td:first-child { display: flex; align-items: center; gap: 14px; }
.nexgen-wishlist-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.nexgen-wishlist-empty { padding: 48px 24px; text-align: center; color: var(--nexgen-text-light, #6b7280); }


/* =========================================================================
   VARIATION SWATCHES
   ========================================================================= */
.nexgen-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.nexgen-swatch-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, opacity .2s;
  position: relative;
  outline: none;
}
.nexgen-swatch-item:hover { border-color: var(--nexgen-primary, #4f46e5); transform: scale(1.08); }
.nexgen-swatch-item.selected { border-color: var(--nexgen-primary, #4f46e5); }
.nexgen-swatch-item.nexgen-swatch-disabled { opacity: .35; cursor: not-allowed; }
.nexgen-swatch-item.nexgen-swatch-disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), #999 calc(50% - 1px), #999 calc(50% + 1px), transparent calc(50% + 1px));
}

/* Color swatch */
.nexgen-swatch-color {
  width: var(--nexgen-swatch-size, 28px);
  height: var(--nexgen-swatch-size, 28px);
  border-radius: 4px;
}
.nexgen-swatch-item[data-value=""] .nexgen-swatch-color { background: #eee; }

/* Image swatch */
.nexgen-swatch-image {
  width: var(--nexgen-swatch-size, 28px);
  height: var(--nexgen-swatch-size, 28px);
  border-radius: 4px;
  object-fit: cover;
}

/* Label swatch */
.nexgen-swatch-label {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--nexgen-bg-alt, #f3f4f6);
  border-radius: 4px;
  min-width: var(--nexgen-swatch-size, 28px);
  text-align: center;
}
.nexgen-swatch-item.selected .nexgen-swatch-label {
  background: var(--nexgen-primary, #4f46e5);
  color: #fff;
}

/* Hidden select */
.nexgen-swatch-select { display: none; }


/* =========================================================================
   CATALOG MODE
   ========================================================================= */
.nexgen-inquiry-btn { margin-top: 8px; }
.nexgen-price-login-link {
  font-size: 14px;
  color: var(--nexgen-primary, #4f46e5);
  text-decoration: underline;
}


/* =========================================================================
   PAGE TITLE / BREADCRUMBS
   ========================================================================= */
.nexgen-page-title-area {
  padding: 48px 0;
  background: var(--nexgen-bg-alt, #f3f4f6);
  position: relative;
  overflow: hidden;
}

.nexgen-page-title-area.nexgen-pgtitle-bg-image {
  background-size: cover;
  background-position: center;
}
.nexgen-page-title-area.nexgen-pgtitle-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--nexgen-pgtitle-overlay, .4));
}
.nexgen-page-title-area.nexgen-pgtitle-bg-image .nexgen-page-title-inner { position: relative; color: #fff; }

.nexgen-page-title-inner {
  max-width: var(--nexgen-container, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.nexgen-page-title-align-left   .nexgen-page-title-inner { text-align: left; }
.nexgen-page-title-align-center .nexgen-page-title-inner { text-align: center; }
.nexgen-page-title-align-right  .nexgen-page-title-inner { text-align: right; }

.nexgen-page-title-area h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

/* Breadcrumbs */
.nexgen-breadcrumbs {
  font-size: 13px;
  color: var(--nexgen-text-light, #6b7280);
}
.nexgen-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nexgen-breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.nexgen-breadcrumb-item a { color: inherit; text-decoration: none; transition: color .2s; }
.nexgen-breadcrumb-item a:hover { color: var(--nexgen-primary, #4f46e5); }
.nexgen-breadcrumb-item.nexgen-current { color: var(--nexgen-text, #374151); }
.nexgen-breadcrumb-sep { opacity: .5; }

/* Subtitle */
.nexgen-page-title-sub {
  font-size: 16px;
  opacity: .75;
  margin: 8px 0 0;
}


/* =========================================================================
   ONE-PAGER / DOT NAV
   ========================================================================= */
.nexgen-section-anchor { height: 0; overflow: hidden; }

.nexgen-dot-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--nexgen-dotnav-z, 8000);
}
.nexgen-dot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.nexgen-dot-nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.nexgen-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(0,0,0,.3);
  transition: background .2s, transform .2s, border-color .2s;
  flex-shrink: 0;
}
.nexgen-dot-nav-item:hover .nexgen-dot,
.nexgen-dot-nav-item.active .nexgen-dot {
  background: var(--nexgen-primary, #4f46e5);
  border-color: var(--nexgen-primary, #4f46e5);
  transform: scale(1.3);
}

.nexgen-dot-label {
  position: absolute;
  right: calc(100% + 8px);
  white-space: nowrap;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.nexgen-dot-nav-item:hover .nexgen-dot-label { opacity: 1; }


/* =========================================================================
   CTA BOX
   ========================================================================= */
.nexgen-cta-box {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: var(--nexgen-radius, 12px);
  background: var(--nexgen-primary, #4f46e5);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Boxed (default) */
.nexgen-cta-boxed { flex-direction: column; text-align: center; }

/* Inline */
.nexgen-cta-inline { flex-direction: row; flex-wrap: wrap; }
.nexgen-cta-inline .nexgen-cta-content { flex: 1; min-width: 200px; }

/* Full width */
.nexgen-cta-fullwidth { width: 100%; border-radius: 0; }

/* Cover (full viewport) */
.nexgen-cta-cover {
  min-height: 60vh;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.nexgen-cta-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .75;
  margin-bottom: 8px;
}

.nexgen-cta-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.25;
}

.nexgen-cta-text {
  font-size: 16px;
  opacity: .85;
  line-height: 1.7;
  margin: 0 0 24px;
}

.nexgen-cta-icon {
  font-size: 48px;
  opacity: .8;
  flex-shrink: 0;
}

.nexgen-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.nexgen-cta-boxed .nexgen-cta-btns { justify-content: center; }


/* =========================================================================
   GOOGLE MAPS OVERLAY (click-to-activate)
   ========================================================================= */
.nexgen-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--nexgen-radius, 8px);
}
.nexgen-map-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

.nexgen-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  z-index: 5;
}

.nexgen-map-activate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.nexgen-map-activate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.nexgen-map-overlay-active { cursor: pointer; }


/* =========================================================================
   WC PRODUCTS WIDGET
   ========================================================================= */
.nexgen-wc-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--nexgen-products-cols, 3), 1fr);
  gap: var(--nexgen-products-gap, 24px);
}

/* List layout */
.nexgen-wc-products-list .nexgen-product-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.nexgen-wc-products-list .nexgen-product-card .nexgen-product-thumb { flex-shrink: 0; width: 120px; }

/* Product Card */
.nexgen-product-card {
  position: relative;
  border-radius: var(--nexgen-radius, 8px);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s, transform .25s;
}
.nexgen-product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-4px); }

.nexgen-product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--nexgen-bg-alt, #f3f4f6);
}
.nexgen-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nexgen-product-card:hover .nexgen-product-thumb img { transform: scale(1.06); }

.nexgen-product-info { padding: 16px; }
.nexgen-product-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.nexgen-product-price { font-size: 16px; font-weight: 700; color: var(--nexgen-primary, #4f46e5); }
.nexgen-product-price del { font-weight: 400; color: var(--nexgen-text-light, #6b7280); margin-right: 6px; font-size: 14px; }

.nexgen-product-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 6px; }

.nexgen-product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}

.nexgen-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  z-index: 1;
}


/* =========================================================================
   POSTS CAROUSEL
   ========================================================================= */
.nexgen-posts-carousel { position: relative; }

.nexgen-post-card {
  border-radius: var(--nexgen-radius, 8px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.nexgen-post-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-4px); }

.nexgen-post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--nexgen-bg-alt, #f3f4f6);
}
.nexgen-post-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nexgen-post-card:hover .nexgen-post-card-thumb img { transform: scale(1.06); }

.nexgen-post-card-body { padding: 20px; }
.nexgen-post-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--nexgen-text-light, #6b7280); margin-bottom: 10px; }
.nexgen-post-card-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.nexgen-post-card-title a { color: var(--nexgen-heading, #111827); text-decoration: none; }
.nexgen-post-card-title a:hover { color: var(--nexgen-primary, #4f46e5); }
.nexgen-post-card-excerpt { font-size: 14px; line-height: 1.65; color: var(--nexgen-text-light, #6b7280); margin: 0 0 16px; }

/* Carousel arrows */
.nexgen-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexgen-heading, #111827);
  transition: background .2s, transform .2s;
}
.nexgen-carousel-arrow:hover { background: var(--nexgen-primary, #4f46e5); color: #fff; }
.nexgen-carousel-prev { left: -20px; }
.nexgen-carousel-next { right: -20px; }

/* Swiper pagination (dots) */
.nexgen-carousel-pagination { text-align: center; margin-top: 20px; }
.nexgen-carousel-pagination .swiper-pagination-bullet { background: var(--nexgen-primary, #4f46e5); }


/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .nexgen-wc-products-grid { --nexgen-products-cols: 2; }
}

@media (max-width: 768px) {
  .nexgen-tabs-layout-vertical { flex-direction: column; }
  .nexgen-tabs-layout-vertical .nexgen-tabs-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid var(--nexgen-border, #e5e7eb);
    min-width: auto;
    overflow-x: auto;
  }
  .nexgen-tabs-layout-vertical .nexgen-tab-btn {
    border-right: none;
    border-bottom: 2px solid transparent;
    margin-right: 0;
    margin-bottom: -2px;
    border-radius: var(--nexgen-tab-radius) var(--nexgen-tab-radius) 0 0;
  }

  .nexgen-cta-box { padding: 28px 20px; }
  .nexgen-cta-inline { flex-direction: column; }

  .nexgen-carousel-prev { left: 0; }
  .nexgen-carousel-next { right: 0; }

  .nexgen-page-title-area { padding: 32px 0; }
  .nexgen-dot-nav { display: none; }

  .nexgen-gallery-grid[data-layout="grid"] { --nexgen-gallery-cols: 2; }
  .nexgen-wc-products-grid { --nexgen-products-cols: 2; }
}

@media (max-width: 480px) {
  .nexgen-gallery-grid[data-layout="grid"] { --nexgen-gallery-cols: 1; }
  .nexgen-wc-products-grid { --nexgen-products-cols: 1; }
  .nexgen-popup-dialog { max-width: 100%; }
  #nexgen-cookie-bar { padding: 16px; }
  .nexgen-cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
