/**
 * ERDU Lighting Theme - Main CSS
 * Tailwind-like Utility Classes (Pure CSS, no build step needed)
 *
 * @package ERDU_Lighting
 * @version 1.0.0
 */

/* ===== CSS Custom Properties (Dynamic Colors) ===== */
:root {
  --erdu-primary: #F37021;
  --erdu-primary-hover: #E05D10;
  --erdu-secondary: #2D1810;
  --erdu-text: #333333;
  --erdu-text-light: #6b7280;
  --erdu-bg-dark: #1a1a2e;
  --erdu-bg-light: #f9fafb;
  --erdu-border: #e5e7eb;
  --erdu-footer-bg: #1a1a2e;
  --erdu-footer-text: #9ca3af;
  --erdu-footer-heading: #ffffff;
  --erdu-footer-hover: #F37021;
  --erdu-footer-border: #374151;
}

/* ===== Theme Base Classes ===== */
/* Container */
.erdu-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .erdu-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section */
.erdu-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .erdu-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Headings */
.erdu-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--erdu-text);
  margin-bottom: 2rem;
  text-align: center;
}

.erdu-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--erdu-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .erdu-h2 { font-size: 2rem; }
  .erdu-h3 { font-size: 1.5rem; }
}

/* Hero Block */
.erdu-block-hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .erdu-block-hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Button */
.erdu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.erdu-btn-primary {
  background-color: var(--erdu-primary);
  border-color: var(--erdu-primary);
  color: #ffffff;
}

.erdu-btn-primary:hover {
  background-color: var(--erdu-primary-hover);
  border-color: var(--erdu-primary-hover);
}

.erdu-btn-secondary {
  background-color: #ffffff;
  border-color: var(--erdu-border);
  color: var(--erdu-text);
}

.erdu-btn-secondary:hover {
  border-color: var(--erdu-primary);
  color: var(--erdu-primary);
}

/* CTA Section Buttons */
.erdu-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.erdu-cta-btn.erdu-cta-btn-solid {
  background-color: #ffffff;
  color: var(--erdu-primary);
}
.erdu-cta-btn.erdu-cta-btn-solid:hover {
  background-color: #f3f4f6;
}
.erdu-cta-btn.erdu-cta-btn-outline {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
  border-width: 2px;
}
.erdu-cta-btn.erdu-cta-btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

/* CTA Bottom Text */
.erdu-cta-bottom {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: #FED7AA;
}

/* CTA Section */
.erdu-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--erdu-primary) 0%, var(--erdu-primary-hover) 100%);
}

