/* Bevel Kit — WooCommerce product widgets.
   WooCommerce's markup is written for a shop template: the gallery starts invisible until a script
   reveals it, the product loop is laid out with floats and percentage widths, the tab rail is drawn
   with pseudo-elements. Every rule here is scoped to a widget's own class so a page keeps the shop
   it had everywhere else. */

/* ---------------------------------------------------------- placeholder (editor) */
.bvl-product-placeholder { padding: 24px; border: 1px dashed #d4d4d8; border-radius: 10px; color: #71717a; text-align: center; font-size: 14px; }

/* ---------------------------------------------------------- title, price, text */
.bvl-product-title { margin: 0; }
.bvl-product-price .price { display: block; margin: 0; }
.bvl-product-price del { opacity: 1; }
.bvl-product-price ins { text-decoration: none; background: transparent; }
.bvl-product-excerpt > :last-child, .bvl-product-content > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- gallery */
/* The gallery ships at opacity 0 and WooCommerce's slider script reveals it. The editor loads no
   such script, so without this the widget would look empty while the images are right there. */
.elementor-editor-active .bvl-product-images .woocommerce-product-gallery,
.elementor-editor-preview .bvl-product-images .woocommerce-product-gallery { opacity: 1 !important; }
.bvl-product-images .woocommerce-product-gallery { margin: 0; }
.bvl-product-images .woocommerce-product-gallery img { display: block; height: auto; }
.bvl-product-images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: var(--bvl-product-images-gap, 12px); margin: var(--bvl-product-images-gap, 12px) 0 0; padding: 0; list-style: none; }
.bvl-product-images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.bvl-product-images .flex-control-thumbs img { cursor: pointer; }

/* ---------------------------------------------------------- rating */
.bvl-product-rating .woocommerce-product-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; line-height: 1; }
.bvl-product-rating .star-rating { float: none; margin: 0; }
.bvl-product-rating .woocommerce-review-link { text-decoration: none; }

/* ---------------------------------------------------------- stock */
.bvl-product-stock .stock { margin: 0; }

