/* Layout & Container */
.stavia-tabs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
  font-family: inherit;
}

/* Header Container Flexbox & Tabs Layout */
.stavia-tabs-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stavia-tabs-header {
  display: flex;
  gap: 0px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Tab Buttons */
.stavia-tab-btn {
  background: none !important;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 3px 10px;
}
 
.stavia-tab-btn:hover {
  color: #1d5c5c;
  box-shadow: none;
}

.stavia-tab-btn.active {
  color: #1d5c5c;
}
.stavia-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #C49A45;
}

/* View All Link (Right Side) */
.stavia-view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.stavia-view-all-link:hover {
  color: #C49A45;
}

.stavia-view-all-link .arrow {
  transition: transform 0.2s ease;
}

.stavia-view-all-link:hover .arrow {
  transform: translateX(3px);
}

/* 4 Column Grid */
.stavia-grid.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.3s ease;
}

.stavia-grid.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* Card Styling */
.stavia-product-card {
  background: #fdfaf5;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.2s ease;
}

.stavia-product-card:hover {
  transform: translateY(-4px);
}

/* Image & Badge */
.stavia-card-image {
  position: relative;
  text-align: center;
  margin-bottom: 12px;
}

.stavia-card-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.badge.sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d93838;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 2;
}

/* Content */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.3;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  margin-bottom: 8px;
}

.product-rating .star-rating {
  color: #e2a03f;
}

.rating-count {
  color: #777;
  font-size: 12px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.product-price del {
  color: #888;
  font-size: 13px;
  margin-right: 4px;
}

/* Add to Cart Button Base */
.stavia-add-to-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background-color: #d29d47 !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.stavia-add-to-cart-btn:hover {
  background-color: #C49A45 !important;
}

/* Button States & SVG */
.stavia-add-to-cart-btn.loading-cart {
  opacity: 0.7;
  pointer-events: none;
}

.stavia-add-to-cart-btn.added-cart {
  background-color: #2e7d32 !important; /* Green feedback */
  color: #ffffff !important;
}

.cart-btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* WooCommerce Fixes */
.stavia-card-details .product-action a.added_to_cart.wc-forward {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .stavia-grid.grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stavia-grid.grid-4-cols {
    grid-template-columns: repeat(1, 1fr);
  }
}
