/* Royal Mabroom Core — brand layer on top of WoodMart */
:root {
	--rm-navy: #0A1F44;
	--rm-blue: #1B4FBF;
	--rm-sapphire: #2F7BFF;
	--rm-tint: #E8EEFB;
	--rm-bg: #F4F6FA;
	--rm-line: #E3E8F0;
	--rm-text: #1A2333;
	--rm-muted: #5B6678;
	--rm-green: #128C4A;
	--rm-radius: 12px;
	--rm-body: 'Hind Siliguri', 'Anek Bangla', system-ui, sans-serif;
	--rm-head: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
	--wd-primary-color: #1B4FBF;
	--wd-text-font: 'Hind Siliguri', 'Anek Bangla', system-ui, sans-serif;
	--wd-title-font: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
	--wd-entities-title-font: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
	--wd-header-el-font: 'Hind Siliguri', 'Anek Bangla', system-ui, sans-serif;
	--wd-alternative-font: 'Hind Siliguri', 'Anek Bangla', system-ui, sans-serif;
}

/* Typography */
body.rm-brand { font-family: var(--rm-body); color: var(--rm-text); }
.rm-brand h1, .rm-brand h2, .rm-brand h3, .rm-brand h4,
.rm-brand .title, .rm-brand .product_title, .rm-brand .wd-entities-title, .rm-brand .woocommerce-loop-product__title,
.rm-brand .price, .rm-brand .amount { font-family: var(--rm-head); }
.rm-brand .price, .rm-brand .price .amount { color: var(--rm-navy); font-weight: 700; }
.rm-brand .product_title { color: var(--rm-navy); font-weight: 700; line-height: 1.3; }

