/* Ecommerce Storefront Styles */

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

/* Navbar */
.ecom-navbar {
  background-color: #fff;
  /* border-bottom: 2px solid #3498db; */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ecom-brand {
  color: #3498db !important;
  font-size: 22px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecom-brand-logo {
  height: 35px;
  width: auto;
  vertical-align: middle;
}
.ecom-navbar .navbar-nav > li > a {
  color: #555;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s;
}
.ecom-navbar .navbar-nav > li > a:hover {
  color: #3498db;
}
.ecom-cart-link .badge {
  background-color: #e74c3c;
  margin-left: 4px;
}
.ecom-body-wrapper {
  padding-top: 70px;
  min-height: calc(100vh - 200px);
}

/* Search */
.ecom-search-form {
  position: relative;
}
.ecom-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
}
.ecom-search-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}
.ecom-search-item:hover {
  background-color: #f7f7f7;
  text-decoration: none;
  color: #333;
}
.ecom-search-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}
.ecom-search-item-info {
  flex: 1;
}
.ecom-search-item-info .name {
  font-weight: 600;
  font-size: 14px;
}
.ecom-search-item-info .meta {
  font-size: 12px;
  color: #888;
}
.ecom-search-item-price {
  font-weight: 700;
  color: #3498db;
}

/* Hero Section */
.ecom-hero {
  background: linear-gradient(135deg, #3498db 0%, #3498db 100%);
  color: #fff;
  padding: 80px 0;
  margin-bottom: 40px;
  text-align: center;
}
.ecom-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}
.ecom-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 25px;
}
.ecom-hero .btn {
  font-size: 16px;
  padding: 12px 35px;
  border-radius: 25px;
}

