/* Everblossom Florals – WooCommerce styles (shop, product, cart, checkout). */

.woocommerce .woocommerce-breadcrumb { font-size: .88rem; color: var(--ebf-muted); margin-bottom: 16px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ebf-muted); }
.ebf-shop { padding-top: 34px; padding-bottom: 60px; }
.woocommerce-products-header__title { font-size: clamp(2rem, 4vw, 3rem); }
.woocommerce .woocommerce-result-count { color: var(--ebf-muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--ebf-line); border-radius: 8px; padding: .5em .8em; background: #fff; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: var(--ebf-mint); color: var(--ebf-ink); border: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.woocommerce-error { background: var(--ebf-peach); flex-direction: column; align-items: flex-start; }
.woocommerce-info { background: var(--ebf-blush); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: .45em 1.1em; }

/* Shop loop */
.woocommerce ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 16px; text-align: center; }
.woocommerce ul.products li.product a img { margin: 0 0 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--ebf-serif); font-size: 1.3rem; padding: 0 14px; color: var(--ebf-ink); margin: 0 0 4px; }
.woocommerce ul.products li.product .ebf-card__desc { padding: 0 14px; }
.woocommerce ul.products li.product .price { color: var(--ebf-ink); font-weight: 500; display: block; margin-bottom: 10px; }
.woocommerce ul.products li.product .ebf-btn, .woocommerce ul.products li.product .button { margin: auto 14px 0; width: calc(100% - 28px); }
.woocommerce span.onsale { background: var(--ebf-peach-deep); color: #fff; border-radius: 999px; min-height: 0; line-height: 1; padding: .5em .9em; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 8px; padding: .5em .9em; background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ebf-pink); color: var(--ebf-btn-text); }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--ebf-radius); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 2.8rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ebf-rose); font-size: 1.4rem; }
.woocommerce div.product form.cart .variations { margin-bottom: 10px; }
.woocommerce div.product form.cart .variations select { border: 1px solid var(--ebf-line); border-radius: 8px; padding: .6em .8em; background: #fff; min-width: 200px; }
.woocommerce div.product form.cart .button { background: var(--ebf-pink); color: var(--ebf-btn-text); }
.woocommerce .quantity .qty { border: 1px solid #e6d6d3; border-radius: 8px; padding: .55em; width: 4em; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ebf-blush); border-color: var(--ebf-line); border-radius: 8px 8px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--ebf-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .product_meta { font-size: .88rem; color: var(--ebf-muted); }
.ebf-perks { list-style: none; padding: 14px 16px; margin: 16px 0; background: var(--ebf-mint); border-radius: 10px; font-size: .92rem; }
.ebf-perks li::before { content: "✿ "; color: var(--ebf-green); }

/* ---------- Cart: items on the left, Order Summary on the right ---------- */
.woocommerce-cart .ebf-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.woocommerce-cart .ebf-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .ebf-content > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-cart .ebf-content > .woocommerce > .cart-empty, .woocommerce-cart .ebf-content > .woocommerce > .return-to-shop, .woocommerce-cart .ebf-content > .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
.woocommerce-cart-form { min-width: 0; }
.woocommerce table.shop_table.cart { border: 0; border-collapse: separate; border-spacing: 0; background: transparent; margin: 0; }
.woocommerce table.shop_table.cart thead { display: none; }
.woocommerce table.shop_table.cart tr.cart_item {
	display: grid; grid-template-columns: 170px 1fr auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty sub";
	column-gap: 22px; align-items: center; background: #fff; border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); padding: 14px; margin-bottom: 12px;
}
.woocommerce table.shop_table.cart tr.cart_item td { border: 0; padding: 0; background: none; text-align: left; }
.woocommerce table.shop_table.cart td::before { display: none !important; }
.woocommerce table.shop_table.cart td.product-thumbnail { grid-area: thumb; display: block !important; }
.woocommerce table.shop_table.cart td.product-thumbnail img { width: 170px; height: 170px; object-fit: cover; border-radius: 10px; }
.woocommerce table.shop_table.cart td.product-name { grid-area: name; font-family: var(--ebf-serif); font-size: 1.45rem; }
.woocommerce table.shop_table.cart td.product-name a { color: var(--ebf-ink); }
.woocommerce table.shop_table.cart td.product-name dl.variation { font-family: var(--ebf-sans); font-size: .92rem; color: var(--ebf-muted); margin: 2px 0 0; display: flex; gap: 4px; }
.woocommerce table.shop_table.cart td.product-name dl.variation dt, .woocommerce table.shop_table.cart td.product-name dl.variation dd, .woocommerce table.shop_table.cart td.product-name dl.variation p { margin: 0; float: none; font-weight: 400; }
.woocommerce table.shop_table.cart td.product-price { grid-area: price; font-size: 1.15rem; }
.woocommerce table.shop_table.cart td.product-quantity { grid-area: qty; }
.woocommerce table.shop_table.cart td.product-subtotal { grid-area: sub; font-weight: 500; text-align: right; }
.woocommerce table.shop_table.cart td.product-remove { grid-area: remove; align-self: start; text-align: right; }
.woocommerce table.shop_table.cart a.remove { color: var(--ebf-muted) !important; font-weight: 400; border-radius: 50%; }
.woocommerce table.shop_table.cart a.remove:hover { background: var(--ebf-blush); color: var(--ebf-rose) !important; }
.woocommerce table.shop_table.cart tr:not(.cart_item) { display: block; }
.woocommerce table.shop_table.cart td.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 6px 0 0; border: 0; background: none; }
.woocommerce table.shop_table.cart td.actions .coupon { display: flex; gap: 8px; float: none; }
.woocommerce table.shop_table.cart td.actions .coupon .input-text { border: 1px solid #e6d6d3; border-radius: 8px; padding: .55em .8em; width: 170px; background: #fff; }
.woocommerce table.shop_table.cart td.actions > .button { float: none; background: #fff; }
.woocommerce table.shop_table.cart td.actions .button { padding: .55em 1.1em; font-size: .9rem; }

/* Gift box under the products */
.ebf-gift { background: #fff; border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); padding: 16px 18px; margin: 14px 0 0; }
.ebf-gift--checkout { margin: 24px 0; }
.ebf-gift h3 { font-size: 1.4rem; }
.ebf-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 10px; }
.ebf-check input { width: 18px; height: 18px; accent-color: #e6a3ad; }
.ebf-gift__label { display: block; margin-bottom: 4px; }
.ebf-gift__box { position: relative; }
.ebf-gift__box textarea { padding-bottom: 1.8em; resize: vertical; }
.ebf-gift__count { position: absolute; right: 12px; bottom: 8px; font-size: .82rem; color: var(--ebf-muted); }
.ebf-gift__hint { font-size: .84rem; color: var(--ebf-muted); margin: 6px 0 0; }

/* Add something special (cart) */
.ebf-addons--cart { margin-top: 26px; }
.ebf-addons--cart h2 { font-size: 1.6rem; margin-bottom: 12px; }
.ebf-addons--cart .ebf-addon { cursor: default; }
.ebf-addons--cart .ebf-addon__btn:hover { background: var(--ebf-pink); color: var(--ebf-ink); }

/* Order summary */
.woocommerce-cart .cart-collaterals { width: auto; position: sticky; top: 110px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { float: none; width: 100%; background: linear-gradient(180deg, #fdf0ef, var(--ebf-blush)); border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); padding: 22px 24px; }
.cart_totals h2 { font-size: 1.75rem; margin-bottom: 14px; }
.woocommerce .cart_totals table.shop_table { border: 0; margin: 0 0 10px; }
.woocommerce .cart_totals table.shop_table th, .woocommerce .cart_totals table.shop_table td { border: 0; background: none; padding: 10px 0; font-weight: 400; }
.woocommerce .cart_totals table.shop_table td { text-align: right; }
.woocommerce .cart_totals table.shop_table td::before { display: none; }
.woocommerce .cart_totals .order-total { border-top: 1px solid var(--ebf-pink-hover); }
.woocommerce .cart_totals .order-total th, .woocommerce .cart_totals .order-total td { font-size: 1.25rem; padding-top: 18px; }
.ebf-free-delivery td { line-height: 1.3; }
.ebf-free { color: var(--ebf-green); font-weight: 500; display: block; letter-spacing: .03em; }
.ebf-free-delivery small { display: block; color: var(--ebf-muted); font-size: .82rem; }
.woocommerce .wc-proceed-to-checkout { padding: 6px 0 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
	background: var(--ebf-pink); color: var(--ebf-btn-text); border: 1px solid var(--ebf-pink-hover); border-radius: 8px; font-family: var(--ebf-serif); font-size: 1.4rem; font-weight: 500; padding: .55em 1em; width: 100%; display: block; text-align: center;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover { background: var(--ebf-pink-hover); color: var(--ebf-ink); }
.cart-collaterals .cross-sells { display: none; }

/* ---------- Checkout ---------- */
.woocommerce-checkout .ebf-content > .woocommerce { max-width: 1100px; }
.woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.woocommerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce form.checkout #customer_details { grid-column: 1; }
.woocommerce form.checkout #customer_details .col-1, .woocommerce form.checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce form.checkout #order_review_heading, .woocommerce form.checkout #order_review { grid-column: 2; }
.woocommerce form.checkout #order_review_heading { margin: 0; grid-row: 1; font-size: 1.75rem; }
.woocommerce form.checkout #order_review { grid-row: 1; margin-top: 46px; background: linear-gradient(180deg, #fdf0ef, var(--ebf-blush)); border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); padding: 20px 22px; position: sticky; top: 110px; }
.woocommerce form.checkout h3 { font-size: 1.6rem; margin-top: 10px; }
.woocommerce form .form-row label { font-size: .95rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-checkout .select2-container .select2-selection--single {
	border: 1px solid #e6d6d3; border-radius: 8px; padding: .65em .85em; background: #fff; min-height: 44px;
}
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.6; padding: 0; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { top: 9px; }
.ebf-delivery-fields { background: #fff; border: 1px solid var(--ebf-line); border-radius: var(--ebf-radius); padding: 16px 18px 6px; margin-top: 20px; }
.ebf-delivery-fields::after { content: ""; display: table; clear: both; }
.ebf-delivery-fields .ebf-note { margin: 0 0 12px; background: var(--ebf-mint); border-radius: 8px; padding: 8px 12px; color: var(--ebf-ink); }
.ebf-urgent-time { display: none; }
.ebf-urgent-time.is-visible { display: block; }
.woocommerce table.woocommerce-checkout-review-order-table { border: 0; }
.woocommerce table.woocommerce-checkout-review-order-table th, .woocommerce table.woocommerce-checkout-review-order-table td { border-color: var(--ebf-pink); background: none; }
.woocommerce-checkout #payment { background: #fff; border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box { background: var(--ebf-blush); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ebf-blush); }

/* Order received / My account */
.ebf-order-box { margin: 24px 0; }
.woocommerce-order-overview { background: var(--ebf-mint); border-radius: 10px; padding: 14px 18px !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ebf-ink); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ebf-pink); }

@media (max-width: 1000px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.woocommerce-cart .ebf-content > .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-cart .cart-collaterals { position: static; }
	.woocommerce form.checkout { grid-template-columns: 1fr; }
	.woocommerce form.checkout #order_review_heading, .woocommerce form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; margin-top: 0; }
}
@media (max-width: 768px) {
	.woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
	.woocommerce table.shop_table.cart tr.cart_item { grid-template-columns: 96px 1fr auto; column-gap: 14px; }
	.woocommerce table.shop_table.cart td.product-thumbnail img { width: 96px; height: 96px; }
	.woocommerce table.shop_table.cart td.product-name { font-size: 1.2rem; }
	.woocommerce table.shop_table_responsive tr.cart_item td { display: block; }
	.woocommerce table.shop_table.cart td.actions .coupon { width: 100%; }
	.woocommerce table.shop_table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
}
@media (max-width: 600px) {
	.woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
}
