/* BD Organic — base design system CSS */

* { box-sizing: border-box; }

body {
  font-family: var(--bdo-font-bangla), var(--bdo-font-latin);
  color: var(--bdo-text);
  background: var(--bdo-white);
  margin: 0;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Announcement bar */
.bdo-announcement {
  background: var(--bdo-green);
  color: var(--bdo-white);
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}

/* Header */
.bdo-header { background: var(--bdo-white); box-shadow: var(--bdo-shadow); position: sticky; top: 0; z-index: 100; }
.bdo-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px; gap: 20px; }
.bdo-header__logo img { max-height: 44px; }
.bdo-header__search { flex: 1; max-width: 480px; position: relative; }
.bdo-header__search input {
  width: 100%; padding: 10px 44px 10px 16px; border-radius: 999px;
  border: 1px solid #e4dfd3; background: var(--bdo-cream); font-size: 14px;
}
.bdo-header__icons { display: flex; align-items: center; gap: 18px; }
.bdo-header__icons a { position: relative; font-size: 20px; }
.bdo-header__icons .count {
  position: absolute; top: -6px; right: -10px; background: var(--bdo-gold); color: #fff;
  font-size: 10px; border-radius: 50%; width: 16px; height: 16px; display: flex;
  align-items: center; justify-content: center;
}
.bdo-nav { background: var(--bdo-cream); }
.bdo-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 12px 0; font-size: 14px; font-weight: 500; }

/* Buttons */
.bdo-btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600;
  font-size: 15px; border: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
