/**
 * ElephTech Products & Hotspots - Frontend Styles
 * Scoped & Isolated Design System (Zero Elementor Specificity Conflicts)
 */

/* ==========================================================================
   Scoped Tokens & Isolation on .etp-products-wrapper
   ========================================================================== */

.etp-products-wrapper {
  /* Colors - Scoped with fallback to design specs */
  --etp-color-primary: var(--e-global-color-primary, #5E1C00);
  --etp-color-secondary: var(--e-global-color-secondary, #EF4C23);
  --etp-color-text: var(--e-global-color-text, #5E1C00);
  --etp-color-accent: var(--e-global-color-accent, #61CE70);
  --etp-color-white: var(--e-global-color-592241f, #FFFFFF);
  --etp-color-bg: var(--e-global-color-496f2b4, #FFF8F6);
  --etp-color-border: var(--e-global-color-a1fb628, #DCA380);
  --etp-color-muted: var(--e-global-color-0735e0d, #817470);
  --etp-color-warning: var(--e-global-color-49d00e5, #FBAE20);
  --etp-color-dark: var(--e-global-color-e256249, #55433C);

  /* Typography Presets */
  --etp-font-family: var(--e-global-typography-primary-font-family, "Plus Jakarta Sans"), "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --etp-font-text: var(--e-global-typography-text-font-family, "Plus Jakarta Sans"), "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Card Radius & Shadows */
  --etp-radius-sm: 6px;
  --etp-radius-md: 10px;
  --etp-radius-lg: 14px;
  --etp-radius-full: 9999px;

  --etp-shadow-sm: 0 2px 8px rgba(94, 28, 0, 0.04), 0 1px 2px rgba(94, 28, 0, 0.06);
  --etp-shadow-md: 0 4px 14px rgba(94, 28, 0, 0.07), 0 2px 6px rgba(94, 28, 0, 0.04);
  --etp-shadow-hover: 0 12px 30px rgba(94, 28, 0, 0.11), 0 4px 12px rgba(94, 28, 0, 0.05);

  --etp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --etp-transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container Styles */
  font-family: var(--etp-font-text);
  color: var(--etp-color-text);
  background: var(--etp-color-bg);
  padding: 24px 16px;
  border-radius: var(--etp-radius-lg);
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

.etp-products-wrapper *,
.etp-products-wrapper *::before,
.etp-products-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Slider Container & Navigation Arrows
   ========================================================================== */

.etp-products-wrapper .etp-products-slider-container {
  position: relative;
  width: 100%;
}

.etp-products-wrapper .etp-slider-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: var(--etp-color-white) !important;
  border: 1px solid var(--etp-color-border) !important;
  color: var(--etp-color-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(94, 28, 0, 0.12) !important;
  transition: var(--etp-transition-fast) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  outline: none !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 25 !important;
}

.etp-products-wrapper .etp-slider-prev {
  left: -12px !important;
}

.etp-products-wrapper .etp-slider-next {
  right: -12px !important;
}

.etp-products-wrapper .etp-slider-btn:hover:not(:disabled) {
  background: var(--etp-color-primary) !important;
  border-color: var(--etp-color-primary) !important;
  color: var(--etp-color-white) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.etp-products-wrapper .etp-slider-btn:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.etp-products-wrapper .etp-slider-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.5;
}

/* ==========================================================================
   Grid Layout (when layout="grid")
   ========================================================================== */

.etp-products-wrapper.etp-layout-grid .etp-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--etp-columns, 4), 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border: none;
}

.etp-products-wrapper[data-columns="1"].etp-layout-grid .etp-products-grid { --etp-columns: 1; }
.etp-products-wrapper[data-columns="2"].etp-layout-grid .etp-products-grid { --etp-columns: 2; }
.etp-products-wrapper[data-columns="3"].etp-layout-grid .etp-products-grid { --etp-columns: 3; }
.etp-products-wrapper[data-columns="4"].etp-layout-grid .etp-products-grid { --etp-columns: 4; }
.etp-products-wrapper[data-columns="5"].etp-layout-grid .etp-products-grid { --etp-columns: 5; }
.etp-products-wrapper[data-columns="6"].etp-layout-grid .etp-products-grid { --etp-columns: 6; }

/* ==========================================================================
   Slider Layout (when layout="slider", Default)
   ========================================================================== */

.etp-products-wrapper.etp-layout-slider .etp-products-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 20px !important;
  padding: 8px 2px 12px !important;
  margin: 0 !important;
  list-style: none !important;
  scrollbar-width: none !important;
}

.etp-products-wrapper.etp-layout-slider .etp-products-grid::-webkit-scrollbar {
  display: none !important;
}

.etp-products-wrapper.etp-layout-slider .etp-product-card {
  scroll-snap-align: start !important;
  flex-shrink: 0 !important;
}

/* 4 Columns Desktop Slider (Default) */
.etp-products-wrapper.etp-layout-slider[data-columns="4"] .etp-product-card {
  flex: 0 0 calc((100% - (3 * 20px)) / 4) !important;
  min-width: calc((100% - (3 * 20px)) / 4) !important;
  max-width: calc((100% - (3 * 20px)) / 4) !important;
}

/* 3 Columns Desktop Slider */
.etp-products-wrapper.etp-layout-slider[data-columns="3"] .etp-product-card {
  flex: 0 0 calc((100% - (2 * 20px)) / 3) !important;
  min-width: calc((100% - (2 * 20px)) / 3) !important;
  max-width: calc((100% - (2 * 20px)) / 3) !important;
}

/* 2 Columns Desktop Slider */
.etp-products-wrapper.etp-layout-slider[data-columns="2"] .etp-product-card {
  flex: 0 0 calc((100% - 20px) / 2) !important;
  min-width: calc((100% - 20px) / 2) !important;
  max-width: calc((100% - 20px) / 2) !important;
}

/* 5 Columns Desktop Slider */
.etp-products-wrapper.etp-layout-slider[data-columns="5"] .etp-product-card {
  flex: 0 0 calc((100% - (4 * 20px)) / 5) !important;
  min-width: calc((100% - (4 * 20px)) / 5) !important;
  max-width: calc((100% - (4 * 20px)) / 5) !important;
}

/* 6 Columns Desktop Slider */
.etp-products-wrapper.etp-layout-slider[data-columns="6"] .etp-product-card {
  flex: 0 0 calc((100% - (5 * 20px)) / 6) !important;
  min-width: calc((100% - (5 * 20px)) / 6) !important;
  max-width: calc((100% - (5 * 20px)) / 6) !important;
}

/* 1 Column Desktop Slider */
.etp-products-wrapper.etp-layout-slider[data-columns="1"] .etp-product-card {
  flex: 0 0 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================================
   Product Card Styles
   ========================================================================== */

.etp-products-wrapper .etp-product-card {
  background: var(--etp-color-white);
  border: 1px solid rgba(220, 163, 128, 0.3);
  border-radius: var(--etp-radius-lg);
  overflow: hidden;
  box-shadow: var(--etp-shadow-sm);
  transition: var(--etp-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  margin: 0;
}

.etp-products-wrapper .etp-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--etp-color-border);
  box-shadow: var(--etp-shadow-hover);
}

/* Image Section */
.etp-products-wrapper .etp-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F8F4F2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.etp-products-wrapper .etp-product-card__image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none;
  padding: 0 !important;
  margin: 0;
  border: none;
  outline: none;
}

.etp-products-wrapper .etp-product-card__image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 0;
}

.etp-products-wrapper .etp-product-card:hover .etp-product-card__image {
  transform: scale(1.06);
}

.etp-products-wrapper .etp-product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--etp-color-border);
  background: rgba(220, 163, 128, 0.12);
}

.etp-products-wrapper .etp-product-card__image-placeholder svg {
  width: 40px;
  height: 40px;
}

/* Badges */
.etp-products-wrapper .etp-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: var(--etp-radius-full);
  font-family: var(--etp-font-family);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 16px;
  letter-spacing: 1px;
  color: var(--etp-color-white);
  box-shadow: var(--etp-shadow-sm);
  white-space: nowrap;
  pointer-events: none;
}

.etp-products-wrapper .etp-product-card__badge--primary {
  background: var(--etp-color-primary);
}

.etp-products-wrapper .etp-product-card__badge--secondary {
  background: var(--etp-color-secondary);
}

.etp-products-wrapper .etp-product-card__badge--accent {
  background: var(--etp-color-accent);
  color: var(--etp-color-primary);
}

/* Wishlist Action Button */
.etp-products-wrapper .etp-product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--etp-transition);
}

.etp-products-wrapper .etp-product-card:hover .etp-product-card__actions,
.etp-products-wrapper .etp-product-card:focus-within .etp-product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.etp-products-wrapper .etp-product-card__action-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  background: var(--etp-color-white) !important;
  border: 1px solid rgba(220, 163, 128, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: var(--etp-shadow-md) !important;
  color: var(--etp-color-primary) !important;
  transition: var(--etp-transition-fast) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  outline: none !important;
  text-decoration: none !important;
}

.etp-products-wrapper .etp-product-card__action-btn:hover {
  background: var(--etp-color-primary) !important;
  border-color: var(--etp-color-primary) !important;
  color: var(--etp-color-white) !important;
  transform: scale(1.08) !important;
}

.etp-products-wrapper .etp-product-card__action-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 76, 35, 0.4) !important;
}

