/* RupBaz store page — v2.1.0. Scoped to body.rbd-store-page. */
body.rbd-store-page {
	--ink: #140958; --ink2: #3B3757; --muted: #5F5C75; --icon: #6B6880; --line: #ECEAF3; --line2: #F0EEF6; --field: #DCD9E8;
	--orange: #F16522; --orange-d: #C8490A; --peach: #FFF1EA; --peach-line: #FFE3D4; --green: #0F6B43; --green-bg: #E8F6EF;
	--shadow: 0 10px 30px rgba(20, 9, 88, .06);
}
.rbd-st, .rbd-st-head { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); }
.rbd-st *, .rbd-st-head * { box-sizing: border-box; }
.rbd-st svg, .rbd-st-head svg { fill: none !important; flex: 0 0 auto; }
.rbd-st { display: flex; flex-direction: column; gap: 22px; width: 100%; margin: 8px 0 48px; }

/* The store page has no sidebar: content takes the full width. */
body.rbd-store-page #primary, body.rbd-store-page .content-area, body.rbd-store-page #dokan-primary, body.rbd-store-page .dokan-single-store { width: 100% !important; max-width: 100% !important; float: none !important; flex: 1 1 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
body.rbd-store-page #sidebar, body.rbd-store-page .sidebar-blog, body.rbd-store-page .dokan-store-sidebar, body.rbd-store-page #secondary { display: none !important; }
body.rbd-store-page .dokan-store-products-filter-area { display: none !important; }

