/* Electrobaz additional styles
 * Structure here stays minimal because most system design lives in style.css
 */

.eb-nav-items {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eb-nav-items a {
  font-size: 0.95rem;
  color: #4b5563;
}

.eb-nav-items a:hover {
  color: var(--eb-primary);
}

.woocommerce div.product .button,
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: var(--eb-radius);
  background-color: var(--eb-primary);
  color: #fff;
  border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--eb-primary-dark);
}

.woocommerce span.onsale {
  border-radius: 999px;
  background: rgba(45, 190, 96, 0.12);
  color: var(--eb-primary);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--eb-radius);
}

/* Simple mobile nav overlay */
.eb-mobile-open .eb-nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  background: #fff;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--eb-border-subtle);
}

/* YouTube / Electrobaz videos section */
.eb-section-youtube .eb-section-desc {
  margin-top: 0.5rem;
  color: var(--eb-text-muted, #6b7280);
  max-width: 42rem;
}

.eb-card-video {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.eb-card-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.eb-card-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--eb-radius, 8px);
  margin: -1rem -1rem 0.75rem -1rem;
  background: var(--eb-border-subtle, #e5e7eb);
}

.eb-card-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eb-card-video-cat {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 4px;
}

.eb-card-video .eb-card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.eb-card-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eb-primary, #2dbe60);
}

.eb-section-robotics-news .eb-section-desc {
  margin-top: 0.5rem;
  color: var(--eb-text-muted, #6b7280);
  max-width: 42rem;
}

.eb-section-note {
  font-size: 0.85rem;
  color: var(--eb-text-muted, #6b7280);
}

/* About Electrobaz channel section */
.eb-section-about-channel .eb-section-desc {
  margin-bottom: 0.75rem;
}

.eb-about-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.eb-about-list li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.eb-about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--eb-primary, #2dbe60);
}

.eb-about-mission {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--eb-border-subtle, #e5e7eb);
}

/* Learning section – শিখুন, বানান, বিক্রি করুন */
.eb-section-learning .eb-section-desc {
  margin-bottom: 1rem;
}

.eb-learning-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.eb-learning-video {
  position: sticky;
  top: 1rem;
}

.eb-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--eb-radius);
  background: #000;
}

.eb-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.eb-learning-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eb-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-left: 2.5rem;
  position: relative;
}

.eb-card-link:hover {
  border-color: var(--eb-primary);
}

.eb-card-link-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.25rem;
  color: var(--eb-primary);
}

.eb-card-pdf {
  border-style: dashed;
}

.eb-card-pdf .eb-btn {
  margin-top: 0.5rem;
}

/* Robotics News – blog style with date & tag */
.eb-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.eb-card-news {
  padding: 0;
  overflow: hidden;
}

.eb-card-news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.eb-card-news-link:hover .eb-news-cta {
  color: var(--eb-primary-dark);
}

.eb-card-news .eb-card-video-thumb {
  margin: 0;
  border-radius: var(--eb-radius) var(--eb-radius) 0 0;
}

.eb-card-news-body {
  padding: 1rem;
}

.eb-news-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--eb-primary);
  color: #fff;
  border-radius: 4px;
}

.eb-news-date {
  display: block;
  font-size: 0.75rem;
  color: var(--eb-text-muted);
  margin-bottom: 0.35rem;
}

.eb-news-cta {
  margin-top: 0.5rem;
  display: inline-block;
}

/* Social proof – stats row */
.eb-section-social-proof {
  background: linear-gradient(135deg, rgba(45, 190, 96, 0.08), rgba(45, 190, 96, 0.03));
}

.eb-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.eb-stat {
  min-width: 120px;
}

.eb-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--eb-primary);
}

.eb-stat-label {
  font-size: 0.85rem;
  color: var(--eb-text-muted);
}

.eb-stat-delivery .eb-stat-label {
  font-size: 0.9rem;
}

/* Review cards – stars */
.eb-review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Become a Seller steps */
.eb-seller-step {
  position: relative;
  padding-top: 2rem;
}

.eb-seller-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Secure checkout badges */
.eb-secure-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.eb-secure-badge {
  padding: 0.5rem 1rem;
  background: rgba(45, 190, 96, 0.1);
  color: var(--eb-primary);
  border-radius: var(--eb-radius);
  font-size: 0.9rem;
  font-weight: 500;
}

/* WhatsApp floating button */
.eb-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.eb-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* In-stock badge (for product loops – WooCommerce) */
.woocommerce .products .product .stock.in-stock {
  color: var(--eb-primary);
  font-weight: 600;
}

/* Trending section */
.eb-section-trending .eb-section-title {
  font-size: 1.35rem;
}

@media (max-width: 960px) {
  .eb-learning-grid {
    grid-template-columns: 1fr;
  }

  .eb-learning-video {
    position: static;
  }
}