.etp-products-wrapper .etp-product-card__action-btn svg {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.2s ease;
  fill: none;
}

/* Active Wishlist Heart */
.etp-products-wrapper .etp-product-card__wishlist-btn.etp-product-card__action-btn--active {
  background: #FFF0ED !important;
  border-color: var(--etp-color-secondary) !important;
  color: var(--etp-color-secondary) !important;
}

.etp-products-wrapper .etp-product-card__wishlist-btn.etp-product-card__action-btn--active svg {
  fill: var(--etp-color-secondary) !important;
}

/* Card Content Area */
.etp-products-wrapper .etp-product-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.etp-products-wrapper .etp-product-card__category {
  font-family: var(--etp-font-family);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 14px;
  letter-spacing: 1px;
  color: var(--etp-color-muted);
  margin-bottom: 4px;
}

.etp-products-wrapper .etp-product-card__title {
  font-family: var(--etp-font-family) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  letter-spacing: 0px;
  color: var(--etp-color-primary) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.etp-products-wrapper .etp-product-card__title a {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: var(--etp-color-primary) !important;
  text-decoration: none !important;
  transition: color var(--etp-transition-fast);
  border: none;
}

.etp-products-wrapper .etp-product-card__title a:hover {
  color: var(--etp-color-secondary) !important;
}

/* Rating Stars */
.etp-products-wrapper .etp-product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.etp-products-wrapper .etp-product-card__stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.etp-products-wrapper .etp-product-card__star {
  width: 14px !important;
  height: 14px !important;
  color: var(--etp-color-warning) !important;
  flex-shrink: 0;
}

.etp-products-wrapper .etp-product-card__star--empty {
  color: var(--etp-color-border) !important;
}

.etp-products-wrapper .etp-product-card__rating-value {
  font-family: var(--etp-font-text);
  font-size: 12px;
  font-weight: 600;
  color: var(--etp-color-text);
}

.etp-products-wrapper .etp-product-card__rating-count {
  font-family: var(--etp-font-text);
  font-size: 12px;
  color: var(--etp-color-muted);
}

/* Price Section */
.etp-products-wrapper .etp-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(220, 163, 128, 0.25);
  font-family: var(--etp-font-family);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--etp-color-primary);
}

.etp-products-wrapper .etp-product-card__price .woocommerce-Price-amount,
.etp-products-wrapper .etp-product-card__price ins .woocommerce-Price-amount,
.etp-products-wrapper .etp-product-card__current-price {
  color: var(--etp-color-primary) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  font-family: var(--etp-font-family) !important;
}

.etp-products-wrapper .etp-product-card__price ins {
  text-decoration: none !important;
  font-weight: 600;
}

.etp-products-wrapper .etp-product-card__price del,
.etp-products-wrapper .etp-product-card__original-price {
  font-family: var(--etp-font-text);
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--etp-color-muted) !important;
  text-decoration: line-through !important;
  opacity: 0.8;
}

.etp-products-wrapper .etp-product-card__sku {
  font-family: var(--etp-font-family);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 14px;
  letter-spacing: 1.5px;
  color: var(--etp-color-muted);
  margin-top: 6px;
}

/* View Details Link */
.etp-products-wrapper .etp-product-card__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 12px !important;
  font-family: var(--etp-font-family) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 18px !important;
  letter-spacing: 1px !important;
  color: var(--etp-color-primary) !important;
  text-decoration: none !important;
  transition: var(--etp-transition-fast) !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.etp-products-wrapper .etp-product-card__link:hover {
  color: var(--etp-color-secondary) !important;
  gap: 10px !important;
}

.etp-products-wrapper .etp-product-card__link svg {
  width: 15px !important;
  height: 15px !important;
  transition: transform var(--etp-transition-fast);
}

.etp-products-wrapper .etp-product-card__link:hover svg {
  transform: translateX(2px);
}

/* ==========================================================================
   No Products Notice
   ========================================================================== */

.etp-products-wrapper .etp-no-products {
  width: 100%;
  text-align: center;
  padding: 48px 16px;
  font-family: var(--etp-font-text);
  font-size: 15px;
  color: var(--etp-color-muted);
  background: var(--etp-color-white);
  border: 1px dashed var(--etp-color-border);
  border-radius: var(--etp-radius-lg);
  margin: 0;
}

/* ==========================================================================
   Pagination & Load More
   ========================================================================== */

.etp-products-wrapper .etp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 163, 128, 0.25);
}

.etp-products-wrapper .etp-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.etp-products-wrapper .etp-pagination a,
.etp-products-wrapper .etp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--etp-radius-md);
  font-family: var(--etp-font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--etp-color-text);
  text-decoration: none;
  background: var(--etp-color-white);
  border: 1px solid var(--etp-color-border);
  transition: var(--etp-transition-fast);
}

