/* RajuBazar base: design tokens, header, navigation, drawer, footer. Loaded on every page. */
:root {
	--rb-accent: #47b83f;
	--rb-accent-dark: #064e3b;
	--rb-accent-soft: #e9f7e8;
	--rb-text: #222;
	--rb-text-2: #575760;
	--rb-muted: #b2b2be;
	--rb-line: #e4e4e7;
	--rb-bg: #fff;
	--rb-bg-2: #f7f8f9;
	--rb-bg-3: #f0f0f0;
	--rb-sale: #e11d48;
	--rb-radius: 10px;
	--rb-radius-sm: 6px;
	--rb-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	--rb-wrap: 1200px;
	--rb-gutter: 16px;
	--rb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", Arial, sans-serif;
	/* GeneratePress global colours follow the tokens. */
	--contrast: var(--rb-text);
	--contrast-2: var(--rb-text-2);
	--contrast-3: var(--rb-muted);
	--base: var(--rb-bg-3);
	--base-2: var(--rb-bg-2);
	--base-3: var(--rb-bg);
	--accent: var(--rb-accent);
}

[hidden] { display: none !important; }
body { font-family: var(--rb-font); color: var(--rb-text); background: var(--rb-bg); -webkit-font-smoothing: antialiased; }
:lang(bn) body, body:lang(bn) { line-height: 1.7; }
a { color: var(--rb-accent-dark); }
img { max-width: 100%; height: auto; }
.rb-wrap { max-width: var(--rb-wrap); margin-inline: auto; padding-inline: var(--rb-gutter); }
.rb-icon { width: 1.25em; height: 1.25em; flex: none; }
.rb-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.rb-btn:hover, .rb-btn:focus-visible { background: var(--rb-bg-3); color: inherit; }
.rb-pill { display: inline-flex; align-items: center; gap: .5em; padding: 8px 14px; border-radius: 99px; background: var(--rb-accent); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.2; }
.rb-pill:hover { background: #3a9f33; color: #fff; }
.rb-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 8px 12px; background: #fff; }
.rb-skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--rb-accent); outline-offset: 2px; }

/* Top bar */
.rb-top { background: var(--rb-bg-3); color: var(--rb-text-2); font-size: 13px; }
.rb-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.rb-top__msg { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rb-top__links { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.rb-top__links a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.rb-top__links a:hover { color: var(--rb-accent-dark); }
.rb-lang { display: flex; gap: 2px; margin: 0; padding: 2px; list-style: none; border: 1px solid var(--rb-line); border-radius: 99px; background: #fff; }
.rb-lang a { display: block; padding: 4px 10px; border-radius: 99px; font-weight: 600; font-size: 12px; text-decoration: none; color: var(--rb-text-2); }
.rb-lang a[aria-current] { background: var(--rb-accent); color: #fff; }

/* Main bar */
.rb-header { position: sticky; top: 0; z-index: 50; background: var(--rb-bg); box-shadow: 0 1px 0 var(--rb-line); }
.admin-bar .rb-header { top: var(--wp-admin--admin-bar--height, 0px); }
.rb-main__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.rb-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.rb-logo-img { display: block; width: auto; height: 44px; }
.rb-logo-text { font-size: 22px; font-weight: 800; color: var(--rb-accent-dark); }
.rb-search { position: relative; flex: 1; display: flex; align-items: stretch; box-sizing: border-box; min-height: 46px; max-width: 520px; margin-inline: auto; border: 2px solid var(--rb-accent); border-radius: 99px; background: #fff; }
.rb-search input[type=search] { flex: 1; min-width: 0; height: 42px; margin: 0; border: 0; border-radius: 99px 0 0 99px; padding: 0 16px; background: transparent; font-size: 16px; line-height: 42px; -webkit-appearance: none; appearance: none; }
.rb-search input[type=search]:focus { outline: 0; box-shadow: none; }
.rb-search .rb-btn { flex: none; width: 54px; height: 42px; margin: 0 -1px 0 0; border-radius: 0 99px 99px 0; background: var(--rb-accent); color: #fff; }
.rb-search .rb-btn:hover { background: #3a9f33; color: #fff; }
.rb-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.rb-cta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--rb-text); text-decoration: none; font-weight: 700; line-height: 1.15; }
.rb-cta .rb-icon { width: 26px; height: 26px; color: var(--rb-accent); }
.rb-cta small { display: block; font-weight: 400; font-size: 11px; color: var(--rb-text-2); }
.rb-cta:hover { color: var(--rb-accent-dark); }
.rb-cartbtn .rb-icon { width: 26px; height: 26px; }
.rb-cart__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--rb-sale); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.rb-burger, .rb-search-toggle { display: none; }

/* Category nav */
.rb-nav { border-top: 1px solid var(--rb-line); }
.rb-menu { margin: 0; padding: 0; list-style: none; }
.rb-menu--nav { display: flex; flex-wrap: wrap; gap: 2px; }
.rb-menu--nav > li { position: relative; }
.rb-menu--nav a { display: block; padding: 10px 12px; color: var(--rb-text); font-weight: 600; font-size: 14px; text-decoration: none; }
.rb-menu--nav a:hover, .rb-menu--nav .current-menu-item > a { color: var(--rb-accent-dark); }
.rb-menu--nav .sub-menu { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 220px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border-radius: var(--rb-radius); box-shadow: var(--rb-shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s; }
.rb-menu--nav li:hover > .sub-menu, .rb-menu--nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rb-menu--nav .sub-menu a { font-weight: 500; }

/* Drawer */
.rb-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .45); }
.rb-overlay.is-search { z-index: 49; background: rgba(0, 0, 0, .35); }
.rb-drawer { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(86vw, 340px); display: flex; flex-direction: column; background: #fff; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
.rb-drawer.is-open { transform: none; }
.rb-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--rb-line); }
.rb-menu--drawer a { display: block; padding: 12px 16px; color: var(--rb-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rb-bg-3); }
.rb-menu--drawer .sub-menu { margin: 0; padding: 0 0 0 12px; list-style: none; }
.rb-menu--drawer .sub-menu a { font-weight: 400; }
.rb-drawer__foot { margin-top: auto; display: grid; gap: 4px; padding: 16px; background: var(--rb-bg-2); }
.rb-drawer__foot a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--rb-text); text-decoration: none; }
.rb-drawer__foot .rb-icon { color: var(--rb-accent); }
.rb-drawer__foot .rb-lang { justify-self: start; margin-top: 6px; }
.rb-drawer__foot .rb-lang a { display: block; padding: 4px 12px; }
body.rb-locked { overflow: hidden; }

