/* ============================================================
   EliBuilder Storefront CSS
   Standalone — no Tailwind dependency.
   Used by rendered builder pages on the storefront.
   ============================================================ */

/* ─── CSS Custom Properties (overridable by global styles) ─── */
:root {
  --eb-color-primary:    #4f46e5;
  --eb-color-secondary:  #6b7280;
  --eb-color-accent:     #f59e0b;
  --eb-color-bg:         #ffffff;
  --eb-color-surface:    #f9fafb;
  --eb-color-border:     #e5e7eb;
  --eb-color-text:       #111827;
  --eb-color-text-muted: #6b7280;

  --eb-font-body:        system-ui, -apple-system, sans-serif;
  --eb-font-heading:     system-ui, -apple-system, sans-serif;
  --eb-font-size-base:   16px;
  --eb-line-height-base: 1.6;

  --eb-btn-radius:       6px;
  --eb-btn-weight:       600;
  --eb-btn-padding:      10px 20px;

  --eb-container-max:    1280px;
  --eb-container-pad:    0 20px;
}

/* ─── Reset / Base ─── */
.eb-preview-body,
.eb-section,
.eb-column,
.eb-widget {
  box-sizing: border-box;
}

/* ─── Layout: Section ─── */
.eb-section {
  width: 100%;
  position: relative;
}

.eb-section--full .eb-container {
  max-width: 100%;
  padding: 0;
}

/* ─── Layout: Container ─── */
.eb-container {
  max-width: var(--eb-container-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--eb-container-pad);
}

/* ─── Layout: Columns ─── */
.eb-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Column widths — 12-grid system */
.eb-column { flex-shrink: 0; min-width: 0; }

.eb-col-1  { width: calc(8.333% - 22px); flex: 0 0 calc(8.333% - 22px); }
.eb-col-2  { width: calc(16.667% - 20px); flex: 0 0 calc(16.667% - 20px); }
.eb-col-3  { width: calc(25% - 18px); flex: 0 0 calc(25% - 18px); }
.eb-col-4  { width: calc(33.333% - 16px); flex: 0 0 calc(33.333% - 16px); }
.eb-col-5  { width: calc(41.667% - 14px); flex: 0 0 calc(41.667% - 14px); }
.eb-col-6  { width: calc(50% - 12px); flex: 0 0 calc(50% - 12px); }
.eb-col-7  { width: calc(58.333% - 10px); flex: 0 0 calc(58.333% - 10px); }
.eb-col-8  { width: calc(66.667% - 8px); flex: 0 0 calc(66.667% - 8px); }
.eb-col-9  { width: calc(75% - 6px); flex: 0 0 calc(75% - 6px); }
.eb-col-10 { width: calc(83.333% - 4px); flex: 0 0 calc(83.333% - 4px); }
.eb-col-11 { width: calc(91.667% - 2px); flex: 0 0 calc(91.667% - 2px); }
.eb-col-12 { width: 100%; flex: 0 0 100%; }

/* ─── Widget Base ─── */
.eb-widget {
  width: 100%;
}

/* ─── Heading Widget ─── */
.eb-heading {
  font-family: var(--eb-font-heading);
  /* color: inherit — so a user-set color on the widget wrapper
     (#eb-wid-xxx { color: ... }) cascades down to the heading.
     Previously `color: var(--eb-color-text)` directly matched the
     element and beat inherited values, breaking user overrides. */
  color: inherit;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1.eb-heading { font-size: 2.25rem; }
h2.eb-heading { font-size: 1.875rem; }
h3.eb-heading { font-size: 1.5rem; }
h4.eb-heading { font-size: 1.25rem; }
h5.eb-heading { font-size: 1.125rem; }
h6.eb-heading { font-size: 1rem; }

/* ─── Text Widget ─── */
.eb-text {
  font-family: var(--eb-font-body);
  font-size: var(--eb-font-size-base);
  line-height: var(--eb-line-height-base);
  /* color: inherit — user overrides on widget wrapper cascade correctly */
  color: inherit;
}
.eb-text p { margin: 0 0 1em; }
.eb-text p:last-child { margin-bottom: 0; }
.eb-text a { color: var(--eb-color-primary); }
.eb-text ul, .eb-text ol { padding-left: 1.5em; margin: 0 0 1em; }

/* ─── Image Widget ─── */
.eb-image { overflow: hidden; }
.eb-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.eb-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eb-color-surface);
  color: var(--eb-color-text-muted);
  padding: 40px;
  border: 2px dashed var(--eb-color-border);
  border-radius: 8px;
}