.etp-products-wrapper .etp-pagination a:hover,
.etp-products-wrapper .etp-pagination .current {
  background: var(--etp-color-primary) !important;
  border-color: var(--etp-color-primary) !important;
  color: var(--etp-color-white) !important;
}

.etp-products-wrapper .etp-pagination .dots {
  border: none;
  background: transparent;
  color: var(--etp-color-muted);
  cursor: default;
}

/* Load More Button */
.etp-products-wrapper .etp-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.etp-products-wrapper .etp-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: var(--etp-radius-full);
  background: var(--etp-color-primary);
  border: 2px solid var(--etp-color-primary);
  color: var(--etp-color-white);
  font-family: var(--etp-font-family);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--etp-transition-fast);
  box-shadow: var(--etp-shadow-sm);
  margin: 0;
  line-height: 1;
}

.etp-products-wrapper .etp-load-more:hover:not(:disabled) {
  background: var(--etp-color-secondary);
  border-color: var(--etp-color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--etp-shadow-md);
}

.etp-products-wrapper .etp-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Responsive Breakpoints for Slider & Grid
   ========================================================================== */

@media (max-width: 1024px) {
  .etp-products-wrapper.etp-layout-grid .etp-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .etp-products-wrapper.etp-layout-slider .etp-product-card {
    flex: 0 0 calc((100% - 16px) / 2) !important;
    min-width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
  }

  .etp-products-wrapper .etp-slider-prev {
    left: -6px !important;
  }

  .etp-products-wrapper .etp-slider-next {
    right: -6px !important;
  }
}