/* ---------------------------------------------------------- meta */
.bvl-product-meta .product_meta { margin: 0; }
.bvl-product-meta--divider-yes .product_meta > span { display: block; padding: 8px 0; border-top: 1px solid var(--bvl-product-meta-divider, #e4e4e7); }
.bvl-product-meta--divider-yes .product_meta > span:first-child { padding-top: 0; border-top: 0; }

/* ---------------------------------------------------------- add to cart */
.bvl-product-add-to-cart .cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.bvl-product-add-to-cart .cart::before, .bvl-product-add-to-cart .cart::after { display: none; }
.bvl-product-add-to-cart .variations, .bvl-product-add-to-cart .woocommerce-variation, .bvl-product-add-to-cart .woocommerce-variation-add-to-cart, .bvl-product-add-to-cart .stock, .bvl-product-add-to-cart .woocommerce-grouped-product-list { flex: 1 0 100%; }
.bvl-product-add-to-cart .quantity { display: inline-flex; float: none; margin: 0; }
.bvl-product-add-to-cart .quantity .qty { width: var(--bvl-product-qty-width, 76px); text-align: center; }
.bvl-product-add-to-cart .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; float: none; margin: 0; cursor: pointer; }
.bvl-product-add-to-cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bvl-product-add-to-cart .variations { border: 0; }
.bvl-product-add-to-cart .variations td, .bvl-product-add-to-cart .variations th { padding: 4px 0; border: 0; text-align: start; }

/* ---------------------------------------------------------- tabs */
.bvl-product-tabs .woocommerce-tabs { margin: 0; padding: 0; }
.bvl-product-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; }
.bvl-product-tabs ul.tabs::before, .bvl-product-tabs ul.tabs::after, .bvl-product-tabs ul.tabs li::before, .bvl-product-tabs ul.tabs li::after { display: none; content: none; }
.bvl-product-tabs ul.tabs li { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.bvl-product-tabs ul.tabs li a { display: block; padding: 10px 18px; text-decoration: none; font-weight: 600; }
.bvl-product-tabs .panel { margin: 0; padding: 0; }
.bvl-product-tabs .panel > :first-child { margin-top: 0; }
.bvl-product-tabs .panel > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- breadcrumb */
.bvl-product-breadcrumb .woocommerce-breadcrumb { margin: 0; padding: 0; }
.bvl-product-breadcrumb .woocommerce-breadcrumb a { text-decoration: none; }
.bvl-product-breadcrumb__separator { display: inline-block; padding: 0 6px; }

/* ---------------------------------------------------------- notices */
.bvl-product-notices .woocommerce-notices-wrapper > * { margin: 0 0 12px; padding: 14px 18px; border-radius: 6px; list-style: none; }
.bvl-product-notices .woocommerce-notices-wrapper > :last-child { margin-bottom: 0; }
.bvl-product-notices .woocommerce-error li { margin: 0; list-style: none; }
.bvl-product-notices .button { margin-inline-start: 12px; }

/* ---------------------------------------------------------- products grid */
.bvl-products ul.products { display: grid; grid-template-columns: repeat(var(--bvl-products-columns, 4), minmax(0, 1fr)); gap: var(--bvl-products-gap, 28px); margin: 0; padding: 0; list-style: none; }
.bvl-products ul.products::before, .bvl-products ul.products::after { display: none; content: none; }
/* WooCommerce floats loop items at a fixed percentage — the grid owns the widths now. */
.bvl-products li.product { position: relative; width: auto; float: none; clear: none; margin: 0; padding: 0; list-style: none; }
.bvl-products li.product a { text-decoration: none; }
.bvl-products li.product img { display: block; width: 100%; height: auto; margin: 0 0 14px; }
.bvl-products li.product .woocommerce-loop-product__title { margin: 0 0 6px; padding: 0; font-size: 1rem; line-height: 1.35; color: var(--e-global-color-headline, inherit); }
.bvl-products li.product .price { display: block; margin: 0 0 12px; color: var(--e-global-color-text, inherit); font-size: .95rem; }
.bvl-products li.product .price del { margin-inline-end: 6px; opacity: .55; }
.bvl-products li.product .price ins { text-decoration: none; font-weight: 600; }
.bvl-products li.product .star-rating { float: none; margin: 0 0 8px; }
.bvl-products li.product .onsale { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; margin: 0; padding: 4px 10px; border-radius: 2px; background: var(--e-global-color-headline, #111); color: var(--e-global-color-white, #fff); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
/* The loop's add-to-cart is WooCommerce's own `a.button`, not an Elementor button: without this
   it inherits the theme's default and lands on a designed page as a purple pill. */
.bvl-products li.product .button { display: inline-block; padding: 10px 18px; border: 1px solid var(--e-global-color-border, currentColor); border-radius: var(--bvl-products-button-radius, 3px); background: transparent; color: var(--e-global-color-headline, inherit); font-size: .82rem; font-weight: 500; line-height: 1.25; }
.bvl-products li.product .button:hover { border-color: var(--e-global-color-primary, currentColor); color: var(--e-global-color-primary, inherit); }
.bvl-products li.product .added_to_cart { display: inline-block; margin-inline-start: 10px; font-size: .82rem; }
.bvl-products .woocommerce-result-count, .bvl-products .woocommerce-ordering { margin: 0 0 20px; }
.bvl-products .woocommerce-pagination ul { display: flex; gap: 6px; margin: 32px 0 0; padding: 0; border: 0; list-style: none; }
.bvl-products .woocommerce-pagination ul li { border: 0; }
.bvl-products .woocommerce-pagination ul a, .bvl-products .woocommerce-pagination ul span { display: block; min-width: 38px; padding: 8px 10px; border: 1px solid var(--e-global-color-border, currentColor); border-radius: 3px; text-align: center; text-decoration: none; color: var(--e-global-color-headline, inherit); }
.bvl-products .woocommerce-pagination ul span.current { background: var(--e-global-color-headline, #111); border-color: var(--e-global-color-headline, #111); color: var(--e-global-color-white, #fff); }

/* WooCommerce floats the gallery slides; without this the wrapper measures zero high and
   anything that reads its height — print, a full-page capture, a flex parent — loses the
   main photograph. */
.bvl-product-images .woocommerce-product-gallery__wrapper::after { display: block; clear: both; content: ""; }

/* ---------------------------------------------------------- related and upsells */
.bvl-product-related ul.products, .bvl-product-upsells ul.products { display: grid; grid-template-columns: repeat(var(--bvl-products-columns, 4), minmax(0, 1fr)); gap: var(--bvl-products-gap, 28px); margin: 0; padding: 0; list-style: none; }
.bvl-product-related ul.products::before, .bvl-product-related ul.products::after, .bvl-product-upsells ul.products::before, .bvl-product-upsells ul.products::after { display: none; content: none; }
.bvl-product-related li.product, .bvl-product-upsells li.product { width: auto; float: none; clear: none; margin: 0; }
.bvl-product-related li.product a, .bvl-product-upsells li.product a { text-decoration: none; }
.bvl-product-related li.product img, .bvl-product-upsells li.product img { display: block; width: 100%; height: auto; margin: 0 0 12px; }
.bvl-product-related li.product .woocommerce-loop-product__title, .bvl-product-upsells li.product .woocommerce-loop-product__title { margin: 0 0 6px; padding: 0; font-size: 1rem; }
.bvl-product-related li.product .price, .bvl-product-upsells li.product .price { display: block; margin: 0 0 10px; }
.bvl-product-related li.product .star-rating, .bvl-product-upsells li.product .star-rating { float: none; margin: 0 0 8px; }
.bvl-product-related > section > h2, .bvl-product-upsells > section > h2 { margin: 0 0 24px; }

/* ---------------------------------------------------------- product categories */
.bvl-product-categories ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.bvl-product-categories ul.products::before, .bvl-product-categories ul.products::after { display: none; content: none; }
.bvl-product-categories li.product-category { width: auto; float: none; clear: none; margin: 0; }
.bvl-product-categories li.product-category a { display: block; text-decoration: none; }
.bvl-product-categories li.product-category img { display: block; width: 100%; height: auto; margin: 0 0 14px; }
.bvl-product-categories .woocommerce-loop-category__title { margin: 0; padding: 0; font-size: 1rem; }
/* WooCommerce marks the count with <mark>, which the browser paints yellow. */
.bvl-product-categories .woocommerce-loop-category__title .count { background: transparent; padding: 0; font-weight: inherit; }
.bvl-product-categories__empty { margin: 0; }

/* ---------------------------------------------------------- shop tables (cart, checkout, account, order) */
/* WooCommerce draws these with a rounded outer border and separated cells; the widgets give the
   rows a single hairline instead, and the two custom properties are what the colour and width
   controls write to. */
.bvl-cart table.shop_table, .bvl-checkout table.shop_table, .bvl-my-account table.shop_table, .bvl-order-summary table.order_details { width: 100%; margin: 0; border: 0; border-radius: 0; border-collapse: collapse; }
.bvl-cart table.shop_table th, .bvl-cart table.shop_table td,
.bvl-checkout table.shop_table th, .bvl-checkout table.shop_table td,
.bvl-my-account table.shop_table th, .bvl-my-account table.shop_table td,
.bvl-order-summary table.order_details th, .bvl-order-summary table.order_details td { border: 0; border-bottom: var(--bvl-woo-border-width, 1px) solid var(--bvl-woo-border, #e4e4e7); }

/* ---------------------------------------------------------- cart */
.bvl-cart .woocommerce-cart-form { margin: 0; }
.bvl-cart td.product-thumbnail img { display: block; height: auto; margin: 0; }
.bvl-cart td.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bvl-cart td.actions .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; float: none; }
.bvl-cart .quantity .qty { width: 76px; text-align: center; }
.bvl-cart .cart-collaterals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 40px; width: auto; margin-top: 32px; }
.bvl-cart .cart-collaterals::before, .bvl-cart .cart-collaterals::after { display: none; content: none; }
.bvl-cart .cart-collaterals .cross-sells { flex: 1 1 100%; float: none; width: auto; }
.bvl-cart .cart-collaterals .cart_totals { flex: 0 1 auto; float: none; }
.bvl-cart .cart_totals h2 { margin: 0 0 16px; }
.bvl-cart .cross-sells ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.bvl-cart .cross-sells li.product { width: auto; float: none; margin: 0; }
.bvl-cart .cross-sells li.product img { display: block; width: 100%; height: auto; }
.bvl-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
.bvl-cart .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; text-decoration: none; }
.bvl-cart .button { cursor: pointer; }

/* ---------------------------------------------------------- checkout */
.bvl-checkout .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bvl-checkout-gap, 48px); }
.bvl-checkout .col2-set::before, .bvl-checkout .col2-set::after { display: none; content: none; }
.bvl-checkout .col2-set .col-1, .bvl-checkout .col2-set .col-2 { float: none; width: auto; }
.bvl-checkout .form-row { margin: 0 0 16px; padding: 0; }
.bvl-checkout .form-row label:not(.checkbox) { display: block; margin-bottom: 6px; }
.bvl-checkout .input-text, .bvl-checkout select { width: 100%; }
.bvl-checkout #order_review_heading { margin: 32px 0 20px; }
.bvl-checkout .woocommerce-checkout-review-order-table { margin-bottom: 24px; }
.bvl-checkout #payment { border-radius: 0; }
.bvl-checkout #payment ul.payment_methods { margin: 0; padding: 0; list-style: none; border: 0; }
.bvl-checkout #payment ul.payment_methods li { margin: 0 0 10px; }
.bvl-checkout #payment .form-row.place-order { margin: 0; padding: 0; }
.bvl-checkout #place_order { cursor: pointer; }
/* The review column is placed by hand so it starts beside the fields rather than below them;
   anything a payment extension adds to the form keeps the full width. */
.bvl-checkout--split form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); column-gap: var(--bvl-checkout-gap, 48px); align-items: start; }
.bvl-checkout--split form.checkout > * { grid-column: 1 / -1; min-width: 0; }
.bvl-checkout--split form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.bvl-checkout--split form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
.bvl-checkout--split form.checkout > #order_review { grid-column: 2; grid-row: 2; }
.bvl-checkout--split .col2-set { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) {
	.bvl-checkout .col2-set { grid-template-columns: minmax(0, 1fr); }
	.bvl-checkout--split form.checkout { display: block; }
}