/* ---------- header ---------- */
.rbd-st-head { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin: 0 0 4px; }
.rbd-st-banner { height: 240px; background: var(--ink); position: relative; }
.rbd-st-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbd-st-banner.is-empty {
	background-color: var(--ink);
	background-image:
		radial-gradient(circle at 84% 18%, rgba(241, 101, 34, .9) 0 70px, transparent 71px),
		radial-gradient(circle at 84% 18%, rgba(241, 101, 34, .18) 0 120px, transparent 121px),
		radial-gradient(circle at 96% 120%, rgba(255, 255, 255, .07) 0 190px, transparent 191px),
		radial-gradient(circle at 6% -30%, rgba(255, 255, 255, .06) 0 170px, transparent 171px),
		radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.5px);
	background-size: auto, auto, auto, auto, 22px 22px;
}
.rbd-st-banner-tag { position: absolute; right: 32px; bottom: 22px; color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.rbd-st-edit { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--ink) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 14px rgba(20, 9, 88, .2); z-index: 2; }
.rbd-st-edit { border: 0; cursor: pointer; font-family: inherit; }
.rbd-st-edit:hover { background: #FFFFFF; color: var(--orange-d) !important; }
.rbd-st-edit-logo { cursor: pointer; padding: 0; }
.rbd-st-edit.is-busy, .rbd-st-edit-logo.is-busy { opacity: .7; cursor: progress; }
.rbd-st-logo-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
.rbd-st-edit-logo { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #FFFFFF !important; display: inline-flex; align-items: center; justify-content: center; border: 3px solid #FFFFFF; box-shadow: 0 4px 12px rgba(20, 9, 88, .25); z-index: 2; }
.rbd-st-edit-logo:hover { background: var(--orange); color: var(--ink) !important; }
.rbd-st-main { padding: 0 32px 22px; display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.rbd-st-logo { width: 112px; height: 112px; border-radius: 28px; background: var(--peach-line); border: 5px solid #FFFFFF; box-shadow: 0 8px 20px rgba(20, 9, 88, .15); margin-top: -56px; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: var(--orange-d); overflow: hidden; flex: 0 0 auto; position: relative; }
.rbd-st-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbd-st-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.rbd-st-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rbd-st-title h1 { margin: 0 !important; padding: 0 !important; font-family: inherit !important; font-size: 30px !important; line-height: 1.2 !important; font-weight: 800 !important; letter-spacing: -.5px !important; color: var(--ink) !important; border: 0 !important; }
.rbd-st-title h1::before, .rbd-st-title h1::after { display: none !important; }
.rbd-st-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--peach); color: #A33C08; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.rbd-st-badge-verified { background: var(--green-bg); color: var(--green); }
.rbd-st-facts { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rbd-st-facts li { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.rbd-st-facts li::before { display: none !important; }
.rbd-st-facts svg { color: var(--icon); }
.rbd-st-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rbd-st-btn { height: 46px; padding: 0 18px; border-radius: 12px; font: 700 14px/1 'Plus Jakarta Sans', sans-serif !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none !important; border: 1px solid transparent; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.rbd-st-btn-ghost { background: #FFFFFF !important; border-color: var(--field) !important; color: var(--ink) !important; }
.rbd-st-btn-ghost:hover { border-color: var(--ink) !important; color: var(--ink) !important; background: #FFFFFF !important; }
.rbd-st-btn-primary { background: var(--ink) !important; color: #FFFFFF !important; }
.rbd-st-btn-primary:hover { background: #22137A !important; color: #FFFFFF !important; }
.rbd-st-btn-orange { background: var(--orange) !important; color: var(--ink) !important; }
.rbd-st-btn-orange:hover { background: #FF7A3A !important; color: var(--ink) !important; }
.rbd-st-tabs { display: flex; gap: 6px; padding: 0 24px; border-top: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
.rbd-st-tabs::-webkit-scrollbar { display: none; }
.rbd-st-tabs a { height: 54px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid transparent; color: var(--muted) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.rbd-st-tabs a span { color: var(--muted); font-weight: 600; }
.rbd-st-tabs a:hover { color: var(--ink) !important; }
.rbd-st-tabs a.is-on { color: var(--ink) !important; font-weight: 700; border-bottom-color: var(--orange); }
.rbd-st-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font: 600 14px 'Plus Jakarta Sans', sans-serif; z-index: 99999; box-shadow: 0 10px 30px rgba(20, 9, 88, .25); }

/* ---------- tools ---------- */
.rbd-st-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 !important; }
.rbd-st-search { flex: 1 1 320px; max-width: 420px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #FFFFFF; border: 1px solid var(--field); border-radius: 12px; color: var(--icon); margin: 0 !important; }
.rbd-st-search:focus-within { border-color: var(--ink); }
.rbd-st-search input[type="search"] { border: 0 !important; outline: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; height: 44px !important; padding: 0 !important; margin: 0 !important; font: 500 14px 'Plus Jakarta Sans', sans-serif !important; color: var(--ink) !important; background: transparent !important; }
.rbd-st-count { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.rbd-st-count a { color: var(--ink); font-weight: 700; }
.rbd-st-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 !important; font-weight: 500 !important; }
.rbd-st-sort select { height: 46px !important; padding: 0 36px 0 14px !important; border: 1px solid var(--field) !important; border-radius: 12px !important; background-color: #FFFFFF !important; font: 600 14px 'Plus Jakarta Sans', sans-serif !important; color: var(--ink) !important; box-shadow: none !important; margin: 0 !important; width: auto !important; }

/* ---------- products: the site's own product cards, in our grid ---------- */
.rbd-st-items { margin: 0; }
.rbd-st-items ul.products { margin: 0 !important; padding: 0 !important; list-style: none !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rbd-st-items ul.products::before, .rbd-st-items ul.products::after { display: none !important; }
.rbd-st-items ul.products > li.product { width: auto !important; max-width: none !important; flex: none !important; float: none !important; margin: 0 !important; clear: none !important; }
@media (max-width: 1024px) { .rbd-st-items ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rbd-st-pager:empty { display: none; }
.rbd-st-pager .pagination, .rbd-st-pager ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.rbd-st-pager a, .rbd-st-pager span.current, .rbd-st-pager .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--field); background: #FFFFFF; color: var(--ink) !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none !important; }
.rbd-st-pager .current, .rbd-st-pager .active a, .rbd-st-pager .active span { background: var(--ink) !important; border-color: var(--ink) !important; color: #FFFFFF !important; }

/* ---------- cards: empty + about ---------- */
.rbd-st-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.rbd-st-card h2 { margin: 0 0 12px !important; font-family: inherit !important; font-size: 20px !important; font-weight: 800 !important; color: var(--ink) !important; line-height: 1.3 !important; }
.rbd-st-card h2::before, .rbd-st-card h2::after { display: none !important; }
.rbd-st-muted { color: var(--muted); margin: 0; }
.rbd-st-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 28px; }
.rbd-st-empty h2 { margin: 6px 0 0 !important; font-size: 22px !important; }
.rbd-st-empty p { margin: 0 0 8px; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.rbd-st-empty-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--peach); color: var(--orange-d); display: inline-flex; align-items: center; justify-content: center; }
.rbd-st-about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rbd-st-bio { font-size: 15px; line-height: 1.7; color: var(--ink2); }
.rbd-st-bio p { margin: 0 0 12px; }
.rbd-st-facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rbd-st-facts3 div { background: #F6F5FA; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rbd-st-facts3 span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rbd-st-facts3 b { font-size: 15px; font-weight: 800; }
.rbd-st-trust { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.rbd-st-trust h2 { color: #FFFFFF !important; }
.rbd-st-trust ul { list-style: none !important; margin: 0 0 18px !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; color: #D9D5F2; }
.rbd-st-trust li { display: flex; gap: 10px; margin: 0 !important; list-style: none !important; }
.rbd-st-trust li::before { display: none !important; }
.rbd-st-trust svg { color: var(--orange); }
.rbd-st-trust ul a { color: #FFFFFF !important; text-decoration: underline !important; }
.rbd-st-trust .rbd-st-btn { width: 100%; }

/* ---------- reviews page (Dokan Pro list, our look) ---------- */
body.rbd-sv-reviews .store-review-wrap #reviews { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-top: 22px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body.rbd-sv-reviews .store-review-wrap .headline { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 20px !important; font-weight: 800 !important; color: var(--ink) !important; margin: 0 0 16px !important; }
body.rbd-sv-reviews .store-review-wrap .commentlist { list-style: none; margin: 0; padding: 0; }
body.rbd-sv-reviews .store-review-wrap .commentlist > li { border-top: 1px solid var(--line2); padding: 16px 0; }
body.rbd-sv-reviews .store-review-wrap .commentlist:empty::after { content: "No reviews yet. Reviews appear here after buyers rate their orders."; color: var(--muted); font-size: 14px; }
body.rbd-sv-reviews .dokan-single-store-header { margin-bottom: 0; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
	.rbd-st { gap: 16px; margin-top: 4px; }
	.rbd-st-head { border-radius: 20px; }
	.rbd-st-banner { height: 124px; }
	.rbd-st-banner.is-empty { background-image: radial-gradient(circle at 86% 22%, rgba(241, 101, 34, .9) 0 38px, transparent 39px), radial-gradient(circle at 86% 22%, rgba(241, 101, 34, .18) 0 66px, transparent 67px), radial-gradient(circle at 100% 130%, rgba(255, 255, 255, .07) 0 110px, transparent 111px), radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.5px); background-size: auto, auto, auto, 18px 18px; }
	.rbd-st-banner-tag { display: none; }
	.rbd-st-edit { top: 10px; right: 10px; height: 34px; padding: 0 12px; font-size: 12px; }
	.rbd-st-edit-logo { width: 32px; height: 32px; }
	.rbd-st-logo-wrap { align-self: flex-start; }
	.rbd-st-main { padding: 0 18px 18px; gap: 12px; flex-direction: column; align-items: stretch; }
	.rbd-st-logo { width: 84px; height: 84px; border-radius: 22px; border-width: 4px; margin-top: -42px; font-size: 26px; }
	.rbd-st-text { flex: 0 0 auto; padding-top: 0; }
	.rbd-st-title h1 { font-size: 23px !important; width: 100%; }
	.rbd-st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 13px; }
	.rbd-st-actions { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
	.rbd-st-actions .rbd-st-btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rbd-st-btn { height: 48px; padding: 0 14px; }
	.rbd-st-tabs { padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
	.rbd-st-tabs a { justify-content: center; height: 50px; font-size: 14px; padding: 0 8px; }
	.rbd-st-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
	.rbd-st-search { max-width: none; }
	.rbd-st-search input[type="search"] { font-size: 16px !important; }
	.rbd-st-count { grid-column: 1 / -1; order: 3; }
	.rbd-st-sort span { display: none; }
	.rbd-st-sort select { font-size: 16px !important; max-width: 150px; }
	.rbd-st-card { padding: 20px; border-radius: 18px; }
	.rbd-st-about { grid-template-columns: minmax(0, 1fr); }
	.rbd-st-facts3 { grid-template-columns: minmax(0, 1fr); }
	.rbd-st-empty { padding: 40px 20px; }
	.rbd-st-items ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