/* Mobile: Slider Mode on Touch Screens */
@media (max-width: 768px) {
  .etp-products-wrapper {
    padding: 20px 12px;
    border-radius: var(--etp-radius-md);
  }

  .etp-products-wrapper .etp-slider-btn {
    display: none !important; /* Touch swipe is primary on mobile */
  }

  .etp-products-wrapper.etp-layout-grid .etp-products-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 4px 2px 14px !important;
    margin: 0 !important;
    scrollbar-width: thin !important;
  }

  .etp-products-wrapper .etp-product-card {
    flex: 0 0 76% !important;
    min-width: 240px !important;
    max-width: 300px !important;
    scroll-snap-align: start !important;
  }

  /* Make action buttons visible on touch devices */
  .etp-products-wrapper .etp-product-card__actions {
    opacity: 1;
    transform: none;
  }

  .etp-products-wrapper .etp-product-card__content {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .etp-products-wrapper .etp-product-card {
    flex: 0 0 84% !important;
    min-width: 220px !important;
    max-width: 280px !important;
  }

  .etp-products-wrapper .etp-product-card__title {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .etp-products-wrapper .etp-product-card__price .woocommerce-Price-amount,
  .etp-products-wrapper .etp-product-card__current-price {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   IMAGE HOTSPOT SECTION (Scoped & Isolated)
   ========================================================================== */

.etp-hotspot-wrapper {
  --etp-color-primary: var(--e-global-color-primary, #5E1C00);
  --etp-color-secondary: var(--e-global-color-secondary, #EF4C23);
  --etp-color-text: var(--e-global-color-text, #5E1C00);
  --etp-color-accent: var(--e-global-color-accent, #61CE70);
  --etp-color-white: #FFFFFF;
  --etp-color-bg: var(--e-global-color-496f2b4, #FFF8F6);
  --etp-color-border: var(--e-global-color-a1fb628, #DCA380);
  --etp-color-muted: var(--e-global-color-0735e0d, #817470);
  --etp-color-warning: var(--e-global-color-49d00e5, #FBAE20);

  --etp-font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --etp-radius-md: 10px;
  --etp-radius-lg: 14px;

  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: var(--etp-font-family);
}

.etp-hotspot-wrapper *,
.etp-hotspot-wrapper *::before,
.etp-hotspot-wrapper *::after {
  box-sizing: border-box;
}

.etp-hotspot-container {
  position: relative;
  width: 100%;
  border-radius: var(--etp-radius-lg);
  overflow: visible;
  background: #FFF8F6;
  box-shadow: 0 4px 20px rgba(94, 28, 0, 0.08);
}

.etp-hotspot-picture {
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: var(--etp-radius-lg);
  overflow: hidden;
}

.etp-hotspot-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: var(--etp-radius-lg);
  pointer-events: none;
}

.etp-hotspot-pins-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--etp-radius-lg);
}

/* Hotspot Item Container */
.etp-hotspot-item {
  position: absolute;
  left: var(--etp-pos-x);
  top: var(--etp-pos-y);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 20;
}

.etp-hotspot-item.etp-hotspot-active {
  z-index: 50;
}

/* Hotspot Pin Button */
.etp-hotspot-pin {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: var(--etp-color-primary) !important;
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  outline: none !important;
  position: relative;
  z-index: 2;
}

.etp-hotspot-pin:hover {
  transform: scale(1.18) !important;
}

.etp-hotspot-pin:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 76, 35, 0.5) !important;
}

.etp-hotspot-pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.etp-hotspot-pin-icon svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor;
}

.etp-hotspot-item.etp-hotspot-active .etp-hotspot-pin-icon {
  transform: rotate(45deg);
}

/* Pin Themes */
.etp-hotspot-theme--secondary .etp-hotspot-pin { background: var(--etp-color-secondary) !important; }
.etp-hotspot-theme--accent .etp-hotspot-pin { background: var(--etp-color-accent) !important; color: var(--etp-color-primary) !important; }
.etp-hotspot-theme--white .etp-hotspot-pin { background: #FFFFFF !important; color: var(--etp-color-primary) !important; border-color: var(--etp-color-primary) !important; }

/* Pulse Animation Ring */
.etp-hotspot-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--etp-color-primary);
  opacity: 0.6;
  animation: etp-hotspot-pulse-anim 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
  z-index: -1;
}

.etp-hotspot-theme--secondary .etp-hotspot-pulse-ring { background: var(--etp-color-secondary); }
.etp-hotspot-theme--accent .etp-hotspot-pulse-ring { background: var(--etp-color-accent); }
.etp-hotspot-theme--white .etp-hotspot-pulse-ring { background: #FFFFFF; }

@keyframes etp-hotspot-pulse-anim {
  0% { transform: scale(0.9); opacity: 0.7; }
  60% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   Hotspot Tooltip / Popover Card
   ========================================================================== */

.etp-hotspot-popover {
  position: absolute;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  z-index: 100;
}

/* Default Popover Positions */
/* Top */
.etp-hotspot-item[data-pos="top"] .etp-hotspot-popover,
.etp-hotspot-item.etp-popover-top .etp-hotspot-popover {
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

/* Bottom */
.etp-hotspot-item[data-pos="bottom"] .etp-hotspot-popover,
.etp-hotspot-item.etp-popover-bottom .etp-hotspot-popover {
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

/* Left */
.etp-hotspot-item[data-pos="left"] .etp-hotspot-popover,
.etp-hotspot-item.etp-popover-left .etp-hotspot-popover {
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
}

/* Right */
.etp-hotspot-item[data-pos="right"] .etp-hotspot-popover,
.etp-hotspot-item.etp-popover-right .etp-hotspot-popover {
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}

/* Active Popover State */
.etp-hotspot-item.etp-hotspot-active .etp-hotspot-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.etp-hotspot-item.etp-hotspot-active[data-pos="top"] .etp-hotspot-popover,
.etp-hotspot-item.etp-hotspot-active.etp-popover-top .etp-hotspot-popover {
  transform: translateX(-50%) translateY(0);
}

.etp-hotspot-item.etp-hotspot-active[data-pos="bottom"] .etp-hotspot-popover,
.etp-hotspot-item.etp-hotspot-active.etp-popover-bottom .etp-hotspot-popover {
  transform: translateX(-50%) translateY(0);
}

.etp-hotspot-item.etp-hotspot-active[data-pos="left"] .etp-hotspot-popover,
.etp-hotspot-item.etp-hotspot-active.etp-popover-left .etp-hotspot-popover {
  transform: translateY(-50%) translateX(0);
}

.etp-hotspot-item.etp-hotspot-active[data-pos="right"] .etp-hotspot-popover,
.etp-hotspot-item.etp-hotspot-active.etp-popover-right .etp-hotspot-popover {
  transform: translateY(-50%) translateX(0);
}

/* Popover Card Design */
.etp-hotspot-card {
  background: #FFFFFF;
  border-radius: var(--etp-radius-md);
  border: 1px solid rgba(220, 163, 128, 0.4);
  box-shadow: 0 10px 30px rgba(94, 28, 0, 0.16);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.etp-hotspot-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 50% !important;
  background: #FFF8F6 !important;
  border: 1px solid rgba(220, 163, 128, 0.3) !important;
  color: var(--etp-color-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transition: all 0.15s ease;
  z-index: 5;
}

.etp-hotspot-card-close:hover {
  background: var(--etp-color-primary) !important;
  color: #FFFFFF !important;
}

.etp-hotspot-card-close svg {
  width: 12px !important;
  height: 12px !important;
}

.etp-hotspot-card-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.etp-hotspot-card-thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #FFF8F6;
  border: 1px solid rgba(220, 163, 128, 0.3);
  display: block;
}

.etp-hotspot-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.etp-hotspot-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.etp-hotspot-card-title {
  font-family: var(--etp-font-family) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  color: var(--etp-color-primary) !important;
  margin: 0 0 4px !important;
  padding-right: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.etp-hotspot-card-title a {
  color: var(--etp-color-primary) !important;
  text-decoration: none !important;
}

.etp-hotspot-card-title a:hover {
  color: var(--etp-color-secondary) !important;
}

/* Rating */
.etp-hotspot-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--etp-color-text);
  margin-bottom: 4px;
}

.etp-hotspot-card-star {
  color: var(--etp-color-warning);
  font-size: 12px;
}

.etp-hotspot-card-rating-cnt {
  color: var(--etp-color-muted);
}

/* Price */
.etp-hotspot-card-price {
  font-family: var(--etp-font-family);
  font-size: 13px;
  font-weight: 700;
  color: var(--etp-color-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.etp-hotspot-card-price .woocommerce-Price-amount {
  color: var(--etp-color-primary) !important;
  font-weight: 700 !important;
}

.etp-hotspot-card-price ins {
  text-decoration: none !important;
}

.etp-hotspot-card-price del {
  font-size: 11px !important;
  color: var(--etp-color-muted) !important;
}

/* View Product Button */
.etp-hotspot-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--etp-color-secondary) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
}

.etp-hotspot-card-btn:hover {
  color: var(--etp-color-primary) !important;
  gap: 7px !important;
}

.etp-hotspot-card-btn svg {
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.15s ease;
}

.etp-hotspot-card-btn:hover svg {
  transform: translateX(2px);
}

/* Mobile Hotspot Adjustments */
@media (max-width: 768px) {
  .etp-hotspot-item {
    left: var(--etp-mobile-pos-x, var(--etp-pos-x));
    top: var(--etp-mobile-pos-y, var(--etp-pos-y));
  }

  .etp-hotspot-pin {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .etp-hotspot-pin-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Bottom sheet style on mobile screens */
  .etp-hotspot-popover {
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    transform: translateY(20px) !important;
    z-index: 9999 !important;
  }

  .etp-hotspot-item.etp-hotspot-active .etp-hotspot-popover {
    transform: translateY(0) !important;
  }

  .etp-hotspot-card {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
    padding: 14px;
  }

  .etp-hotspot-card-thumb {
    width: 74px;
    height: 74px;
  }
}

/* ==========================================================================
   IMAGE GALLERY SECTION & LIGHTBOX SLIDER (Scoped & Isolated)
   ========================================================================== */

.etp-gallery-wrapper {
  --etp-font-primary: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --etp-font-text: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --etp-color-primary: #5E1C00;
  --etp-color-secondary: #EF4C23;
  --etp-color-dark: #2B2523;
  --etp-color-white: #FFFFFF;

  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--etp-font-text);
  margin: 0 auto;
}

.etp-gallery-wrapper *,
.etp-gallery-wrapper *::before,
.etp-gallery-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Gallery Layouts
   ========================================================================== */

/* 1. Asymmetric / Mosaic Layout (CSS Grid dense) */
.etp-gallery-layout--mosaic .etp-gallery-grid,
.etp-gallery-layout--custom .etp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--etp-gallery-cols-desktop, 4), 1fr);
  grid-auto-rows: 240px;
  gap: var(--etp-gallery-gap, 20px);
  grid-auto-flow: dense;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mosaic Spans */
.etp-gallery-layout--mosaic .etp-gallery-size--normal {
  grid-column: span 1;
  grid-row: span 1;
}

.etp-gallery-layout--mosaic .etp-gallery-size--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.etp-gallery-layout--mosaic .etp-gallery-size--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.etp-gallery-layout--mosaic .etp-gallery-size--large {
  grid-column: span 2;
  grid-row: span 2;
}

.etp-gallery-layout--mosaic .etp-gallery-size--full {
  grid-column: 1 / -1;
  grid-row: span 1;
}

.etp-gallery-layout--mosaic .etp-gallery-size--custom,
.etp-gallery-layout--custom .etp-gallery-item {
  grid-column: span var(--etp-item-col-span, 1);
  grid-row: span var(--etp-item-row-span, 1);
}

/* 2. Masonry Columns Layout */
.etp-gallery-layout--masonry .etp-gallery-grid {
  column-count: var(--etp-gallery-cols-desktop, 4);
  column-gap: var(--etp-gallery-gap, 20px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.etp-gallery-layout--masonry .etp-gallery-item {
  break-inside: avoid;
  margin-bottom: var(--etp-gallery-gap, 20px);
  width: 100%;
}

.etp-gallery-layout--masonry .etp-gallery-item-inner {
  min-height: auto !important;
  height: auto !important;
}

.etp-gallery-layout--masonry .etp-gallery-img {
  height: auto !important;
  position: static !important;
}

/* 3. Standard Grid Layout */
.etp-gallery-layout--grid .etp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--etp-gallery-cols-desktop, 4), 1fr);
  grid-auto-rows: 260px;
  gap: var(--etp-gallery-gap, 20px);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   Gallery Image Card & Hover Animations (Luxury Editorial Look)
   ========================================================================== */

.etp-gallery-item {
  position: relative !important;
  border-radius: var(--etp-gallery-radius, 16px) !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  height: 100% !important;
  width: 100% !important;
  isolation: isolate !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0) !important;
}

.etp-gallery-item:hover {
  transform: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.etp-gallery-item-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  border-radius: var(--etp-gallery-radius, 16px) !important;
  display: block !important;
  background: transparent !important;
  transform: translateZ(0) !important;
}

.etp-gallery-item-btn,
.etp-gallery-item-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  outline: none !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.etp-gallery-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
  border: none !important;
  border-radius: var(--etp-gallery-radius, 16px) !important;
  max-width: 100% !important;
  transform: scale(1) translateZ(0) !important;
}

/* Hover Scale (Image scales strictly within the fixed overflow:hidden container) */
.etp-gallery-hover--border_zoom .etp-gallery-item:hover .etp-gallery-img,
.etp-gallery-hover--zoom_only .etp-gallery-item:hover .etp-gallery-img {
  transform: scale(1.06) translateZ(0) !important;
}

/* Inset Border Overlay - Perfectly Synchronized */
.etp-gallery-overlay {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: var(--etp-gallery-radius, 16px) !important;
  overflow: hidden !important;
  z-index: 5 !important;
  background: transparent !important;
  transition: background 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.etp-gallery-inset-border {
  position: absolute !important;
  inset: 14px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: calc(var(--etp-gallery-radius, 16px) - 5px) !important;
  opacity: 0 !important;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.15) !important;
}

.etp-gallery-hover--border_zoom .etp-gallery-item:hover .etp-gallery-overlay,
.etp-gallery-hover--border_only .etp-gallery-item:hover .etp-gallery-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.38) 100%) !important;
}

