/* Front User custom styles */

/* Dish Types badges - General styles */
.dish-types {
	margin-bottom: 0.5rem;
	line-height: 1.2;
	display: flex;
	gap: 6px;
	justify-content: flex-start;
}

/* Dish Types for Product Cards (items page) - Limited to 2 items */
.dish-types {
	flex-wrap: nowrap; /* single line */
	overflow: hidden; /* hide overflow */
}

/* Specific styles for items page dish types - 20% smaller */
.items-dish-types {
	/* Custom sizing for items page - 20% reduction */
	gap: 3px; /* 4px * 0.8 = 3.2px ≈ 3px */
	margin-bottom: 0.24rem; /* 0.3rem * 0.8 = 0.24rem */
}

.items-dish-types .badge,
.items-dish-types .badge-light {
	font-size: 9px; /* 11px * 0.8 = 8.8px ≈ 9px */
	padding: 2px 5px; /* 3px * 0.8 = 2.4px ≈ 2px, 6px * 0.8 = 4.8px ≈ 5px */
	line-height: 1.1; /* tighter line height */
	border: none !important; /* no border for items page */
	box-shadow: none !important; /* remove any box shadow */
}

.items-dish-types .dt-icon {
	width: 13px; /* 16px * 0.8 = 12.8px ≈ 13px */
	height: 13px;
}

.items-dish-types .more-badge {
	font-size: 9px; /* 11px * 0.8 = 8.8px ≈ 9px */
	padding: 2px 5px; /* 3px * 0.8 = 2.4px ≈ 2px, 6px * 0.8 = 4.8px ≈ 5px */
	min-width: 22px; /* 28px * 0.8 = 22.4px ≈ 22px */
	border: none !important; /* no border for +X badge in items page */
	box-shadow: none !important; /* remove any box shadow */
}

.dish-types .badge,
.dish-types .badge-light {
	flex-shrink: 0; /* prevent shrinking */
}

/* Dish Types for Product Details - Show all */
.shop-text .dish-types {
	flex-wrap: wrap; /* allow wrapping */
	overflow: visible; /* show all */
}

.single-pricing .dish-types .badge-light {
  background: #CE23171A !important;
}