/* Buttons */
.rm-brand .single_add_to_cart_button,
.rm-brand .add_to_cart_button,
.rm-brand .checkout-button,
.rm-brand #place_order,
.rm-brand .wd-buy-now-btn {
	border-radius: 10px !important;
	font-family: var(--rm-body) !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	min-height: 48px;
}
.rm-brand .single_add_to_cart_button { background: #fff !important; color: var(--rm-blue) !important; border: 2px solid var(--rm-blue) !important; }
.rm-brand .wd-buy-now-btn, .rm-brand #place_order, .rm-brand .checkout-button { background: var(--rm-navy) !important; color: #fff !important; }
.rm-brand .add_to_cart_button { background: var(--rm-blue) !important; color: #fff !important; }

.rm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 16px; border-radius: 10px; border: 0;
	font-family: var(--rm-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
}
.rm-btn-primary { background: var(--rm-blue); color: #fff; }
.rm-btn-primary:hover { background: var(--rm-navy); color: #fff; }
.rm-btn-wa { background: var(--rm-green); color: #fff; }
.rm-btn-wa:hover { color: #fff; filter: brightness(0.95); }
.rm-btn-call { background: var(--rm-tint); color: var(--rm-navy); }
.rm-btn-call:hover { color: var(--rm-navy); }
.rm-btn-light { background: #fff; color: var(--rm-navy); font-weight: 700; }

/* Product page */
.rm-brand.single-product .wd-wishlist-btn,
.rm-brand.single-product .wd-compare-btn,
.rm-brand.single-product .product_meta .tagged_as { display: none !important; }
.rm-order-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.rm-quick-info {
	margin: 14px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius);
	display: flex; flex-direction: column; gap: 8px; font-size: 14px;
}
.rm-quick-info > div { display: flex; justify-content: space-between; gap: 12px; }
.rm-quick-info dt { color: var(--rm-muted); font-weight: 400; margin: 0; }
.rm-quick-info dd { margin: 0; font-weight: 600; text-align: right; color: var(--rm-text); }
.rm-offer-note { margin: 12px 0 0; padding: 12px 16px; background: var(--rm-tint); color: var(--rm-navy); border-radius: var(--rm-radius); font-size: 14px; line-height: 1.5; }

.rm-sticky-buy { display: none; }
@media (max-width: 767px) {
	.rm-sticky-buy {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 390;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--rm-line); box-shadow: 0 -4px 16px rgba(10, 31, 68, 0.08);
	}
	.rm-sticky-price { display: flex; flex-direction: column; line-height: 1.2; }
	.rm-sticky-price span { font-size: 12px; color: var(--rm-muted); }
	.rm-sticky-price strong { font-family: var(--rm-head); font-size: 19px; color: var(--rm-navy); }
	.rm-sticky-order { flex: 1; min-height: 50px; background: var(--rm-navy); font-size: 16px; font-weight: 700; }
	body.rm-has-sticky-buy { padding-bottom: 76px; }
	body.rm-has-sticky-buy .wd-toolbar { display: none !important; }
}

/* Checkout */
.rm-hidden-field { display: none !important; }
.rm-brand.woocommerce-checkout .woocommerce-billing-fields h3,
.rm-brand.woocommerce-checkout #order_review_heading { font-family: var(--rm-head); color: var(--rm-navy); font-size: 19px; text-transform: none; }
.rm-brand.woocommerce-checkout .form-row label { font-weight: 600; color: var(--rm-text); font-size: 14px; }
.rm-brand.woocommerce-checkout .form-row input.input-text,
.rm-brand.woocommerce-checkout .form-row textarea {
	min-height: 48px; border: 1px solid #C9D3E3; border-radius: 10px; font-size: 15px; padding: 10px 14px; font-family: var(--rm-body);
}
.rm-brand.woocommerce-checkout .form-row textarea { min-height: 80px; }
.rm-brand.woocommerce-checkout .form-row input.input-text:focus,
.rm-brand.woocommerce-checkout .form-row textarea:focus { border-color: var(--rm-blue); box-shadow: 0 0 0 3px rgba(27, 79, 191, 0.15); }
.rm-brand.woocommerce-checkout #shipping_method li { padding: 10px 12px; border: 1px solid #C9D3E3; border-radius: 10px; margin-bottom: 8px; list-style: none; }
.rm-brand.woocommerce-checkout #shipping_method input:checked + label { color: var(--rm-navy); font-weight: 700; }
.rm-brand.woocommerce-checkout #place_order { width: 100%; min-height: 54px; font-size: 17px !important; }
.rm-checkout-note { font-size: 13px; color: var(--rm-muted); line-height: 1.5; margin: 0 0 12px; }

/* New home ([rm_home]) */
.rm-home { font-family: var(--rm-body); color: var(--rm-text); max-width: 1200px; margin: 0 auto; padding: 0 16px 24px; }
.rm-home-page .page-title, .rm-home-page .wd-page-title, .rm-home-page .entry-header { display: none !important; }
.rm-home-page .main-page-wrapper { padding-top: 0; }
.rm-hero { margin: 16px 0 0; }
.rm-hero img { display: block; width: 100%; height: auto; border-radius: 14px; aspect-ratio: 1300 / 552; object-fit: cover; }
.rm-section { margin-top: 24px; }
.rm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rm-section-head a { font-weight: 600; color: var(--rm-blue); }
.rm-h2 { font-family: var(--rm-head); font-size: 20px; font-weight: 700; color: var(--rm-navy); margin: 0 0 12px; }
.rm-section-head .rm-h2 { margin: 0; }

.rm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rm-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--rm-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.rm-cat-img { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--rm-line); display: block; }
.rm-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rm-trust { margin-top: 20px; background: #fff; border: 1px solid var(--rm-line); border-radius: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.rm-trust > div { display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--rm-text); border-bottom: 1px solid #EEF1F6; }
.rm-trust > div:nth-child(odd) { border-right: 1px solid #EEF1F6; }
.rm-trust > div:nth-child(n+3) { border-bottom: 0; }
.rm-trust svg { color: var(--rm-blue); flex-shrink: 0; }

.rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rm-card { background: #fff; border: 1px solid var(--rm-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.rm-card-media { position: relative; display: block; }
.rm-card-media img, .rm-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rm-badge { position: absolute; top: 8px; left: 8px; background: var(--rm-navy); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.rm-card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rm-card-title { font-size: 15px; font-weight: 600; color: var(--rm-text); line-height: 1.35; text-decoration: none; }
.rm-card-price { font-family: var(--rm-head); font-size: 18px; font-weight: 700; color: var(--rm-navy); }
.rm-card-price del { color: var(--rm-muted); font-size: 14px; font-weight: 400; }
.rm-card-btn { margin-top: auto; width: 100%; min-height: 42px; font-size: 14px; }
.rm-card .added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 4px; color: var(--rm-blue); }

.rm-offer { margin-top: 24px; background: var(--rm-navy); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-offer strong { display: block; font-family: var(--rm-head); font-size: 20px; color: #fff; line-height: 1.25; }
.rm-offer span { display: block; font-size: 14px; color: #C9D6F2; margin-top: 4px; }
.rm-offer .rm-btn { flex-shrink: 0; }

@media (min-width: 768px) {
	.rm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.rm-cats { grid-template-columns: repeat(4, minmax(0, 140px)); justify-content: start; gap: 20px; }
	.rm-cat-img { width: 110px; height: 110px; }
	.rm-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rm-trust > div { border-bottom: 0; border-right: 1px solid #EEF1F6; }
	.rm-trust > div:last-child { border-right: 0; }
	.rm-h2 { font-size: 24px; }
	.rm-offer { padding: 26px 32px; }
	.rm-offer strong { font-size: 26px; }
}

/* Payment methods */
.rm-brand.woocommerce-checkout .wc_payment_methods > li { border: 1px solid #C9D3E3; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; list-style: none; background: #fff; }
.rm-brand.woocommerce-checkout .wc_payment_methods > li > label { font-weight: 700; color: var(--rm-navy); }
.rm-brand.woocommerce-checkout .payment_box { background: var(--rm-bg) !important; border-radius: 10px; margin-top: 10px; }
.rm-brand.woocommerce-checkout .payment_box::before { display: none !important; }
.rm-pay-desc { margin: 0 0 10px; font-size: 14px; }
.rm-pay-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rm-pay-wallet { position: relative; cursor: pointer; margin: 0; }
.rm-pay-wallet input { position: absolute; opacity: 0; }
.rm-pay-wallet-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #fff; border: 2px solid var(--rm-line); border-radius: 10px; }
.rm-pay-wallet input:checked + .rm-pay-wallet-box { border-color: var(--rm-blue); box-shadow: 0 0 0 3px rgba(27, 79, 191, 0.12); }
.rm-pay-wallet input:focus-visible + .rm-pay-wallet-box { outline: 2px solid var(--rm-sapphire); }
.rm-pay-wallet-box strong { color: var(--rm-navy); font-size: 15px; }
.rm-pay-number { font-family: var(--rm-head); font-size: 18px; font-weight: 700; color: var(--rm-text); letter-spacing: 0.3px; user-select: all; }
.rm-pay-wallet-box small { color: var(--rm-muted); font-size: 12px; }
.rm-pay-steps { margin: 0 0 12px 18px; padding: 0; font-size: 14px; line-height: 1.6; }
.rm-pay-proof input[type="file"] { width: 100%; padding: 10px; background: #fff; border: 1px dashed #A9B6CC; border-radius: 10px; font-size: 14px; }
.rm-pay-proof-status { display: block; margin-top: 6px; font-size: 13px; color: var(--rm-green); font-weight: 600; }
.rm-pay-hold { margin: 10px 0 0; padding: 10px 12px; background: var(--rm-tint); color: var(--rm-navy); border-radius: 10px; font-size: 14px; line-height: 1.5; }

/* New home: full width, no sidebar */
.rm-home-page .wd-sidebar { display: none !important; }
.rm-home-page .wd-content-area { grid-column: 1 / -1 !important; flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.rm-home-page .main-page-wrapper > .container, .rm-home-page .wd-content-layout { --wd-col-lg: 12; }

/* Product page: quantity + cart + order in one tidy row */
.rm-brand.single-product form.cart:not(.variations_form),
.rm-brand.single-product .variations_form .woocommerce-variation-add-to-cart {
	display: flex !important; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
.rm-brand.single-product form.cart .quantity { margin: 0 !important; flex: 0 0 auto; display: inline-flex; height: 50px; }
.rm-brand.single-product form.cart .quantity .qty { height: 50px; width: 46px; }
.rm-brand.single-product form.cart .quantity .minus,
.rm-brand.single-product form.cart .quantity .plus { height: 50px; width: 36px; }
.rm-brand.single-product form.cart .single_add_to_cart_button,
.rm-brand.single-product form.cart .wd-buy-now-btn {
	flex: 1 1 0; min-width: 0; margin: 0 !important; height: 50px; min-height: 50px; padding: 0 10px !important;
	font-size: 15px !important; white-space: nowrap;
}
.rm-brand.single-product form.cart .wd-buy-now-btn { order: 3; }
@media (max-width: 420px) {
	.rm-brand.single-product form.cart .single_add_to_cart_button,
	.rm-brand.single-product form.cart .wd-buy-now-btn { font-size: 14px !important; padding: 0 6px !important; }
}
.rm-order-alt .rm-btn { white-space: nowrap; font-size: 15px; }

/* Product tabs */
.rm-brand.single-product .wc-tabs li a, .rm-brand.single-product .wd-accordion-title-text { font-family: var(--rm-head); text-transform: none; }
.rm-delivery-list { margin: 0; padding-left: 18px; line-height: 1.8; }

/* Brand footer */
.rm-brand .wd-prefooter { background: var(--rm-navy); padding: 0; margin-top: 32px; }
.rm-brand .wd-footer .main-footer { display: none; }
.rm-footer { display: grid; gap: 18px; padding: 32px 0 24px; color: #C9D6F2; font-size: 14px; line-height: 1.6; }
.rm-footer a { color: #fff; text-decoration: none; }
.rm-footer a:hover { color: var(--rm-sapphire); }
.rm-footer p { margin: 0 0 6px; }
.rm-footer-name { display: block; font-family: var(--rm-head); font-size: 22px; color: #fff; margin-bottom: 6px; }
.rm-footer-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rm-footer-meta { font-size: 12px; color: #8FA3C8; }
.rm-footer-links, .rm-footer-social, .rm-footer-policy { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rm-footer-links a { font-weight: 600; }
.rm-footer-policy { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.rm-footer-policy a { color: #C9D6F2; }
.rm-brand .wd-copyrights { background: var(--rm-navy); color: #8FA3C8; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.rm-brand .wd-copyrights .wd-col-end { display: none; }
@media (min-width: 768px) {
	.rm-footer { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
	.rm-footer-links, .rm-footer-social { flex-direction: column; gap: 6px; }
	.rm-footer-policy { grid-column: 1 / -1; }
}
