/*
Theme Name: Persian Bell
Template: blocksy
Description: Blocksy child theme for persianbell.com. All site customizations live here and in Code Snippets.
Version: 1.2.0
Author: Persian Learning Center
Text Domain: persianbell
*/

:root{--pb-green:#0a5c36;--pb-green-dark:#083f26;--pb-gold:#c9a227;--pb-band:#cee5d0;--pb-ink:#1b2420;}

/* Type */
body,.entry-content,.ct-container{font-family:'Times New Roman',Times,serif;}
h1,h2,h3,h4,h5,h6{font-family:'Times New Roman',Times,serif;letter-spacing:.01em;color:var(--pb-ink);}
[dir=rtl]{font-family:Tahoma,'Times New Roman',serif;line-height:2;}

/* Header: logo + "Persian Bell" wordmark to its right */
.site-branding[data-id="logo"]{display:flex;align-items:center;gap:12px;}
.site-branding .site-title{display:none;}
.site-logo-container{display:flex !important;align-items:center;gap:14px;text-decoration:none;}
.site-logo-container img{height:66px !important;width:auto !important;max-height:none !important;}
.site-logo-container::after{content:"Persian Bell";font:700 26px/1 'Times New Roman',Times,serif;letter-spacing:.02em;color:var(--pb-green);white-space:nowrap;}
@media(max-width:689px){.site-logo-container img{height:48px !important;}.site-logo-container::after{font-size:20px;}}
header [data-id="menu"] > ul > li > a{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;}
header [data-row="middle"] > div > div{display:flex;align-items:center;}
header [data-row="middle"] [data-items]{align-items:center;}
header [data-id="menu"] > ul > li > a{line-height:64px;}

.site-logo-container img{height:50px !important;}
.site-logo-container::after{font-size:23px;}
/* no gap between header and page content on rebuilt pages */
.pb-no-hero main > .ct-container,.pb-no-hero .ct-container,.pb-no-hero .ct-container-full,.pb-no-hero .ct-container-narrow{padding-top:0 !important;}
.pb-no-hero:not(.home) .entry-content{padding-top:34px;}

/* compact header */
[data-header] [data-row="middle"],[data-header] [data-row="middle"] > div,[data-header] [data-row="middle"] > div > div,header [data-row="middle"] *{--height:64px !important;}
[data-header] [data-row="middle"] > div,[data-header] [data-row="middle"] > div > div{min-height:64px !important;}

/* Content */
.wp-block-group.has-background{border-radius:14px;}
.wp-block-image img{border-radius:10px;}
.wp-block-columns.are-vertically-aligned-center{gap:2.5rem;}
.pb-no-hero .hero-section{display:none;}

/* Shop grid */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{background:var(--pb-green);color:#fff;border-radius:6px;}
.woocommerce ul.products li.product .button:hover{background:var(--pb-green-dark);}
.onsale{background:#e23b2e !important;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;}

/* WooCommerce buttons */
.wc-proceed-to-checkout .checkout-button,.woocommerce button.button.alt,#place_order,.woocommerce .cart .button,.woocommerce-cart .coupon .button{background:var(--pb-green) !important;color:#fff !important;border-color:var(--pb-green) !important;}
.wc-proceed-to-checkout .checkout-button:hover,.woocommerce button.button.alt:hover,#place_order:hover{background:var(--pb-green-dark) !important;}

/* Footer (markup from the pb-footer snippet) */
.pb-footer{background:#f4f7f5;border-top:1px solid #dfe8e3;margin-top:50px;padding:48px 0 18px;font-size:15px;color:#2f3a36;}
.pb-footer .pb-wrap{max-width:1290px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:40px;}
.pb-footer h4{margin:0 0 12px;font-size:18px;color:var(--pb-ink);}
.pb-footer ul{list-style:none;margin:0;padding:0;}
.pb-footer li{margin:0 0 8px;}
.pb-footer a{color:var(--pb-green);text-decoration:none;}
.pb-footer a:hover{text-decoration:underline;}
.pb-footer img.pb-logo{width:110px;height:auto;display:block;margin-bottom:12px;}
.pb-social a{display:inline-block;margin:10px 14px 0 0;font-weight:600;}
.pb-copy{max-width:1290px;margin:36px auto 0;padding:14px 20px 0;border-top:1px solid #dfe8e3;text-align:center;font-size:13px;color:#5a6660;}
footer.ct-footer [data-row="bottom"]{display:none;}
@media(max-width:800px){.pb-footer .pb-wrap{grid-template-columns:1fr;gap:24px;}}

/* ---------- Home page ---------- */
.pb-section{padding:56px 0;}
.pb-eyebrow{font:700 12px/1 'Times New Roman',serif;letter-spacing:.14em;text-transform:uppercase;color:var(--pb-green);margin:0 0 14px;}
.pb-h1{font-size:clamp(34px,4.4vw,54px);line-height:1.1;margin:0 0 14px;color:var(--pb-ink);}
.pb-h2{font-size:clamp(26px,3vw,36px);line-height:1.15;margin:0 0 10px;}
.pb-sub{color:#4f5b57;font-size:17px;max-width:680px;margin:0 auto 30px;}
.pb-fa-welcome{font:700 26px/1.4 Tahoma,serif;color:var(--pb-gold);margin:0 0 10px;text-align:left;direction:rtl;}
.pb-lede{font-size:19px;line-height:1.6;color:#2f3a36;max-width:560px;margin:0 0 22px;}
.pb-hero{background:linear-gradient(135deg,#eef5f0 0%,#e2eee6 60%,#f7f0dd 100%);padding:34px 0 48px;margin-top:0;}
.pb-hero-img img{border-radius:18px;box-shadow:0 24px 50px -24px rgba(10,92,54,.45);}
.pb-hero-note{font-size:14px;color:#5a6660;margin:14px 0 0;}
.pb-btn-primary .wp-block-button__link{background:var(--pb-green);color:#fff;border-radius:10px;padding:14px 26px;font:700 16px 'Times New Roman',serif;box-shadow:0 10px 22px -12px rgba(10,92,54,.7);}
.pb-btn-primary .wp-block-button__link:hover{background:var(--pb-green-dark);}
.pb-btn-outline .wp-block-button__link{border:2px solid var(--pb-green);color:var(--pb-green);border-radius:10px;padding:12px 24px;font:700 16px 'Times New Roman',serif;background:transparent;}
.pb-btn-outline .wp-block-button__link:hover{background:var(--pb-green);color:#fff;}
.pb-hero-btns{gap:12px;}
.pb-books .woocommerce ul.products{margin-bottom:10px;}
.pb-poets{background:var(--pb-band);border-radius:0;}
.pb-poet{background:#fff;border-radius:16px;padding:18px 18px 22px;box-shadow:0 14px 30px -22px rgba(10,92,54,.5);text-align:center;}
.pb-poet-img img{border-radius:12px;aspect-ratio:4/3;object-fit:cover;width:100%;}
.pb-poet-name{font-size:24px;margin:16px 0 8px;}
.pb-poet-name span{display:block;font-size:13px;font-weight:400;letter-spacing:.08em;color:#6b7772;margin-top:4px;}
.pb-couplet-fa{font:600 17px/2 Tahoma,serif;color:var(--pb-ink);margin:0 0 6px;text-align:center;}
.pb-couplet-en{font-style:italic;color:#4f5b57;font-size:15px;line-height:1.55;margin:0 0 12px;}
.pb-poet-link a{color:var(--pb-green);font-weight:700;text-decoration:none;}
.pb-poet-link a:hover{text-decoration:underline;}
.pb-learn-img img{border-radius:16px;}
.pb-checks{list-style:none;padding:0;margin:14px 0 22px;}
.pb-checks li{position:relative;padding:5px 0 5px 30px;font-size:17px;}
.pb-checks li::before{content:"\2713";position:absolute;left:0;top:4px;color:var(--pb-green);font-weight:800;font-size:18px;}
.pb-why{background:#f4f7f5;border-top:1px solid #dfe8e3;border-bottom:1px solid #dfe8e3;padding:44px 0;}
.pb-why-item{text-align:center;padding:0 10px;}
.pb-why-ico{font-size:34px;margin:0 0 8px;line-height:1;}
.pb-why-item h3{font-size:18px;margin:0 0 6px;}
.pb-why-item p:last-child{font-size:15px;color:#4f5b57;margin:0;}
.pb-posts .wp-block-post{background:#fff;border:1px solid #e5ece8;border-radius:14px;overflow:hidden;}
.pb-posts .wp-block-post-featured-image img{display:block;}
.pb-posts .wp-block-post-title{font-size:19px;margin:14px 16px 6px;line-height:1.3;}
.pb-posts .wp-block-post-title a{color:var(--pb-ink);text-decoration:none;}
.pb-posts .wp-block-post-excerpt{margin:0 16px 16px;font-size:15px;color:#4f5b57;}
.pb-posts .wp-block-post-excerpt__more-link{color:var(--pb-green);font-weight:700;text-decoration:none;}
.pb-cta{background:linear-gradient(135deg,var(--pb-green),var(--pb-green-dark));color:#fff;padding:54px 0;}
.pb-cta .pb-h2,.pb-cta .pb-sub{color:#fff;}
.pb-cta .pb-btn-primary .wp-block-button__link{background:#fff;color:var(--pb-green);}
@media(max-width:800px){.pb-section{padding:40px 0;}.pb-hero{padding:40px 0;}.pb-hero-cols{flex-direction:column-reverse;}.pb-fa-welcome{text-align:center;}}

/* Shop / home product cards: Mathfa-style book cards */
.woocommerce ul.products li.product{display:grid !important;grid-template-columns:1fr auto;grid-template-rows:auto auto 1fr auto;grid-template-areas:"fig fig" "meta meta" "title title" "price btn";align-items:center;column-gap:10px;background:#fbf7ee;border:1px solid #efe6d3;border-radius:18px;padding:12px 14px 14px;box-shadow:0 14px 30px -22px rgba(60,40,10,.45);transition:transform .18s,box-shadow .18s;}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 20px 36px -22px rgba(60,40,10,.55);}
.woocommerce ul.products li.product > figure{grid-area:fig;margin:0 0 12px;aspect-ratio:auto;display:block;background:transparent;border-radius:12px;overflow:hidden;padding:0;box-shadow:0 12px 24px -14px rgba(0,0,0,.5);align-self:start;}
.woocommerce ul.products li.product .ct-media-container,.woocommerce ul.products li.product .ct-image-container{aspect-ratio:auto !important;width:100%;height:auto;display:block;background:transparent;border-radius:12px;box-shadow:none;overflow:hidden;}
.woocommerce ul.products li.product .ct-media-container img,.woocommerce ul.products li.product .ct-image-container img{width:100% !important;height:auto !important;object-fit:fill !important;display:block;border-radius:12px;box-shadow:none;}
.woocommerce ul.products li.product .entry-meta{grid-area:meta;margin:0 0 4px !important;padding:0;list-style:none;display:block !important;}
.woocommerce ul.products li.product .entry-meta .meta-categories{font-size:0;line-height:0;}
.woocommerce ul.products li.product .entry-meta .meta-categories a{font:700 11px/1 'Times New Roman',serif;letter-spacing:.14em;text-transform:uppercase;color:#c9711a;text-decoration:none;}
.woocommerce ul.products li.product .entry-meta .meta-categories a:not(:last-child){display:none;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{grid-area:title;font-size:16px;line-height:1.3;margin:0 0 10px !important;min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:#1b2420;text-decoration:none;}
.woocommerce ul.products li.product .price{grid-area:price;margin:0 !important;font-size:17px;font-weight:700;color:#1b2420;}
.woocommerce ul.products li.product .price del{font-size:13px;color:#8a9790;font-weight:400;margin-right:4px;}
.woocommerce ul.products li.product .price ins{text-decoration:none;}
.woocommerce ul.products li.product .ct-woo-card-actions{grid-area:btn;margin:0 !important;}
.woocommerce ul.products li.product .button{width:auto;margin:0;border-radius:999px;padding:10px 18px;font-size:14px;font-weight:700;background:var(--pb-green);color:#fff;}
.woocommerce ul.products li.product .button:hover{background:var(--pb-green-dark);}
.woocommerce ul.products li.product .ct-woo-card-rating,.woocommerce ul.products li.product .star-rating,.woocommerce ul.products li.product .pinterest-for-woocommerce-image-wrapper,.woocommerce ul.products li.product [class*="pinterest"]{display:none !important;}
.woocommerce ul.products li.product .onsale{top:20px;left:20px;border-radius:6px;font-size:11px;padding:4px 8px;}
@media(max-width:689px){.woocommerce ul.products li.product{grid-template-areas:"fig fig" "meta meta" "title title" "price price" "btn btn";}.woocommerce ul.products li.product .button{width:100%;text-align:center;margin-top:8px;}}

/* Shop page */
.pb-shop-intro{text-align:center;margin:0 calc(50% - 50vw) 36px;padding:46px 20px 40px;background:linear-gradient(135deg,#eef5f0 0%,#e2eee6 55%,#f7f0dd 100%);border-bottom:1px solid #dfe8e3}
.pb-shop-intro > *{max-width:820px;margin-left:auto;margin-right:auto}
.pb-shop-fa{font:700 24px/1.4 Tahoma,serif;color:#c9a227;margin:0 auto 6px;text-align:center}
.pb-shop-intro h1{font-size:clamp(28px,3.4vw,42px);line-height:1.15;margin:0 auto 12px}
.pb-shop-lede{color:#4f5b57;font-size:17px;margin:0 auto 22px;max-width:680px}
.pb-shop-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.pb-shop-chips a{border:1px solid #cfe0d5;border-radius:999px;padding:9px 16px;color:#0a5c36;font-weight:700;text-decoration:none;background:#fff;font-size:14px}
.pb-shop-chips a span{color:#8a9790;font-weight:400;margin-left:4px}
.pb-shop-chips a:hover,.pb-shop-chips a.on{background:#0a5c36;color:#fff;border-color:#0a5c36}
.pb-shop-chips a.on span,.pb-shop-chips a:hover span{color:#cfe0d5}
.woocommerce-shop .woocommerce-result-count,.tax-product_cat .woocommerce-result-count{font-size:13px;color:#6b7772}
.woocommerce ul.products{row-gap:28px}
.woocommerce-shop ul.products,.tax-product_cat ul.products{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
@media(max-width:1000px){.woocommerce-shop ul.products,.tax-product_cat ul.products{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media(max-width:689px){.woocommerce-shop ul.products,.tax-product_cat ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
.pb-shop-foot{max-width:1000px;margin:50px auto 10px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;border-radius:20px;background:#f4f7f5;border:1px solid #dfe8e3}
.pb-shop-foot h2{font-size:24px;margin:0 0 6px}.pb-shop-foot p:last-child{margin:0;color:#4f5b57}
.pb-shop-foot-links{display:flex;flex-wrap:wrap;gap:10px}.pb-shop-foot-links a{background:#0a5c36;color:#fff;font-weight:700;padding:11px 18px;border-radius:10px;text-decoration:none}
@media(max-width:800px){.pb-shop-foot{flex-direction:column;align-items:flex-start}}

/* PB-CARD-FRAME start */
.woocommerce ul.products li.product figure{aspect-ratio:4/5 !important;width:100%;display:flex !important;align-items:center;justify-content:center;padding:0 !important;margin:0 0 14px !important;background:transparent !important;box-shadow:none !important;border-radius:0 !important;overflow:visible !important}
.woocommerce ul.products li.product figure .ct-media-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;aspect-ratio:auto !important;padding-bottom:0 !important}
.woocommerce ul.products li.product figure img{width:auto !important;height:auto !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;aspect-ratio:auto !important;border-radius:12px;box-shadow:0 14px 28px -18px rgba(10,30,20,.45);position:static !important}
.woocommerce ul.products li.product .onsale{top:14px;left:14px}
/* PB-CARD-FRAME end */
