/* =============================
   SECTION STYLING
============================= */
.bundle-section {
  margin: 10px 0 !important;
  text-align: center;
  padding: 0 !important;
}

.bundle-heading {
  font-size: 26px;
  font-weight: 700;
  color: #6c3483;
  background: linear-gradient(90deg, #7a1fa2, #8e44ad, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 4px !important;
}

.bundle-heading-line {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #9b59b6);
  margin: 4px auto 10px !important;
  border-radius: 2px;
}

/* =============================
   GRID SYSTEM (Dynamic Columns)
============================= */
.bundle-container.grid-view {
  display: grid;
  gap: 20px;
}
.bundle-container[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.bundle-container[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.bundle-container[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.bundle-container[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.bundle-container[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* =============================
   CARD DESIGN
============================= */
.bundle-card {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* =============================
   IMAGE
============================= */
.bundle-image {
  border-radius: 12px;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.bundle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.bundle-card:hover .bundle-image img {
  transform: scale(1.08);
}

/* =============================
   TITLE
============================= */
.bundle-title {
  margin-top: 10px;
  min-height: 44px;
}

.bundle-title a {
  font-weight: 600;
  font-size: 15px;
  color: #2c3e50;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================
   PRICE STRUCTURE
============================= */
.bundle-price-wrap {
  display: block;
  margin-top: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.bundle-price {
  text-align: center;
  display: inline-block;
  width: 100%;
}

.bundle-price .regular-price {
  text-decoration: line-through;
  color: #e63946 !important;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.bundle-price .sale-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.bundle-price .sale-price {
  color: #111;
  font-weight: 600;
  font-size: 1.1rem;
}

.bundle-price .discount-tag {
  background: #ffd600;
  color: #000;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* =============================
   BUTTONS
============================= */
.bundle-button a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bundle-button a.add_to_cart_button {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.bundle-button a.add_to_cart_button:hover {
  background: linear-gradient(90deg, #1e8449, #27ae60);
}

.bundle-button a.inquire-button {
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  color: #000;
}

.bundle-button a.inquire-button:hover {
  background: linear-gradient(90deg, #d68910, #f39c12);
}

/* =============================
   RIBBON
============================= */
.bundle-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 5;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 1024px) {
  .bundle-container[data-columns="5"],
  .bundle-container[data-columns="6"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bundle-container[data-columns] {
    grid-template-columns: repeat(2, 1fr);
  }
  .bundle-heading { font-size: 22px; }
}

@media (max-width: 480px) {
  .bundle-container[data-columns] {
    grid-template-columns: repeat(1, 1fr);
  }
  .bundle-heading { font-size: 20px; }
  .bundle-price .sale-price { font-size: 1rem; }
  .bundle-price .discount-tag { font-size: 0.85rem; }
}

/* =============================
   FIX: WooCommerce shop page alignment
============================= */
.woocommerce ul.products li.product .bundle-card {
  position: relative !important;
  background: #fff !important;
  border-radius: 15px;
  padding: 14px !important;
  margin: 0 auto !important;
  max-width: 250px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  text-align: center !important;
  overflow: hidden;
}

.woocommerce ul.products li.product .bundle-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.woocommerce ul.products li.product .bundle-price-wrap,
.woocommerce ul.products li.product .bundle-price {
  display: block !important;
  text-align: center !important;
  margin: 8px 0 !important;
}

.woocommerce ul.products li.product .regular-price {
  color: #e63946 !important;
  text-decoration: line-through !important;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

