/* RishehBook homepage v1.2 - scoped; Bakala header/footer stay active */
.rbh-home{--red:#c4161c;--red-dark:#7e0d12;--cream:#fbf8f3;--ink:#262321;--muted:#817873;--line:#eee5de;--blue:#3b6fb6;direction:rtl;color:var(--ink);font-family:inherit;font-size:14px;line-height:1.9;background:var(--cream);overflow-x:hidden}
.rbh-home *{box-sizing:border-box}.rbh-home a{text-decoration:none}.rbh-home img{max-width:100%;height:auto}.rbh-wrap{width:min(1240px,calc(100% - 34px));margin:0 auto}
.rbh-svg{width:1.2em;height:1.2em;flex:0 0 auto;vertical-align:middle}

/* hero */
.rbh-hero{position:relative;min-height:262px;background:linear-gradient(110deg,#7a0a10,#b3141a 55%,#8c0c12);color:#fff;overflow:hidden}
.rbh-hero-photo{position:absolute;inset:0 auto 0 0;width:44%;background-size:cover;background-position:center;-webkit-mask-image:linear-gradient(to right,#000 70%,transparent);mask-image:linear-gradient(to right,#000 70%,transparent)}
.rbh-hero-layout{position:relative;z-index:2;min-height:262px;display:flex;align-items:center;justify-content:flex-start}
.rbh-hero-text{max-width:600px;padding:22px 0}
.rbh-home .rbh-hero h1{font-size:clamp(26px,3.6vw,42px);line-height:1.5;font-weight:900;color:#fff;margin:0 0 10px}.rbh-hero h1 em{font-style:normal;color:#ff7770}
.rbh-hero-text p{color:#f5e5df;margin:0 0 18px;font-size:13px;max-width:560px}
.rbh-primary-button{display:inline-flex;align-items:center;gap:12px;padding:11px 26px;border-radius:30px;background:#ee2e28;color:#fff!important;font-weight:800;font-size:13px;box-shadow:0 6px 20px #4d06062b}.rbh-primary-button:hover{background:#fa443c}
.rbh-hero-stamp{position:absolute;z-index:2;top:30px;left:20%;border:1px solid #f9c68b;color:#ffe0b6;border-radius:50%;width:104px;height:104px;display:grid;place-items:center;text-align:center;font-size:11px;line-height:1.6;transform:rotate(-14deg)}
.rbh-dots{position:absolute;z-index:2;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:6px}.rbh-dots i{width:6px;height:6px;border-radius:50%;background:#ffffff77}.rbh-dots i.on{width:18px;border-radius:4px;background:#fff}

/* categories */
.rbh-categories-section{padding:26px 0 18px}
.rbh-categories{display:flex;justify-content:space-between;gap:6px}
.rbh-category{flex:1 1 0;min-width:0;text-align:center;color:var(--ink)!important;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 4px;border-left:1px solid var(--line)}.rbh-category:last-child{border-left:0}
.rbh-category-icon{height:56px;width:56px;border-radius:50%;display:grid;place-items:center;color:var(--red);font-size:34px;overflow:hidden;transition:.2s}.rbh-category-icon .rbh-svg{width:1em;height:1em;stroke-width:1.4}.rbh-category:hover .rbh-category-icon{transform:translateY(-3px)}.rbh-category-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.rbh-category strong{font-size:11px;line-height:1.7;font-weight:700}

/* promos */
.rbh-promos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:10px 0 24px}
.rbh-promo{min-height:118px;border-radius:12px;display:flex;align-items:center;padding:18px 22px;overflow:hidden;position:relative;background:var(--bg) left center/auto 100% no-repeat}
.rbh-promo>div{position:relative;z-index:1;max-width:58%}
.rbh-promo-a{background-color:#f6dfc3;color:#7a2f12!important}.rbh-promo-b{background-color:#b8141a;color:#fff!important}.rbh-promo-c{background-color:#e4eddc;color:#245c42!important}
.rbh-promo strong,.rbh-promo small,.rbh-promo b{display:block}.rbh-promo strong{font-size:19px;font-weight:900;line-height:1.5}.rbh-promo small{font-size:10px;opacity:.85;margin:2px 0 10px}
.rbh-promo b{display:inline-flex;align-items:center;gap:8px;font-size:10px;padding:5px 16px;border-radius:20px;background:#c4161c;color:#fff}.rbh-promo-b b{background:#fff;color:var(--red)}.rbh-promo-c b{background:#2d7a52}

/* section heading */
.rbh-section{padding:10px 0 22px}.rbh-blog{padding:8px 0 24px}
.rbh-section-heading{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.rbh-home .rbh-section-heading h2{font-size:22px;line-height:1.5;font-weight:900;margin:0;color:var(--ink);white-space:nowrap}
.rbh-line{flex:1;height:1px;background:#d9d2cb}
.rbh-view-all{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--accent,var(--red))!important;font-weight:800;white-space:nowrap}
.rbh-title-icon{color:var(--red);display:inline-flex;font-size:22px}
.rbh-blog .rbh-section-heading h2{display:flex;align-items:center;gap:8px}.rbh-blog .rbh-section-heading{justify-content:space-between}

/* carousel + product card */
.rbh-carousel{position:relative}
.rbh-products{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 4px 14px}.rbh-products::-webkit-scrollbar{display:none}
.rbh-product{flex:0 0 calc((100% - 56px)/5);scroll-snap-align:start;background:#fff;border-radius:18px;padding:12px;min-width:0;position:relative;box-shadow:0 2px 14px #4d17101a;transition:.2s;display:flex;flex-direction:column}.rbh-product:hover{box-shadow:0 8px 26px #4d171026;transform:translateY(-2px)}
.rbh-product-image{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;max-height:230px;overflow:hidden;margin-bottom:10px}.rbh-product-image img{width:auto;max-width:86%;height:100%;object-fit:cover;border-radius:4px}
.rbh-home .rbh-product h3{font-size:13px;line-height:1.9;margin:0;min-height:50px;font-weight:800;text-align:right}.rbh-product h3 a{color:var(--ink)}
.rbh-author{font-size:10px;color:var(--blue);margin-top:-4px}
.rbh-product-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}
.rbh-product .rbh-add-cart{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:var(--accent,#ee1d5b);color:#fff!important;font-size:24px;box-shadow:0 5px 14px #0002;transition:.15s}.rbh-product .rbh-add-cart:hover{filter:brightness(.9);transform:translateY(-1px)}
.rbh-product-price{font-size:13px;font-weight:800;color:var(--ink);text-align:left;line-height:1.7}.rbh-product-price del{display:block;color:#a39c97;font-size:10px;font-weight:400}.rbh-product-price ins{text-decoration:none}.rbh-product-price .woocommerce-Price-currencySymbol{font-size:10px;font-weight:400;margin-right:3px}
.rbh-percent{display:inline-block;background:var(--accent,#ee1d5b);color:#fff;border-radius:6px;padding:0 7px;font-size:11px;font-weight:800;margin-left:6px}
.rbh-nav{position:absolute;top:42%;z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 2px 10px #0002;font-size:18px}.rbh-nav-prev{right:-14px}.rbh-nav-next{left:-14px}
.rbh-empty{flex:1;border-radius:10px;background:#fff;padding:20px;color:var(--muted)}

/* dark special band */
.rbh-dark-inner{position:relative;display:flex;align-items:center;gap:20px;background-color:#16161c;background-image:radial-gradient(circle at 12% 18%,#ffffff0d 0 38px,transparent 39px),radial-gradient(circle at 88% 80%,#ffffff0d 0 52px,transparent 53px),repeating-linear-gradient(135deg,transparent 0 46px,#ffffff06 47px 48px);border-radius:20px;padding:20px 24px;color:#fff}
.rbh-dark-title{flex:0 0 190px;text-align:center}.rbh-home .rbh-dark-title h2{color:#fff;font-size:30px;line-height:1.4;font-weight:900;margin:0}.rbh-dark-title p{margin:4px 0 12px;font-size:17px;font-weight:800}
.rbh-dark-more{display:inline-block;border:1px solid #fff8;color:#fff!important;border-radius:20px;padding:3px 16px;font-size:11px}.rbh-dark-more:hover{background:#fff;color:#16161c!important}
.rbh-dark .rbh-carousel{flex:1;min-width:0}
.rbh-dark .rbh-product{flex-basis:calc((100% - 42px)/4)}
.rbh-dark .rbh-nav-prev{right:auto;left:-14px}

/* banners */
.rbh-banners{display:grid;gap:12px;padding:6px 0 22px}.rbh-cols-1{grid-template-columns:1fr}.rbh-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rbh-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rbh-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rbh-banner{display:block;border-radius:14px;overflow:hidden;line-height:0}.rbh-banner img{width:100%;height:auto;display:block;transition:.25s}.rbh-banner:hover img{transform:scale(1.02)}

/* benefits */
.rbh-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:4px 0 24px}
.rbh-benefit{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 16px}
.rbh-benefit>span{height:46px;width:46px;flex:0 0 46px;border-radius:50%;display:grid;place-items:center;background:#fff6f2;color:var(--red);font-size:24px;order:2;margin-right:auto}.rbh-benefit>div{order:1}
.rbh-benefit strong{display:block;font-size:12px}.rbh-benefit small{display:block;color:var(--muted);font-size:10px}

/* articles */
.rbh-articles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rbh-articles article{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.rbh-article-image{display:block;position:relative;aspect-ratio:16/8;background:linear-gradient(120deg,#efe3d3,#d9c3a5);overflow:hidden}.rbh-article-image img{width:100%;height:100%;object-fit:cover;display:block}
.rbh-badge{position:absolute;top:0;right:12px;background:var(--red);color:#fff;font-size:10px;padding:3px 12px;border-radius:0 0 8px 8px}
.rbh-home .rbh-articles h3{font-size:12px;line-height:1.9;margin:10px 12px 4px;font-weight:800;min-height:46px}.rbh-articles h3 a{color:var(--ink)}
.rbh-article-meta{display:flex;justify-content:space-between;align-items:center;margin:0 12px 10px;font-size:10px;color:var(--red)}.rbh-article-meta a{color:var(--red)!important}

/* newsletter */
.rbh-newsletter{background:linear-gradient(105deg,#7a0a10,#b3141a);color:#fff;padding:20px 0}
.rbh-newsletter-inner{display:flex;align-items:center;gap:24px}
.rbh-newsletter-img{flex:0 0 210px;height:62px;background-size:cover;background-position:center;border-radius:8px}
.rbh-newsletter-text{flex:1;text-align:center}.rbh-home .rbh-newsletter h2{font-size:17px;color:#fff;margin:0 0 2px}.rbh-newsletter p{font-size:11px;color:#f8d9d9;margin:0}
.rbh-newsletter-form{display:flex;gap:6px;background:#fff;padding:4px;border-radius:9px;flex:0 0 min(430px,100%)}
.rbh-newsletter-form input{flex:1;min-width:0;border:0;padding:8px 10px;font:inherit;font-size:11px;outline:none;background:transparent}
.rbh-newsletter-form button{background:var(--red);color:#fff;border:0;border-radius:7px;padding:8px 26px;font:inherit;font-size:12px;font-weight:bold;cursor:pointer}

@media(max-width:1000px){.rbh-categories{flex-wrap:wrap;justify-content:center;row-gap:14px}.rbh-category{flex:0 0 20%;border:0}.rbh-product{flex-basis:calc((100% - 24px)/3)}.rbh-promos{grid-template-columns:1fr}.rbh-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.rbh-articles{grid-template-columns:repeat(2,minmax(0,1fr))}.rbh-hero-photo{width:38%;opacity:.55}.rbh-hero-stamp{display:none}.rbh-newsletter-inner{flex-wrap:wrap}.rbh-newsletter-img{display:none}.rbh-newsletter-text{flex:1 1 100%}.rbh-newsletter-form{flex:1 1 100%}}
@media(max-width:620px){.rbh-wrap{width:calc(100% - 22px)}.rbh-hero,.rbh-hero-layout{min-height:230px}.rbh-hero-photo{width:100%;opacity:.22;-webkit-mask-image:none;mask-image:none}.rbh-hero-text p{font-size:12px}.rbh-category{flex-basis:25%}.rbh-category-icon{width:46px;height:46px;font-size:28px}.rbh-product{flex-basis:calc((100% - 8px)/2)}.rbh-product-image{height:150px}.rbh-nav{display:none}.rbh-articles{grid-template-columns:1fr}.rbh-benefits{gap:8px}.rbh-benefit{padding:10px;gap:8px}.rbh-benefit>span{width:36px;height:36px;flex-basis:36px;font-size:19px}.rbh-promo>div{max-width:62%}.rbh-home .rbh-section-heading h2{font-size:16px}}

@media(max-width:1000px){.rbh-product,.rbh-dark .rbh-product{flex-basis:calc((100% - 28px)/3)}.rbh-dark-inner{flex-direction:column;align-items:stretch}.rbh-dark-title{flex:none}}
@media(max-width:620px){.rbh-product,.rbh-dark .rbh-product{flex-basis:calc((100% - 14px)/2)}.rbh-home .rbh-section-heading h2{font-size:18px}.rbh-dark-inner{padding:16px 12px}}

@media(max-width:620px){
.rbh-banners{gap:8px;padding-bottom:16px}
.rbh-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.rbh-cols-3,.rbh-cols-4{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rbh-cols-3::-webkit-scrollbar,.rbh-cols-4::-webkit-scrollbar{display:none}
.rbh-cols-3 .rbh-banner,.rbh-cols-4 .rbh-banner{flex:0 0 44%;scroll-snap-align:start;border-radius:12px}
.rbh-banner{border-radius:10px}
}

/* category cards + dropdown */
.rbh-catcards-section{padding:24px 0 14px}
.rbh-dash{display:inline-block;width:22px;height:3px;border-radius:2px;background:var(--accent,var(--red));margin-right:10px;vertical-align:middle}
.rbh-catcards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.rbh-catcard{--c:#fdebdd;position:relative;display:block;min-height:104px;border-radius:12px;padding:14px;overflow:hidden;background:var(--c);color:var(--ink)!important;transition:.2s}
.rbh-catcard:nth-child(8n+2){--c:#e9e5f7}.rbh-catcard:nth-child(8n+3){--c:#e2eef7}.rbh-catcard:nth-child(8n+4){--c:#e2f1e5}.rbh-catcard:nth-child(8n+5){--c:#f6efe2}.rbh-catcard:nth-child(8n+6){--c:#fbe3e3}.rbh-catcard:nth-child(8n+7){--c:#e5f0f0}.rbh-catcard:nth-child(8n+8){--c:#efe6f5}
.rbh-catcard:hover{transform:translateY(-3px);box-shadow:0 8px 20px #4d171014}
.rbh-catcard-text{position:relative;z-index:2;display:block;margin-right:44%}
.rbh-catcard-text strong{display:block;font-size:13px;font-weight:800;line-height:1.7}
.rbh-catcard-text small{display:inline-flex;align-items:center;gap:4px;margin-top:10px;font-size:9px;color:var(--accent,var(--red));font-weight:700}
.rbh-catcard-img{position:absolute;right:0;bottom:0;top:6px;width:44%;display:flex;align-items:flex-end;justify-content:center}
.rbh-catcard-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.rbh-catcard-icon{display:grid;place-items:center;font-size:54px;color:var(--accent,var(--red));opacity:.35;margin-bottom:12px}
.rbh-dropdown{position:relative}
.rbh-dd-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:20px;padding:4px 14px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.rbh-dd-toggle:hover,.rbh-dropdown.open .rbh-dd-toggle{border-color:var(--accent,var(--red));color:var(--accent,var(--red))}
.rbh-dropdown.open .rbh-dd-toggle .rbh-svg{transform:rotate(180deg)}
.rbh-dd-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:50;width:300px;max-height:340px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px #0002;padding:6px}
.rbh-dd-menu[hidden]{display:none}
.rbh-dd-menu a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;font-size:12px;color:var(--ink)!important}
.rbh-dd-menu a:hover{background:#fff3f6;color:var(--accent,var(--red))!important}
.rbh-dd-menu small{font-size:10px;color:var(--muted)}
.rbh-dd-menu .rbh-dd-all{justify-content:center;margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 8px 8px;font-weight:800;color:var(--accent,var(--red))!important}
@media(max-width:1000px){.rbh-catcards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.rbh-catcards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px}.rbh-catcards::-webkit-scrollbar{display:none}.rbh-catcard{flex:0 0 62%;scroll-snap-align:start}.rbh-dd-menu{width:min(300px,86vw)}.rbh-dd-toggle{padding:4px 10px}}