.etp-gallery-hover--border_zoom .etp-gallery-item:hover .etp-gallery-inset-border,
.etp-gallery-hover--border_only .etp-gallery-item:hover .etp-gallery-inset-border {
  opacity: 1 !important;
}

/* Caption on Image */
.etp-gallery-item-caption {
  position: absolute !important;
  bottom: 22px !important;
  left: 22px !important;
  right: 22px !important;
  color: #FFFFFF !important;
  font-family: var(--etp-font-primary) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.4 !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
  pointer-events: none !important;
  z-index: 6 !important;
}

.etp-gallery-item:hover .etp-gallery-item-caption {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   Responsive Breakpoints for Gallery
   ========================================================================== */

@media (max-width: 1024px) {
  .etp-gallery-layout--mosaic .etp-gallery-grid,
  .etp-gallery-layout--grid .etp-gallery-grid,
  .etp-gallery-layout--custom .etp-gallery-grid {
    grid-template-columns: repeat(var(--etp-gallery-cols-tablet, 2), 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }

  .etp-gallery-layout--mosaic .etp-gallery-size--wide,
  .etp-gallery-layout--mosaic .etp-gallery-size--large {
    grid-column: span min(2, var(--etp-gallery-cols-tablet, 2));
  }

  .etp-gallery-layout--masonry .etp-gallery-grid {
    column-count: var(--etp-gallery-cols-tablet, 2);
    column-gap: 16px;
  }
}

@media (max-width: 768px) {
  .etp-gallery-layout--mosaic .etp-gallery-grid,
  .etp-gallery-layout--grid .etp-gallery-grid,
  .etp-gallery-layout--custom .etp-gallery-grid {
    grid-template-columns: repeat(var(--etp-gallery-cols-mobile, 1), 1fr);
    grid-auto-rows: auto;
    gap: 14px;
  }

  .etp-gallery-layout--mosaic .etp-gallery-item,
  .etp-gallery-layout--custom .etp-gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 220px;
  }

  .etp-gallery-layout--masonry .etp-gallery-grid {
    column-count: var(--etp-gallery-cols-mobile, 1);
    column-gap: 14px;
  }

  .etp-gallery-inset-border {
    inset: 8px;
  }
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX SLIDER (Clean, Elegant & Accessible)
   ========================================================================== */

.etp-lightbox-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  background: rgba(15, 12, 11, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  box-sizing: border-box !important;
  user-select: none;
}

.etp-lightbox-modal.etp-lightbox-active {
  opacity: 1;
  visibility: visible;
}

/* Close Button */
.etp-lightbox-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
}

.etp-lightbox-close:hover {
  background: #EF4C23 !important;
  border-color: #EF4C23 !important;
  transform: scale(1.08) rotate(90deg) !important;
}

.etp-lightbox-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.2;
}

/* Image Counter (e.g. 3 / 8) */
.etp-lightbox-counter {
  position: absolute !important;
  top: 26px !important;
  left: 26px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  z-index: 100 !important;
}

/* Navigation Arrow Buttons */
.etp-lightbox-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
}

.etp-lightbox-nav-btn:hover:not(:disabled) {
  background: #EF4C23 !important;
  border-color: #EF4C23 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.etp-lightbox-nav-btn:disabled {
  opacity: 0.2 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.etp-lightbox-prev {
  left: 24px !important;
}

.etp-lightbox-next {
  right: 24px !important;
}

.etp-lightbox-nav-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.2;
}

/* Main Lightbox Stage */
.etp-lightbox-stage {
  max-width: 90vw !important;
  max-height: 86vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.etp-lightbox-image-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
  max-height: 78vh !important;
  position: relative !important;
}

.etp-lightbox-img {
  max-width: 90vw !important;
  max-height: 78vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  display: block !important;
}

.etp-lightbox-caption {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
  max-width: 720px !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile Lightbox */
@media (max-width: 768px) {
  .etp-lightbox-nav-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .etp-lightbox-prev {
    left: 10px !important;
  }

  .etp-lightbox-next {
    right: 10px !important;
  }

  .etp-lightbox-close {
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .etp-lightbox-counter {
    top: 20px !important;
    left: 16px !important;
    font-size: 13px !important;
  }

  .etp-lightbox-img {
    max-height: 70vh !important;
  }
}

/* ==========================================================================
   WooCommerce Category Cards Layout & Grid (.etp-category-cards & .icmw-category-cards)
   Scoped, Modern Premium eCommerce Design System
   ========================================================================== */

.etp-category-cards,
.icmw-category-cards {
  /* Scoped Tokens & Fallbacks */
  --etp-cat-cols-desktop: 4;
  --etp-cat-cols-tablet: 2;
  --etp-cat-cols-mobile: 1;
  --etp-cat-gap: 20px;
  --etp-cat-radius: var(--etp-radius-lg, 16px);
  --etp-cat-aspect-ratio: 1.25 / 1;

  width: 100%;
  box-sizing: border-box;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.etp-category-cards *,
.etp-category-cards *::before,
.etp-category-cards *::after,
.icmw-category-cards *,
.icmw-category-cards *::before,
.icmw-category-cards *::after {
  box-sizing: border-box;
}

/* Category Grid */
.etp-category-cards__grid,
.icmw-category-cards__grid {
  display: grid !important;
  grid-template-columns: repeat(var(--etp-cat-cols-desktop, 4), 1fr) !important;
  gap: var(--etp-cat-gap, 20px) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Category Card */
.etp-category-card,
.icmw-category-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  width: 100% !important;
  aspect-ratio: var(--etp-cat-aspect-ratio, 1.25 / 1) !important;
  min-height: 280px !important;
  border-radius: var(--etp-cat-radius, 16px) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #FFFFFF !important;
  background-color: #201B19 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  isolation: isolate !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0) !important;
  cursor: pointer !important;
}

/* Card Hover Lift & Shadow */
@media (hover: hover) and (pointer: fine) {
  .etp-category-card:hover,
  .icmw-category-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16) !important;
  }
}

/* Category Image Container */
.etp-category-card__image-wrap,
.icmw-category-card__image-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
  background: #201B19 !important;
}