/* ─── Button Widget ─── */
.eb-button-wrap { display: block; }

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--eb-btn-padding);
  font-weight: var(--eb-btn-weight);
  font-family: var(--eb-font-body);
  border-radius: var(--eb-btn-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.eb-btn--primary {
  background: var(--eb-color-primary);
  color: #fff;
  border-color: var(--eb-color-primary);
}
.eb-btn--primary:hover {
  filter: brightness(1.1);
}

.eb-btn--secondary {
  background: var(--eb-color-secondary);
  color: #fff;
  border-color: var(--eb-color-secondary);
}
.eb-btn--secondary:hover { filter: brightness(1.1); }

.eb-btn--outline {
  background: transparent;
  color: var(--eb-color-primary);
  border-color: var(--eb-color-primary);
}
.eb-btn--outline:hover {
  background: var(--eb-color-primary);
  color: #fff;
}

.eb-btn--ghost {
  background: transparent;
  color: var(--eb-color-text);
  border-color: var(--eb-color-border);
}
.eb-btn--ghost:hover { background: var(--eb-color-surface); }

.eb-btn--sm { padding: 6px 14px; font-size: 0.875rem; }
.eb-btn--md { padding: var(--eb-btn-padding); font-size: 1rem; }
.eb-btn--lg { padding: 14px 28px; font-size: 1.125rem; }

/* ─── Divider Widget ─── */
.eb-divider { padding: 8px 0; }
.eb-divider hr { margin: 0; }

/* ─── Spacer Widget ─── */
.eb-spacer { display: block; }

/* ─── Accordion Widget ─── */
.eb-accordion { border: 1px solid var(--eb-color-border); border-radius: 8px; overflow: hidden; }
.eb-accordion__item + .eb-accordion__item { border-top: 1px solid var(--eb-color-border); }
.eb-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--eb-color-text);
  cursor: pointer;
  transition: background 0.15s;
}
.eb-accordion__header:hover { background: var(--eb-color-surface); }
.eb-accordion__icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.eb-accordion__header[aria-expanded="true"] .eb-accordion__icon {
  transform: rotate(180deg);
}
.eb-accordion__panel {
  display: none;
  overflow: hidden;
}
.eb-accordion__panel--open { display: block; }
.eb-accordion__body { padding: 0 20px 20px; }

/* ─── Tabs Widget ─── */
.eb-tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--eb-color-border);
  gap: 0;
  overflow-x: auto;
}
.eb-tabs__tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--eb-color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.eb-tabs__tab:hover { color: var(--eb-color-primary); }
.eb-tabs__tab--active {
  color: var(--eb-color-primary);
  border-bottom-color: var(--eb-color-primary);
}
.eb-tabs__panel { padding: 20px 0; }
.eb-tabs__panel.hidden { display: none; }

/* ─── Icon Box Widget ─── */
.eb-icon-box__title { font-family: var(--eb-font-heading); }
.eb-icon-box__text { color: var(--eb-color-text-muted); }

/* ─── Image Gallery Widget ─── */
.eb-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.eb-image-gallery--empty {
  text-align: center;
  padding: 24px;
  color: var(--eb-color-text-muted);
}

/* ─── Alert Widget ─── */
.eb-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  font-size: 0.9rem;
}
.eb-alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.eb-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.eb-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.eb-alert--danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eb-alert__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
}
.eb-alert__close:hover { opacity: 1; }