/* Footer */
.rb-footer { margin-top: 48px; background: var(--rb-accent-dark); color: #d1e7dd; font-size: 14px; }
.rb-footer a { color: #fff; text-decoration: none; }
.rb-footer a:hover { color: var(--rb-accent); }
.rb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 40px; }
.rb-footer__h { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 700; }
.rb-logo--footer .rb-logo-img { height: 54px; }
.rb-logo--footer .rb-logo-text { color: #fff; }
.rb-footer__about p { margin: 12px 0; }
.rb-menu--footer li { margin: 0; }
.rb-menu--footer a { display: inline-block; padding: 7px 0; }
.rb-footer small { font-size: 12px; }
.rb-footer__contact ul { margin: 0 0 14px; padding: 0; list-style: none; }
.rb-footer__contact li { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.rb-footer__contact a { display: inline-flex; gap: 8px; align-items: center; }
.rb-footer__contact .rb-icon { color: var(--rb-accent); }
.rb-social { display: flex; gap: 8px; }
.rb-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.rb-social a:hover { background: var(--rb-accent); color: #fff; }
.rb-footer__bottom { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 1023px) {
	.rb-cta span { display: none; }
	.rb-cta { padding: 8px; }
	.rb-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	:root { --rb-gutter: 12px; }
	.rb-top { font-size: 12px; }
	.rb-top__links > a { display: none; }
	.rb-main__in { gap: 4px; min-height: 58px; }
	.rb-burger, .rb-search-toggle { display: inline-grid; }
	.rb-logo-img { height: 38px; }
	.rb-logo { margin-right: auto; }
	.rb-cta { display: none; }
	.rb-nav { display: none; }
	.rb-search { position: fixed; left: var(--rb-gutter); right: var(--rb-gutter); top: calc(var(--rb-header-h, 92px) + 8px); z-index: 95; height: 48px; min-height: 0; max-width: none; margin: 0; box-shadow: var(--rb-shadow); }
	.rb-search input[type=search] { height: 44px; line-height: 44px; }
	.rb-search .rb-btn { height: 44px; }
	.rb-search.is-open { display: flex; }
	.rb-search:not(.is-open) { display: none; }
	.admin-bar .rb-search { top: calc(var(--rb-header-h, 92px) + var(--wp-admin--admin-bar--height, 0px) + 8px); }
	.rb-main { position: relative; }
	.rb-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-block: 32px; }
	.rb-footer__about, .rb-footer__contact { grid-column: 1 / -1; }
	.rb-footer { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Shared: boxes, item lists, totals, quantity stepper, WhatsApp button (cart, checkout, order pages) */
.rb-box { padding: 16px; border: 1px solid var(--rb-line); border-radius: 12px; background: #fff; }
.rb-box__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.rb-muted { color: var(--rb-text-2); font-size: 14px; }
.rb-pill--block { display: flex; justify-content: center; width: 100%; padding: 14px 18px; border: 0; font-size: 16px; cursor: pointer; }
.rb-qty { align-self: flex-start; display: inline-flex; align-items: center; border: 1px solid var(--rb-line); border-radius: 8px; overflow: hidden; }
.rb-qty button { width: 32px; height: 32px; padding: 0; border: 0; background: var(--rb-bg-2); color: var(--rb-text); font-size: 18px; line-height: 1; cursor: pointer; }
.rb-qty button:hover { background: var(--rb-bg-3); color: var(--rb-text); }
.rb-qty output { min-width: 32px; text-align: center; font-weight: 700; }
.rb-qty--sm button { width: 28px; height: 28px; }
.rb-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid #25d366; border-radius: 99px; color: #128c4b; font-weight: 700; text-decoration: none; }
.rb-wa-btn:hover { background: #effcf4; color: #128c4b; }
.rb-wa-btn .rb-icon { color: #25d366; }
.rb-co__items { margin: 0; padding: 0; list-style: none; }
.rb-co__item { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rb-bg-3); }
.rb-co__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--rb-bg-2); }
.rb-co__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-co__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rb-co__opt { font-size: 13px; color: var(--rb-text-2); }
.rb-co__line { font-size: 15px; white-space: nowrap; }
.rb-co__totals { margin: 12px 0 0; }
.rb-co__totals > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.rb-co__totals dt { color: var(--rb-text-2); }
.rb-co__totals dd { margin: 0; font-weight: 600; }
.rb-co__grand { margin-top: 6px; padding-top: 10px !important; border-top: 1px dashed var(--rb-line); font-size: 18px !important; }
.rb-co__grand dt { color: var(--rb-text) !important; font-weight: 700; }
.rb-co__grand dd { font-weight: 800 !important; color: var(--rb-accent-dark); }
.woocommerce-error, .woocommerce-message, .woocommerce-info { margin: 0 0 12px; padding: 12px 16px; border-radius: 10px; list-style: none; }
.woocommerce-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.woocommerce-error li { margin: 0; }

/* Info pages: contact cards + delivery table (shortcodes) */
.rb-contact{list-style:none;margin:0 0 1.5em;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.rb-contact a,.rb-contact div{display:flex;gap:12px;align-items:center;height:100%;padding:16px;border:1px solid var(--rb-line);border-radius:var(--rb-radius);background:var(--rb-bg);color:var(--rb-text);text-decoration:none}
.rb-contact a:hover{border-color:var(--rb-accent)}
.rb-contact .rb-icon{flex:none;width:40px;height:40px;padding:9px;border-radius:50%;background:var(--rb-accent-soft);color:var(--rb-accent-dark)}
.rb-contact b{display:block;font-size:13px;font-weight:600;color:var(--rb-text-2)}
.rb-table-wrap{overflow-x:auto;margin:0 0 1.5em}
.rb-table{width:100%;border-collapse:collapse;border:1px solid var(--rb-line);border-radius:var(--rb-radius);font-size:15px}
.rb-table th,.rb-table td{padding:10px 12px;border-bottom:1px solid var(--rb-line);text-align:left}
.rb-table th{background:var(--rb-bg-2);font-weight:600}

/* FAQ accordion ([rb_faq]) */
.rb-faq{border:1px solid var(--rb-line);border-radius:var(--rb-radius);background:var(--rb-bg);overflow:hidden}
.rb-faq__item+.rb-faq__item{border-top:1px solid var(--rb-line)}
.rb-faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;font-weight:700;font-size:16px;list-style:none}
.rb-faq summary::-webkit-details-marker{display:none}
.rb-faq summary:hover{background:var(--rb-bg-2)}
.rb-faq__chev{flex:none;width:20px;height:20px;color:var(--rb-text-2);transform:rotate(90deg);transition:transform .2s}
.rb-faq [open] .rb-faq__chev{transform:rotate(-90deg)}
.rb-faq__a{padding:0 18px 16px;color:var(--rb-text-2);line-height:1.65}
.rb-faq__a p{margin:0 0 .6em}.rb-faq__a p:last-child{margin:0}

/* Consistent page frame: same side gutter as the header, no GeneratePress box padding, bold page titles. */
body .site-main, body.separate-containers .site-main, body.one-container .site-main { margin: 0; }
.site-main .inside-article, .site-main .page-header { padding: 20px var(--rb-gutter) 40px; background: transparent; }
.page .entry-header, .single .entry-header { margin-bottom: 18px; }
.page h1.entry-title, .single h1.entry-title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.page .entry-content > :first-child, .single .entry-content > :first-child { margin-top: 0; }
@media (max-width: 767px) { .page h1.entry-title, .single h1.entry-title { font-size: 26px; } .site-main .inside-article { padding-top: 6px; padding-bottom: 28px; } }