/* Category Image with Object-fit Cover */
.etp-category-card__image,
.icmw-category-card__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backface-visibility: hidden !important;
  will-change: transform;
}

/* Category Image Subtle Zoom on Hover */
@media (hover: hover) and (pointer: fine) {
  .etp-category-card:hover .etp-category-card__image,
  .icmw-category-card:hover .icmw-category-card__image {
    transform: scale(1.06) !important;
  }
}

/* Placeholder for Categories without Images */
.etp-category-card__placeholder,
.icmw-category-card__placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #382E2B 0%, #1E1917 100%) !important;
  color: rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.etp-category-card__placeholder svg,
.icmw-category-card__placeholder svg {
  width: 56px !important;
  height: 56px !important;
  opacity: 0.35 !important;
}

/* Gradient Overlay at Bottom (45-60% height) */
.etp-category-card__overlay,
.icmw-category-card__overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 58% !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.38) 42%,
    rgba(0, 0, 0, 0.88) 100%
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: opacity 0.35s ease !important;
}

/* Card Content Container */
.etp-category-card__content,
.icmw-category-card__content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 24px 22px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Text Section */
.etp-category-card__text,
.icmw-category-card__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Category Title */
.etp-category-card__title,
.icmw-category-card__title {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  word-break: break-word !important;
}

/* Category Description with Line Clamping */
.etp-category-card__description,
.icmw-category-card__description {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--etp-font-text, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Circular Arrow Button */
.etp-category-card__arrow,
.icmw-category-card__arrow {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: #1A1A1A !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease !important;
  pointer-events: none !important;
  margin-bottom: 2px !important;
}

.etp-category-card__arrow svg,
.icmw-category-card__arrow svg {
  width: 19px !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}

/* Arrow Hover Motion */
@media (hover: hover) and (pointer: fine) {
  .etp-category-card:hover .etp-category-card__arrow,
  .icmw-category-card:hover .icmw-category-card__arrow {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  }

  .etp-category-card:hover .etp-category-card__arrow svg,
  .icmw-category-card:hover .icmw-category-card__arrow svg {
    transform: translateX(3px) !important;
  }
}

/* Notice for No Categories */
.etp-no-categories,
.icmw-no-categories {
  padding: 24px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border-radius: 8px !important;
  color: #817470 !important;
  text-align: center !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  margin: 16px 0 !important;
}

.etp-no-categories p,
.icmw-no-categories p {
  margin: 0 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .etp-category-cards__grid,
  .icmw-category-cards__grid {
    grid-template-columns: repeat(var(--etp-cat-cols-tablet, 2), 1fr) !important;
    gap: min(var(--etp-cat-gap, 20px), 16px) !important;
  }
}

/* Small Tablet & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
  .etp-category-card,
  .icmw-category-card {
    min-height: 240px !important;
  }

  .etp-category-card__content,
  .icmw-category-card__content {
    padding: 18px 16px !important;
    gap: 12px !important;
  }

  .etp-category-card__title,
  .icmw-category-card__title {
    font-size: 17px !important;
  }

  .etp-category-card__description,
  .icmw-category-card__description {
    font-size: 12px !important;
  }

  .etp-category-card__arrow,
  .icmw-category-card__arrow {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .etp-category-card__arrow svg,
  .icmw-category-card__arrow svg {
    width: 17px !important;
    height: 17px !important;
  }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
  .etp-category-cards__grid,
  .icmw-category-cards__grid {
    grid-template-columns: repeat(var(--etp-cat-cols-mobile, 1), 1fr) !important;
    gap: 16px !important;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .etp-category-card,
  .icmw-category-card,
  .etp-category-card__image,
  .icmw-category-card__image,
  .etp-category-card__arrow,
  .icmw-category-card__arrow,
  .etp-category-card__arrow svg,
  .icmw-category-card__arrow svg,
  .etp-category-card__overlay,
  .icmw-category-card__overlay,
  .etp-category-card__placeholder,
  .icmw-category-card__placeholder,
  .etp-portfolio-card,
  .etp-portfolio-card__image,
  .etp-portfolio-card__btn-arrow,
  .etp-portfolio-card__btn-arrow svg,
  .etp-testimonial-tab,
  .etp-testimonial-tab__circle,
  .etp-testimonial-tab__img,
  .etp-testimonial-tab__indicator,
  .etp-testimonial-tab__play-circle {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Portfolio Loop Grid Component (.etp-portfolio-grid & .etp-portfolio-card)
   ========================================================================== */

.etp-portfolio-grid {
  --etp-portfolio-cols-desktop: 3;
  --etp-portfolio-cols-tablet: 2;
  --etp-portfolio-cols-mobile: 1;
  --etp-portfolio-gap: 16px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
}

.etp-portfolio-grid *,
.etp-portfolio-grid *::before,
.etp-portfolio-grid *::after {
  box-sizing: border-box !important;
}

.etp-portfolio-grid__loop {
  display: grid !important;
  grid-template-columns: repeat(var(--etp-portfolio-cols-desktop, 3), 1fr) !important;
  gap: var(--etp-portfolio-gap, 16px) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: stretch !important;
}

/* Individual Portfolio Card */
.etp-portfolio-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease !important;
  position: relative !important;
}

@media (hover: hover) and (pointer: fine) {
  .etp-portfolio-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
  }
}

/* 1. Project Image */
.etp-portfolio-card__image-wrap {
  position: relative !important;
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  max-height: 240px !important;
  overflow: hidden !important;
  background-color: #F5F3EF !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
  flex-shrink: 0 !important;
}

.etp-portfolio-card__image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  outline: none !important;
}

.etp-portfolio-card__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  .etp-portfolio-card:hover .etp-portfolio-card__image {
    transform: scale(1.04) !important;
  }
}

/* Fallback Featured Image Placeholder */
.etp-portfolio-card__image-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #F5F3EF 0%, #EAE6DF 100%) !important;
  color: #B8B0A5 !important;
}

.etp-portfolio-card__image-placeholder-icon {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.65 !important;
}

/* 2. Card Content Area */
.etp-portfolio-card__content {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  background: #FFFFFF !important;
}