/* ─── Product Card ─── */
.eb-product-card {
  border: 1px solid var(--eb-color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--eb-color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.eb-product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.eb-product-card__link { text-decoration: none; color: inherit; display: block; }
.eb-product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--eb-color-surface);
}
.eb-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.eb-product-card:hover .eb-product-card__img { transform: scale(1.04); }
.eb-product-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--eb-color-surface);
}
.eb-product-card__body { padding: 14px; }
.eb-product-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eb-color-text);
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eb-product-card__price { display: flex; align-items: center; gap: 8px; }
.eb-product-card__current {
  font-weight: 700;
  font-size: 1rem;
  color: var(--eb-color-text);
}
.eb-product-card__compare {
  text-decoration: line-through;
  font-size: 0.8rem;
  color: var(--eb-color-text-muted);
}
.eb-product-card__cart-form { padding: 0 14px 14px; }
.eb-product-card__cart-form .eb-btn { width: 100%; }

.eb-product-grid--empty,
.eb-product-carousel--empty,
.eb-category-grid--empty {
  text-align: center;
  padding: 40px;
  background: var(--eb-color-surface);
  border: 2px dashed var(--eb-color-border);
  border-radius: 8px;
  color: var(--eb-color-text-muted);
}

/* ─── Product Carousel ─── */
.eb-product-carousel {
  position: relative;
  overflow: hidden;
}
.eb-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.eb-carousel__track::-webkit-scrollbar { display: none; }
.eb-carousel__slide {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
}
.eb-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--eb-color-border);
  background: var(--eb-color-bg);
  color: var(--eb-color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.eb-carousel__btn:hover { background: var(--eb-color-primary); color: #fff; border-color: var(--eb-color-primary); }
.eb-carousel__btn--prev { left: 4px; }
.eb-carousel__btn--next { right: 4px; }

/* ─── Category Grid ─── */
.eb-category-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--eb-color-border);
  background: var(--eb-color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.eb-category-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.eb-category-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--eb-color-surface); }
.eb-category-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-category-card__placeholder { width: 100%; height: 100%; background: var(--eb-color-surface); }
.eb-category-card__name {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--eb-color-text);
  font-size: 0.9rem;
}

/* ─── Add to Cart Widget ─── */
.eb-add-to-cart { padding: 20px; background: var(--eb-color-surface); border-radius: 8px; }
.eb-add-to-cart__name { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.eb-add-to-cart__price { font-size: 1.3rem; font-weight: 700; color: var(--eb-color-primary); margin: 0 0 16px; }
.eb-add-to-cart__form { display: flex; gap: 10px; align-items: center; }
.eb-qty-input {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--eb-color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}
.eb-add-to-cart--empty,
.eb-add-to-cart--missing {
  text-align: center;
  padding: 24px;
  color: var(--eb-color-text-muted);
}

/* ─── Search Bar ─── */
.eb-search-bar { width: 100%; }
.eb-search-bar__form {
  display: flex;
  align-items: center;
  border: 1px solid var(--eb-color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--eb-color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.eb-search-bar__form:focus-within {
  border-color: var(--eb-color-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.eb-search-bar__input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--eb-color-text);
  background: transparent;
}
.eb-search-bar__btn {
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--eb-color-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.eb-search-bar__btn:hover { color: var(--eb-color-primary); }

/* ─── Nav Menu ─── */
.eb-nav__list { list-style: none; margin: 0; padding: 0; }
.eb-nav--horizontal .eb-nav__list { display: flex; flex-wrap: wrap; gap: 4px; }
.eb-nav--vertical .eb-nav__list { display: flex; flex-direction: column; gap: 2px; }
.eb-nav__link {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--eb-color-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.eb-nav__link:hover { color: var(--eb-color-primary); background: rgba(79,70,229,0.07); }

/* ─── Shopping Cart Widget ─── */
.eb-cart-widget__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--eb-color-text);
  font-weight: 500;
  transition: color 0.15s;
}
.eb-cart-widget__link:hover { color: var(--eb-color-primary); }

/* ─── Inner Section ─── */
.eb-inner-section { width: 100%; }

/* ─── Video Widget ─── */
.eb-video { position: relative; overflow: hidden; border-radius: 8px; }
.eb-video iframe, .eb-video video { border: 0; }
.eb-video--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--eb-color-surface);
  border: 2px dashed var(--eb-color-border);
  border-radius: 8px;
  color: var(--eb-color-text-muted);
}

/* ─── Icon Widget ─── */
.eb-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eb-icon__link { text-decoration: none; color: inherit; }
.eb-icon__i { line-height: 1; }

/* ─── Google Maps Widget ─── */
.eb-map { overflow: hidden; border-radius: 8px; }
.eb-map iframe { border: 0; }
.eb-map--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--eb-color-surface);
  border: 2px dashed var(--eb-color-border);
  border-radius: 8px;
  color: var(--eb-color-text-muted);
}

