/* BISMAH storefront. Editorial, quiet UI: one loud thing (the serif headline + hero photo), everything else restrained. */
:root {
	--ink: #14161a;
	--paper: #fff;
	--mist: #f3f4f4;
	--line: #e2e4e6;
	--muted: #5f6670;
	--accent: #8c2f39;
	--serif: Georgia, "Times New Roman", "Noto Serif Bengali", serif;
	--sans: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bismah-hide { display: none !important; }
ul.menu { list-style: none; margin: 0; padding: 0; }

/* ---- header ---- */
.announce { background: var(--ink); color: #e9eaec; text-align: center; font-size: 13px; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { text-decoration: none; }
.logo-text { font-family: var(--serif); font-size: 26px; letter-spacing: .22em; font-weight: 400; }
.custom-logo { max-height: 44px; width: auto; }
.site-nav { flex: 1; }
.site-nav .menu { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--paper); }
.search-panel[hidden] { display: none; }
.woocommerce-product-search { display: flex; gap: 8px; }

/* ---- buttons & forms ---- */
.btn, .button, button.button, input.button, .woocommerce-button, #place_order, .single_add_to_cart_button {
	display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; padding: 13px 26px;
	font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, color .15s;
}
.btn:hover, .button:hover, #place_order:hover, .single_add_to_cart_button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.disabled, .button:disabled, .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea, .select2-selection {
	width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c9ccd0; border-radius: 0; background: #fff; color: var(--ink);
}
.select2-container .select2-selection--single { height: auto; padding: 5px 4px; }
label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; }
.required { color: var(--accent); text-decoration: none; }
.link { font-size: 14px; border-bottom: 1px solid var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.01; letter-spacing: -.025em; margin: 0 0 22px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 32px; }
.hero-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); text-decoration: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.92); font-size: 14px; }

/* ---- sections ---- */
.section { padding-top: 64px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.01em; margin: 0 0 22px; }
.section-head .section-title { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--ink); overflow: hidden; text-decoration: none; color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.03); }
.cat-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: 17px; }
.sale-band { background: var(--mist); margin-top: 56px; padding-bottom: 56px; }
.promise { border-top: 1px solid var(--line); margin-top: 64px; }
.promise-grid { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }
.promise strong { color: var(--ink); margin-right: 6px; }

/* ---- product grid / card ---- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
ul.products li.product { position: relative; margin: 0; }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
.media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.media-alt { opacity: 0; }
li.product:hover .media-alt, li.product:focus-within .media-alt { opacity: 1; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 9px; z-index: 2; }
.badge-out { background: var(--ink); }
.card-cat { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.woocommerce-loop-product__title { font-size: 16px; font-weight: 500; margin: 2px 0 4px; }
.price { font-size: 15px; }
.price del { color: var(--muted); margin-right: 6px; }
.price ins { text-decoration: none; color: var(--accent); font-weight: 600; }

/* ---- shop / archive ---- */
.shop { padding-top: 28px; padding-bottom: 64px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.woocommerce-breadcrumb a { text-decoration: none; }
.page-title, .entry-title, .product_title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.page-title { font-size: clamp(30px, 4vw, 48px); margin: 0 0 8px; }
.woocommerce-result-count { color: var(--muted); font-size: 14px; float: left; margin: 0 0 18px; }
.woocommerce-ordering { float: right; margin: 0 0 18px; }
.woocommerce-ordering select { width: auto; }
ul.products { clear: both; }
.woocommerce-pagination { margin-top: 36px; text-align: center; }
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: block; padding: 7px 13px; border: 1px solid var(--line); text-decoration: none; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- single product ---- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; 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; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; background: var(--mist); }
.flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 8px 0 0; }
.flex-control-thumbs img { cursor: pointer; opacity: .6; } .flex-control-thumbs img.flex-active { opacity: 1; outline: 1px solid var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; background: #fff; padding: 4px 8px; text-decoration: none; font-size: 13px; }
.summary .product_title { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 10px; line-height: 1.1; }
.summary .price { font-size: 22px; margin-bottom: 18px; }
.woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 22px; }
table.variations { border: 0; width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.variations th, table.variations td { padding: 6px 0; text-align: left; display: block; border: 0; }
table.variations label { color: var(--ink); font-weight: 600; }
.reset_variations { font-size: 13px; color: var(--muted); }
.quantity input.qty { width: 74px; text-align: center; }
form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-top: 8px; }
form.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; gap: 12px; margin-top: 8px; }
.single_add_to_cart_button { flex: 1; }
.stock { font-size: 14px; } .stock.out-of-stock { color: var(--accent); }
.product_meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 28px; padding: 0; margin: 40px 0 18px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs a { display: block; padding: 10px 0; text-decoration: none; color: var(--muted); }
.woocommerce-tabs ul.tabs .active a { color: var(--ink); border-bottom: 2px solid var(--ink); }
.related > h2, .upsells > h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 40px 0 20px; }

/* ---- notices ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--mist); display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.woocommerce-error { border-color: var(--accent); display: block; }
.woocommerce-message .button { padding: 8px 16px; }

/* ---- cart ---- */
.page-wrap { padding-top: 36px; padding-bottom: 72px; }
.entry-title { font-size: clamp(30px, 4vw, 46px); margin: 0 0 28px; }
table.shop_table { width: 100%; border-collapse: collapse; }
table.shop_table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.product-thumbnail img { width: 72px; }
td.product-remove a { text-decoration: none; font-size: 22px; color: var(--muted); }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 32px; }
.cart_totals { width: min(100%, 420px); }
.cart_totals h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.wc-proceed-to-checkout .checkout-button { display: block; margin-top: 16px; }
.coupon { display: flex; gap: 8px; } .coupon input { width: 160px; }
td.actions { text-align: right; }

/* ---- checkout (classic) ---- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 8px 56px; align-items: start; }
form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
form.checkout #order_review { grid-column: 2; grid-row: 2; background: var(--mist); padding: 20px; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { margin: 0 0 16px; }
.form-row-wide, #order_comments_field { grid-column: 1 / -1; }
.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th { padding: 10px 0; }
#payment { margin-top: 16px; } #payment ul { list-style: none; padding: 0; } #payment .payment_box { background: #fff; padding: 12px 14px; font-size: 14px; color: var(--muted); }
#place_order { width: 100%; margin-top: 12px; padding: 16px; font-size: 16px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 0; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #c9ccd2; margin-top: 0; padding-top: 56px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--serif); font-size: 26px; letter-spacing: .22em; color: #fff; margin: 0 0 10px; }
.footer-head { color: #fff; font-weight: 600; margin: 0 0 10px; }
.site-footer .menu { display: grid; gap: 6px; font-size: 15px; }
.footer-note { max-width: 36ch; font-size: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid #2d3139; font-size: 13px; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
	ul.products { grid-template-columns: repeat(3, 1fr); }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
	.hero-media { max-width: 520px; }
	.single-product div.product { grid-template-columns: 1fr; gap: 28px; }
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.wrap { padding: 0 16px; }
	.nav-toggle { display: grid; }
	.header-row { gap: 4px; }
	.logo { margin-right: auto; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; flex: none; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { display: grid; gap: 0; justify-content: stretch; }
	.site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	table.shop_table_responsive td { display: block; text-align: right; }
	.cart-collaterals { justify-content: stretch; }
	.section { padding-top: 44px; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.cat-name { font-size: 15px; padding: 28px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