/* Hero Slider */
.ecom-hero-slider { margin-bottom: 0; overflow: hidden; }
.ecom-hero-slider .slick-list { overflow: hidden; }
.ecom-slide {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.ecom-slide .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.slide-content {
  width: 100%;
  padding: 20px 0;
}
.slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.slide-content p {
  font-size: 20px;
  margin-bottom: 25px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  max-width: 700px;
  line-height: 1.5;
}
.slide-content.text-left { text-align: left; }
.slide-content.text-left p { margin-left: 0; margin-right: auto; }
.slide-content.text-center { text-align: center; }
.slide-content.text-center p { margin-left: auto; margin-right: auto; }
.slide-content.text-right { text-align: right; }
.slide-content.text-right p { margin-left: auto; margin-right: 0; }
.ecom-slide-btn {
  font-size: 16px;
  padding: 12px 35px;
  border-radius: 25px;
  background: rgba(255,255,255,0.9);
  color: #3498db;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
}
.ecom-slide-btn:hover {
  background: #fff;
  color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Slick slider arrows */
.ecom-hero-slider .slick-prev,
.ecom-hero-slider .slick-next {
  z-index: 5;
  width: 44px;
  height: 44px;
}
.ecom-hero-slider .slick-prev { left: 20px; }
.ecom-hero-slider .slick-next { right: 20px; }
.ecom-hero-slider .slick-prev:before,
.ecom-hero-slider .slick-next:before {
  font-size: 30px;
  opacity: 0.7;
}
.ecom-hero-slider .slick-dots {
  bottom: 15px;
  z-index: 5;
}
.ecom-hero-slider .slick-dots li button:before {
  font-size: 12px;
  color: #fff;
  opacity: 0.5;
}
.ecom-hero-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}

/* Slider zoom/flip transitions */
@keyframes ecom-zoom-in {
  0% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ecom-zoom-out {
  0% { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes ecom-flip-in {
  0% { transform: perspective(1000px) rotateY(90deg); opacity: 0; }
  100% { transform: perspective(1000px) rotateY(0); opacity: 1; }
}
@keyframes ecom-flip-out {
  0% { opacity: 1; }
  100% { transform: perspective(1000px) rotateY(-90deg); opacity: 0; }
}
.ecom-hero-slider.transition-zoom .slick-slide { transition: opacity 0.6s ease; }
.ecom-hero-slider.transition-zoom .slick-current { animation: ecom-zoom-in 0.8s ease forwards; }
.ecom-hero-slider.transition-flip .slick-slide { transition: opacity 0.6s ease; }
.ecom-hero-slider.transition-flip .slick-current { animation: ecom-flip-in 0.8s ease forwards; }

/* Section Titles */
.ecom-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #3498db;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
}

/* Product Cards */
#products-grid,
.ecom-product-card-row {
  display: flex;
  flex-wrap: wrap;
}
#products-grid > [class*="col-"],
.ecom-product-card-row > [class*="col-"] {
  display: flex;
}
.ecom-product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ecom-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.ecom-product-card .card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecom-product-card .card-img-wrapper img {
  max-width: 100%;
  /*max-height: 100%;*/
  object-fit: contain;
}
.ecom-product-card .card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ecom-product-card .card-body .product-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 5px;
  height: 40px;
  overflow: hidden;
}
.ecom-product-card .card-body .product-name a {
  color: #333;
  text-decoration: none;
}
.ecom-product-card .card-body .product-name a:hover {
  color: #3498db;
}
.ecom-product-card .card-body .product-category {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.ecom-product-card .card-body .product-price {
  font-size: 18px;
  font-weight: 700;
  /*color: #3498db;*/
}
.ecom-product-card .card-body .product-price .old-price {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}
.ecom-product-card .card-body .btn-add-cart {
  margin-top: 10px;
  width: 100%;
  border-radius: 4px;
}
.ecom-product-card .card-body .stock-info {
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}
.ecom-product-card .card-body .stock-info.stock-available {
  color: #27ae60;
}
.ecom-product-card .card-body .stock-info.stock-low {
  color: #e67e22;
}
.ecom-product-card .card-body .out-of-stock {
  margin-top: auto;
  padding-top: 10px;
  color: #e74c3c;
  font-weight: 600;
  text-align: center;
}

/* Category Cards */
.ecom-category-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ecom-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.ecom-category-card i {
  font-size: 36px;
  color: #3498db;
  margin-bottom: 10px;
}
.ecom-category-card h4 {
  font-weight: 600;
  margin-bottom: 5px;
}
.ecom-category-card a {
  color: #333;
  text-decoration: none;
}

/* Cart Page */
.ecom-cart-table {
  color: #2c3e50;
}
.ecom-cart-table th {
  font-weight: 500;
}
.ecom-cart-table .cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.ecom-cart-table .qty-input {
  width: 70px;
  text-align: center;
}
.ecom-cart-summary {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 25px;
  color: #2c3e50;
}
.ecom-cart-summary h3 {
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}
.ecom-cart-summary .total-row {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  padding-top: 15px;
  border-top: 2px solid #eee;
}

/* Checkout */
.ecom-checkout-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: #2c3e50;
}
.ecom-checkout-section h3 {
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
  color: #2c3e50;
}
.payment-method-option {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.payment-method-option.active {
  border-color: #3498db;
  background-color: #f0f8ff;
}
.payment-method-option input[type="radio"] {
  margin-right: 10px;
}

/* M-Pesa Payment Overlay */
.mpesa-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpesa-overlay-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: mpesaSlideIn 0.3s ease;
}
@keyframes mpesaSlideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mpesa-state h3 {
  margin: 15px 0 10px;
  color: #2c3e50;
}
.mpesa-spinner {
  color: #27ae60;
  margin-bottom: 10px;
}
.mpesa-phone-display {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin: 10px 0;
  letter-spacing: 1px;
}
.mpesa-timer {
  margin-top: 20px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}
.mpesa-icon-success {
  color: #27ae60;
}
.mpesa-icon-failed {
  color: #e74c3c;
}

/* Product Detail */
.ecom-product-detail .product-image-wrapper {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.ecom-product-detail .product-image-wrapper img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.ecom-product-detail .product-info {
  padding-left: 30px;
}
.ecom-product-detail .product-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 0;
}
.ecom-product-detail .product-info p {
  color: #2c3e50;
}

.ecom-product-detail .product-info label {
  color: #2c3e50;
}

.btn-qty-minus, .btn-qty-plus {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.ecom-product-detail .product-info .product-price-large {
  font-size: 30px;
  font-weight: 700;
  color: #e74c3c;
  margin: 15px 0;
}
.ecom-product-detail .product-info .product-price-large .old-price {
  font-size: 20px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}
.ecom-product-detail .product-info .product-meta {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.ecom-product-detail .product-info .product-meta span {
  display: inline-block;
  margin-right: 20px;
  color: #777;
}
.ecom-product-detail .product-info .qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.ecom-product-detail .product-info .qty-selector input {
  width: 80px;
  text-align: center;
  font-size: 16px;
}
.ecom-product-detail .product-info .btn-add-cart-lg {
  padding: 12px 40px;
  font-size: 16px;
  border-radius: 4px;
}

/* Customer Auth Pages */
.ecom-auth-wrapper {
  max-width: 450px;
  margin: 50px auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 35px;
}
.ecom-auth-wrapper h2 {
  text-align: center;
  color: #3498db;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Customer Account */
.ecom-account-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Order Confirmation */
.ecom-order-success {
  text-align: center;
  padding: 50px 20px;
}
.ecom-order-success .success-icon {
  font-size: 64px;
  color: #27ae60;
  margin-bottom: 20px;
}
.ecom-order-success h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Shop Filters */
.ecom-shop-filters {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.ecom-shop-filters h4 {
  font-weight: 700;
  color: #3498db;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.ecom-shop-filters .list-group-item {
  border: none;
  padding: 8px 0;
}
.ecom-shop-filters .list-group-item.active,
.ecom-shop-filters .list-group-item:hover {
  background: transparent;
  color: #3498db;
}
.ecom-shop-filters .list-group-item.active {
  font-weight: 700;
}

/* Pagination */
.ecom-pagination .pagination > li > a {
  color: #3498db;
  border-radius: 4px;
  margin: 0 2px;
}
.ecom-pagination .pagination > .active > a {
  background-color: #3498db;
  border-color: #3498db;
  color: #fff !important;
}

/* Alerts */
.ecom-alert {
  border-radius: 4px;
}

/* Footer */
.ecom-footer {
  background-color: #3498db;
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 50px;
}
.ecom-footer h4 {
  color: #ecf0f1;
  font-weight: 600;
  margin-bottom: 15px;
}
.ecom-footer a {
  color: #ffffff;
  text-decoration: none;
}
.ecom-footer a:hover {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}
.ecom-footer hr {
  border-color: #dddddd;
}

/* Toast notification */
.ecom-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}
.ecom-toast .alert {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Content Pages */
.ecom-content-page {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 35px;
  margin-bottom: 30px;
}
.ecom-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #3498db;
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #3498db;
}
.ecom-page-body {
  line-height: 1.8;
  font-size: 15px;
  color: #555;
}
.ecom-page-body h3 {
  /*color: #3498db;*/
  margin-top: 25px;
}
.ecom-page-body ul {
  padding-left: 20px;
}
.ecom-page-body ul li {
  margin-bottom: 8px;
}

/* Contact Page */
.ecom-contact-details {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  color: #2c3e50;

}
.ecom-contact-details h3 {
  color: #2c3e50;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail-item i {
  font-size: 22px;
  color: #3498db;
  margin-right: 15px;
  margin-top: 2px;
  width: 25px;
  text-align: center;
}
.contact-social-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.social-icon {
  display: inline-block;
  font-size: 28px;
  margin-right: 12px;
  color: #555;
  transition: color 0.2s;
}
.social-icon:hover {
  color: #3498db;
  text-decoration: none;
}
.ecom-contact-form-wrapper {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
}
.ecom-contact-form-wrapper h3 {
  color: #2c3e50;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}
.map-embed-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.map-embed-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* Footer Social Icons */
.ecom-footer .footer-social a {
  display: inline-block;
  font-size: 22px;
  margin-right: 10px;
  color: #ffffff;
  transition: color 0.2s;
}
.ecom-footer .footer-social a:hover {
  color: #fff;
}

/* Wishlist Heart Button on Product Cards */
.ecom-product-card {
  position: relative;
}
.btn-wishlist-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #999;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 0;
}
.btn-wishlist-heart:hover {
  color: #e74c3c;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-wishlist-heart.active,
.btn-wishlist-heart.active:hover {
  color: #e74c3c;
  background: #fff;
}

/* Wishlist toggle on product detail */
.btn-wishlist-toggle.btn-default .fa-heart {
  color: #e74c3c;
}

/* Wishlist navbar link */
.ecom-wishlist-link {
  position: relative;
}
.ecom-wishlist-link .fa-heart {
  color: #e74c3c;
}
.ecom-wishlist-badge {
  background-color: #e74c3c;
  font-size: 10px;
  position: relative;
  top: -8px;
  left: -5px;
}

/* Wishlist page table */
.ecom-wishlist-table {
  color: #2c3e50;
}
.ecom-wishlist-table img {
  border-radius: 4px;
}
.ecom-wishlist-table td {
  vertical-align: middle !important;
}

/* Mobile navbar icons */
.ecom-mobile-icons {
  margin-top: 10px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.ecom-mobile-icon {
  display: inline-block;
  padding: 6px 10px;
  font-size: 18px;
  color: #555;
  text-decoration: none;
  position: relative;
}
.ecom-mobile-icon:hover,
.ecom-mobile-icon:focus {
  color: #3498db;
  text-decoration: none;
}
.ecom-mobile-icon .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  padding: 2px 5px;
  background-color: #e74c3c;
}

/* Wishlist cards (mobile) */
.ecom-wishlist-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.ecom-wishlist-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.ecom-wishlist-card-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ecom-wishlist-card-info {
  flex: 1;
  min-width: 0;
}
.ecom-wishlist-card-name {
  color: #333;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.ecom-wishlist-card-name:hover {
  color: #3498db;
  text-decoration: none;
}
.ecom-wishlist-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* Order cards (mobile) */
.ecom-order-card {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.15s;
}
.ecom-order-card:hover,
.ecom-order-card:focus {
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ecom-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ecom-order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ecom-order-card-total {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}
.ecom-order-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #f0f0f0;
}
.ecom-order-card-footer .pull-right {
  margin-left: auto;
}

/* ======================== */
/* Filter Toolbar           */
/* ======================== */
.ecom-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 20px;
}
.ecom-filter-showing {
  color: #777;
  font-size: 14px;
  white-space: nowrap;
}
.ecom-filter-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.ecom-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ecom-filter-group label {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #555;
}
.ecom-filter-group select {
  min-width: 140px;
}

/* ======================== */
/* Star Ratings             */
/* ======================== */
.ecom-stars-inline {
  display: inline-block;
  color: #f39c12;
  font-size: 14px;
  letter-spacing: 1px;
}
.ecom-stars-inline .fa-star-o {
  color: #ccc;
}
.ecom-stars-sm {
  font-size: 12px;
}
.ecom-stars-lg {
  font-size: 18px;
}

/* Product card rating */
.product-card-rating {
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card-rating .rating-count {
  font-size: 12px;
  color: #999;
}

/* Rating summary on product detail */
.ecom-rating-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.ecom-rating-text {
  font-size: 14px;
  color: #555;
  margin-left: 6px;
}
.ecom-review-link {
  font-size: 14px;
  color: #3498db;
  margin-left: 4px;
}
.ecom-view-count {
  font-size: 13px;
  color: #999;
  margin-left: 12px;
}

/* Review summary block */
.ecom-review-summary {
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.ecom-review-avg {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ecom-review-avg .avg-number {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

/* ======================== */
/* Review Cards              */
/* ======================== */
.ecom-review-card {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ecom-review-card:last-child {
  border-bottom: none;
}
.ecom-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ecom-review-author {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.ecom-review-date {
  font-size: 12px;
  color: #999;
}
.ecom-review-title {
  font-weight: 600;
  font-size: 15px;
  margin: 6px 0 4px;
  color: #2c3e50;
}
.ecom-review-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-top: 4px;
}

/* ======================== */
/* Review Form               */
/* ======================== */
.ecom-review-form-wrapper {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 20px;
}
.ecom-review-form-wrapper h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

/* Star selector (clickable stars) */
.ecom-star-selector {
  display: inline-flex;
  gap: 4px;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  margin-bottom: 5px;
}
.ecom-star-selector .fa-star {
  color: #f39c12;
}
.ecom-star-selector .fa:hover,
.ecom-star-selector .fa.hovered {
  color: #f39c12;
}

/* ======================== */
/* Admin Items Page          */
/* ======================== */
.ecom-admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 991px) {
  .ecom-slide { height: 400px; }
  .slide-content h1 { font-size: 36px; }
  .slide-content p { font-size: 17px; }
}
@media (max-width: 767px) {
  .ecom-hero h1 { font-size: 28px; }
  .ecom-hero p { font-size: 15px; }
  .ecom-slide { height: 450px; }
  .slide-content h1 { font-size: 28px; }
  .slide-content p { font-size: 15px; max-width: 100%; }
  .ecom-slide-btn { padding: 10px 25px; font-size: 14px; }
  .ecom-hero-slider .slick-prev,
  .ecom-hero-slider .slick-next { display: none !important; }
  .ecom-hero-slider .slick-dots { bottom: 12px; }
  .ecom-hero-slider .slick-dots li { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .ecom-hero-slider .slick-dots li button { width: 44px; height: 44px; padding: 0; }
  .ecom-hero-slider .slick-dots li button:before { font-size: 16px; line-height: 44px; width: 44px; height: 44px; }
  .ecom-product-detail .product-info { padding-left: 0; margin-top: 20px; }
  .ecom-search-form { display: block !important; margin: 10px 0; }
  .ecom-filter-bar { flex-direction: column; align-items: flex-start; }
  .ecom-filter-controls { width: 100%; }
  .ecom-review-form-wrapper { margin-top: 20px; }
}