/* ─── Image Caption ─── */
.eb-image__caption {
  font-size: 0.85rem;
  color: var(--eb-color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ─── Button Full Width ─── */
.eb-btn--full { width: 100%; }
.eb-btn--danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.eb-btn--danger:hover { filter: brightness(1.1); }
.eb-btn--xl { padding: 16px 36px; font-size: 1.25rem; }

/* ─── Utility classes ─── */
.hidden { display: none !important; }
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ─── Responsive Hide Classes ─── */
@media (min-width: 1025px) {
  .eb-hide-desktop { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .eb-hide-tablet { display: none !important; }
}
@media (max-width: 768px) {
  .eb-hide-mobile { display: none !important; }
}

/* ─── Entrance Animations ─── */
[data-eb-animation] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-out;
}
[data-eb-animation].eb-animated { opacity: 1; transform: none; }

[data-eb-animation="fadeIn"] { }
[data-eb-animation="fadeInUp"] { transform: translateY(30px); }
[data-eb-animation="fadeInDown"] { transform: translateY(-30px); }
[data-eb-animation="fadeInLeft"] { transform: translateX(-30px); }
[data-eb-animation="fadeInRight"] { transform: translateX(30px); }
[data-eb-animation="zoomIn"] { transform: scale(0.8); }
[data-eb-animation="slideInUp"] { transform: translateY(100%); }
[data-eb-animation="slideInDown"] { transform: translateY(-100%); }
[data-eb-animation="bounceIn"] { transform: scale(0.3); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .eb-columns { gap: 16px; }
  .eb-col-1, .eb-col-2, .eb-col-3, .eb-col-4 { width: calc(50% - 8px); flex-basis: calc(50% - 8px); }
  .eb-carousel__slide { flex: 0 0 calc(50% - 10px); }
}

/* ─── Image Box Widget ─── */
.eb-image-box { display: flex; flex-direction: column; }
.eb-image-box--left, .eb-image-box--right { flex-direction: row; gap: 20px; align-items: flex-start; }
.eb-image-box--right { flex-direction: row-reverse; }
.eb-image-box__img img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.eb-image-box__title { font-family: var(--eb-font-heading); margin: 0 0 8px; }
.eb-image-box__desc { color: var(--eb-color-text-muted); margin: 0; line-height: 1.6; }
.eb-image-box__link { text-decoration: none; color: inherit; display: flex; flex-direction: inherit; gap: inherit; }

/* ─── Icon List Widget ─── */
.eb-icon-list { list-style: none; margin: 0; padding: 0; }
.eb-icon-list__item { display: flex; align-items: center; }
.eb-icon-list__icon { flex-shrink: 0; margin-right: 10px; }
.eb-icon-list__text { line-height: 1.5; }
.eb-icon-list__link { display: flex; align-items: center; text-decoration: none; color: inherit; }
.eb-icon-list__link:hover { color: var(--eb-color-primary); }

/* ─── Testimonial Widget ─── */
.eb-testimonial { }
.eb-testimonial__text {
  font-style: italic; margin: 0 0 16px; padding: 0; border: 0;
  line-height: 1.6; font-size: 1.05rem; color: var(--eb-color-text);
}
.eb-testimonial__footer { display: flex; align-items: center; gap: 12px; }
.eb-testimonial--top .eb-testimonial__footer { flex-direction: column; }
.eb-testimonial__avatar { flex-shrink: 0; }
.eb-testimonial__img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
}
.eb-testimonial__name { font-weight: 600; font-style: normal; display: block; }
.eb-testimonial__job { font-size: 0.85rem; color: var(--eb-color-text-muted); display: block; }

/* ─── Progress Bar Widget ─── */
.eb-progress { }
.eb-progress__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-weight: 500; font-size: 0.9rem;
}
.eb-progress__pct { font-weight: 700; }
.eb-progress__inner { font-size: 0.75rem; color: #fff; white-space: nowrap; }

/* ─── Counter Widget ─── */
.eb-counter { }
.eb-counter__number { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.eb-counter__title { margin-top: 4px; font-size: 0.9rem; color: var(--eb-color-text-muted); }

/* ─── Countdown Timer Widget ─── */
.eb-countdown__expired { font-size: 1.1rem; font-weight: 600; }

/* ─── Menu Anchor Widget ─── */
.eb-menu-anchor { height: 0; overflow: hidden; visibility: hidden; }

/* ─── Animated Headline Widget ─── */
.eb-animated-headline { margin: 0; }
.eb-animated-headline__rotating {
  display: inline-block; transition: opacity 0.3s ease;
}
.eb-animated-headline__rotating--out {
  opacity: 0; transform: translateY(-10px);
}
.eb-animated-headline__rotating--in {
  animation: ebRotateIn 0.4s ease;
}
@keyframes ebRotateIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Carousel Dots ─── */
.eb-carousel__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}
.eb-carousel__dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--eb-color-border); cursor: pointer; transition: background 0.2s;
}
.eb-carousel__dot--active { background: var(--eb-color-primary); }