.single-pricing .dish-types .badge,
.single-pricing .dish-types .badge-light {
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 8px;
  /* border-radius: 6px; */
  border: 1px solid #CE231780;
  color: #CE2317;
  background: #CE23171A !important;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Apply same badge styling on product details header */
.shop-top-content .dish-types .badge-light {
  background: #CE23171A !important;
}

.shop-top-content .dish-types .badge,
.shop-top-content .dish-types .badge-light {
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 8px;
  /* border-radius: 6px; */
  border: 1px solid #CE231780;
  color: #CE2317;
  background: #CE23171A;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Apply same styling when dish types are placed under shop-text */
.shop-text .dish-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap; /* cho phép xuống dòng để hiển thị hết */
  margin-top: 6px;
  overflow: visible; /* không ẩn bớt */
}
.shop-text .dish-types .badge-light { background-color: #CBA26D33; }
/* Badge styles for dish types */
.dish-types .badge,
.dish-types .badge-light {
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 8px;
  /* border-radius: 6px; */
  border: 1px solid #CE231780;
  color: #CE2317;
  background: #CE23171A;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.shop-text .dish-types .badge i,
.shop-text .dish-types .badge-light i { color: #CE2317; font-size: 12px; margin-right: 4px; }
/* Icon styles for dish types */
.dish-types .dt-icon { 
  display: inline-flex; 
  width: 20px; 
  height: 20px; 
  border-radius: 4px; 
  color: #D3A971; 
  vertical-align: middle;
  margin-right: 4px;
}
.dish-types .dt-icon .icon-svg { width: 100%; height: 100%; }

.single-pricing .dish-types .badge i,
.single-pricing .dish-types .badge-light i {
  margin-right: 4px;
  font-size: 12px;
  color: #CE2317;
}
/* Legacy single-pricing styles (if needed) */
.single-pricing .dish-types .dt-icon { 
  display: inline-flex; 
  width: 25px; 
  height: 25px; 
  /* border-radius: 4px;  */
  color: #D3A971; 
  vertical-align: middle;
  margin-right: 4px;
}
.single-pricing .dish-types .dt-icon .icon-svg { width: 100%; height: 100%; }

/* +X badge for Product Cards (items page) */
.dish-types .more-badge {
  background: #CE23171A;
  color: #CE2317;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  /* border-radius: 6px; */
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Ensure flag overlays above chips */
.pricing-area .single-pricing.has-flag {
  position: relative;
}

.pricing-area .single-pricing.has-flag .flag {
  position: absolute;
  z-index: 3;
}

.pricing-area .single-pricing.has-flag .dish-types {
  position: relative;
  z-index: 1;
  margin-left: 28px; /* xs: đẩy tránh cột flag trái */
}

@media (min-width: 576px) {
  .dish-types .badge,
  .dish-types .badge-light {
    font-size: 13px;
  }
  .dish-types .badge i,
  .dish-types .badge-light i {
    font-size: 13px;
  }
  .dish-types .more-badge {
    font-size: 13px;
  }
  
  /* Items page specific responsive - 20% smaller */
  .items-dish-types .badge,
  .items-dish-types .badge-light {
    font-size: 10px; /* 12px * 0.8 = 9.6px ≈ 10px */
    border: none !important; /* ensure no border on tablet */
  }
  .items-dish-types .dt-icon {
    width: 14px; /* 18px * 0.8 = 14.4px ≈ 14px */
    height: 14px;
  }
  .items-dish-types .more-badge {
    font-size: 10px; /* 12px * 0.8 = 9.6px ≈ 10px */
    border: none !important; /* ensure no border on tablet */
  }
  
  .shop-top-content .dish-types .badge,
  .shop-top-content .dish-types .badge-light {
    font-size: 13px;
  }
  .shop-top-content .dish-types .badge i,
  .shop-top-content .dish-types .badge-light i {
    font-size: 13px;
  }
  .pricing-area .single-pricing.has-flag .dish-types {
    margin-left: 32px;
  }
}

@media (min-width: 768px) {
  /* Items page specific responsive for desktop - 20% smaller */
  .items-dish-types .dt-icon {
    width: 16px; /* 20px * 0.8 = 16px */
    height: 16px;
  }
  
  .pricing-area .single-pricing.has-flag .dish-types {
    margin-left: 36px;
  }
}

@media (min-width: 1200px) {
  .pricing-area .single-pricing.has-flag .dish-types {
    margin-left: 40px;
  }
}

@media (max-width: 575.98px) {
  .dish-types .badge,
  .dish-types .badge-light {
    font-size: 11px;
    padding: 3px 6px;
  }
  .dish-types .badge i,
  .dish-types .badge-light i {
    font-size: 11px;
  }
  .dish-types .more-badge {
    font-size: 11px;
    padding: 3px 6px;
    min-width: 28px;
  }
}


/* Variation modal redesigned header */
.vf-modal-head { gap: 16px; margin-bottom: 12px; }
.vf-img-wrap { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: 0 0 96px; }
.vf-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-info { flex: 1 1 auto; min-width: 0; }
.vf-caption { font-size: 14px; color: #888; margin-bottom: 4px; text-transform: lowercase; }
.vf-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; }
.vf-summary { margin: 6px 0 8px; font-size: 18px; font-style: italic; color: #333; }
.vf-dish-types { margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.vf-divider { margin: 12px 0 16px; border: 0; border-top: 1px solid #cfcfcf; }

/* Make vf-dish-types chips look like items chips */
.vf-dish-types .badge-light { background-color: #CE23171A; }
.vf-dish-types .badge,
.vf-dish-types .badge-light {
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 8px;
  /* border-radius: 6px; */
  border: 1px solid #CE231780;
  color: #CE2317;
  background: #CE23171A;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.vf-dish-types .badge i,
.vf-dish-types .badge-light i { color: #CE2317; font-size: 12px; margin-right: 4px; }
.vf-dish-types .dt-icon { 
  display: inline-flex; 
  width: 20px; 
  height: 20px; 
  margin-right: 4px; 
  /* border-radius: 4px;  */
  color: #D3A971; 
  vertical-align: middle;
}
.vf-dish-types .dt-icon .icon-svg { width: 100%; height: 100%; }
.vf-dish-types .dt-fa { margin-right: 4px; color: #D3A971; }

/* Responsive sizes for dish-type icons */
@media (max-width: 575.98px) {
  .dish-types .dt-icon,
  .vf-dish-types .dt-icon { 
    width: 16px; 
    height: 16px; 
    margin-right: 4px; 
    vertical-align: middle;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .dish-types .dt-icon,
  .vf-dish-types .dt-icon { 
    width: 20px; 
    height: 20px; 
    margin-right: 4px; 
    vertical-align: middle;
  }
}

@media (min-width: 768px) {
  .dish-types .dt-icon,
  .vf-dish-types .dt-icon { 
    width: 25px; 
    height: 25px; 
    margin-right: 4px;
    vertical-align: middle;
  }
}

@media (max-width: 767.98px) {
  .vf-title { font-size: 22px; }
  .vf-summary { font-size: 16px; }
  .vf-img-wrap { width: 80px; height: 80px; flex-basis: 80px; }
}

/* Allergens/Additives list under footer */
.vf-attrs .badge,
.vf-attrs .badge-light {
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 10px;
  padding: 4px 8px;
  /* border-radius: 6px; */
  border: 1px solid #CE231780;
  color: #CE2317;
  background: #CE23171A;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.vf-attrs .badge i,
.vf-attrs .badge-light i { font-size: 12px; margin-right: 4px; color: #CE2317;}
/* SVG icon inside Allergens/Additives chips */
.vf-attrs .dt-icon { 
  display: inline-flex; 
  width: 18px; 
  height: 18px; 
  margin-right: 4px; 
  color: #CE2317; 
  vertical-align: middle; 
}
.vf-attrs .dt-icon .icon-svg { width: 100%; height: 100%; }