/* ========== Cases Page ========== */
.erdu-case-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--erdu-border, #e5e7eb);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.erdu-case-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.erdu-case-image-wrap {
  position: relative;
  height: 13rem;
  overflow: hidden;
}
.erdu-case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.erdu-case-card:hover .erdu-case-image-wrap img {
  transform: scale(1.05);
}
.erdu-case-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--erdu-primary);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 9999px;
}
.erdu-case-body {
  padding: 1.25rem;
}
.erdu-case-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.erdu-case-title {
  font-weight: 600;
  color: var(--erdu-text, #333);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.erdu-case-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}
.erdu-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.erdu-case-tag {
  padding: 0.125rem 0.5rem;
  background-color: color-mix(in srgb, var(--erdu-primary, #F37021) 10%, #fff);
  color: var(--erdu-primary);
  font-size: 0.75rem;
  border-radius: 0.25rem;
}
.erdu-case-link {
  font-size: 0.875rem;
  color: var(--erdu-primary);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.erdu-case-link:hover {
  text-decoration: underline;
}

.erdu-industry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.erdu-industry-filter a {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
}
.erdu-industry-filter a:not(.active) {
  background-color: #f3f4f6;
  color: #4b5563;
}
.erdu-industry-filter a:not(.active):hover {
  background-color: #e5e7eb;
}
.erdu-industry-filter a.active {
  background-color: var(--erdu-primary);
  color: #fff;
}

/* ========== Case Study Single Page ========== */
/* Meta Bar — 静态显示，不跟随滚动 */
.erdu-case-meta-bar {
  position: relative;
  z-index: 1;
}

/* Metrics Grid — responsive auto-fit, centered evenly */
.erdu-metrics-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .erdu-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .erdu-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* CSR Cards (Challenge / Solution / Result) */
.erdu-csr-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.erdu-csr-card:hover {
  transform: translateY(-2px);
}

/* Transform (Before/After) Cards */
.erdu-transform-card {
  transition: box-shadow 0.3s ease;
}
.erdu-transform-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* Product Cards */
.erdu-product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.erdu-product-card:hover {
  transform: translateY(-1px);
}

/* Case Card as link override */
a.erdu-case-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Case Card body description line clamp */
.erdu-case-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Gallery Carousel ========== */
.erdu-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.erdu-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}
.erdu-gallery-track::-webkit-scrollbar {
  display: none;
}
.erdu-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.erdu-gallery-slide-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
  max-height: 100vh;
  overflow: hidden;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.erdu-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
/* Tablet/Mobile: scale image to screen width, height proportional, show full image */
@media (max-width: 1024px) {
  .erdu-gallery-slide-inner {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
  }
  .erdu-gallery-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
.erdu-gallery-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.erdu-gallery-zoom-btn:hover {
  background: rgba(0,0,0,0.6);
}
.erdu-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.erdu-gallery-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.erdu-gallery-prev {
  left: 16px;
}
.erdu-gallery-next {
  right: 16px;
}
.erdu-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 14px 0;
  background: #1a1a2e;
}
.erdu-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.erdu-gallery-dot.active {
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
  transform: scale(1.3);
}
@media (max-width: 767px) {
  .erdu-gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .erdu-gallery-prev {
    left: 8px;
  }
  .erdu-gallery-next {
    right: 8px;
  }
  .erdu-gallery-slide-inner {
    height: 70vh;
    min-height: 300px;
  }
  .erdu-gallery-img {
    object-fit: cover;
  }
}

/* Case Study Spacing */
/* Full-viewport dark gallery - restrict dark background to gallery area only */
body.erdu-case-single.erdu-case-gallery {
  background-color: #ffffff;
}
.erdu-case-gallery {
  background: #1a1a2e;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.erdu-case-meta-bar {
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

/* Input */
.erdu-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--erdu-text);
  background-color: #ffffff;
  border: 1px solid var(--erdu-border);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erdu-input:focus {
  outline: none;
  border-color: var(--erdu-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--erdu-primary) 20%, transparent);
}

.erdu-input::placeholder {
  color: var(--erdu-text-light);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--erdu-text, #333); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Layout - Display ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.contents { display: contents; }

/* ===== Layout - Grid ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

/* ===== Layout - Flex ===== */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
@media (min-width: 768px) {
  .md\:items-start { align-items: flex-start; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
}
@media (min-width: 1024px) {
  .lg\:items-start { align-items: flex-start; }
  .lg\:items-center { align-items: center; }
  .lg\:items-end { align-items: flex-end; }
}
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===== Spacing - Gap ===== */
.gap-0 { gap: 0; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-4 { row-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-8 { row-gap: 2rem; }
.text-blue-100 { color: #dbeafe; }
.top-24 { top: 6rem; }
.prose-sm { font-size: 0.875rem; line-height: 1.25rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ===== Spacing - Space Y ===== */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* ===== Spacing - Padding ===== */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-12 { padding-top: 3rem; }

/* ===== Spacing - Margin ===== */
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }

/* ===== Sizing - Width ===== */
.w-0\.5 { width: 0.125rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-56 { width: 14rem; }
.w-full { width: 100%; }
.w-\[80px\] { width: 80px; }
.min-w-0 { min-width: 0; }
.min-w-\[200px\] { min-width: 200px; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[1400px\] { max-width: 1400px; }

/* ===== Sizing - Height ===== */
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-40 { height: 10rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.h-\[400px\] { height: 400px; }
.h-\[500px\] { height: 500px; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[900px\] { max-height: 900px; }

/* ===== Hero Section - Responsive Height ===== */
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.min-h-\[80vh\] { min-height: 80vh; }
.min-h-\[100vh\] { min-height: 100vh; }
@media (min-width: 768px) {
  .md\:min-h-\[70vh\] { min-height: 70vh; }
}
@media (min-width: 1024px) {
  .lg\:min-h-\[80vh\] { min-height: 80vh; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

/* ===== Responsive Margin Auto (for alignment) ===== */
@media (min-width: 768px) {
  .md\:mx-auto { margin-left: auto; margin-right: auto; }
  .md\:ml-auto { margin-left: auto; }
}
@media (min-width: 1024px) {
  .lg\:mx-auto { margin-left: auto; margin-right: auto; }
  .lg\:ml-auto { margin-left: auto; }
}

/* Hero Stats: full on mobile, 50% on tablet+ */
.erdu-hero-stats { width: 100%; }
@media (min-width: 768px) {
  .erdu-hero-stats { width: 50%; }
}

/* ===== Typography - Size ===== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-8xl { font-size: 6rem; line-height: 1; }

/* ===== Typography - Weight & Style ===== */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:text-right { text-align: right; }
}
@media (min-width: 1024px) {
  .lg\:text-left { text-align: left; }
  .lg\:text-center { text-align: center; }
  .lg\:text-right { text-align: right; }
}
.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }

/* ===== Colors - Text ===== */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-orange-100 { color: #ffedd5; }
.text-orange-200 { color: #fed7aa; }
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }

/* ===== Colors - Background ===== */
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-500 { background-color: #f97316; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }

/* ===== Borders ===== */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: #e5e7eb; }
.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-red-200 { border-color: #fecaca; }
.border-red-500 { border-color: #ef4444; }
.border-green-200 { border-color: #bbf7d0; }
.border-orange-200 { border-color: #fed7aa; }

/* ===== Border Radius ===== */
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.top-16 { top: 4rem; }
.top-full { top: 100%; }
.bottom-0 { bottom: 0; }
.left-1\/2 { left: 50%; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* ===== Effects - Shadow ===== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* ===== Effects - Opacity ===== */
.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

/* ===== Effects - Backdrop ===== */
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ===== Position - Custom ===== */
.top-\[70px\] { top: 70px; }
.z-\[60\] { z-index: 60; }
.z-\[99999\] { z-index: 99999; }

/* ===== Background - Arbitrary / Alpha ===== */
.bg-\[\#111111\] { background-color: #111111; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }

/* ===== Border - Arbitrary ===== */
.border-\[\#f97316\] { border-color: #f97316; }

/* ===== Scroll Helpers ===== */
.scroll-mt-32 { scroll-margin-top: 8rem; }
.hide-scrollbar,
.erdu-hide-scrollbar { scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar,
.erdu-hide-scrollbar::-webkit-scrollbar { display: none; }

/* ===== Transitions ===== */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* ===== Hover States ===== */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-orange-100:hover { background-color: #ffedd5; }
.hover\:bg-orange-500:hover { background-color: #f97316; }
.hover\:bg-black:hover { background-color: #000000; }
.hover\:bg-black\/80:hover { background-color: rgba(0, 0, 0, 0.8); }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-gray-500:hover { color: #6b7280; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-orange-500:hover { color: #f97316; }
.hover\:text-orange-600:hover { color: #ea580c; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:border-orange-200:hover { border-color: #fed7aa; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:border-gray-500:hover { border-color: #6b7280; }

/* ===== Group Hover ===== */
.group:hover .group-hover\:text-orange-500 { color: #f97316; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-\[1\.02\] { transform: scale(1.02); }

/* ===== Z-Index ===== */
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== Cursor ===== */
.cursor-pointer { cursor: pointer; }

/* ===== Object Fit ===== */
.object-cover { object-fit: cover; }

/* ===== Overflow ===== */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ===== Misc ===== */
.list-none { list-style-type: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Placeholder ===== */
.placeholder-gray-400::placeholder { color: #9ca3af; }

/* ===== Focus ===== */
.focus\:border-orange-500:focus { border-color: #f97316; }
.focus\:outline-none:focus { outline: none; }

/* ===== Form checkbox accent ===== */
.accent-orange-500 { accent-color: #f97316; }

/* ===== Prose (article content) ===== */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1.25em; line-height: 1.75; }
.prose h2 { font-size: 1.5em; font-weight: 700; margin-top: 2em; margin-bottom: 1em; }
.prose h3 { font-size: 1.25em; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.75em; }
.prose ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1.25em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose img { margin: 0; border-radius: 0; }
.prose a { color: #f97316; text-decoration: underline; }
.prose blockquote { border-left: 4px solid #f97316; padding-left: 1rem; font-style: italic; color: #6b7280; }
.prose.max-w-none { max-width: none; }
.prose-lg { font-size: 1.125rem; line-height: 1.75; }

/* ===== FAQ specific ===== */
.erdu-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.erdu-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #ffffff;
  overflow: hidden;
}

.erdu-faq-item[open] {
  border-color: #d1d5db;
}

.erdu-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 0.2s ease;
}

.erdu-faq-question::-webkit-details-marker {
  display: none;
}

.erdu-faq-question::marker {
  content: '';
}

.erdu-faq-question:hover {
  background-color: #f9fafb;
}

.erdu-faq-item[open] .erdu-faq-question {
  border-bottom: 1px solid #f3f4f6;
}

.erdu-faq-question-text {
  flex: 1 1 auto;
}

.erdu-faq-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  transition: transform 0.3s ease;
}

.erdu-faq-item[open] .erdu-faq-icon {
  transform: rotate(180deg);
}

.erdu-faq-answer {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
}

.erdu-faq-answer.active {
  display: block;
}

.erdu-faq-item[open] .erdu-faq-answer {
  display: block;
}

.erdu-faq-answer-inner {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.erdu-faq-answer-inner > :first-child {
  margin-top: 0;
}

.erdu-faq-answer-inner > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .erdu-faq-question {
    padding: 0.875rem 1rem;
  }

  .erdu-faq-question-text {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .erdu-faq-answer {
    padding: 0.875rem 1rem 1rem;
  }

  .erdu-faq-answer-inner {
    font-size: 0.875rem;
    line-height: 1.65;
  }
}

/* ===== Responsive: sm (640px) ===== */
@media (min-width: 640px) {
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:inline { display: inline; }
  .sm\:mx-0 { margin-left: 0; margin-right: 0; }
  .sm\:px-0 { padding-left: 0; padding-right: 0; }
  .sm\:p-6 { padding: 1.5rem; }
}

/* ===== Responsive: md (768px) ===== */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:inline { display: inline; }
  .md\:inline-flex { display: inline-flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:h-80 { height: 20rem; }
  .md\:h-\[600px\] { height: 600px; }
  .md\:p-8 { padding: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:text-left { text-align: left; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-9xl { font-size: 8rem; line-height: 1; }
}

/* ===== Responsive: lg (1024px) ===== */
@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-x-8 { column-gap: 2rem; }
  .lg\:gap-y-6 { row-gap: 1.5rem; }
  .lg\:gap-y-8 { row-gap: 2rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:mb-0 { margin-bottom: 0; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/4 { width: 25%; }
  .lg\:w-3\/4 { width: 75%; }
  .lg\:w-1\/3 { width: 33.333333%; }
  .lg\:w-2\/3 { width: 66.666667%; }
  .lg\:w-\[64px\] { width: 64px; }

  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ===== Responsive: xl (1280px) ===== */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:w-1\/2 { width: 50%; }
  .xl\:sticky { position: sticky; }
  .xl\:top-24 { top: 6rem; }
  .xl\:gap-16 { gap: 4rem; }
}

/* ===== Single Product Specific ===== */
.erdu-gallery-stage { aspect-ratio: 1 / 1; }
.erdu-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.erdu-product-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  height: 50px;
  padding: 0 1.125rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 10px 18px -14px rgba(17, 24, 39, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.erdu-product-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -16px rgba(17, 24, 39, 0.4);
}

.erdu-product-action-icon {
  width: 1.875rem;
  height: 1.875rem;
  margin-right: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.16);
}

.erdu-product-action-label {
  display: inline-block;
}

.erdu-product-action-primary {
  background-color: var(--erdu-primary, #F37021);
  border-color: var(--erdu-primary, #F37021);
  color: #ffffff;
}

.erdu-product-action-primary:hover {
  background-color: var(--erdu-primary-hover, #E05D10);
  border-color: var(--erdu-primary-hover, #E05D10);
  color: #ffffff;
}

.erdu-product-action-secondary {
  background-color: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.erdu-product-action-secondary:hover {
  border-color: #fdba74;
  color: #111827;
}

.erdu-product-action-secondary .erdu-product-action-icon {
  background-color: #f0fdf4;
  color: #16a34a;
}

.erdu-btn-inquire,
.erdu-btn-whatsapp {
  width: auto;
}

@media (max-width: 767px) {
  .erdu-product-actions {
    gap: 0.75rem;
  }

  .erdu-product-action {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Disable sticky positioning on mobile and tablet for product right column */
@media (max-width: 1279px) {
  .erdu-product-col-right {
    position: static !important;
  }
}

/* ===== Single Product Gallery Responsive Overrides ===== */
@media (max-width: 1279px) {
  .erdu-product-columns { flex-direction: column !important; display: flex !important; }
  .erdu-product-col-left,
  .erdu-product-col-right { width: 100% !important; }
  .erdu-gallery-layout { flex-direction: column-reverse !important; }
  .erdu-rail-layout {
    width: 100% !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  .erdu-thumb-layout { width: 64px !important; aspect-ratio: 1 / 1 !important; flex-shrink: 0 !important; }
}

/* ===== Hero Video Background ===== */
@media (min-width: 1024px) {
  .lg\:h-\[700px\] { height: 700px; }
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Smooth fade-in for video background */
.hero-video-bg {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-video-bg.loaded,
.hero-video-bg[poster] {
  opacity: 1;
}


/* ===== WooCommerce B2B Overrides ===== */
.woocommerce div.product .product-gallery-wrapper .woocommerce-product-gallery,
.woocommerce-page div.product .product-gallery-wrapper .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

.woocommerce div.product .product-summary-wrapper,
.woocommerce-page div.product .product-summary-wrapper {
    width: 100% !important;
    float: none !important;
}

/* Ensure gallery images display properly */
.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
}

.erdu-product-tabs .wc-tabs {
    margin: 0 !important;
    padding: 0 !important;
}
.erdu-product-tabs .wc-tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}
.erdu-product-tabs .wc-tabs li::before,
.erdu-product-tabs .wc-tabs li::after {
    display: none !important;
}
.erdu-product-tabs .woocommerce-Tabs-panel {
    margin-top: 0 !important;
}

.group:hover .group-hover\:border-orange-200 { border-color: #fed7aa !important; }
.group:hover .group-hover-scale-105 { transform: scale(1.05) !important; }

/* ===== Landing Page Extras ===== */
.text-gray-900 { color: #111827; }
.bg-gray-750 { background-color: #2d3748; }
.divide-gray-700 > :not([hidden]) ~ :not([hidden]) { border-color: #374151; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15)); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.lg\:flex-row-reverse { flex-direction: row-reverse; }
.hover\:bg-gray-750:hover { background-color: #2d3748; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-bottom-width: 0; }

/* ===== Accordion Layout Extras ===== */
.lg\:sticky { position: sticky; }
.lg\:top-24 { top: 6rem; }
.self-start { align-self: flex-start; }
.rotate-180 { transform: rotate(180deg); }
.border-collapse { border-collapse: collapse; }
.text-orange-700 { color: #c2410c; }
.lg\:w-5\/12 { width: 41.666667%; }
.lg\:w-7\/12 { width: 58.333333%; }

/* ===== 50/50 Full Width Extras ===== */
.max-w-\[2560px\] { max-width: 2560px; }
.lg\:w-1\/2 { width: 50%; }
.lg\:pr-8 { padding-right: 2rem; }
.xl\:pr-12 { padding-right: 3rem; }
.xl\:gap-20 { gap: 5rem; }
.2xl\:px-24 { padding-left: 6rem; padding-right: 6rem; }

/* ===== Recent Product Utilities ===== */
.aspect-square { aspect-ratio: 1 / 1; }
.border-white { border-color: #ffffff; }
.leading-snug { line-height: 1.375; }
.duration-500 { transition-duration: 500ms; }
.hover\:border-gray-200:hover { border-color: #e5e7eb; }
.group:hover .group-hover\:text-orange-600 { color: #ea580c; }

/* ===== Related Products Section ===== */
.erdu-related-products-section {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.erdu-related-products-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.erdu-related-products-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #111827;
}

.erdu-related-products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .erdu-related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .erdu-related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .erdu-related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.erdu-related-product-card {
  display: block;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.erdu-related-product-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.erdu-related-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f9fafb;
}

.erdu-related-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.erdu-related-product-card:hover .erdu-related-product-image {
  transform: scale(1.05);
}

.erdu-related-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #f3f4f6;
  color: #d1d5db;
}

.erdu-related-product-placeholder-icon {
  width: 3rem;
  height: 3rem;
}

.erdu-related-product-badges {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.erdu-related-product-badge {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}

.erdu-related-product-body {
  padding: 1rem;
}

.erdu-related-product-title {
  display: -webkit-box;
  margin: 0 0 0.5rem;
  overflow: hidden;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.375;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.3s ease;
}

.erdu-related-product-card:hover .erdu-related-product-title {
  color: #ea580c;
}

.erdu-related-product-price {
  margin-bottom: 0.25rem;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.erdu-related-product-meta {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}

.erdu-related-product-meta-value {
  margin-left: 0.25rem;
  color: #374151;
  font-weight: 500;
}

/* ===== Single Product Navigation Polish ===== */
.erdu-product-sections-nav-wrap {
  overflow: hidden;
  top: var(--erdu-header-height, 64px);
}

.erdu-product-col-right.lg\:sticky {
  top: calc(var(--erdu-header-height, 64px) + 1.5rem);
}

.erdu-product-tabs-shell {
  margin-top: 0.5rem;
}

.erdu-product-tabs-layout {
  width: 100%;
}

.erdu-product-tabs-bar-wrap {
  border-bottom: 1px solid #e6e6e6;
  box-shadow: inset 0 -1px 0 #e6e6e6;
}

.erdu-product-tabs-bar {
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-start;
}

.erdu-product-tabs-shell .erdu-product-tab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #666666;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.erdu-product-tabs-shell .erdu-product-tab-link:hover {
  color: #333333;
  background-color: transparent;
}

.erdu-product-tabs-shell .erdu-product-tab-link.active {
  color: #ff6a00;
  border-bottom-color: #ff6a00;
  background-color: transparent;
}

.erdu-content-blocks .erdu-content-block {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.erdu-product-main-title {
  font-size: 2rem;
  line-height: 1.15;
}

.erdu-product-section-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.erdu-product-gallery-section {
  order: 1;
}

.erdu-product-col-right {
  order: 2;
}

.erdu-product-section-two {
  order: 3;
}

.erdu-product-sections-nav {
  align-items: center;
  padding-bottom: 0.25rem;
}

@media (max-width: 1279px) {
  .erdu-product-main-title {
    font-size: 1.875rem;
  }

  .erdu-product-section-title {
    font-size: 1.5rem;
  }

  .erdu-product-col-left {
    display: contents;
  }

  .erdu-product-tabs-shell .erdu-product-tab-link {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
  }

  .erdu-content-blocks .erdu-content-block {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767px) {
  .erdu-product-main-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .erdu-product-section-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .erdu-product-sections-nav-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .erdu-product-sections-nav {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    width: max-content;
    min-width: 100%;
    scroll-snap-type: x proximity;
  }

  .erdu-product-tabs-bar {
    gap: 0.375rem;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .erdu-product-tabs-shell .erdu-product-tab-link {
    min-height: 2.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.15;
    scroll-snap-align: start;
  }

  .erdu-content-blocks .erdu-content-block {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .erdu-related-products-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .erdu-related-products-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
  }
}

/* ===== Specifications Grid ===== */
.erdu-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.erdu-spec-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.erdu-spec-item:nth-child(2n) {
  border-right: none;
}

.erdu-spec-item:nth-last-child(-n+2):nth-child(2n-1),
.erdu-spec-item:nth-last-child(-n+2):nth-child(2n) {
  border-bottom: none;
}

.erdu-spec-name {
  flex-shrink: 0;
  width: 140px;
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.erdu-spec-value {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== Key Attributes Divider ===== */
.erdu-ka-item::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: -0.75rem; /* half of gap-x-6 */
  width: 1px;
  background-color: #e5e7eb;
}
/* Hide divider on first item of each row (mobile: 2 cols) */
.erdu-ka-item:nth-child(2n+1)::before {
  display: none;
}
@media (min-width: 1024px) {
  .erdu-ka-item::before {
    left: -1rem; /* half of lg:gap-x-8 */
  }
  /* Desktop: 3 cols, so restore display for odd items... */
  .erdu-ka-item:nth-child(2n+1)::before {
    display: block;
  }
  /* ...and hide for the first item of each 3-col row */
  .erdu-ka-item:nth-child(3n+1)::before {
    display: none;
  }
}

/* Related Products CSS fixes */
.erdu-related-product-body {
  padding: 1rem;
  background-color: #fff;
}
.erdu-related-product-price {
  font-size: 1.125rem;
  color: var(--erdu-primary, #f97316);
  font-weight: 700;
  margin-top: 0.25rem;
}
.erdu-related-product-meta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.erdu-related-product-meta-value {
  color: #1f2937;
  font-weight: 600;
  margin-left: 0.25rem;
}

@media (max-width: 767px) {
  .erdu-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erdu-spec-item {
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
  }
  .erdu-spec-item:nth-child(2n) {
    border-right: none;
  }
  .erdu-spec-item:nth-last-child(-n+2):nth-child(2n-1),
  .erdu-spec-item:nth-last-child(-n+2):nth-child(2n) {
    border-bottom: none;
  }
  .erdu-spec-name {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    justify-content: center;
    text-align: center;
  }
  .erdu-spec-value {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Attribute Images Lightbox ===== */
#erdu-attr-lightbox {
  touch-action: manipulation;
}

#erdu-lightbox {
  touch-action: manipulation;
}

#erdu-lightbox-img {
  transition: opacity 0.15s ease;
}

#erdu-lightbox-prev:not(.hidden),
#erdu-lightbox-next:not(.hidden) {
  opacity: 1 !important;
}

.erdu-lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.erdu-lightbox-arrow-prev {
  left: 1rem;
}

.erdu-lightbox-arrow-next {
  right: 1rem;
}

#erdu-attr-lightbox-img {
  transition: opacity 0.15s ease;
}

#erdu-attr-lightbox-thumbs img {
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* Lightbox arrows always visible (not hover-only) */
#erdu-attr-lightbox-prev:not(.hidden),
#erdu-attr-lightbox-next:not(.hidden) {
  opacity: 1 !important;
}

.erdu-attr-lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.erdu-attr-lightbox-arrow-prev {
  left: 1rem;
}

.erdu-attr-lightbox-arrow-next {
  right: 1rem;
}

@media (max-width: 767px) {
  .erdu-lightbox-arrow-prev {
    left: 0.5rem;
  }

  .erdu-lightbox-arrow-next {
    right: 0.5rem;
  }

  .erdu-attr-lightbox-arrow-prev {
    left: 0.5rem;
  }

  .erdu-attr-lightbox-arrow-next {
    right: 0.5rem;
  }

  #erdu-attr-lightbox .bg-white.rounded-xl {
    padding: 0.5rem;
    max-width: 95vw;
    max-height: 60vh;
  }
  #erdu-attr-lightbox-thumbs img {
    width: 48px;
    height: 48px;
  }
}

/* ===== Shop / Products Page: Hero + Categories ===== */

/* Transparent header over hero (Shop & Products pages) */
.erdu-hero-shop,
.erdu-hero-products,
.erdu-hero-page {
  position: relative;
}

/* Hero pages: header positioning context (position/color handled by builder erdu_header_settings + output_dynamic_header_styles) */
body.erdu-hero-active .erdu-header,
body.woocommerce-page .erdu-hero-shop ~ .erdu-header,
body.woocommerce-page .erdu-hero-products ~ .erdu-header,
body.woocommerce-page .erdu-hero-page ~ .erdu-header,
.erdu-hero-shop .erdu-header,
.erdu-hero-products .erdu-header,
.erdu-hero-page .erdu-header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

/* Mobile toggle button: reset browser defaults */
.erdu-mobile-toggle {
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Mobile menu dropdown: ensure above hero content */
body.erdu-hero-active .erdu-mobile-menu {
  z-index: 51;
}

/* Open mobile menu: solid background regardless of transparent header mode */
.erdu-mobile-menu.is-open {
  background-color: #ffffff !important;
  border-top-color: #e5e7eb !important;
}

/* Open mobile menu links: theme color, override builder's transparent-header white !important.
   Must match specificity of builder's body:has(main > section:first-child.erdu-bg-primary) ... rule */
body:has(main > section:first-child.erdu-bg-primary) .erdu-header:not(.is-scrolled) .erdu-mobile-menu.is-open a {
  color: var(--erdu-primary, #F37021) !important;
}
body:has(main > section:first-child.erdu-bg-primary) .erdu-header:not(.is-scrolled) .erdu-mobile-menu.is-open a:hover {
  color: var(--erdu-primary-hover, #E05D10) !important;
}

/* Reset any WooCommerce/third-party padding on hero pages so breadcrumb spacing is uniform */
body.erdu-hero-active #primary,
body.erdu-hero-active .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: block !important;
}

/* No Hero: Header fixed overlay, gallery full viewport from top */
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}
/* Transparent overlay when not scrolled */
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .erdu-nav-link {
  color: #ffffff;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .erdu-text-primary,
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .text-gray-900,
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .text-gray-700 {
  color: #ffffff;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) img.custom-logo {
  filter: brightness(0) invert(1);
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) svg {
  stroke: #ffffff;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .erdu-mobile-menu:not(.is-open) {
  background-color: transparent !important;
  border-top-color: transparent !important;
}
/* Mobile menu open: solid background even on transparent overlay */
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-mobile-menu.is-open {
  background-color: #ffffff !important;
  z-index: 51;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-mobile-menu.is-open a {
  color: var(--erdu-primary, #F37021) !important;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-header:not(.is-scrolled) .erdu-mobile-menu a {
  color: #ffffff;
}
/* Pull main content up to overlap with absolute header */
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) #primary,
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) main,
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-case-gallery {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.erdu-case-single.erdu-case-gallery:not(.erdu-hero-active) .erdu-gallery-slide-inner {
  height: 100vh;
}

/* Case Study: No Hero, No Gallery → primary color nav links */
body.erdu-case-single:not(.erdu-hero-active):not(.erdu-case-gallery) .erdu-header:not(.is-scrolled) .erdu-nav-link {
  color: var(--erdu-primary, #F37021);
}
body.erdu-case-single:not(.erdu-hero-active):not(.erdu-case-gallery) .erdu-header.is-scrolled .erdu-nav-link {
  color: var(--erdu-primary, #F37021);
}

.erdu-hero-height-compact {
  min-height: 30vh;
}

.erdu-hero-height-small {
  min-height: 40vh;
}

.erdu-hero-height-medium {
  min-height: 60vh;
}

.erdu-hero-height-large {
  min-height: 80vh;
}

.erdu-hero-height-full {
  min-height: 100vh;
}

/* Ensure hero content is vertically centered */
.erdu-hero-products .erdu-container,
.erdu-hero-shop .erdu-container,
.erdu-hero-page .erdu-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
}

/* Categories Grid - mimics Elementor wd-cats style */
#news-pagination a,
#news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#news-pagination .current {
  background-color: var(--erdu-primary) !important;
  color: #fff !important;
  border-color: var(--erdu-primary) !important;
}
.erdu-categories-grid {
  display: grid;
  grid-template-columns: repeat(var(--cat-count, 6), minmax(0, auto));
  justify-content: start;
  gap: 30px;
}

.category-grid-item {
  position: relative;
}

.category-grid-item .wd-cat-inner {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-grid-item:hover .wd-cat-inner {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #fed7aa;
}

.category-grid-item .wd-cat-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f9fafb;
  width: var(--cat-image-size, 168px);
  height: var(--cat-image-size, 168px);
  border-radius: 0.5rem;
}

.category-grid-item .wd-cat-thumb .wd-cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 2;
}

.category-grid-item .wd-cat-thumb .wd-cat-overlay-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.125rem;
  line-height: 1.3;
}

.category-grid-item .wd-cat-thumb .wd-cat-overlay-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.category-grid-item .wd-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-grid-item:hover .wd-cat-thumb img {
  transform: scale(1.05);
}

.category-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.category-image-placeholder .category-initial {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.category-grid-item .wd-cat-content {
  display: none;
}

.category-grid-item .wd-entities-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.category-grid-item:hover .wd-entities-title {
  color: var(--erdu-primary, #F37021);
}

.category-grid-item .wd-cat-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.category-grid-item .wd-cat-count a {
  color: inherit;
  text-decoration: none;
}

.category-grid-item .wd-cat-count a:hover {
  color: var(--erdu-primary, #F37021);
}

.category-grid-item .wd-fill.category-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Responsive: adjust columns based on count, keep auto-size for left-alignment */
@media (max-width: 1279px) {
  .erdu-categories-grid {
    grid-template-columns: repeat(min(var(--cat-count, 6), 4), minmax(0, auto));
    gap: 20px;
  }
}

@media (max-width: 1023px) {
  .erdu-categories-grid {
    grid-template-columns: repeat(min(var(--cat-count, 6), 3), minmax(0, auto));
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .erdu-categories-grid {
    grid-template-columns: repeat(min(var(--cat-count, 6), 2), minmax(0, auto));
    gap: 12px;
  }
  
  .category-grid-item .wd-cat-content {
    padding: 0.75rem;
  }
  
  .category-grid-item .wd-entities-title {
    font-size: 0.875rem;
  }
  
  .category-grid-item .wd-cat-count {
    font-size: 0.75rem;
  }
  
  .category-image-placeholder .category-initial {
    font-size: 2rem;
  }
  
  .erdu-hero-height-compact {
    min-height: 30vh;
  }
  
  .erdu-hero-height-small {
    min-height: 30vh;
  }
  
  .erdu-hero-height-medium {
    min-height: 45vh;
  }
  
  .erdu-hero-height-large {
    min-height: 60vh;
  }
  
  .erdu-hero-height-full {
    min-height: 80vh;
  }
}

/* ===== AJAX Search Suggestions Panel ===== */
.erdu-search-suggest {
  max-height: 60vh;
  overflow-y: auto;
}

.erdu-search-suggest-group {
  border-bottom: 1px solid #f3f4f6;
}

.erdu-search-suggest-group:last-child {
  border-bottom: none;
}

.erdu-search-suggest-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: #f9fafb;
}

.erdu-search-suggest-group-icon {
  font-size: 0.875rem;
}

.erdu-search-suggest-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

.erdu-search-suggest-item:hover {
  background-color: #f9fafb;
}

.erdu-search-suggest-item-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
}

.erdu-search-suggest-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.erdu-search-suggest-item-text {
  flex: 1;
  min-width: 0;
}

.erdu-search-suggest-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erdu-search-suggest-item-excerpt {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erdu-search-suggest-item-arrow {
  width: 1rem;
  height: 1rem;
  color: #d1d5db;
  flex-shrink: 0;
}

.erdu-search-suggest-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--erdu-primary, #F37021);
  text-decoration: none;
  border-top: 1px solid #f3f4f6;
  transition: background-color 0.15s;
}

.erdu-search-suggest-view-all:hover {
  background-color: #fff7ed;
}

.erdu-search-suggest-loading {
  color: #9ca3af;
  font-style: italic;
}

.erdu-search-suggest-empty {
  color: #9ca3af;
}

/* ===== Header Search Link (icon + "Search" text) ===== */
.erdu-search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  padding: 2px 0;
}

.erdu-search-link:hover {
  color: var(--erdu-primary, #F37021);
}

.erdu-search-link .erdu-search-icon {
  flex-shrink: 0;
}

.erdu-search-link .erdu-search-link-text {
  line-height: 1;
}

/* Transparent header: force white search link */
.erdu-header.erdu-header-transparent .erdu-search-link,
.erdu-header[data-transparent="true"] .erdu-search-link {
  color: #ffffff;
}

.erdu-header.erdu-header-transparent .erdu-search-link:hover,
.erdu-header[data-transparent="true"] .erdu-search-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* ===== Popup Search Panel ===== */
.erdu-search-popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
  background: rgba(0, 0, 0, 0);
  transition-property: opacity, visibility, background;
}

.erdu-search-popup.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.25);
}

.erdu-search-popup .rounded-2xl {
  border-radius: 20px;
}

.erdu-search-popup-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .erdu-search-popup-inner {
    padding: 0 1.5rem;
  }
}

.erdu-search-popup-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 7px 8px 0 rgba(152, 162, 179, 0.15);
  overflow: visible;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.erdu-search-popup.is-active .erdu-search-popup-card {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 7px 8px 0 rgba(152, 162, 179, 0.15);
}

/* Popup input row */
.erdu-search-popup-input-row {
  padding: 32px 80px;
}

@media (max-width: 767px) {
  .erdu-search-popup-input-row {
    padding: 1rem;
  }
}

.erdu-search-popup-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 4px 4px 4px 12px;
  background: rgba(152, 162, 179, 0.15);
  border-radius: 12px;
}

/* Scope selector */
.erdu-search-popup-scope {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.erdu-search-popup-scope-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 28px 0 12px;
  height: 36px;
  font-size: 14px;
  color: #1c1c1c;
  background: #ffffff;
  border: 1px solid rgba(152, 162, 179, 0.3);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.erdu-search-popup-scope-select:focus {
  border-color: var(--erdu-primary, #F37021);
}

.erdu-search-popup-scope-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Popup input */
.erdu-search-popup-input {
  flex: 1;
  height: 40px;
  font-size: 16px; /* 16px prevents iOS/Android auto-zoom on focus */
  color: #1c1c1c;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  min-width: 0;
}

.erdu-search-popup-input::placeholder {
  color: #9ca3af;
}

/* Popup submit button */
.erdu-search-popup-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 40px;
  background: var(--erdu-primary, #F37021);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.erdu-search-popup-submit:hover {
  background: var(--erdu-primary-hover, #E05D10);
}

/* ===== Popup Suggestions (modern clean style) ===== */
.erdu-search-popup-suggestions {
  border-top: 1px solid #e5e7eb;
}

.erdu-search-popup-suggestions-inner {
  padding: 20px 80px;
}

@media (max-width: 767px) {
  .erdu-search-popup-suggestions-inner {
    padding: 1rem;
  }
}

/* ===== Search Suggestions Two-Column Grid ===== */
.erdu-search-suggestions-grid {
  display: block;
}

.erdu-search-suggestions-grid.erdu-search-suggestions-has-products {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}

@media (max-width: 767px) {
  .erdu-search-suggestions-grid.erdu-search-suggestions-has-products {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.erdu-search-suggestions-left {
  min-width: 0;
}

.erdu-search-suggestions-right {
  min-width: 0;
  padding-left: 2rem;
  border-left: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
  .erdu-search-suggestions-right {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

/* ===== Promoted Products in Search ===== */
.erdu-search-promoted-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.erdu-search-promoted-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.erdu-search-promoted-product:hover {
  background-color: #f3f4f6;
}

.erdu-search-promoted-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.erdu-search-promoted-thumb-placeholder {
  background: #e5e7eb;
}

.erdu-search-promoted-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.erdu-search-promoted-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erdu-search-promoted-sku {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== Search History / Promoted Chips ===== */
.erdu-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border: none;
  border-radius: 9999px;
  color: #4b5563;
  background: #f3f4f6;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.erdu-search-chip svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  color: var(--erdu-primary, #F37021);
  transition: color 0.2s;
}

.erdu-search-chip:hover {
  color: #ffffff;
  background: var(--erdu-primary, #F37021);
}

.erdu-search-chip:hover svg {
  color: #ffffff;
}

/* Clear history button */
.erdu-search-clear-history {
  font-size: 0.75rem;
  color: #9ca3af;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.erdu-search-clear-history:hover {
  color: var(--erdu-primary, #F37021);
}

/* Section title with theme color */
.erdu-search-section-title {
  color: var(--erdu-primary, #F37021) !important;
}

/* ===== Popup AJAX Suggest Panel (inside card) ===== */
.erdu-search-popup-card .erdu-search-suggest {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.erdu-search-popup-card .erdu-search-suggest-group-header {
  background: #f9fafb;
}

.erdu-search-popup-card .erdu-search-suggest-item:hover {
  background-color: #f3f4f6;
}

/* ===== Shadow utilities ===== */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== Search Results Page ===== */
.erdu-search-results-hero {
  padding: 2.5rem 0 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.erdu-search-results-hero-title {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.erdu-search-results-hero-title strong {
  color: #1f2937;
}

.erdu-search-results-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 4px 4px 4px 12px;
  background: rgba(152, 162, 179, 0.15);
  border-radius: 12px;
}

.erdu-search-results-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: #1f2937;
  padding: 0.5rem 0;
  min-width: 0;
}

.erdu-search-results-input::placeholder {
  color: #9ca3af;
}

.erdu-search-results-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--erdu-primary, #F37021);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.erdu-search-results-submit:hover {
  background: var(--erdu-primary-hover, #E05D10);
}

.erdu-search-results {
  padding: 3rem 0 4rem;
}

.erdu-search-results .erdu-search-suggest-group {
  margin-bottom: 2rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
}

.erdu-search-results .erdu-search-suggest-group-header {
  padding: 1rem 1.25rem 0.75rem;
  font-size: 0.875rem;
}

.erdu-search-results .erdu-search-suggest-item {
  border-bottom: 1px solid #f9fafb;
}

.erdu-search-results .erdu-search-suggest-item:last-child {
  border-bottom: none;
}

.erdu-search-results .erdu-search-suggest-item-inner {
  padding: 0.75rem 1.25rem;
}

.erdu-search-results .erdu-search-suggest-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.erdu-search-results-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.erdu-search-results-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: #d1d5db;
}

.erdu-search-results-empty p {
  color: #9ca3af;
  font-size: 1.0625rem;
}

.erdu-search-results-empty strong {
  color: #6b7280;
}

/* Placeholder for results thumb */
.erdu-search-suggest-thumb-placeholder {
  background: #f3f4f6;
}

/* Shop sidebar Tags widget: hide on mobile, show on tablet+ */
.shop-widget .wp-block-categories-taxonomy-post_tag,
.shop-widget h3:has(+ .wp-block-categories-taxonomy-post_tag) {
  display: none;
}
@media (min-width: 768px) {
  .shop-widget .wp-block-categories-taxonomy-post_tag,
  .shop-widget h3:has(+ .wp-block-categories-taxonomy-post_tag) {
    display: block;
  }
}
