/* Layout */
.eb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.eb-section-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.eb-subtitle {
  color: #64748b;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 16px;
}

/* Hero Slider */
.eb-hero {
  position: relative;
  overflow: hidden;
  /* background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); */
}

.eb-hero-inner {
  position: relative;
  /* height: 400px ; */
}

.eb-slides {
  display: flex;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.eb-slide {
  flex: 0 0 100%;
  aspect-ratio: 16/6;
  position: relative;
}

.eb-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eb-hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  /* height: 250px !important; */
}

.eb-hero-btn {
  pointer-events: all;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(4px);
}

.eb-hero-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.eb-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(2, 6, 23, 0.4);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.eb-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  opacity: 0.6;
}

.eb-hero-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Category Carousel */
.eb-cats-wrap {
  position: relative;
  margin-top: 20px;
  padding: 25px 0;
}

.eb-cats {
  display: grid;
  grid-auto-flow: column;
  /* grid-column: 1fr; */
  grid-auto-columns: 200px;
  gap: 30px;
  overflow-x: hidden;
  /* scroll-snap-type: x mandatory; */
  padding: 8px 4px 8px 4px;
}

.eb-cat {
  scroll-snap-align: start;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* padding: 20px; */
}

.eb-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.eb-cat-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f8fafc;
}

.eb-cat-body {
  padding: 10px 12px;
}

.eb-cat-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.eb-cat-count {
  color: #64748b;
  font-size: 12px;
}

.eb-cats-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.1);
  color: #000;
}

.eb-cats-btn--prev {
  left: -8px;
}

.eb-cats-btn--next {
  right: -8px;
}

/* Product Grid */
.eb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .eb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .eb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-slide {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .eb-grid {
    grid-template-columns: 1fr;
  }
}

.eb-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

.eb-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #f8fafc;
}

.eb-card-body {
  padding: 12px;
}

.eb-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.eb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eb-price {
  font-weight: 700;
  color: #0ea5e9;
  font-size: 16px;
}

.eb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0ea5e9;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.eb-btn:hover {
  background: #0284c7;
}
/* product card */

.eb-product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eb-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.eb-product-img-wrapper {
  position: relative;
  overflow: hidden;
}
.eb-product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: #f3f4f6;
}
.eb-product-card:hover .eb-product-card-img {
  transform: scale(1.06);
}
.eb-product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.eb-product-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.eb-product-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eb-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 14px;
}
.eb-add-to-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}
.eb-add-to-cart:hover {
  background: linear-gradient(90deg, #6366f1 0%, #2563eb 100%);
}
.eb-add-to-cart svg {
  width: 16px;
  height: 16px;
}

/* category and brand pages style */

.eb-archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.eb-archive-sub {
  color: #64748b;
  margin: 0 0 12px;
}
.eb-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .eb-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .eb-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.eb-card-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}
.eb-card-link:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.eb-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
}
.eb-card-body {
  padding: 12px;
}
.eb-card-name {
  font-weight: 600;
  color: #111;
}
.eb-card-count {
  color: #64748b;
  font-size: 0.9em;
  margin-top: 4px;
}
.eb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.eb-pagination .page-numbers {
  display: inline-block;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.eb-pagination .page-numbers:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.eb-pagination .current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}
.eb-pagination .prev,
.eb-pagination .next {
  background: #f9fafb;
}



/* 404 page styles */
.eb-404{min-height:60vh;background:var(--eb-color-bg);} 
.eb-404-card{border:1px solid var(--eb-color-border);} 
.eb-404-code{width:96px;height:96px;line-height:96px;border-radius:20px;background:rgba(37,99,235,0.08);color:var(--eb-color-primary);font-weight:700;font-size:34px;}

/* Tweak default recent posts widget inside 404 card */
.eb-404 .widget_recent_entries{margin:0;}
.eb-404 .widgettitle{font-size:1rem;margin-bottom:.5rem;}
.eb-404 ul{list-style:none;padding-left:0;margin-bottom:0;}
.eb-404 ul li+li{margin-top:.25rem;}


/* Page template styling */
.eb-page{background:var(--eb-color-bg)}
.eb-page-card{border:none;box-shadow:none}
.eb-page .entry-content > *:first-child{margin-top:0}
.eb-page .entry-content > *:last-child{margin-bottom:0}
/* Make short content feel balanced with generous padding and min height */
.eb-page .eb-page-card{min-height:40vh}
/* Typography refinements */
.eb-page .entry-content p{line-height:1.7}
.eb-page .entry-content img{max-width:100%;height:auto;border-radius:12px}
.eb-page .entry-content .wp-block-image img{border-radius:12px}
/* Buttons and links inside pages inherit theme tokens */
.eb-page .entry-content a{color:var(--eb-color-link)}
.eb-page .entry-content a:hover{color:var(--eb-color-link-hover)}


/* Search page */
.eb-search-page .border{border-color:var(--eb-color-border)!important}
.eb-search-empty{border:1px solid var(--eb-color-border)}
.eb-section-title .eb-count{font-weight:600}
.eb-search-list{display:flex;flex-direction:column;gap:10px}
.eb-search-item{border:1px solid var(--eb-color-border);border-radius:12px;padding:12px 14px;background:var(--eb-color-surface)}
.eb-search-item:hover{filter:brightness(.99)}
.eb-search-item .eb-thumb{width:56px;height:56px}
.eb-search-item .eb-thumb-img{width:56px;height:56px;object-fit:cover;border-radius:50%}
.eb-thumb-placeholder{width:56px;height:56px;border-radius:50%}

/* Trust badges */
.eb-trust{margin-top:12px;margin-bottom:32px}
.eb-trust-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width: 768px){.eb-trust-wrap{grid-template-columns:1fr}}
.eb-trust-item{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px 18px;box-shadow:0 6px 14px rgba(0,0,0,.06)}
.eb-trust-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:999px;background:#eef2ff;color:#374151}
.eb-trust-icon svg{width:28px;height:28px}
.eb-trust-title{font-weight:700;color:#111827;font-size:1.125rem}
.eb-trust-sub{font-size:14px}
.eb-ellipsis-2{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}


/* Single post styles */
.eb-single .eb-post-header .eb-dot{opacity:.5}
.eb-single .eb-featured img{display:block}
.eb-single .eb-post-content > *:first-child{margin-top:0}
.eb-single .eb-post-content > *:last-child{margin-bottom:0}
.eb-single .eb-post-content p{line-height:1.75}
.eb-single .eb-post-tags a{display:inline-block;margin-right:.375rem;margin-bottom:.375rem;padding:.25rem .5rem;border:1px solid var(--eb-color-border);border-radius:999px;color:inherit;text-decoration:none}
.eb-single .eb-post-tags a:hover{background:var(--eb-color-surface)}
.eb-post-nav .eb-prev a, .eb-post-nav .eb-next a{text-decoration:none}

/* Sidebar */
.eb-sidebar .widget{background:var(--eb-color-surface);border:1px solid var(--eb-color-border);border-radius:12px;padding:16px;margin-bottom:14px}
.eb-sidebar .widget-title{margin:0 0 10px;font-weight:600}
.eb-sidebar .menu, .eb-sidebar ul{list-style:none;padding-left:0;margin:0}
.eb-sidebar li + li{margin-top:6px}
.eb-sidebar a{text-decoration:none}