/* Dhaka Shop - WooCommerce pages: shop, product, cart, checkout, account. */

/* ---------- shop and category lists ---------- */
.woocommerce-products-header__title, .page-title { font-size: 30px; margin-bottom: 8px; }
.woocommerce-result-count { float: left; margin: 0 0 18px; color: var(--mut); font-size: 14px; line-height: 44px; }
.woocommerce-ordering { float: right; margin: 0 0 18px; }
.woocommerce-ordering select { height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--ln); border-radius: var(--rs); background: #fff; font: inherit; color: var(--tx); }
ul.products { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
ul.products::before, ul.products::after { display: none; }
ul.products li.bes-li { margin: 0; width: auto; float: none; min-width: 0; }
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0; justify-content: center; }
.woocommerce-pagination .page-numbers { margin: 0; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--rs); border: 1px solid var(--ln); background: var(--p-ll); color: var(--tx); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.woocommerce-message { border-color: #b9e4c9; background: #e8f7ee; }
.woocommerce-error { border-color: #f3c2c2; background: #fdecec; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- single product ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.single-product div.product > .woocommerce-tabs, .single-product div.product > .related, .single-product div.product > .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; opacity: 1 !important; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; border-radius: var(--r); background: var(--p-ll); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shs); text-indent: -999px; overflow: hidden; }
.flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.flex-control-thumbs img { border-radius: var(--rs); cursor: pointer; opacity: .65; border: 2px solid transparent; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--p); }
.product_title { font-size: 28px; }
.single-product .summary .price { font: 800 26px var(--fonth); color: var(--p); margin: 0 0 14px; }
.single-product .summary .price del { color: var(--mut); font-weight: 400; font-size: 18px; }
.single-product .summary .price ins { text-decoration: none; background: none; }
.woocommerce-product-details__short-description { color: var(--tx); margin-bottom: 18px; }
.onsale { position: absolute; top: 14px; left: 14px; z-index: 6; background: var(--sale); color: #fff; padding: 6px 12px; border-radius: 999px; font: 700 13px var(--fonth); }
form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
form.cart.variations_form { display: block; }
.single_variation_wrap { margin-top: 12px; }
table.variations { border: 0; margin-bottom: 8px; }
table.variations th, table.variations td { padding: 6px 12px 6px 0; vertical-align: middle; text-align: left; border: 0; }
table.variations label { font-weight: 600; color: var(--ink); }
table.variations select { height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--ln); border-radius: var(--rs); background: #fff; font: inherit; width: 100%; max-width: 320px; }
.quantity input.qty { width: 84px; height: 46px; text-align: center; border: 1px solid var(--ln); border-radius: var(--rs); font: inherit; background: #fff; }
.single_add_to_cart_button, button.button.alt, .button.alt { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 28px; border: 0; border-radius: var(--rs); background: var(--p); color: #fff; font-weight: 700; }
.single_add_to_cart_button:hover, button.button.alt:hover { background: var(--p-d); color: #fff; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.product_meta { color: var(--mut); font-size: 14px; display: grid; gap: 4px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 -1px; border-bottom: 1px solid var(--ln); overflow-x: auto; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs a { display: block; padding: 12px 18px; color: var(--mut); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--p); border-bottom-color: var(--p); }
.woocommerce-Tabs-panel { padding: 22px 0; max-width: 860px; }
.woocommerce-Tabs-panel h2 { font-size: 20px; }
.related.products > h2, .upsells > h2 { font-size: 24px; margin: 18px 0 14px; }
table.shop_attributes { border-collapse: collapse; width: 100%; max-width: 640px; }
table.shop_attributes th, table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--ln); text-align: left; }

/* ---------- classic WooCommerce forms and buttons (account, track order) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce-Button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border: 0; border-radius: var(--rs); background: var(--p); color: #fff; font-weight: 600; line-height: 1.3; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--p-d); color: #fff; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; padding: 11px 14px; border: 1px solid var(--ln); border-radius: var(--rs); font: inherit; background: #fff; min-height: 46px; }
.woocommerce form .form-row input:focus, .woocommerce form .form-row textarea:focus { outline: 2px solid var(--p); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password, .woocommerce-EditAccountForm { border: 1px solid var(--ln); border-radius: var(--r); padding: 22px; background: #fff; }
.woocommerce .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce .u-columns .col-1, .woocommerce .u-columns .col-2 { width: auto; float: none; }
.woocommerce-MyAccount-navigation { float: left; width: 24%; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; background: #fff; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; color: var(--tx); border-bottom: 1px solid var(--p-ll); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { background: var(--p-l); color: var(--p); }
.woocommerce-MyAccount-content { float: right; width: 72%; }
.woocommerce-account .woocommerce::after { content: ""; display: block; clear: both; }
table.shop_table { width: 100%; border: 1px solid var(--ln); border-radius: var(--r); border-collapse: separate; border-spacing: 0; background: #fff; overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 12px 14px; border-bottom: 1px solid var(--ln); text-align: left; }
table.shop_table th { color: var(--ink); }

/* ---------- cart and checkout blocks ---------- */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { max-width: var(--wrap); margin: 0 auto; }
.wc-block-checkout, .wc-block-cart { font-family: var(--font); color: var(--tx); }
.wc-block-components-checkout-step__title, .wc-block-components-title.wc-block-components-title { color: var(--ink); font-family: var(--fonth); font-weight: 700; font-size: 20px; }
.wc-block-components-checkout-step { padding-left: 0; border-top: 0; }
.wc-block-components-checkout-step::before { display: none; }
.wc-block-components-checkout-step__container { padding-left: 0; }
.wc-block-components-text-input input, .wc-block-components-form .wc-block-components-text-input input[type], .wc-block-components-select .wc-blocks-components-select__select, .wc-block-components-textarea, .wc-block-components-combobox .components-combobox-control input, .wc-block-components-address-form select { border: 1px solid var(--ln) !important; border-radius: var(--rs) !important; background: #fff; color: var(--tx); }
.wc-block-components-text-input input:focus, .wc-block-components-select .wc-blocks-components-select__select:focus, .wc-block-components-textarea:focus { outline: 2px solid var(--p); outline-offset: 0; border-color: var(--p) !important; box-shadow: none !important; }
.wc-block-components-checkbox input[type=checkbox], .wc-block-components-radio-control__input { accent-color: var(--p); }
.wc-block-components-address-card { border: 1px solid var(--ln); border-radius: var(--rs); background: #fff; }
.wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-content { border-color: var(--ln) !important; box-shadow: none !important; }
.wc-block-components-radio-control-accordion-option--checked-option, .wc-block-components-radio-control__option-checked { border-color: var(--p) !important; background: var(--p-ll); }
.wc-block-components-radio-control__input:checked { border-color: var(--p) !important; }
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { background: #fff; border: 1px solid var(--ln); border-radius: var(--r); padding: 18px 18px 6px; box-shadow: var(--shs); }
.wc-block-components-totals-wrapper { border-color: var(--ln) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--ink); font-weight: 800; font-size: 18px; }
.wc-block-components-product-name { color: var(--ink); font-weight: 500; text-decoration: none; }
.wc-block-components-product-price__regular { color: var(--mut); }
.wc-block-components-product-price__value.is-discounted { color: var(--p); font-weight: 700; }
.wc-block-components-sale-badge { color: var(--sale); border: 1px solid var(--sale); border-radius: 999px; background: #fff; }
.wc-block-components-order-summary-item__quantity { background: var(--p); color: #fff; border: 2px solid #fff; box-shadow: none; }
.wc-block-components-product-metadata__description { display: none; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--p) !important; color: #fff !important; border: 0 !important; border-radius: var(--rs) !important; font-weight: 700; padding: 14px 24px; box-shadow: none !important; transition: background .2s; }
.wc-block-components-button:not(.is-link):hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--p-d) !important; }
.wc-block-components-button.outlined, .wc-block-components-totals-coupon__button { background: #fff !important; color: var(--p) !important; border: 1px solid var(--p) !important; }
.wc-block-components-checkout-return-to-cart-button, .wc-block-components-button.is-link, .wc-block-components-totals-coupon__content a { color: var(--p) !important; }
.wc-block-cart .wc-block-cart-items th { color: var(--ink); font-weight: 700; text-transform: none; }
.wc-block-cart .wc-block-cart-items__row { border-color: var(--ln); }
.wc-block-components-quantity-selector { border: 1px solid var(--ln); border-radius: var(--rs); background: #fff; }
.wc-block-components-quantity-selector::after { display: none; }
.wc-block-cart-item__remove-link { color: var(--mut); }
.wc-block-cart-item__remove-link:hover { color: var(--sale); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none; width: 100%; }
}
@media (max-width: 767px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.woocommerce .u-columns { grid-template-columns: 1fr; }
	.woocommerce-result-count, .woocommerce-ordering { float: none; width: 100%; line-height: 1.4; }
	.woocommerce-ordering select { width: 100%; }
	.product_title { font-size: 23px; }
	.wc-block-components-checkout-place-order-button { width: 100%; }
	.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { padding: 14px 14px 4px; }
	form.cart { gap: 10px; }
	.single_add_to_cart_button { flex: 1; }
}