.bdo-btn--primary { background: var(--bdo-green); color: #fff; }
.bdo-btn--outline { background: transparent; color: var(--bdo-green); border: 2px solid var(--bdo-green); }
.bdo-btn:hover { transform: translateY(-1px); opacity: .92; }
.bdo-btn--block { width: 100%; text-align: center; }

/* Hero */
.bdo-hero { background: var(--bdo-cream); border-radius: var(--bdo-radius); overflow: hidden; margin: 24px 0; }
.bdo-hero__slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 48px; }
.bdo-hero__content h1 { font-size: 38px; line-height: 1.25; margin: 0 0 14px; color: var(--bdo-green); }
.bdo-hero__content p { font-size: 16px; color: #555; margin-bottom: 26px; }
.bdo-hero__actions { display: flex; gap: 14px; }
.bdo-hero__image img { border-radius: var(--bdo-radius); }

/* Section heading */
.bdo-section { padding: 48px 0; }
.bdo-section__head { text-align: center; margin-bottom: 32px; }
.bdo-section__head h2 { font-size: 28px; color: var(--bdo-green); margin: 0 0 8px; }
.bdo-section__head p { color: #666; margin: 0; }

/* Category grid */
.bdo-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bdo-cat-card {
  background: var(--bdo-white); border-radius: var(--bdo-radius); box-shadow: var(--bdo-shadow);
  overflow: hidden; text-align: center; padding: 20px; transition: transform .2s ease;
}
.bdo-cat-card:hover { transform: translateY(-4px); }
.bdo-cat-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.bdo-cat-card h3 { margin: 0 0 4px; font-size: 16px; }
.bdo-cat-card span { color: #888; font-size: 13px; }

/* Product grid / card */
.bdo-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bdo-product-card {
  background: #fff; border-radius: var(--bdo-radius); box-shadow: var(--bdo-shadow);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.bdo-product-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--bdo-gold); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px; z-index: 2;
}
.bdo-product-card img { height: 210px; object-fit: cover; }
.bdo-product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bdo-product-card__body h3 { font-size: 15px; margin: 0; }
.bdo-product-card__rating { color: var(--bdo-gold); font-size: 13px; }
.bdo-product-card__price .old { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 6px; }
.bdo-product-card__price .new { color: var(--bdo-green); font-weight: 700; font-size: 17px; }
.bdo-product-card__actions { margin-top: auto; display: flex; gap: 8px; }
.bdo-product-card__actions .bdo-btn { flex: 1; padding: 10px 14px; font-size: 13px; }

/* Trust cards */
.bdo-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bdo-trust-card { text-align: center; padding: 26px 18px; }
.bdo-trust-card .icon { font-size: 34px; color: var(--bdo-green); margin-bottom: 12px; }

/* FAQ accordion */
.bdo-faq-item { border-bottom: 1px solid #eee; padding: 16px 0; }
.bdo-faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.bdo-faq-item summary::-webkit-details-marker { display: none; }
.bdo-faq-item[open] summary { color: var(--bdo-green); }
.bdo-faq-item p { margin-top: 10px; color: #555; }

/* Sticky mobile bottom CTA (single product) and bottom mobile nav —
   hidden by default; only shown on small screens (see media query below). */
.bdo-sticky-cta { display: none; }
.bdo-mobile-nav { display: none; }

/* Floating WhatsApp button — shown on every page, desktop and mobile */
.bdo-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 300;
  text-decoration: none;
  transition: transform .15s ease;
}
.bdo-whatsapp-float:hover { transform: scale(1.08); }

/* Mobile */
@media (max-width: 880px) {
  .bdo-hero__slide { grid-template-columns: 1fr; padding: 28px 20px; text-align: center; }
  .bdo-hero__actions { justify-content: center; }
  .bdo-cat-grid, .bdo-product-grid, .bdo-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bdo-nav ul { display: none; } /* replaced by mobile sticky nav */
  .bdo-header__search { display: none; }

  .bdo-mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08); display: flex; justify-content: space-around;
    padding: 8px 0; z-index: 200;
  }
  .bdo-mobile-nav a { font-size: 11px; text-align: center; color: #555; }

  body.single-product .bdo-sticky-cta {
    display: block; position: fixed; bottom: 56px; left: 0; right: 0; background: #fff;
    padding: 10px 16px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); z-index: 199;
  }

  /* Keep the WhatsApp bubble clear of the bottom nav bar (and the sticky
     Buy Now bar on single product pages) on small screens. */
  .bdo-whatsapp-float { bottom: 76px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
  body.single-product .bdo-whatsapp-float { bottom: 132px; }
}

/* ============================================================
   FOOTER — responsive grid, collapsible columns on mobile
   ============================================================ */
.bdo-footer {
	background: var(--bdo-cream);
	padding: 48px 0 30px;
	margin-top: 20px;
}
.bdo-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
	gap: 28px;
}
.bdo-footer-col summary {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
	color: var(--bdo-green);
	cursor: default;
	list-style: none;
}
.bdo-footer-col summary::-webkit-details-marker { display: none; }
.bdo-footer-col ul { list-style: none; margin: 0; padding: 0; }
.bdo-footer-col li { margin-bottom: 8px; }
.bdo-footer-col a { color: #555; font-size: 14px; }
.bdo-footer-col a:hover { color: var(--bdo-green); }
.bdo-footer-col--about p { font-size: 14px; color: #666; margin-top: 12px; }
.bdo-footer-contact p { margin: 0 0 6px; font-size: 14px; color: #555; }
.bdo-footer-social { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.bdo-footer-social a { font-size: 13px; font-weight: 600; }
.bdo-footer-bottom {
/* 	margin-top: 32px;
	padding-top: 20px; */
	border-top: 1px solid rgba(0,0,0,0.08);
	font-size: 13px;
	color: #888;
	text-align: center;
	background: var(--bdo-green);
  	color: var(--bdo-white);
  	font-size: 13px;
}

@media (max-width: 1024px) {
	.bdo-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
	.bdo-footer-grid { grid-template-columns: 1fr; gap: 0; }
	.bdo-footer-col {
		border-bottom: 1px solid rgba(0,0,0,0.08);
		padding: 14px 0;
	}
	.bdo-footer-col summary {
		cursor: pointer;
		margin-bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.bdo-footer-col summary::after {
		content: '+';
		font-size: 18px;
		font-weight: 400;
		color: #999;
	}
	.bdo-footer-col[open] summary::after { content: '−'; }
	.bdo-footer-col ul,
	.bdo-footer-col .bdo-footer-contact {
		margin-top: 12px;
	}
	.bdo-footer-col--about {
		border-bottom: 1px solid rgba(0,0,0,0.08);
		padding-bottom: 20px;
		margin-bottom: 4px;
	}
}

/* ============================================================
   MY ACCOUNT — professional dashboard layout
   ============================================================ */
.bdo-account-wrapper {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 30px;
	align-items: start;
}

/* Sidebar navigation (overrides WooCommerce's default account nav) */
.woocommerce-MyAccount-navigation {
	background: #fff;
	border-radius: var(--bdo-radius);
	box-shadow: var(--bdo-shadow);
	padding: 10px;
	position: sticky;
	top: 90px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--bdo-text);
}
.woocommerce-MyAccount-navigation li a:hover {
	background: var(--bdo-cream);
}
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--bdo-green);
	color: #fff;
}
.woocommerce-MyAccount-navigation li a .bdo-account-icon {
	font-size: 16px;
	width: 20px;
	text-align: center;
	flex-shrink: 0;
}

/* Main content panel */
.woocommerce-MyAccount-content {
	background: #fff;
	border-radius: var(--bdo-radius);
	box-shadow: var(--bdo-shadow);
	padding: 30px;
}

.bdo-account-header {
	margin-bottom: 24px;
}
.bdo-account-header h2 {
	margin: 0 0 4px;
	color: var(--bdo-green);
	font-size: 22px;
}
.bdo-account-header p { color: #777; margin: 0; font-size: 14px; }

.bdo-account-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}
.bdo-account-stat-card {
	background: var(--bdo-cream);
	border-radius: 12px;
	padding: 18px;
	text-align: center;
}
.bdo-account-stat-card .value { font-size: 24px; font-weight: 700; color: var(--bdo-green); }
.bdo-account-stat-card .label { font-size: 13px; color: #777; margin-top: 4px; }

.bdo-account-quick-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-top: 10px;
}
.bdo-account-quick-link {
	display: block;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	transition: border-color .15s ease, transform .15s ease;
}
.bdo-account-quick-link:hover {
	border-color: var(--bdo-green);
	transform: translateY(-2px);
}
.bdo-account-quick-link .icon { font-size: 22px; display: block; margin-bottom: 8px; }

/* Style WooCommerce's default tables/forms inside the account area */
.woocommerce-MyAccount-content table.shop_table {
	border: none;
	border-collapse: collapse;
	width: 100%;
}
.woocommerce-MyAccount-content table.shop_table th {
	background: var(--bdo-cream);
	text-align: left;
	padding: 12px 14px;
	font-size: 13px;
	color: var(--bdo-green);
}
.woocommerce-MyAccount-content table.shop_table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"] {
	background: var(--bdo-green);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 14px;
	width: 100%;
}
.woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--bdo-cream);
	border-radius: 12px;
	padding: 18px;
}
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

@media (max-width: 880px) {
	.bdo-account-wrapper { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		overflow-x: auto;
		gap: 6px;
	}
	.woocommerce-MyAccount-navigation li a { white-space: nowrap; }
	.bdo-account-stats { grid-template-columns: 1fr 1fr; }
	.woocommerce-MyAccount-content { padding: 20px; }
}

/* ============================================================
   SINGLE PRODUCT — gallery/buybox columns (was inline, non-responsive)
   ============================================================ */
.bdo-product-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
}