/* ---------------------------------------------------------- my account */
.bvl-my-account .woocommerce { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--bvl-account-gap, 40px); }
.bvl-my-account .woocommerce > * { flex: 1 1 100%; min-width: 0; }
.bvl-my-account .woocommerce-MyAccount-navigation { flex: 0 0 var(--bvl-account-nav-width, 25%); float: none; width: auto; }
.bvl-my-account .woocommerce-MyAccount-content { flex: 1 1 0%; float: none; width: auto; }
.bvl-my-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.bvl-my-account .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: var(--bvl-account-nav-spacing, 4px); margin: 0; padding: 0; list-style: none; }
.bvl-my-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
.bvl-my-account .woocommerce-MyAccount-navigation li a { display: block; text-decoration: none; }
.bvl-my-account--stacked .woocommerce-MyAccount-navigation { flex-basis: 100%; }
.bvl-my-account--stacked .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
.bvl-my-account .input-text, .bvl-my-account select { width: 100%; }
.bvl-my-account .button { display: inline-block; cursor: pointer; text-decoration: none; }
@media (max-width: 767px) {
	.bvl-my-account .woocommerce-MyAccount-navigation { flex-basis: 100%; }
}

/* ---------------------------------------------------------- order summary */
.bvl-order-summary .woocommerce-order-details__title { margin: 0 0 20px; }
.bvl-order-summary--no-title .woocommerce-order-details__title { display: none; }
.bvl-order-summary .woocommerce-customer-details address { padding: 0; border: 0; border-radius: 0; font-style: normal; }
.bvl-order-summary .woocommerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bvl-order-summary .woocommerce-columns .col-1, .bvl-order-summary .woocommerce-columns .col-2 { float: none; width: auto; }
.bvl-order-summary .button { display: inline-block; text-decoration: none; }
@media (max-width: 767px) {
	.bvl-order-summary .woocommerce-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------- menu cart */
.bvl-menu-cart { position: relative; display: flex; align-items: center; }
.bvl-menu-cart--hide-empty.bvl-menu-cart--empty { display: none; }
.bvl-menu-cart .bvl-menu-cart__toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
.bvl-menu-cart__icon { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 24px; line-height: 1; }
.bvl-menu-cart__icon > svg { width: 1em; height: 1em; fill: currentColor; }
.bvl-menu-cart__icon > i { font-size: inherit; line-height: 1; }
.bvl-menu-cart__count { position: absolute; inset-inline-end: -10px; top: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 50%; background: var(--e-global-color-primary, #111); color: var(--e-global-color-white, #fff); font-size: 11px; font-weight: 600; line-height: 1; }
.bvl-menu-cart--count-inline .bvl-menu-cart__count { position: static; }
.bvl-menu-cart__subtotal { line-height: 1; }
.bvl-menu-cart__subtotal .woocommerce-Price-amount { color: inherit; }

/* The panel is a dialog either way: hidden by visibility, so nothing inside it can be tabbed to
   while it is closed. */
.bvl-menu-cart__panel { --bvl-menu-cart-width: 380px; }
.bvl-menu-cart__panel .bvl-menu-cart__body { display: flex; flex-direction: column; }
.bvl-menu-cart__panel--side { position: fixed; inset: 0; z-index: 9999; visibility: hidden; }
.bvl-menu-cart__panel--side .bvl-menu-cart__overlay { position: absolute; inset: 0; opacity: 0; background-color: rgba(0, 0, 0, 0.45); transition: opacity 0.25s ease; }
.bvl-menu-cart__panel--side .bvl-menu-cart__body { position: absolute; top: 0; bottom: 0; width: min(var(--bvl-menu-cart-width, 380px), 100%); overflow-y: auto; background-color: #ffffff; transition: transform 0.3s ease; }
.bvl-menu-cart__panel--right .bvl-menu-cart__body { right: 0; transform: translateX(100%); }
.bvl-menu-cart__panel--left .bvl-menu-cart__body { left: 0; transform: translateX(-100%); }
.bvl-menu-cart__panel--side.bvl-menu-cart__panel--open { visibility: visible; }
.bvl-menu-cart__panel--side.bvl-menu-cart__panel--open .bvl-menu-cart__overlay { opacity: 1; }
.bvl-menu-cart__panel--side.bvl-menu-cart__panel--open .bvl-menu-cart__body { transform: none; }
.bvl-menu-cart__panel--dropdown { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 999; width: min(var(--bvl-menu-cart-width, 380px), 90vw); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.bvl-menu-cart__panel--dropdown .bvl-menu-cart__overlay { display: none; }
.bvl-menu-cart__panel--dropdown .bvl-menu-cart__body { background-color: #ffffff; }
.bvl-menu-cart__panel--dropdown.bvl-menu-cart__panel--open { visibility: visible; opacity: 1; transform: none; }
.bvl-menu-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bvl-menu-cart__title { font-weight: 600; }
.bvl-menu-cart .bvl-menu-cart__close { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.bvl-menu-cart__close > svg { width: 1em; height: 1em; fill: currentColor; }
.bvl-menu-cart__body .widget_shopping_cart_content { display: flex; flex: 1 1 auto; flex-direction: column; }
.bvl-menu-cart__panel ul.woocommerce-mini-cart { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.bvl-menu-cart__panel .woocommerce-mini-cart-item { position: relative; margin: 0; padding: 14px 26px 14px 0; border-bottom: 1px solid var(--bvl-menu-cart-divider, #ececf1); }
.bvl-menu-cart__panel .woocommerce-mini-cart-item > a:not(.remove) { display: grid; grid-template-columns: var(--bvl-menu-cart-thumb, 64px) minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; }
.bvl-menu-cart__panel .woocommerce-mini-cart-item img { width: var(--bvl-menu-cart-thumb, 64px); height: auto; float: none; margin: 0; }
.bvl-menu-cart__panel .woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; padding-inline-start: calc(var(--bvl-menu-cart-thumb, 64px) + 12px); }
.bvl-menu-cart__panel .woocommerce-mini-cart-item a.remove { position: absolute; top: 14px; inset-inline-end: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 18px; line-height: 1; text-decoration: none; }
.bvl-menu-cart__panel .woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--bvl-menu-cart-divider, #ececf1); }
.bvl-menu-cart__panel .woocommerce-mini-cart__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.bvl-menu-cart__panel .woocommerce-mini-cart__buttons .button { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.bvl-menu-cart__panel .woocommerce-mini-cart__empty-message { margin: 0; }
