/*
Theme Name: Maktabat Al Majd
Theme URI: https://example.com
Author: Maktabat Al Majd
Description: Arabic RTL WooCommerce theme for Maktabat Al Majd.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: majd-almajd
*/
:root{--majd-green:#176b36;--majd-deep:#104c2c;--majd-green2:#2a8548;--majd-mint:#eaf4e9;--majd-orange:#ef7b28;--majd-ink:#20352b;--majd-muted:#68776e;--majd-line:#e3ebe4;--majd-bg:#f9fbf8;--majd-shadow:0 12px 35px rgba(25,67,39,.08);--majd-radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--majd-ink);font-family:"Cairo",Tahoma,sans-serif;font-size:15px;line-height:1.7}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{cursor:pointer}.majd-topline{min-height:34px;background:var(--majd-deep);color:#f6fff6;display:flex;justify-content:space-between;align-items:center;padding:4px 5.5%;font-size:12px}.majd-topline a{color:#f6fff6}.majd-top-links{display:flex;gap:14px;align-items:center}.majd-header{min-height:86px;display:flex;align-items:center;gap:24px;padding:10px 5.5%;border-bottom:1px solid var(--majd-line);position:sticky;top:0;background:rgba(255,255,255,.97);z-index:20;backdrop-filter:blur(12px)}.majd-brand{display:flex;align-items:center;gap:10px;min-width:205px}.majd-logo-window{width:68px;height:62px;display:block;overflow:hidden;position:relative;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(22,85,43,.10);flex:none}.majd-logo-window img{position:absolute;top:-74%;left:-60%;width:220%;max-width:none;height:auto}.majd-brand-name{font-weight:800;color:var(--majd-green);font-size:18px;line-height:1.3}.majd-brand-name small{display:block;font-size:10px;color:#718175;font-weight:500}.majd-nav{display:flex;align-items:center;gap:20px;white-space:nowrap}.majd-nav a{font-size:13px;color:#394b40}.majd-nav a:hover{color:var(--majd-green)}.majd-search{display:flex;align-items:center;gap:8px;border:1px solid var(--majd-line);border-radius:13px;padding:7px 12px;flex:1;min-width:130px;background:var(--majd-bg)}.majd-search input{border:0;background:transparent;outline:0;width:100%;font-size:13px}.majd-cart-link{color:var(--majd-green);font-size:14px;white-space:nowrap}.majd-menu-toggle{display:none;border:0;background:transparent;color:var(--majd-green);font-size:22px}.majd-hero{width:89%;max-width:1320px;min-height:255px;margin:26px auto 0;border-radius:28px;overflow:hidden;position:relative;display:grid;grid-template-columns:1fr 1fr;background:linear-gradient(115deg,#edf6e9,#f7faf4 55%,#f4efe4);isolation:isolate}.majd-hero-copy{padding:45px 9% 42px 5%;align-self:center;position:relative;z-index:2}.majd-eyebrow{font-size:11px;color:var(--majd-green2);font-weight:700}.majd-hero h1{font-size:clamp(32px,4vw,52px);line-height:1.25;margin:9px 0;color:#164a2c;font-weight:800}.majd-hero h1 em{font-style:normal;color:var(--majd-green2);position:relative}.majd-hero h1 em:after{content:"";display:block;width:70%;height:5px;border-radius:6px;background:var(--majd-orange);transform:rotate(-2deg);margin-top:5px}.majd-hero p{color:#627268;max-width:440px;font-size:14px;margin:16px 0 22px}.majd-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border:0!important;background:var(--majd-green)!important;color:white!important;border-radius:12px!important;padding:11px 18px!important;min-height:44px;font-weight:700!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;transition:.18s}.majd-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--majd-deep)!important;transform:translateY(-1px)}.majd-hero-visual{position:relative;overflow:hidden;min-height:245px}.majd-hero-visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:left center;mix-blend-mode:multiply}.majd-offer-sticker{position:absolute;top:42px;left:11%;height:86px;width:86px;border-radius:50%;background:var(--majd-orange);color:white;display:grid;place-items:center;text-align:center;font-size:13px;line-height:1.25;font-weight:800;transform:rotate(-8deg);box-shadow:0 8px 0 rgba(199,89,25,.15)}.majd-strip{display:flex;justify-content:center;gap:48px;padding:17px 10px;margin:6px auto 20px;color:var(--majd-green);font-size:12px;border-bottom:1px solid var(--majd-line);max-width:1180px}.majd-section{width:89%;max-width:1320px;margin:52px auto}.majd-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.majd-section h2{margin:0;font-size:27px;color:#173f29}.majd-text-link{border:0;background:transparent;color:var(--majd-green);font-weight:700;font-size:13px}.majd-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.majd-category-card{min-height:150px;border:1px solid var(--majd-line);border-radius:19px;background:linear-gradient(135deg,var(--cat-bg,#eff7ed),#fff);padding:16px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:.2s}.majd-category-card:hover{transform:translateY(-4px);box-shadow:var(--majd-shadow)}.majd-category-card:before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.62);left:-24px;top:-31px}.majd-category-card>*{position:relative}.majd-category-icon{width:60px;height:60px;align-self:flex-end;color:var(--majd-green);filter:drop-shadow(0 7px 6px rgba(30,76,40,.1))}.majd-category-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.majd-category-card b{font-size:14px;color:#274d35}.majd-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.majd-product-card{border:1px solid var(--majd-line);border-radius:18px;overflow:hidden;background:#fff;transition:.2s;padding:0 0 14px;text-align:right}.majd-product-card:hover{transform:translateY(-3px);box-shadow:var(--majd-shadow)}.majd-product-media{width:min(100%,210px);height:auto;aspect-ratio:1/1;margin:14px auto;border-radius:50%;background:linear-gradient(140deg,#edf4ea,#f9f6ed);display:grid;place-items:center;position:relative;overflow:hidden}.majd-product-media img,.majd-product-media .attachment-woocommerce_thumbnail{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;padding:8px!important;border-radius:50%;background:#fff}.majd-product-info{padding:12px 14px 0}.majd-product-info .price{color:var(--majd-green);font-size:21px;font-weight:800;display:inline-flex;align-items:center;background:#eef7ee;padding:3px 11px;border-radius:999px}.majd-product-info del{color:#9aa39d;font-size:11px}.majd-product-info ins{text-decoration:none}.majd-product-info .woocommerce-loop-product__title{font-size:14px;color:#284332;margin:6px 0}.majd-product-info .button{width:calc(100% - 28px);margin:12px 14px 0!important;font-size:12px!important}.majd-footer{background:#153e29;color:#e8f3e9;padding:38px 6% 18px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px}.majd-footer h3{font-size:14px;margin:0 0 9px}.majd-footer p,.majd-footer a{font-size:12px;color:#b8caba;display:block;margin:3px 0}.majd-footer-brand{font-size:21px;font-weight:800;color:white}.majd-copyright{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.14);padding-top:12px;text-align:center;color:#a9bead;font-size:10px}.majd-mobile-nav{display:none}.woocommerce .woocommerce-breadcrumb,.woocommerce-breadcrumb{font-size:12px;color:var(--majd-muted);margin:18px auto;width:89%;max-width:1320px}.woocommerce .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important}.woocommerce div.product .product_title{color:#21472d}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--majd-green)}.woocommerce .quantity .qty{min-height:42px;border:1px solid var(--majd-line);border-radius:9px}.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--majd-green)}.woocommerce .woocommerce-message:before,.woocommerce .woocommerce-info:before{color:var(--majd-green)}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid var(--majd-line);border-radius:10px;padding:11px}.woocommerce table.shop_table{border:1px solid var(--majd-line);border-radius:12px}.majd-main{min-height:45vh}.majd-page{width:89%;max-width:1320px;margin:35px auto}.majd-empty{background:#f8fbf7;border:1px dashed #b8d0ba;border-radius:20px;padding:38px;text-align:center;color:#66756b}.majd-empty h3{color:#214e31}.majd-badge{background:#fff2e5;color:#d76d20;border-radius:8px;padding:4px 8px;font-size:10px;position:absolute;top:10px;right:10px;z-index:2}@media(max-width:1060px){.majd-header{gap:14px}.majd-brand{min-width:170px}.majd-nav{gap:12px}.majd-nav a{font-size:12px}.majd-products-grid,.woocommerce .products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.majd-topline{padding:4px 4%;font-size:10px}.majd-header{min-height:70px;padding:8px 4%;gap:9px}.majd-menu-toggle{display:block}.majd-brand{min-width:0;flex:1;gap:7px}.majd-logo-window{width:50px;height:50px}.majd-brand-name{font-size:15px}.majd-brand-name small{font-size:9px}.majd-nav{display:none;position:absolute;top:69px;right:4%;left:4%;background:#fff;border:1px solid var(--majd-line);border-radius:14px;padding:14px;box-shadow:var(--majd-shadow);flex-direction:column;align-items:stretch;z-index:30}.majd-nav.is-open{display:flex}.majd-search{max-width:42px;min-width:40px;justify-content:center;padding:6px}.majd-search input{display:none}.majd-search:focus-within{max-width:170px}.majd-search:focus-within input{display:block}.majd-hero{width:92%;margin-top:15px;grid-template-columns:1fr;min-height:0}.majd-hero-copy{padding:20px 8% 0}.majd-hero h1{font-size:30px;line-height:1.15;margin:6px 0}.majd-hero p{font-size:12px;max-width:320px;margin:8px 0 12px}.majd-hero-visual{min-height:115px;margin-top:0}.majd-hero-visual img{object-position:left 57%}.majd-offer-sticker{top:8px;left:10%;width:54px;height:54px;font-size:9px}.majd-strip{gap:9px;justify-content:space-around;font-size:9px;padding:12px 3%;margin:0 auto 18px}.majd-section{width:92%;margin:38px auto}.majd-section h2{font-size:22px}.majd-category-grid{display:flex;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory}.majd-category-card{min-width:145px;min-height:132px;scroll-snap-align:start}.majd-products-grid,.woocommerce .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.majd-product-media{width:min(100%,150px);height:auto;aspect-ratio:1/1}.majd-footer{grid-template-columns:1fr 1fr;padding:28px 6% 16px}.majd-footer>:first-child{grid-column:1/-1}.majd-copyright{font-size:9px}.woocommerce .woocommerce-breadcrumb{width:92%}.majd-page{width:92%}.woocommerce div.product{display:block}.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none}.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border:1px solid var(--majd-line);border-radius:12px;padding:14px}}

.majd-nav ul{list-style:none;display:flex;gap:18px;padding:0;margin:0}.majd-nav li{margin:0}.majd-product-category{display:block;font-size:10px;color:#78887e;margin-bottom:3px}.majd-product-card .button{width:calc(100% - 28px);margin:12px 14px 0!important;font-size:12px!important}.majd-promo-band{border-radius:22px;background:linear-gradient(105deg,#e9f5e7,#f5f8e9);padding:22px 5%;display:flex;align-items:center;gap:18px}.majd-promo-band h2{margin:2px 0;color:#1f5130;font-size:21px}.majd-promo-band p{margin:0;color:#718078;font-size:12px}.majd-promo-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:white;color:var(--majd-orange);font-size:42px;flex:none}.majd-promo-band .majd-button{margin-right:auto}@media(max-width:760px){.majd-nav ul{flex-direction:column;gap:10px}.majd-promo-band{flex-wrap:wrap;padding:17px;gap:12px}.majd-promo-icon{width:52px;height:52px;font-size:34px}.majd-promo-band h2{font-size:16px}.majd-promo-band .majd-button{margin-right:0;width:100%}}
