/* Bundle product design fixes (Clotya child) - Enhanced Premium Design */

.single-product .bundled-items-wrapper {
  margin-top: 40px;
}

/* Premium Card Styling */
.single-product .bundled-item-card {
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.single-product .bundled-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #905841 0%, #b87a5e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.single-product .bundled-item-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  border-color: #d4d4d4;
}
.single-product .bundled-item-card:hover::before {
  opacity: 1;
}

/* Layout */
.single-product .bundled-item-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.single-product .bundled-item-content .bundled_product_images {
  flex-shrink: 0;
  width: 210px;
  min-width: 210px;
  position: relative;
}
.single-product .bundled-item-content .bundled_product_images figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f8;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.single-product .bundled-item-card:hover .bundled_product_images figure {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.single-product .bundled-item-content .bundled_product_images img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.single-product .bundled-item-card:hover .bundled_product_images img {
  transform: scale(1.05);
}

.single-product .bundled-item-content .details {
  flex: 1;
  min-width: 0;
  padding-top: 4px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Enhanced Typography */
.single-product .bundled-item-content .bundled_product_title {
  margin: 0 0 5px 0 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  letter-spacing: -0.01em;
}
.single-product .bundled-item-content .bundled_product_title .item_qty {
  color: #666 !important;
  font-weight: 500 !important;
  font-size: 0.9em !important;
}
.single-product .bundled-item-content .bundled_product_excerpt {
  margin-bottom: 20px;
  color: #555;
}
.single-product .bundled-item-content .bundled_product_excerpt ul {
  margin: 0 0 0 0 !important;
  padding-left: 20px !important;
  list-style: none !important;
}
.single-product .bundled-item-content .bundled_product_excerpt li {
  margin-bottom: 8px !important;
  line-height: 1.65 !important;
  font-size: 14px !important;
  color: #555 !important;
  position: relative;
  padding-left: 20px;
}
.single-product .bundled-item-content .bundled_product_excerpt li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #905841;
  font-weight: bold;
  font-size: 16px;
}

/* Enhanced Form Styling */
.single-product .bundled-item-card .variations {
  margin: 20px 0 0 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 18px;
}
.single-product .bundled-item-card table.variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  padding:0;
}
.single-product .bundled-item-card table.variations td.label {
  padding: 8px 16px 8px 0;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}
.single-product .bundled-item-card table.variations td.label label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin: 0;
  display: block;
}
.single-product  .bundled-item-card label::after {
    display: none;
}
.single-product .bundled-item-card table.variations td.value {
  vertical-align: middle;
  padding: 8px 0;
}

/* Color row layout - label + text + round swatch (display, not selector) */
.single-product .bundled-item-card tr[data-attribute_label="color"] td.label {
  padding-top: 6px;
}
.single-product .bundled-item-card tr[data-attribute_label="color"] td.label label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-transform: capitalize;
}
.single-product .bundled-item-card tr[data-attribute_label="color"] td.value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.single-product .bundled-item-card tr[data-attribute_label="color"] .bundled_variation_attribute_value {
  font-size: 14px;
  color: #555;
}
/* Show the Clotya color term as a single circular swatch next to the text */
.single-product .bundled-item-card tr[data-attribute_label="color"] .bundled_variation_attribute_options_wrapper {
  display: flex !important;
  align-items: center;
}
.single-product .bundled-item-card tr[data-attribute_label="color"] .klbtheme-terms.klbtheme-type-color {
  display: block !important;
}
.single-product .bundled-item-card tr[data-attribute_label="color"] .klbtheme-terms.klbtheme-type-color .klbtheme-term {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #905841;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  pointer-events: none; /* color is static in this bundle */
}
.single-product .bundled-item-card tr[data-attribute_label="color"] select {
  display: none !important;
}

.single-product .bundled-item-card select {
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.single-product .bundled-item-card select:focus {
  outline: none;
  border-color: #905841;
  box-shadow: 0 0 0 3px rgba(144, 88, 65, 0.1);
}

/* Premium Swatch Button Styling */
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 0 !important;
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button .klbtheme-term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  background: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button .klbtheme-term:hover {
  border-color: #905841;
  background: #faf8f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(144, 88, 65, 0.15);
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button .klbtheme-term.klbtheme-selected,
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button .klbtheme-term.active {
  border-color: #905841;
  background: #ffffff;
  color: #905841;
  box-shadow: 0 0 0 1px rgba(144, 88, 65, 0.35);
}

/* Color Swatches */
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-color {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-color .klbtheme-term {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-color .klbtheme-term:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.single-product .bundled-item-card .klbtheme-terms.klbtheme-type-color .klbtheme-term.selected {
  border-color: #905841;
  box-shadow: 0 0 0 3px rgba(144, 88, 65, 0.2);
}

/* Quantity Input Styling */
/* Quantity Wrapper – pill shape */
.single-product .bundled-item-card .bundled_item_wrap .woocommerce-variation-add-to-cart{
  margin-top: 10px !important;
}
.bundled_item_button .quantity{
  border: none !important;
}
.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;           /* perfect pill shape */
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


.quantity-wrapper:hover,
.quantity-wrapper:focus-within {
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Icons (minus / plus) */
.quantity-wrapper > i.fas {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #555;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.quantity-wrapper > i.fas:hover {
  color: #000;
  background-color: #f8f8f8;
}

.quantity-wrapper > i.fas:active {
  background-color: #eee;
}

/* Input field */
.quantity {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.quantity input.qty {
  width: 60px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
  text-align: center;
}

/* Remove default number input spinners */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input.qty[type="number"] {
  -moz-appearance: textfield;
}

/* Disabled / zero state */
.quantity input.qty[value="0"],
.quantity input.qty:disabled {
  color: #aaa;
  font-weight: normal;
}

/* Accessibility – hide label visually but keep it for screen readers */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
/* When swatch buttons exist, hide the duplicate selects */
.single-product .bundled-item-card .klbtheme-terms + select {
  display: none !important;
}

.single-product .bundled-item-card table.variations tbody{
  gap: 0;
}

.single-product .bundled-item-card table.variations tbody tr {
  width: 100%;
  margin: 0px !important;
}

.single-product .bundled-item-card .bundled_variation_attribute_value {
  display: none;
}

.single-product .bundled-item-card table.variations .label label {
  text-transform: capitalize;
  font-weight: bold;
}

.bundled-items-wrapper div.bundled_product_summary, .bundled-items-wrapper  div.product.bundled_product_summary{
  padding: 0 !important;
  margin: 0 !important; 
  border: none !important;
}

.single_add_to_cart_button.bundle_add_to_cart_button{
  width:100% !important;
  border-radius:5px !important;
}
/* Responsive Design */
@media (max-width: 768px) {
  .single-product .bundled-items-wrapper {
    margin-top: 30px;
  }
  .single-product .bundled-item-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  .single-product .bundled-item-content {
    flex-direction: column;
    gap: 18px;
  }
  .single-product .bundled-item-content .bundled_product_images {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .single-product .bundled-item-content .bundled_product_title {
    font-size: 20px !important;
  }
  .single-product .bundled-item-card .klbtheme-terms.klbtheme-type-button .klbtheme-term {
    min-width: 44px;
    height: 38px;
    font-size: 12px;
  }
}

