/**
 * Rawteen Customization Plugin Styles
 * 
 * Custom CSS for Rawteen website customizations
 */

.product-labels .product-label.out-of-stock {
	text-transform: capitalize;
	font-size: 13px;
}

/* Coming Soon notice for out of stock products */
.custom-out-of-stock {
	display: inline-flex;
	align-items: center;
	width: auto;
	margin-top: 10px;
	font-weight: 600;
	color: #333;
	text-transform: capitalize;
	margin-bottom: 0px !important;
}

/* VAT text styling */
.vat-text {
	font-size: 0.9em;
	opacity: 0.8;
}

/* Diet Information Styling */
.diet-information-list {
	margin-top: 15px;
}

.diet-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5;
}

.diet-item:last-child {
	border-bottom: none;
}

.diet-icon-wrapper {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.diet-icon {
	width: 40px;
	height: 40px;
	object-fit: contain;
	display: block;
}

.diet-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.diet-name {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	line-height: 1.4;
}

.diet-details {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.diet-details b {
	font-weight: 600;
}

.diet-details i {
	font-style: italic;
	color: #888;
}

/* AED Currency Icon Styling - Same size as price text */
.aed-currency-icon {
	display: inline-block !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: baseline !important;
	line-height: 1 !important;
	color: inherit;
	margin-right: 0.1em;
}

.aed-currency-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Ensure woocommerce-Price-currencySymbol wrapper matches SVG height for AED */
.woocommerce-Price-currencySymbol {
	display: inline-block;
	vertical-align: baseline;
	line-height: 1 !important;
	color: inherit; /* Inherit color from parent (price text) */
	margin-right: 0px;
}

.woocommerce-Price-currencySymbol .aed-currency-icon {
	display: inline-block !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: baseline !important;
	line-height: 1 !important;
	color: inherit;
}

/* Remove extra spacing from non-breaking space after currency symbol */
.woocommerce-Price-currencySymbol + * {
	margin-left: 0;
}

/* Ensure SVG icon inherits price color and aligns properly */
.woocommerce-Price-amount .woocommerce-Price-currencySymbol,
.price .woocommerce-Price-currencySymbol,
.amount .woocommerce-Price-currencySymbol {
	color: inherit;
	line-height: 1 !important;
}

/* Ensure proper alignment in del and ins elements */
.price del .woocommerce-Price-currencySymbol,
.price ins .woocommerce-Price-currencySymbol {
	line-height: 1 !important;
	vertical-align: baseline;
}

.price del .aed-currency-icon,
.price ins .aed-currency-icon {
	display: inline-block !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: baseline !important;
	line-height: 1 !important;
	color: inherit;
}

/* Specific fix for ins (sale price) alignment */
.price ins .woocommerce-Price-amount {
	line-height: 1 !important;
	vertical-align: baseline;
}

.price ins .woocommerce-Price-currencySymbol {
	vertical-align: baseline !important;
}

.price ins .aed-currency-icon {
	display: inline-block !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: baseline !important;
	line-height: 1 !important;
	color: inherit;
}

/* Fix alignment for bdi elements containing price */
.woocommerce-Price-amount bdi,
.woocommerce-Price-amount del {
    line-height: 1 !important;
    display: flex;
    vertical-align: baseline;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1px;
}
/* Ensure price numbers don't have extra height */
.woocommerce-Price-amount {
	line-height: 1 !important;
}
.price del .woocommerce-Price-currencySymbol {
    line-height: 0px !important;
    height: auto !important;
    margin-top: -1px;
}
.single-product .product-image-summary p.price {
    display: flex;
    align-items: center;
}

.single-product .product-image-summary p.price del {
    margin-right: 8px;
}

.single-product .product-image-summary  span.aed-currency-icon {
    width: 20px !important;
    height: 18px !important;
}

.single-product .product-image-summary del span.aed-currency-icon {
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px;
}

.wd-sticky-btn.wd-sticky-btn-shown span.price {
    display: flex;
    align-items: center;
}
.wd-sticky-btn.wd-sticky-btn-shown span.price del {
    margin-right: 10px;
}

ul.cart_list.product_list_widget.woocommerce-mini-cart .cart-info span.quantity {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2px;
}

.cart-widget-side .widget_shopping_cart_content p.woocommerce-mini-cart__total.total {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.cart-widget-side .widget_shopping_cart_content p.woocommerce-mini-cart__total.total span.woocommerce-Price-amount.amount {
    flex-grow: 0;
}

.cart-widget-side .widget_shopping_cart_content .progress-msg p {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

.cart-widget-side .widget_shopping_cart_content .progress-msg p span.woocommerce-Price-amount.amount {margin-top: 2px;}

.wd-progress-bar.wd-free-progress-bar p {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

/* Elementor widget specific styling for AED currency icon */
.elementor-widget-wd_single_product_price p.price .aed-currency-icon {
	height: 0.9em !important;
}

/* Allergen Information Styling */
.allergen-disclaimer {
	font-size: 16px;
	color: #666;
	line-height: 1;
}

.allergen-information-list {
	margin-top: 15px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.allergen-disclaimer {
	font-size: 16px;
	color: #666;
	line-height: 1;
}

.allergen-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: all 0.2s ease;
}

.allergen-item:hover {
	border-color: #d0d0d0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section A: Fixed allergen label (light blue, black/white icon with label included) */
.allergen-label-section {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	background-color: #e3f2fd;
	border-radius: 8px;
	width: 75px;
	height: 90px;
	box-sizing: border-box;
}

.allergen-label-icon-wrapper {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	border-radius: 50%;
	padding: 0px 13px;
	box-sizing: border-box;
}

.allergen-label-icon {
	max-width: 100%;
	height: auto;
	display: block;
}

.allergen-label-text {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 10px;
	font-weight: 700 !important;
	color: #5d5d5d;
	line-height: 1.2;
	margin-top: 5px;
}

.allergen-label-text-line {
	display: block;
	text-transform: capitalize;
}

.allergen-label-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: grayscale(100%);
	opacity: 0.9;
}

/* Section B: Status section (text and description in middle, icon on right) */
.allergen-status-section {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.allergen-status-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.allergen-status-icon {
	flex-shrink: 0;
	width: 45px;
	height: 40px;
	object-fit: contain;
	display: block;
}

.allergen-status-text {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	line-height: 1.4;
	margin-bottom: 0;
}

.allergen-status-description {
	font-size: 14px;
	color: #666;
	line-height: 18px;
	margin: 0;
	margin-top: 2px;
}

.allergen-status-description br {
	display: none;
}

.allergen-status-description b {
	font-weight: 600;
}

.allergen-status-description i {
	font-style: italic;
	color: #888;
}

/* Laptop/small screen: 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
	.allergen-information-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

/* Mobile: 1 column */
@media (max-width: 768px) {
	.allergen-information-list {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.allergen-item {
		gap: 8px;
		padding: 12px;
	}

	.allergen-label-section {
        width: 70px;
        height: 90px;
	}

	.allergen-status-section {
		gap: 8px;
	}

	.allergen-status-icon {
		width: 35px;
		height: 32px;
	}

	.allergen-status-text {
		font-size: 14px;
	}

	.allergen-status-description {
		font-size: 12px;
	}
	
	.allergen-disclaimer {
		font-size: 15px;
		line-height: 20px;
	}
}

/* Hide SKU from product meta section (it's displayed after short description instead) */
.product_meta .sku_wrapper {
	display: none;
}

/* Style SKU display after short description */
.product_meta_sku {
	margin-top: 15px;
	margin-bottom: 0;
}

.product_meta_sku .sku_wrapper {
	display: inline-block;
}
.inc-vat-label {
    color: #BBBBBB;
    font-size: 14px;
}

/* Short description spacing */
.woocommerce-product-details__short-description {
	margin-bottom: 8px;
}

/* Product meta styling */
.summary-inner .product_meta {
	margin-bottom: 10px;
	padding-top: 0px;
	border-top: 0px;
	margin-top: 0px;
}

.product_meta .meta-label {
	color: var(--wd-text-color);
	font-size: 13px;
	font-weight: 500 !important;
}

/* Product title styling */
.product-image-summary .summary-inner h1.entry-title {
	font-family: Roboto, sans-serif;
	font-size: 25px;
	font-weight: 700;
	margin-bottom: 10px;
}

/* Best Suited for These Diets desktop styles */
.best-suited-diet-item {
	position: relative;
}

.diet-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
}

.diet-tags .tag {
	padding: 12px 10px;
	border-radius: 0px;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	display: inline-block;
	min-width: 110px;
	text-align: center;
	letter-spacing: 1px;
}

.diet-tags .tag.keto { background: #C0172C; }
.diet-tags .tag.flex { background: #71330A; }
.diet-tags .tag.dash { background: #712E89; }
.diet-tags .tag.fodmap { background: #13234B; }
.diet-tags .tag.sibo1 { background: #0C9DA3; }
.diet-tags .tag.sibo2 { background: #0AA5AA; }
.diet-tags .tag.paleo { background: #0F2D47; }
.diet-tags .tag.mind { background: #522C6C; }

.best-suited-diet-item img,
.best-suited-diet-item .best-suited-diet-image {
	width: 110px;
	min-width: 110px;
	position: relative;
	display: block;
	object-fit: contain;
}

/* Guaranteed Clean & Safe desktop styles */
.guaranteed-clean-safe-item {
	position: relative;
}

.guaranteed-clean-safe-item .guaranteed-badge {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	background: #f4f8ff;
	border: 1px solid #dbe9ff;
	border-radius: 10px;
	padding: 10px 12px;
	min-width: 115px;
	min-height: 52px;
	height: auto;
	flex: 1 1 115px;
}
/* Laptop screens (e.g., 1280x800): slightly wider badges for better legibility */
@media (max-width: 1366px) and (min-width: 1024px) {
	.guaranteed-clean-safe-item .guaranteed-badge {
		min-width: 115px;
		width: 115px;
	}

	/* Slightly wider badge for long label */
	.guaranteed-clean-safe-item.no-artificial-preservatives .guaranteed-badge {
		min-width: 130px;
		width: 140px;
	}
}

.guaranteed-badge-icon {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}

.guaranteed-badge-text {
	font-size: 12px;
	font-weight: 600;
	color: #2d2d2d;
	line-height: 1.35;
	display: inline-block;
	text-transform: capitalize;
	text-align: left;
	white-space: normal;
}

.guaranteed-clean-safe-item .guaranteed-clean-safe-image {
	width: 80px;
	min-width: 80px;
	max-width: 80px;
	height: auto;
	position: relative;
	display: block;
	object-fit: contain;
}

/* Product images container desktop styles */
@media (min-width: 769px) {
	.product-image-summary .product-image-summary-inner .product-images {
		padding: 40px;
		background: #fff;
		border-radius: 20px;
	}
	
	/* Add to cart form desktop styles - single product page only */
	.single-product form.cart {
		display: flex;
		align-items: center;
		gap: 10px;
	}
	
	.single-product form.cart .quantity {
		flex-shrink: 0;
	}
	
	.single-product form.cart .single_add_to_cart_button {
		flex: 1;
		width: 100%;
	}
	
	/* Hide duplicate price inside variations form */
	.single-product form.variations_form p.price {
		display: none !important;
	}
}

/* Align product tabs to the left */
.single-product .wc-tabs-wrapper .wd-nav-wrapper,
.single-product .wc-tabs-wrapper .wd-nav-tabs-wrapper,
.single-product .wc-tabs-wrapper .wd-nav.wd-nav-tabs {
	text-align: left !important;
	justify-content: flex-start !important;
}

.wc-tab-inner.wd-entry-content {
	background: #fff;
	padding: 32px 20px;
	border-radius: 10px;
}

.product-tabs-wrapper .tabs-layout-tabs > .wd-nav-tabs-wrapper {
	margin-bottom: 10px;
}

.wd-nav.wd-style-underline-reverse > li > a {
	padding-top: 10px;
	font-size: 15px;
	font-weight: 600;
}

.wd-nav.wd-style-underline-reverse > li > a > .nav-link-text:after {
	top: 0px;
	height: 3px;
}

/* Product gallery image height constraint and centering */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image figure {
	display: flex;
	justify-content: center;
	align-items: center;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image figure img {
	max-height: 600px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}
.single-product .product-image-summary .summary-inner>.price .price {
    display: flex;
    align-items: center;
}

.single-product .product-image-summary .summary-inner>.price span.wd-price-unit {
    font-size: 20px;
}
.footer-app-icon .wd-image img {
    height: 37px;
}

@media (max-width: 768px) {
	.woocommerce-product-gallery__image img,
	.woocommerce-product-gallery__image figure img {
		max-height: 400px;
	}
}

/* Hide Woodmart reviews section */
.wd-single-reviews {
	display: none !important;
}

/* Remove margin from tabs wrapper */
.woocommerce-tabs.wc-tabs-wrapper.tabs-layout-tabs.wd-opener-pos-right.wd-opener-style-arrow {
	margin-bottom: 0px;
}

/* === Diet Information (new) === */
.diet-information-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

}
.diet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 12px 16px;
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0 !important;
  height: 80px;
}
.diet-label-section {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  max-width: 150px;
}
.diet-label-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.diet-label-text {
  line-height: 1.1;
}
.diet-label-text-line {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-right: 2px;
}
.diet-status-section {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.diet-status-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.diet-status-text {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}
.diet-status-description {
  font-size: 13px;
  color: #555;
}
.diet-status-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.wd-product .price {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Laptop breakpoint specific tweaks */
@media (max-width: 1366px) and (min-width: 1024px) {
  .diet-label-icon { width: 52px; height: 52px; }

  /* Laptop tweaks per latest requirements */
  .diet-information-list { gap: 15px; }

  .diet-item {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
    height: 75px;
  }

  .diet-label-section {
    min-width: 160px;
    max-width: 160px;
  }

  .diet-label-text-line { font-size: 14px; }
  .diet-status-text { font-size: 14px; }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .diet-item { padding: 10px 12px !important; gap: 8px !important; flex: 0 0 100%; max-width: 100%; }
  .diet-label-icon { width: 32px; height: 32px; }
  .diet-status-icon { width: 24px; height: 24px; }
  .diet-status-text { font-size: 12px; }
  .diet-status-description { font-size: 11px; }
  .single-product .product-image-summary del span.aed-currency-icon {
		height: 15px !important;
		margin-top: 2px;
   }
   .footer-app-icon .wd-image img {
    height: 53px;
	}
}
/* === End Diet Information === */

/* SIBO special label widths */
.diet-item.sibo-phase-1-item span.diet-label-text-line,
.diet-item.sibo-phase-2-item span.diet-label-text-line {
  width: 100%;
}

/* Styling for phase line */
span.diet-label-text-line.diet-label-phase {
  font-size: 13px;
  margin-top: 2px;
  color: #555;
  font-weight: 600;
}