/* Ravan Book 2.0 — design layer on top of the original responsive Woo layout. */
:root {--rb-ink:#202c36;--rb-muted:#63707c;--rb-accent:#167e80;--rb-accent-deep:#0a6265;--rb-soft:#ecf8f6;--rb-cream:#fff9ef;--rb-line:#dde7e5;--rb-radius:21px}
html {scroll-behavior:smooth}
body {font-family:Vazirmatn,system-ui,sans-serif;background:#fbfcfb;color:var(--rb-ink)}
a, button {transition:background-color .2s,color .2s,border-color .2s,transform .2s}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #e6b55d;outline-offset:2px}
.cd-header {background:#fff;box-shadow:0 3px 24px rgba(22,59,55,.07);border-bottom:1px solid var(--rb-line)}
.cd-logo > a,.cd-footer-logo {display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.rb-logo-mark,.cd-footer-logo .rb-logo-mark {display:grid;place-items:center;flex:0 0 auto;background:var(--rb-accent);color:white;width:49px;height:49px;border-radius:14px;font-size:23px;box-shadow:0 8px 20px rgba(22,126,128,.15)}
.rb-logo-label {display:flex;flex-direction:column;line-height:1.35;color:var(--rb-ink)}
.rb-logo-label strong {font-size:22px;font-weight:900}
.rb-logo-label small {font-size:10px;letter-spacing:2px;color:var(--rb-accent);font-weight:800}
.cd-header .cd-login-btn {background:#eaf7f5!important;color:var(--rb-accent-deep)!important;border:1px solid #cfe7e1}
.cd-header .cd-login-btn:hover {background:#d8f0ed!important}
.cd-menu a:hover {color:var(--rb-accent)!important}
.cd-footer {background:#132e33}
.cd-footer-logo {color:#fff}
.cd-footer-logo .rb-logo-mark {background:#f5be64;color:#1c3334}
.rb-hero {position:relative;overflow:hidden;background:radial-gradient(circle at 22% 75%,#d8efea 0,transparent 44%),linear-gradient(120deg,#f2faf6 0%,#fdf9f0 100%);padding:75px 0 65px}
.rb-hero__grid {display:grid;grid-template-columns:1fr .94fr;align-items:center;gap:5vw;min-height:455px}
.rb-kicker {display:inline-flex;gap:8px;align-items:center;background:#fff;padding:8px 15px;color:var(--rb-accent-deep);border:1px solid #d5ece6;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.3px}
.rb-hero h1 {font-size:clamp(35px,4vw,63px);font-weight:900;line-height:1.56;letter-spacing:-1px;color:#19383e;margin:18px 0}
.rb-hero h1 em {font-style:normal;color:var(--rb-accent)}
.rb-hero__copy>p {font-size:16px;line-height:2.3;max-width:575px;color:#536973;margin:0 0 22px}
.rb-hero__search {display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #d7e7e3;box-shadow:0 14px 40px rgba(16,81,78,.07);border-radius:16px;padding:7px 17px 7px 8px;max-width:560px}
.rb-hero__search>i {color:#66938e;font-size:16px}
.rb-hero__search input {flex:1;min-width:0;background:transparent;border:none!important;box-shadow:none!important;font-family:inherit;font-size:13px;padding:12px 2px;outline:0}
.rb-hero__search button {background:var(--rb-accent);color:white;padding:12px 23px;border:0;border-radius:11px;font-family:inherit;font-weight:700;cursor:pointer}
.rb-hero__search button:hover,.rb-hero__browse:hover {background:#075d5e;color:white}
.rb-hero__actions {display:flex;gap:23px;align-items:center;margin-top:20px;flex-wrap:wrap}
.rb-hero__browse {display:inline-flex;align-items:center;gap:12px;background:var(--rb-accent);color:white;border-radius:13px;padding:12px 22px;text-decoration:none;font-weight:800;border:0}
.rb-hero__down {color:#4a7070;font-size:13px;font-weight:700}
.rb-hero__perks {display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.rb-hero__perks span {font-size:12px;font-weight:700;color:#41716e;display:inline-flex;gap:6px;align-items:center;padding:6px 12px;background:#e2f3ee;border-radius:100px}
.rb-hero__visual {min-height:450px;position:relative;display:flex;align-items:center;justify-content:center;perspective:800px}
.rb-hero__halo {position:absolute;border-radius:50%;width:min(420px,90%);aspect-ratio:1;background:linear-gradient(135deg,#e7eee2,#cfe3d7);box-shadow:0 0 0 35px rgba(255,255,255,.45)}
.rb-hero__book {position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:6px 18px 18px 6px;box-shadow:-13px 19px 27px rgba(25,59,60,.18);width:205px;height:310px;border-right:9px solid rgba(255,255,255,.25);overflow:hidden}
.rb-hero__book--back {background:#eba565;transform:translate(99px,-2px) rotate(13deg);color:#fff;font-size:53px}
.rb-hero__book--middle {background:#0d777b;transform:translate(-84px,7px) rotate(-10deg);color:#d3f0e4;font-size:50px}
.rb-hero__book--front {background:linear-gradient(145deg,#25434b,#0c565e);transform:translate(4px,0) rotate(-1deg);color:#fff;gap:14px;border-left:12px solid rgba(0,0,0,.13)}
.rb-hero__book--front img {height:100%;width:100%;object-fit:cover}
.rb-hero__book--front>i {font-size:55px;color:#d6d39d}
.rb-hero__book--front strong {font-family:Georgia,serif;font-size:30px;letter-spacing:3px;line-height:1.12;text-align:center}
.rb-hero__book--front span {font-size:11px;letter-spacing:0}
.rb-hero__float {display:flex;align-items:center;gap:10px;position:absolute;background:#fff;padding:12px 16px;border-radius:13px;font-weight:800;box-shadow:0 13px 38px rgba(43,70,64,.12);color:#2b5859;font-size:13px}
.rb-hero__float i {font-size:20px;color:var(--rb-accent)}
.rb-hero__float--audio {top:18%;left:4%}.rb-hero__float--read {bottom:14%;right:5%}
.rb-home-formats {padding:80px 0 55px}
.rb-section-heading {text-align:center;margin-bottom:32px}.rb-section-heading>span {font-size:13px;color:var(--rb-accent);font-weight:800;letter-spacing:.3px}
.rb-section-heading h2 {font-weight:900;font-size:clamp(23px,2.6vw,36px);margin:7px 0 9px;color:var(--rb-ink)}
.rb-section-heading p {color:var(--rb-muted);margin:0;font-size:14px}
.rb-home-formats__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rb-home-format {text-align:right;padding:30px 27px 24px;border:1px solid var(--rb-line);border-radius:23px;background:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;min-height:246px;color:var(--rb-ink);text-decoration:none;box-shadow:0 12px 33px rgba(19,78,73,.035)}
.rb-home-format:before {content:'';position:absolute;inset:0 0 auto;height:5px;background:var(--rb-accent)}
.rb-home-format--physical {--rb-accent:#cb8e4d}.rb-home-format--pdf {--rb-accent:#16908b}.rb-home-format--audio {--rb-accent:#7781b6}
.rb-home-format__icon {width:59px;height:59px;border-radius:17px;background:color-mix(in srgb,var(--rb-accent) 13%,white);display:grid;place-items:center;color:var(--rb-accent);font-size:27px;margin-bottom:8px}
.rb-home-format>span {color:var(--rb-accent);font-size:12px;font-weight:800}
.rb-home-format h3 {font-size:24px;font-weight:900;margin:0;color:var(--rb-ink)}
.rb-home-format p {font-size:12px;color:var(--rb-muted);line-height:1.9;margin:0}
.rb-home-format>div:last-child {margin-top:auto;display:flex;justify-content:space-between;align-items:center;color:var(--rb-accent);font-size:13px;font-weight:800;padding-top:14px}
.rb-home-format:hover {transform:translateY(-5px);box-shadow:0 19px 43px rgba(22,78,76,.11)}
.rb-genres {display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:34px}
.rb-genres span {font-weight:800;font-size:13px}.rb-genres a {background:#edf4f2;border-radius:999px;color:#466764;text-decoration:none;font-size:12px;padding:7px 14px}
.rb-genres a:hover {background:#d9efeb}
.rb-features {padding:21px 0 35px}
.rb-features__grid {display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.rb-features__grid>div {display:flex;gap:13px;align-items:center;background:#fff;border:1px solid var(--rb-line);padding:19px 15px;border-radius:15px}
.rb-features__grid>div>i {width:41px;height:41px;display:grid;place-items:center;background:#eff8f5;color:var(--rb-accent);border-radius:11px;font-size:19px;flex-shrink:0}
.rb-features__grid span {display:flex;flex-direction:column;gap:4px}
.rb-features__grid strong {font-size:13px;color:#263a3d}.rb-features__grid small {font-size:11px;color:#6a7c80}
.cd-products,.cd-banner {padding-block:55px!important}
.cd-products__header .cd-section-subtitle {font-size:27px;color:#183d41;font-weight:900}
.cd-product-card {background:#fff;border:1px solid var(--rb-line)!important;border-radius:16px!important;box-shadow:0 5px 22px rgba(20,60,62,.04)}
.cd-product-card__media {overflow:hidden}
.cd-product-card__image {object-fit:contain!important;background:linear-gradient(140deg,#f5f6f3,#fefbf8)}
.cd-product-card__title a {color:var(--rb-ink)!important}
.rb-card-formats {display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.rb-card-formats span {display:inline-flex;padding:4px 8px;font-size:10px;font-weight:800;background:#e9f6f3;color:var(--rb-accent-deep);border-radius:7px}
.cd-product-card__cart,.cd-btn {background:var(--rb-accent)!important;color:white!important;border-radius:11px!important}
.cd-product-card__cart:hover {background:var(--rb-accent-deep)!important}
.cd-shop-hero {background:linear-gradient(120deg,#e6f5f0,#fdf8ed)!important}
.cd-shop-widget__title {color:#244448}
.rb-shop-edition-filter {padding:10px 0;display:grid;gap:8px}
.rb-shop-edition-filter a {display:flex;justify-content:space-between;align-items:center;text-decoration:none;border:1px solid var(--rb-line);padding:11px;border-radius:10px;background:#fff;color:var(--rb-ink);font-weight:700;font-size:12px}
.rb-shop-edition-filter a.is-active,.rb-shop-edition-filter a:hover {border-color:var(--rb-accent);background:#eaf8f4;color:#095d5f}
/* Editions on a book product */
.rb-editions {border:1px solid #d7e8e4;background:#fff;border-radius:18px;padding:21px 17px;margin:22px 0 26px;scroll-margin-top:90px}
.rb-editions>h2 {font-size:19px;font-weight:900;line-height:1.65;color:#1c464b;margin:0 0 5px}
.rb-editions__intro {font-size:12px;color:#66797c;line-height:1.9;margin:0 0 15px}
.rb-editions__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.rb-edition {padding:13px 10px;border-radius:12px;background:#f8faf9;border:1px solid #e0e9e6;display:flex;flex-direction:column;min-width:0}
.rb-edition--sale {border-color:#bbe1d9;background:#f5fbf9}.rb-edition--missing {background:#fcfcfc}
.rb-edition__heading {display:flex;align-items:center;gap:6px;color:#234b52;font-size:12px}
.rb-edition__heading i {font-size:16px;color:#0c8b82}.rb-edition__heading strong {font-weight:900}
.rb-edition>p {font-size:10px;color:#829092;line-height:1.7;margin:7px 0 12px}
.rb-edition__state {font-weight:800;font-size:10px;color:#16795e;margin:auto 0 8px}.rb-edition__state--request {color:#9c6835}.rb-edition__state--off {color:#869294}
.rb-edition__price {font-size:12px;color:#123a3b;margin-bottom:8px;word-break:break-word}
.rb-edition__price .woocommerce-Price-amount {font-size:12px}
.rb-edition__button {border:1px solid var(--rb-accent);background:var(--rb-accent);color:white!important;border-radius:9px;padding:8px 3px;line-height:1.55;text-align:center;text-decoration:none;font-size:11px;font-weight:800}
.rb-edition__button:hover {background:#075d5e}.rb-edition__button--outline {color:var(--rb-accent)!important;background:#fff}.rb-edition__button--outline:hover {color:#fff!important}
.rb-request {margin-top:12px;border:1px solid #e4e7e5;border-radius:11px;background:#fff;scroll-margin-top:90px}
.rb-request summary {cursor:pointer;padding:12px 15px;font-size:13px;font-weight:800;color:#1b6764;display:flex;align-items:center;justify-content:space-between;list-style:none}
.rb-request summary::-webkit-details-marker {display:none}.rb-request[open] summary {border-bottom:1px solid var(--rb-line);background:#f8fcfb}
.rb-request form {padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rb-request form label {display:flex;flex-direction:column;gap:6px;color:#36545c;font-size:12px;font-weight:700}
.rb-request form label span {color:#b94838}
.rb-request form input,.rb-request form textarea {border:1px solid #d5dfdc;border-radius:8px;background:#fff;min-width:0;padding:11px;font:inherit;font-size:12px;color:var(--rb-ink)}
.rb-request form label:has(textarea) {grid-column:1/-1}
.rb-request__trap {position:absolute!important;left:-10000px!important;opacity:0;pointer-events:none}
.rb-request__privacy {grid-column:1/-1;margin:0;font-size:11px;line-height:1.9;color:#62777b}
.rb-request form button {background:var(--rb-accent);padding:12px 18px;border:0;border-radius:10px;font-family:inherit;font-weight:800;color:white;cursor:pointer;grid-column:1/-1}
.rb-request form button:hover {background:var(--rb-accent-deep)}
.rb-request-success,.rb-request-error {padding:13px;border-radius:11px;font-size:12px;line-height:1.8;font-weight:800}
.rb-request-success {color:#135b48;background:#e4f4e8}.rb-request-error {color:#9b3c35;background:#fff0ea}
#rb-buy-book {display:block;scroll-margin-top:130px}
.cd-single-product__summary .variations_form,.cd-single-product__summary .cart {max-width:100%}
.cd-single-product__summary table.variations {width:100%;margin:0 0 15px}
.cd-single-product__summary table.variations select {border:1px solid #cbdcd9;padding:11px 14px;border-radius:9px;color:#284d50;font-family:inherit;background:#fff}
.rb-book-specs {display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:15px 0}
.rb-book-specs>div {display:flex;gap:8px;align-items:center;justify-content:space-between;background:#f6faf8;border:1px solid #e4efeb;padding:9px 12px;border-radius:9px;font-size:11px}
.rb-book-specs span {color:#6a7778}.rb-book-specs strong {font-weight:800;color:#29484a;text-align:left}
.rb-info-page {padding:70px 0 100px;background:linear-gradient(180deg,#f1faf6,#fff)}
.rb-info-hero {text-align:center;padding:25px 0 36px;max-width:740px;margin:auto}
.rb-info-hero span {font-size:13px;color:var(--rb-accent);font-weight:900}.rb-info-hero h1 {font-size:clamp(30px,4vw,47px);line-height:1.6;margin:10px 0 12px;color:#21464a}.rb-info-hero p {color:#667879;line-height:2.3}
.rb-info-cards {display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rb-info-cards>div {background:#fff;border:1px solid var(--rb-line);border-radius:17px;padding:28px;text-align:center}
.rb-info-cards i {font-size:28px;color:var(--rb-accent)}.rb-info-cards h2 {font-size:19px;margin:18px 0 8px}.rb-info-cards p {font-size:13px;color:#687a7d;line-height:2}
.rb-info-note {text-align:center;background:#eff9f6;padding:35px;margin-top:28px;border-radius:20px}.rb-info-note h2 {font-size:23px;margin:0 0 8px}.rb-info-note p {line-height:2.2;font-size:14px}.rb-info-note .rb-hero__browse {margin-top:10px}
@media(max-width:1050px){.rb-hero__grid {gap:22px}.rb-hero h1 {font-size:39px}.rb-features__grid {grid-template-columns:repeat(2,1fr)}.rb-hero__book {width:165px;height:255px}.rb-hero__book--back {transform:translate(72px) rotate(12deg)}.rb-hero__book--middle {transform:translate(-71px) rotate(-11deg)}}
@media(max-width:780px){.rb-hero {padding:35px 0 42px}.rb-hero__grid {grid-template-columns:1fr;gap:10px}.rb-hero__visual {min-height:310px}.rb-hero__halo {width:260px}.rb-hero h1 {font-size:34px}.rb-hero__copy>p {font-size:13px}.rb-home-formats {padding:50px 0}.rb-home-formats__grid {grid-template-columns:1fr;gap:12px}.rb-home-format {min-height:0;padding:20px 22px}.rb-home-format h3 {font-size:20px}.rb-features__grid {grid-template-columns:1fr 1fr;gap:9px}.rb-features__grid>div {padding:13px 9px}.rb-features__grid strong {font-size:11px}.rb-features__grid small {font-size:10px}.rb-section-heading h2 {font-size:25px}.rb-info-cards {grid-template-columns:1fr;gap:10px}.rb-info-page {padding:25px 0 50px}.rb-editions__grid {grid-template-columns:repeat(3,minmax(0,1fr))}.rb-edition {padding:10px 6px}.rb-edition__heading {font-size:10px}.rb-edition__heading i {font-size:13px}.rb-edition>p {font-size:9px}.rb-edition__button {font-size:10px}.rb-logo-label strong {font-size:17px}}
@media(max-width:440px){.rb-hero__perks {margin-top:15px}.rb-hero__float {padding:8px 10px;font-size:11px}.rb-features__grid {grid-template-columns:1fr}.rb-editions {padding:15px 9px}.rb-editions__grid {gap:5px}.rb-edition__heading {flex-direction:column;align-items:flex-start}.rb-request form {grid-template-columns:1fr}.rb-request form label:has(textarea){grid-column:auto}.rb-book-specs {grid-template-columns:1fr}.cd-products__header .cd-section-subtitle {font-size:20px}}

.rb-card-formats span.rb-card-formats__request{background:#fff1de;color:#936435}