/* ============================================================
   PROMO BANNER — homepage "আজকের বিশেষ অফার"
   ============================================================ */
.bdo-promo-banner {
	background: var(--bdo-green);
	color: #fff;
	border-radius: var(--bdo-radius);
	padding: 36px;
	display: flex;
	align-items: center;
	gap: 30px;
}
.bdo-promo-banner__text { flex: 1; }
.bdo-promo-banner__text h2 { margin-top: 0; }
.bdo-promo-banner__cta { margin-top: 16px; background: #fff; color: var(--bdo-green); }
.bdo-promo-banner__image { flex: 0 0 220px; }
.bdo-promo-banner__image img { border-radius: 12px; }

/* Newsletter form */
.bdo-newsletter-form {
	display: flex;
	gap: 10px;
	max-width: 420px;
	margin: 20px auto 0;
}
.bdo-newsletter-input {
	flex: 1;
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid #ddd;
	min-width: 0; /* prevents flex overflow on narrow screens */
}

/* ============================================================
   RESPONSIVE — extends the existing @media(max-width:880px) block
   with everything the newer sections/pages need
   ============================================================ */
@media (max-width: 880px) {
	.bdo-product-columns { grid-template-columns: 1fr; gap: 20px; }
	.bdo-trust-grid--3col { grid-template-columns: 1fr !important; }

	.bdo-promo-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
	.bdo-promo-banner__image { flex: none; width: 100%; max-width: 220px; }

	.bdo-newsletter-form { flex-direction: column; }
	.bdo-newsletter-input { width: 100%; }

	/* Hero heading/subheading scale down instead of overflowing on small screens */
	.bdo-hero__content h1 { font-size: 26px; line-height: 1.35; }
	.bdo-hero__content p { font-size: 14px; }

	/* Full-width, easier-to-tap CTA buttons on mobile forms/buyboxes */
	.bdo-buybox .bdo-btn,
	.woocommerce div.product form.cart .button {
		width: 100%;
		text-align: center;
	}

	/* Footer "about" column logo/text centers better on narrow screens */
	.bdo-footer-col--about { text-align: left; }
}

@media (max-width: 480px) {
	.bdo-cat-grid, .bdo-product-grid, .bdo-trust-grid { grid-template-columns: 1fr; }
	.bdo-hero__content h1 { font-size: 22px; }
	.bdo-section__head h2 { font-size: 22px; }
}

/* ============================================================
   CART / CHECKOUT — WooCommerce's default tables don't fit small
   screens; convert the cart table to a stacked card layout below
   the tablet breakpoint using WooCommerce's own data-title attrs.
   ============================================================ */
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
	width: 100%;
	border-collapse: collapse;
}
.woocommerce-cart table.cart th,
.woocommerce-checkout table.shop_table th {
	background: var(--bdo-cream);
	padding: 12px;
	text-align: left;
	font-size: 13px;
}
.woocommerce-cart table.cart td,
.woocommerce-checkout table.shop_table td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
}
.woocommerce-checkout #payment { background: var(--bdo-cream); border-radius: 12px; padding: 16px; }
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 14px;
	width: 100%;
}
.woocommerce #order_review_heading,
.woocommerce-checkout #order_review { margin-top: 24px; }

@media (max-width: 700px) {
	.woocommerce-cart table.cart thead { display: none; }
	.woocommerce-cart table.cart, .woocommerce-cart table.cart tbody, .woocommerce-cart table.cart tr, .woocommerce-cart table.cart td {
		display: block;
		width: 100%;
	}
	.woocommerce-cart table.cart tr {
		border: 1px solid #eee;
		border-radius: 12px;
		margin-bottom: 14px;
		padding: 10px;
	}
	.woocommerce-cart table.cart td {
		border-bottom: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 6px;
	}
	.woocommerce-cart table.cart td[data-title]::before {
		content: attr(data-title);
		font-weight: 600;
		color: #777;
		font-size: 12px;
		margin-right: 10px;
	}
	.woocommerce-checkout .col2-set,
	.woocommerce-checkout .woocommerce-checkout-review-order {
		width: 100%;
		float: none;
	}
}

/* ============================================================
   CATEGORY / SHOP ARCHIVE — toolbar and filters stack on mobile
   ============================================================ */
@media (max-width: 880px) {
	.woocommerce .products { grid-template-columns: repeat(2, 1fr) !important; }
	ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
