/*
 Theme Name:   Bonbon Child Theme
 Theme URI:    https://bonbon.themerex.net
 Description:  Bonbon Child Theme
 Author:       ThemeREX
 Author URI:   https://themerex.net/
 Template:     bonbon
 Version:      1.0.0    
 Tags:         confectionery, cake bakery, artisanal shop, chocolatier, pastry shop, chocolate boutique, gift shop, sweets, desserts, bakery, confections, chocolate, recipe blog, celebration, handmade
 Text Domain:  bonbon
*/


/* =Theme customization starts here
------------------------------------------------------------ */

/* Shop cards (plain): category left, SKU / reference right */
.product-loop-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin-bottom: 0.35em;
}

.product-loop-meta--sku-only {
	justify-content: flex-end;
}

.product-loop-category {
	flex: 1 1 auto;
	min-width: 0;
}

.product-loop-sku {
	flex: 0 0 auto;
	margin-left: auto;
	font-variant-numeric: tabular-nums;
	opacity: 0.9;
}

/* Plain cards ≥1280px: Bonbon uses an absolute “hover panel” (.wrap-data-hover + ::before) that
   sits under the next row. Match the <1280px behavior: in-flow block, no overlay panel. */

@media (min-width: 480px) {
	.woocommerce ul.products .product_style_plain > div{
		height: 100% !important;
		justify-content: space-between;
		flex-direction: column;
	}
}

@media (min-width: 1280px) {
	/* Pseudo panel only exists in the theme’s desktop rules — remove it */
	.woocommerce ul.products .product_style_plain:not(.product-category) .post_item:before {
		display: none !important;
		content: none !important;
	}

	.woocommerce ul.products .product_style_plain div{

	}

	.woocommerce ul.products .product_style_plain .wrap-data-hover {
		position: static !important;
		left: auto !important;
		right: auto !important;
		z-index: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0 !important;
		padding: 0 !important;
		opacity: 1 !important;
		visibility: visible !important;
		border: none !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.woocommerce ul.products .product_style_plain:not(.product-category) .post_item:hover {
		z-index: auto !important;
	}
}

/* Shop cards: hide Color attribute swatches (TRX may re-add visible pa_color from product data) */
.woocommerce ul.products .trx_addons_product_attributes .trx_addons_product_attribute[data-attribute="pa_color"] {
	display: none !important;
}
/* Custom Color Family gradient swatches — match TRX color dot size (~15px) */
.bonbon_color_family_wrap .bonbon_color_family_swatch_inner {
	display: block;
	width: 15px !important;
	height: 15px !important;
	line-height: 15px !important;
	box-sizing: border-box;
	border: none !important;
	border-radius: 50%;
	background-clip: padding-box;
}

/* Single product: multi-row add-to-cart */
.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-rows {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.2rem;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-rows tr {
	background: transparent !important;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-rows tr td {
	background: transparent !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-rows tr:last-child td {
	border-bottom: 0;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-label,
.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty {
	padding: 0.72rem 0;
	vertical-align: middle;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-label {
	padding-right: 1rem;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-row-main {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-name {
	display: block;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.55rem;
	font-size: 0.88em;
	line-height: 1.5;
	opacity: 0.9;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-meta-item {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.2rem;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-meta-item:not(:last-child)::after {
	content: "|";
	margin-left: 0.35rem;
	opacity: 0.45;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-meta-label {
	font-weight: 600;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-thumb {
	display: inline-flex;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty {
	display: table-cell;
	text-align: right;
	width: 8rem;
	white-space: nowrap;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty input[type="number"],
.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty .bonbon-child-variation-unit {
	display: inline-block;
	vertical-align: middle;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty .bonbon-child-variation-unit {
	margin-left: 0.45rem;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-qty input[type="number"] {
	width: 6.5rem;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 6px;
	padding-inline: 0.4rem;
	background: #fff;
}

.single-product .bonbon-child-multi-row-cart .bonbon-child-variation-unit {
	display: inline-block;
	opacity: 0.85;
	font-size: 0.92em;
	white-space: nowrap;
}

.single-product .bonbon-child-multi-row-cart .single_add_to_cart_button {
	margin-top: 0.8rem;
}

/* Single product compact meta under title */
.single-product .summary .bonbon_child_single_meta {
	margin: 0.5rem 0 1rem;
}

.single-product .summary .bonbon_child_single_meta > span {
	display: block;
	margin: 0.1rem 0;
}

.single-product .summary .bonbon_child_single_meta .bonbon_child_single_description {
	margin-top: 0.9rem;
}

/* Wholesale access: guest restrictions + account entry point */
.menu_main_nav_area .bonbon-child-account-menu-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.2rem;
	border: 1px solid currentColor;
	border-radius: 999px;
}

.top_panel_mobile_navi .bonbon-child-account-menu-item > a {
	padding: 0.55rem 1rem;
}

body.bonbon-shop-guest .sc_layouts_cart,
body.bonbon-shop-guest .added_to_cart,
body.bonbon-shop-guest .add_to_cart_button,
body.bonbon-shop-guest .product_type_simple,
body.bonbon-shop-guest .product_type_variable,
body.bonbon-shop-guest .shop_cart,
body.bonbon-shop-guest .add_to_cart_wrap,
body.bonbon-shop-guest .wrap-data-hover .shop_cart,
body.bonbon-shop-guest .icons .shop_cart,
body.bonbon-shop-guest .single_add_to_cart_button {
	display: none !important;
}

.single-product .bonbon-child-login-to-order {
	margin-top: 1rem;
}

.single-product .bonbon-child-login-to-order .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Hide dummy pricing everywhere on the frontend */
body.bonbon-hide-prices .price,
body.bonbon-hide-prices .woocommerce-variation-price,
body.bonbon-hide-prices .woocommerce-mini-cart__total,
body.bonbon-hide-prices .sc_layouts_cart_totals,
body.bonbon-hide-prices .sc_layouts_cart_summa {
	display: none !important;
}

body.bonbon-hide-prices.woocommerce-cart .shop_table th.product-price,
body.bonbon-hide-prices.woocommerce-cart .shop_table td.product-price,
body.bonbon-hide-prices.woocommerce-cart .shop_table th.product-subtotal,
body.bonbon-hide-prices.woocommerce-cart .shop_table td.product-subtotal,
body.bonbon-hide-prices.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.bonbon-hide-prices.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.bonbon-hide-prices .woocommerce-table--order-details th.product-total,
body.bonbon-hide-prices .woocommerce-table--order-details td.product-total {
	display: none !important;
}

body.bonbon-hide-prices .cart_totals,
body.bonbon-hide-prices.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot,
body.bonbon-hide-prices .woocommerce-table--order-details tfoot {
	display: none !important;
}

/* wishlist, my list, favorite... after add to cart button hide */

.tinvwl-woocommerce_after_add_to_cart_button{
	display: none !important;
}