/*
Theme Name:     Al Majd Academic Publisher Child
Theme URI:      https://editionmajd.com
Description:    قالب طفل RTL للمؤسسة الجامعية للدراسات والنشر – مجد، دار نشر أكاديمية تأسست في بيروت عام 1975، مع دعم WooCommerce وصفحات القالب.
Author:         المؤسسة الجامعية للدراسات والنشر – مجد
Author URI:     https://editionmajd.com
Template:       almajd-parent
Version:        4.0.1
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    almajd-child
Tags:           woocommerce, rtl-language-support, arabic, books, publishing, ebook, pwa
*/

:root {
  --majd-primary:       #0F3D2E;
  --majd-primary-light: #E8F0EC;
  --majd-dark:       #0F3D2E;
  --majd-dark-2:     #08261C;
  --majd-paper:      #FAF8F1;
  --majd-paper-2:    #FAF8F1;
  --majd-cream:      #FAF8F1;
  --majd-white:      #ffffff;
  --majd-text:       #1F1A13;
  --majd-text-mid:   #5E6A66;
  --majd-text-light: #5E6A66;
  --majd-border:     #DDE7E1;
  --majd-radius:     10px;
  --majd-radius-sm:  6px;
  --majd-shadow:     0 12px 34px rgba(15,61,46,.10);

  /* توافق مع ملفات CSS الموجودة */
  --majd-primary:    var(--majd-dark);
  --majd-accent:     var(--majd-primary);
  --majd-bg:         var(--majd-paper);
  --majd-radius-lg:  var(--majd-radius);
  --majd-shadow-lg:  var(--majd-shadow);
}

html { direction: rtl; scroll-behavior: smooth; }
body {
  background: var(--majd-paper);
  color: var(--majd-text);
  font-family: "Amiri", serif;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; }

@media (max-width: 600px) {
  .aw-product__layout-3col,
  .majd-sp__hero { gap: 16px; }
}

body.majd-app-mode .aw-header__strip,
body.majd-app-mode .site-footer,
body.majd-app-mode .aw-footer { display: none !important; }
body.majd-app-mode .aw-header { position: sticky; top: 0; z-index: 100; }


/* Majd final identity override: Beirut 1975, Amiri, dark green + primary */
:root{
  --majd-primary:#0F3D2E;
  --majd-dark:#0F3D2E;
  --majd-dark-2:#08261C;
  --majd-accent:#0F3D2E;
  --majd-primary:#0F3D2E;
  --majd-bg:#FAF8F1;
  --majd-paper:#FAF8F1;
  --majd-text:#1F1A13;
}
html, body, button, input, select, textarea, .site, .site *{
  font-family: "Amiri", serif;
}
body{background:#FAF8F1;color:#1F1A13;}
a{color:#0F3D2E;}
a:hover{color:#0F3D2E;}
button, .button, .btn, input[type="submit"], .add_to_cart_button, .single_add_to_cart_button, .wp-element-button{
  background:#0F3D2E !important;
  border-color:#0F3D2E !important;
  color:#fff !important;
}
button:hover, .button:hover, .btn:hover, input[type="submit"]:hover, .add_to_cart_button:hover, .single_add_to_cart_button:hover, .wp-element-button:hover{
  background:#0F3D2E !important;
  border-color:#0F3D2E !important;
  color:#1F1A13 !important;
}
.site-header, .aw-header, .main-header, header[role="banner"]{
  border-bottom:1px solid rgba(184,150,69,.28);
}
.site-footer, .aw-footer, footer[role="contentinfo"]{
  background:#0F3D2E !important;
  color:#FAF8F1 !important;
}
.site-footer a, .aw-footer a, footer[role="contentinfo"] a{color:#FAF8F1 !important;}
.site-footer a:hover, .aw-footer a:hover, footer[role="contentinfo"] a:hover{color:#0F3D2E !important;}

/* Al Majd single-colour identity override — dark green only */
:root{
  --majd-primary:#0F3D2E;
  --majd-primary-dark:#08261C;
  --majd-primary-soft:#E8F0EC;
  --majd-bg:#FAF8F1;
  --majd-text:#1F1A13;
  --majd-muted:#5E6A66;
  --majd-border:#DDE7E1;
  --majd-primary:#0F3D2E;
  --majd-primary:#0F3D2E;
  --majd-primary:#0F3D2E;
  --fp-ox:#0F3D2E;
  --fp-primary:#0F3D2E;
  --primary:#0F3D2E;
  --primary:#0F3D2E;
}
body{background:#FAF8F1;color:#1F1A13;}
a{color:#0F3D2E;}
a:hover{color:#08261C;}
button,
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.majd-btn,
.majd-btn--primary,
.fp-btn,
.fp-btn--primary{
  background:#0F3D2E!important;
  color:#FFFFFF!important;
  border-color:#0F3D2E!important;
}
button:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.majd-btn:hover,
.fp-btn:hover{
  background:#08261C!important;
  color:#FFFFFF!important;
  border-color:#08261C!important;
}
.majd-btn--line,
.fp-btn--outline{
  background:transparent!important;
  color:#0F3D2E!important;
  border-color:#0F3D2E!important;
}
.majd-btn--line:hover,
.fp-btn--outline:hover{
  background:#0F3D2E!important;
  color:#FFFFFF!important;
}
.site-header,
.main-navigation,
.fp-section--green,
.fp-section--primary,
.majd-hero,
.majd-academic-hero,
.majd-footer,
.site-footer{
  background:#0F3D2E!important;
}
.majd-section__title,
.fp-section-title,
.product_title,
.woocommerce-loop-product__title,
h1,h2,h3,h4,h5,h6{
  color:#0F3D2E;
}
.majd-hero h1,
.majd-hero h2,
.majd-hero h3,
.majd-hero p,
.fp-section--primary h1,
.fp-section--primary h2,
.fp-section--primary h3,
.fp-section--green h1,
.fp-section--green h2,
.fp-section--green h3,
.site-footer,
.site-footer a,
.majd-footer,
.majd-footer a{
  color:#FFFFFF!important;
}
.card,
.majd-card,
.majd-book-card,
.fp-bk,
.woocommerce ul.products li.product,
.product_meta,
.summary,
.majd-service,
.majd-cat{
  background:#FFFFFF;
  border-color:#DDE7E1!important;
}

/* Final one-colour green identity pass */
:root{
  --primary:#0F3D2E;
  --primary-line:#0F3D2E;
  --rule-primary:#0F3D2E;
  --rule-primary-lt:#E8F0EC;
  --dark:#0F3D2E;
  --dark2:#08261C;
  --paper:#FAF8F1;
  --ink:#1F1A13;
}
[class*="primary"], [class*="green"]{border-color:#0F3D2E;}