/* ─── Hero Slider Widget ─── */
.eb-slider--empty {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px; background: var(--eb-color-surface);
  border: 2px dashed var(--eb-color-border); border-radius: 8px;
  color: var(--eb-color-text-muted);
}

/* ─── Gallery Caption ─── */
.eb-gallery__caption {
  font-size: 0.8rem; color: var(--eb-color-text-muted);
  text-align: center; padding: 6px 0;
}

/* ─── Form Widget ─── */
.eb-form__label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 4px; color: var(--eb-color-text);
}
.eb-form__required { color: #ef4444; }
.eb-form__input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--eb-color-border);
  border-radius: 6px; font-size: 0.95rem; color: var(--eb-color-text);
  background: var(--eb-color-bg); outline: none; transition: border-color 0.15s;
}
.eb-form__input:focus { border-color: var(--eb-color-primary); }
.eb-form__textarea { resize: vertical; min-height: 80px; }
.eb-form__select { cursor: pointer; }
.eb-form__options { display: flex; flex-direction: column; gap: 6px; }
.eb-form__option { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.eb-form__success {
  padding: 16px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; color: #166534; text-align: center;
}
.eb-html--empty { color: var(--eb-color-text-muted); text-align: center; padding: 24px; }

/* ─── Newsletter Widget ─── */
.eb-newsletter--below .eb-newsletter__inner { display: flex; flex-direction: column; }

/* ─── Call to Action Widget ─── */
.eb-cta__title { margin: 0 0 10px; font-family: var(--eb-font-heading); }
.eb-cta__desc { margin: 0 0 20px; color: var(--eb-color-text-muted); max-width: 600px; }

/* ─── Price Table Widget ─── */
.eb-price-table { transition: transform 0.2s, box-shadow 0.2s; }
.eb-price-table:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* ─── Customer Widgets ─── */
.eb-login-form, .eb-registration-form, .eb-password-recovery { max-width: 420px; }
.eb-login-form__extras { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 0.85rem; }
.eb-login-form__forgot { color: var(--eb-color-primary); text-decoration: none; }
.eb-login-form__forgot:hover { text-decoration: underline; }

.eb-account-nav__list { list-style: none; margin: 0; padding: 0; }
.eb-account-nav--vertical .eb-account-nav__list { display: flex; flex-direction: column; gap: 2px; }
.eb-account-nav--horizontal .eb-account-nav__list { display: flex; flex-wrap: wrap; gap: 4px; }
.eb-account-nav__link {
  display: block; padding: 8px 14px; text-decoration: none;
  color: var(--eb-color-text); border-radius: 6px; font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.eb-account-nav__link:hover { background: var(--eb-color-surface); color: var(--eb-color-primary); }

.eb-order-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.eb-order-table th { text-align: left; padding: 10px 12px; font-weight: 600; background: var(--eb-color-surface); border-bottom: 2px solid var(--eb-color-border); }
.eb-order-table td { padding: 10px 12px; border-bottom: 1px solid var(--eb-color-border); }

.eb-address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.eb-address-list { display: flex; flex-direction: column; gap: 12px; }
.eb-address-card { border: 1px solid var(--eb-color-border); border-radius: 8px; padding: 16px; background: var(--eb-color-bg); }
.eb-address-card h5 { margin: 0 0 8px; font-size: 0.95rem; }
.eb-address-card p { margin: 0 0 12px; font-size: 0.85rem; color: var(--eb-color-text-muted); }
.eb-address-card__actions { display: flex; gap: 8px; }
.eb-address-card__actions button { padding: 4px 12px; border: 1px solid var(--eb-color-border); border-radius: 4px; background: transparent; cursor: pointer; font-size: 0.8rem; }

/* ─── Product Price/Title Widget ─── */
.eb-product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.eb-product-price__current { font-weight: 700; font-size: 1.5rem; }
.eb-product-price__old { text-decoration: line-through; color: var(--eb-color-text-muted); font-size: 0.9rem; }
.eb-product-title { margin: 0; font-family: var(--eb-font-heading); }

/* ─── Table Widget ─── */
.eb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Hotspot Widget ─── */
.eb-hotspot--placeholder {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; background: var(--eb-color-surface);
  border: 2px dashed var(--eb-color-border); border-radius: 8px;
  color: var(--eb-color-text-muted);
}

/* ─── Module Widget ─── */
.eb-module--empty {
  text-align: center; padding: 24px; color: var(--eb-color-text-muted);
  background: var(--eb-color-surface); border: 2px dashed var(--eb-color-border); border-radius: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .eb-columns { flex-direction: column; gap: 16px; }
  .eb-col-1, .eb-col-2, .eb-col-3, .eb-col-4,
  .eb-col-5, .eb-col-6, .eb-col-7, .eb-col-8,
  .eb-col-9, .eb-col-10, .eb-col-11 { width: 100%; flex-basis: 100%; }
  .eb-carousel__slide { flex: 0 0 calc(100% - 0px); }
  .eb-product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .eb-category-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .eb-image-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .eb-btn--lg { padding: 12px 20px; font-size: 1rem; }
  .eb-image-box--left, .eb-image-box--right { flex-direction: column; }
  .eb-countdown { flex-wrap: wrap; }
  .eb-form__field--50, .eb-form__field--33 { width: 100% !important; }
  .eb-address-grid { grid-template-columns: 1fr; }
  .eb-newsletter--inline .eb-newsletter__inner { flex-direction: column; }
  .eb-newsletter--inline .eb-newsletter__input { border-radius: 6px !important; }
  .eb-newsletter--inline .eb-newsletter__btn { border-radius: 6px !important; width: 100%; }
  .eb-login-form, .eb-registration-form, .eb-password-recovery { max-width: 100%; }
}