/* 3. Project Header (Brand Logo + Info) */
.etp-portfolio-card__header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.etp-portfolio-card__logo-wrap {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 12px !important;
  background-color: #F8F6F2 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.etp-portfolio-card__logo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 6px !important;
  display: block !important;
}

.etp-portfolio-card__logo-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #F4F1EB !important;
  color: #1C1917 !important;
}

.etp-portfolio-card__logo-initial {
  font-size: 24px !important;
  font-weight: 700 !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  color: #292524 !important;
  line-height: 1 !important;
}

.etp-portfolio-card__logo-fallback-icon {
  width: 26px !important;
  height: 26px !important;
  stroke: #78716C !important;
}

.etp-portfolio-card__brand-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.etp-portfolio-card__brand-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #78716C !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.etp-portfolio-card__project-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1C1917 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.etp-portfolio-card__project-name a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.etp-portfolio-card__project-name a:hover {
  color: #000000 !important;
}

/* 4. Location Row */
.etp-portfolio-card__location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #57534E !important;
  line-height: 1.3 !important;
}

.etp-portfolio-card__location-icon {
  width: 15px !important;
  height: 15px !important;
  color: #78716C !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.etp-portfolio-card__location-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 5. Project Scope */
.etp-portfolio-card__scope {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #78716C !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 6. Thin Horizontal Divider */
.etp-portfolio-card__divider {
  width: 100% !important;
  height: 1px !important;
  background-color: #EFECE6 !important;
  margin-top: auto !important;
  margin-bottom: 16px !important;
  padding-top: 14px !important;
  border: 0 !important;
  border-top: 1px solid #ECE7E1 !important;
}

/* 7. Bottom Section */
.etp-portfolio-card__bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

/* Bottom Left: Rating + Review */
.etp-portfolio-card__bottom-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* 8. Rating Stars */
.etp-portfolio-card__rating {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.etp-portfolio-card__stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
}

.etp-portfolio-card__star {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.etp-portfolio-card__star--filled {
  color: #F59E0B !important;
  fill: #F59E0B !important;
}

.etp-portfolio-card__star--empty {
  color: #D1D5DB !important;
  stroke: #D1D5DB !important;
}

/* 9. Client Review */
.etp-portfolio-card__review {
  font-size: 12.5px !important;
  font-style: italic !important;
  color: #78716C !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Bottom Right: Button */
.etp-portfolio-card__bottom-right {
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

/* 10. View Case Study Button */
.etp-portfolio-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #1C1917 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.etp-portfolio-card__btn:hover {
  color: #000000 !important;
}

.etp-portfolio-card__btn-text {
  white-space: nowrap !important;
}

.etp-portfolio-card__btn-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  background-color: #1C1917 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.2s ease,
              box-shadow 0.25s ease !important;
}

.etp-portfolio-card__btn-arrow svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #FFFFFF !important;
  stroke-width: 2.2 !important;
  display: block !important;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  .etp-portfolio-card__btn:hover .etp-portfolio-card__btn-arrow,
  .etp-portfolio-card:hover .etp-portfolio-card__btn-arrow {
    transform: translateX(3px) !important;
    background-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  }
}

/* Empty portfolio notice */
.etp-portfolio-no-posts {
  padding: 32px 24px !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(0, 0, 0, 0.12) !important;
  color: #78716C !important;
  text-align: center !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  margin: 16px 0 !important;
}

.etp-portfolio-no-posts p {
  margin: 0 !important;
}

/* ==========================================================================
   Responsive Breakpoints for Portfolio Grid
   ========================================================================== */

/* Tablet (max-width: 991px): 2 columns */
@media (max-width: 991px) {
  .etp-portfolio-grid__loop {
    grid-template-columns: repeat(var(--etp-portfolio-cols-tablet, 2), 1fr) !important;
    gap: min(var(--etp-portfolio-gap, 16px), 16px) !important;
  }

  .etp-portfolio-card__image-wrap {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }

  .etp-portfolio-card__content {
    padding: 18px !important;
  }

  .etp-portfolio-card__project-name {
    font-size: 17px !important;
  }
}

/* Mobile (max-width: 640px): 1 column */
@media (max-width: 640px) {
  .etp-portfolio-grid__loop {
    grid-template-columns: repeat(var(--etp-portfolio-cols-mobile, 1), 1fr) !important;
    gap: 16px !important;
  }

  .etp-portfolio-card__image-wrap {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .etp-portfolio-card__content {
    padding: 16px !important;
  }

  .etp-portfolio-card__header {
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .etp-portfolio-card__logo-wrap {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
  }

  .etp-portfolio-card__logo-initial {
    font-size: 20px !important;
  }

  .etp-portfolio-card__project-name {
    font-size: 16px !important;
  }

  .etp-portfolio-card__bottom {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .etp-portfolio-card__bottom-right {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* ==========================================================================
   Dynamic Testimonials Section (.etp-testimonials-wrapper)
   ========================================================================== */

.etp-testimonials-wrapper {
  --etp-copper-accent: #BD6B4D;
  --etp-copper-accent-hover: #A55639;
  --etp-warm-bg: #FAF7F2;
  --etp-card-bg: #FFFFFF;
  --etp-border-warm: rgba(0, 0, 0, 0.07);
  --etp-circle-size: 175px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 48px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
}

.etp-testimonials-wrapper *,
.etp-testimonials-wrapper *::before,
.etp-testimonials-wrapper *::after {
  box-sizing: border-box !important;
}

/* 1. TOP CIRCULAR TAB ROW */
.etp-testimonials__tabs-track {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(189, 107, 77, 0.25) transparent !important;
  margin-bottom: 36px !important;
  padding: 12px 4px 16px 4px !important;
}

.etp-testimonials__tabs-track::-webkit-scrollbar {
  height: 4px !important;
}

.etp-testimonials__tabs-track::-webkit-scrollbar-thumb {
  background: rgba(189, 107, 77, 0.25) !important;
  border-radius: 4px !important;
}

.etp-testimonials__tabs {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 28px !important;
  min-width: min-content !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Individual Circular Tab Button */
.etp-testimonial-tab {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  outline: none !important;
  width: var(--etp-circle-size, 175px) !important;
  max-width: var(--etp-circle-size, 175px) !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative !important;
}

.etp-testimonial-tab:focus-visible {
  outline: 2px solid var(--etp-copper-accent, #BD6B4D) !important;
  outline-offset: 4px !important;
  border-radius: 12px !important;
}

/* Circle Container */
.etp-testimonial-tab__circle-wrap {
  width: var(--etp-circle-size, 175px) !important;
  height: var(--etp-circle-size, 175px) !important;
  margin-bottom: 14px !important;
  position: relative !important;
}

.etp-testimonial-tab__circle {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative !important;
  background-color: #EFEBE5 !important;
  border: 3px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.35s ease !important;
}

.etp-testimonial-tab__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 50% !important;
  transition: transform 0.4s ease !important;
}

.etp-testimonial-tab:hover .etp-testimonial-tab__img {
  transform: scale(1.05) !important;
}

.etp-testimonial-tab__placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #F5F1EB 0%, #E6E0D5 100%) !important;
  color: #A8A29E !important;
}

.etp-testimonial-tab__placeholder svg {
  width: 48px !important;
  height: 48px !important;
}

/* Play Icon Overlay (Centered on Thumbnail) */
.etp-testimonial-tab__play-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 50% !important;
  transition: background 0.3s ease !important;
}

.etp-testimonial-tab:hover .etp-testimonial-tab__play-overlay {
  background: rgba(0, 0, 0, 0.25) !important;
}

.etp-testimonial-tab__play-circle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.etp-testimonial-tab:hover .etp-testimonial-tab__play-circle {
  transform: scale(1.1) !important;
}

.etp-testimonial-tab__play-circle svg {
  width: 18px !important;
  height: 18px !important;
  color: #1C1917 !important;
  margin-left: 2px !important;
}

/* Tab Title Underneath */
.etp-testimonial-tab__title {
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #57534E !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  transition: color 0.3s ease !important;
  margin-bottom: 6px !important;
}

.etp-testimonial-tab:hover .etp-testimonial-tab__title {
  color: #1C1917 !important;
}

/* Tab Indicator Bar */
.etp-testimonial-tab__indicator {
  width: 28px !important;
  height: 2.5px !important;
  background-color: var(--etp-copper-accent, #BD6B4D) !important;
  border-radius: 2px !important;
  transform: scaleX(0) !important;
  opacity: 0 !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease !important;
}

/* ACTIVE STATE FOR TAB */
.etp-testimonial-tab.is-active .etp-testimonial-tab__circle {
  border-color: var(--etp-copper-accent, #BD6B4D) !important;
  box-shadow: 0 0 0 3px #FFFFFF,
              0 0 0 6px var(--etp-copper-accent, #BD6B4D),
              0 10px 28px rgba(189, 107, 77, 0.22) !important;
  transform: scale(1.03) !important;
}

.etp-testimonial-tab.is-active .etp-testimonial-tab__title {
  color: #1C1917 !important;
  font-weight: 700 !important;
}

.etp-testimonial-tab.is-active .etp-testimonial-tab__indicator {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}


/* ==========================================================================
   2. MAIN FEATURED TESTIMONIAL PANEL
   ========================================================================== */

.etp-testimonials__panels {
  width: 100% !important;
  position: relative !important;
}

.etp-testimonial-panel {
  width: 100% !important;
}

.etp-testimonial-panel__card {
  display: flex !important;
  align-items: stretch !important;
  background: var(--etp-card-bg, #FFFFFF) !important;
  border: 1px solid var(--etp-border-warm, rgba(0, 0, 0, 0.07)) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  min-height: 440px !important;
}

/* LEFT MEDIA COLUMN (~55%) */
.etp-testimonial-media {
  flex: 0 0 55% !important;
  max-width: 55% !important;
  position: relative !important;
  background-color: #1C1917 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 440px !important;
}

.etp-testimonial-media__video-container,
.etp-testimonial-media__image-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: flex !important;
}

.etp-testimonial-media__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  background: #000000 !important;
}

.etp-testimonial-media__embed-wrap {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
}

.etp-testimonial-media__embed-wrap iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.etp-testimonial-media__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.etp-testimonial-media__placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #2D2724 0%, #1A1715 100%) !important;
  color: #78716C !important;
}

.etp-testimonial-media__placeholder svg {
  width: 64px !important;
  height: 64px !important;
}

/* RIGHT TESTIMONIAL INFORMATION COLUMN (~45%) */
.etp-testimonial-info {
  flex: 0 0 45% !important;
  max-width: 45% !important;
  padding: 44px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: var(--etp-card-bg, #FFFFFF) !important;
}

/* Featured Story Badge */
.etp-testimonial-info__badge-wrap {
  margin-bottom: 18px !important;
}

.etp-testimonial-info__badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 14px !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--etp-copper-accent, #BD6B4D) !important;
  background: rgba(189, 107, 77, 0.08) !important;
  border: 1px solid rgba(189, 107, 77, 0.22) !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
}

/* Testimonial Title (Elegant Serif) */
.etp-testimonial-info__title {
  font-family: var(--etp-font-serif, "Playfair Display", "Cormorant Garamond", Georgia, serif) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #1C1917 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  letter-spacing: -0.01em !important;
}

/* Review Quotation */
.etp-testimonial-info__review {
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  color: #57534E !important;
  font-style: italic !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* Person Meta Section */
.etp-testimonial-person {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: auto !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.etp-testimonial-person__avatar-wrap {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(189, 107, 77, 0.2) !important;
  flex-shrink: 0 !important;
}

.etp-testimonial-person__avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.etp-testimonial-person__info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.etp-testimonial-person__name {
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1C1917 !important;
  line-height: 1.3 !important;
}

.etp-testimonial-person__role-location {
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #78716C !important;
  line-height: 1.3 !important;
}

/* Empty fallback notice */
.etp-testimonials-none {
  padding: 36px 24px !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(0, 0, 0, 0.12) !important;
  color: #78716C !important;
  text-align: center !important;
  font-family: var(--etp-font-family, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 15px !important;
  margin: 16px 0 !important;
}

.etp-testimonials-none p {
  margin: 0 !important;
}

/* ==========================================================================
   Responsive Breakpoints for Testimonials
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .etp-testimonials-wrapper {
    --etp-circle-size: 150px;
  }

  .etp-testimonials__tabs-track {
    justify-content: flex-start !important;
    padding-bottom: 12px !important;
  }

  .etp-testimonials__tabs {
    justify-content: flex-start !important;
    gap: 20px !important;
  }

  .etp-testimonial-panel__card {
    min-height: 380px !important;
  }

  .etp-testimonial-media {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    min-height: 380px !important;
  }

  .etp-testimonial-info {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 32px 28px !important;
  }

  .etp-testimonial-info__title {
    font-size: 26px !important;
    margin-bottom: 16px !important;
  }

  .etp-testimonial-info__review {
    font-size: 15px !important;
    margin-bottom: 22px !important;
  }
}

/* Mobile (max-width: 768px): Stack vertically */
@media (max-width: 768px) {
  .etp-testimonials-wrapper {
    --etp-circle-size: 130px;
  }

  .etp-testimonials__tabs-track {
    scroll-snap-type: x mandatory !important;
  }

  .etp-testimonial-tab {
    scroll-snap-align: center !important;
  }

  .etp-testimonial-tab__title {
    font-size: 13px !important;
  }

  .etp-testimonial-panel__card {
    flex-direction: column !important;
    border-radius: 20px !important;
    min-height: auto !important;
  }

  .etp-testimonial-media {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-height: 250px !important;
    height: 260px !important;
  }

  .etp-testimonial-info {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 24px 20px !important;
  }

  .etp-testimonial-info__title {
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .etp-testimonial-info__review {
    font-size: 14.5px !important;
    margin-bottom: 20px !important;
  }

  .etp-testimonial-person {
    padding-top: 18px !important;
  }

  .etp-testimonial-person__avatar-wrap {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
}