/**
 * Isra Redesign V2
 * Strong visual override for old theme colors + WooCommerce + Courses.
 */
:root,
body.isra-theme-active {
  --main-color: #1a5c38 !important;
  --sec-color: #c8a84b !important;
  --bg-color: #f5f0e8 !important;
  --after-color: #2d7a4f !important;
  --text-color: #25352d !important;
  --isra-green: #2d7a4f;
  --isra-green-dark: #143525;
  --isra-green-deep: #1a5c38;
  --isra-green-soft: #e7f4ed;
  --isra-gold: #c8a84b;
  --isra-gold-soft: #fbf2d7;
  --isra-cream: #f5f0e8;
  --isra-warm-white: #fffaf2;
  --isra-ink: #25352d;
  --isra-muted: #69786f;
  --isra-border: rgba(26, 92, 56, .14);
  --isra-shadow-sm: 0 10px 24px rgba(20, 53, 37, .07);
  --isra-shadow-md: 0 20px 44px rgba(20, 53, 37, .12);
  --isra-shadow-lg: 0 30px 70px rgba(20, 53, 37, .16);
}

body.isra-theme-active {
  background:
    radial-gradient(circle at 12% 3%, rgba(200,168,75,.13), transparent 26%),
    radial-gradient(circle at 87% 18%, rgba(45,122,79,.11), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #ffffff 34%, #f7f2ea 100%) !important;
  color: var(--isra-ink) !important;
}
body.isra-theme-active .inner-body::before,
body.isra-theme-active .inner-body::after { opacity: .08 !important; filter: hue-rotate(105deg) saturate(.6); }
body.isra-theme-active * { box-sizing: border-box; }
body.isra-theme-active a { color: var(--isra-green-deep); }
body.isra-theme-active a:hover { color: var(--isra-gold); }
body.isra-theme-active h1,
body.isra-theme-active h2,
body.isra-theme-active h3,
body.isra-theme-active h4,
body.isra-theme-active h5,
body.isra-theme-active h6 { color: var(--isra-green-dark); letter-spacing: -.02em; }

/* Hard override for old parent theme buttons/pink details */
body.isra-theme-active .more a,
body.isra-theme-active .read-more a,
body.isra-theme-active .read-more button,
body.isra-theme-active .add button,
body.isra-theme-active input[type="submit"],
body.isra-theme-active button[type="submit"],
body.isra-theme-active .woocommerce a.button,
body.isra-theme-active .woocommerce button.button,
body.isra-theme-active .woocommerce input.button,
body.isra-theme-active .woocommerce #respond input#submit,
body.isra-theme-active a.added_to_cart,
body.isra-theme-active .button,
body.isra-theme-active .btn {
  background: linear-gradient(135deg, var(--isra-green-deep), var(--isra-green)) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 28px rgba(26,92,56,.18) !important;
  font-family: "Cairo", "Tajawal", Arial, sans-serif !important;
  font-weight: 800 !important;
}
body.isra-theme-active .more a:hover,
body.isra-theme-active .read-more a:hover,
body.isra-theme-active .add button:hover,
body.isra-theme-active input[type="submit"]:hover,
body.isra-theme-active button[type="submit"]:hover,
body.isra-theme-active .woocommerce a.button:hover,
body.isra-theme-active .woocommerce button.button:hover,
body.isra-theme-active .woocommerce input.button:hover,
body.isra-theme-active .button:hover,
body.isra-theme-active .btn:hover {
  background: linear-gradient(135deg, var(--isra-green-dark), var(--isra-green-deep)) !important;
  color: #fff !important;
  transform: translateY(-2px);
}
body.isra-theme-active .product-block:hover,
body.isra-theme-active .product-block .img .small,
body.isra-theme-active .woocommerce-info,
body.isra-theme-active .woocommerce-message {
  border-color: var(--isra-gold) !important;
}
body.isra-theme-active .professional-item ul li::before,
body.isra-theme-active .footer-sochial a:hover,
body.isra-theme-active .product-detail .price span,
body.isra-theme-active .price span,
body.isra-theme-active .woocommerce-Price-amount,
body.isra-theme-active .woocommerce div.product p.price,
body.isra-theme-active .woocommerce div.product span.price,
body.isra-theme-active .xoo-aff-required.xoo-aff-checkbox_single a {
  color: var(--isra-green-deep) !important;
}
body.isra-theme-active .irs--flat .irs-bar,
body.isra-theme-active .irs--flat .irs-from,
body.isra-theme-active .irs--flat .irs-single,
body.isra-theme-active .irs--flat .irs-to,
body.isra-theme-active .woocommerce-MyAccount-navigation ul li:hover,
body.isra-theme-active .woocommerce-MyAccount-navigation ul li.is-active {
  background-color: var(--isra-green-deep) !important;
}
body.isra-theme-active .woocommerce-message::before,
body.isra-theme-active .woocommerce-info::before { color: var(--isra-green-deep) !important; }

/* General layout polish */
body.isra-theme-active .isra-container { width: min(1220px, calc(100% - 34px)); }
body.isra-theme-active .isra-section { padding: clamp(56px, 7vw, 100px) 0; overflow: visible; }
body.isra-theme-active .isra-heading { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.22; }
body.isra-theme-active .isra-subtitle { color: var(--isra-muted); line-height: 1.9; }
body.isra-theme-active .isra-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(26,92,56,.13);
  border-radius: 30px;
  box-shadow: var(--isra-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
body.isra-theme-active .isra-card:hover { transform: translateY(-5px); box-shadow: var(--isra-shadow-md); border-color: rgba(200,168,75,.45); }
body.isra-theme-active .isra-btn { border-radius: 999px !important; }
body.isra-theme-active .isra-btn-gold,
body.isra-theme-active .isra-course-type-card .isra-btn-gold {
  background: linear-gradient(135deg, #d7bb62, var(--isra-gold)) !important;
  color: var(--isra-green-dark) !important;
  box-shadow: 0 14px 28px rgba(200,168,75,.24) !important;
}
body.isra-theme-active .isra-btn-outline,
body.isra-theme-active .isra-product-secondary {
  background: #fff !important;
  color: var(--isra-green-deep) !important;
  border: 1px solid var(--isra-border) !important;
  box-shadow: none !important;
}
body.isra-theme-active .isra-btn-outline:hover,
body.isra-theme-active .isra-product-secondary:hover {
  background: var(--isra-green-soft) !important;
  color: var(--isra-green-dark) !important;
}

/* Header is now stronger and cleaner */
body.isra-theme-active .isra-header {
  background: rgba(255,250,242,.91) !important;
  box-shadow: 0 8px 24px rgba(20,53,37,.06);
}
body.isra-theme-active .isra-menu a { color: var(--isra-ink) !important; }
body.isra-theme-active .isra-menu .current-menu-item > a,
body.isra-theme-active .isra-menu a:hover {
  background: var(--isra-green-soft) !important;
  color: var(--isra-green-deep) !important;
}

/* WooCommerce archive shell */
body.isra-theme-active.woocommerce-page ul.products,
body.isra-theme-active .woocommerce ul.products,
body.isra-theme-active ul.products.isra-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.isra-theme-active.woocommerce ul.products::before,
body.isra-theme-active.woocommerce ul.products::after,
body.isra-theme-active .woocommerce ul.products::before,
body.isra-theme-active .woocommerce ul.products::after { display: none !important; content: none !important; }
body.isra-theme-active.woocommerce ul.products li.product,
body.isra-theme-active .woocommerce ul.products li.product,
body.isra-theme-active li.product.isra-product-card-v2 {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.isra-shop-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 28px;
}
.isra-shop-promise,
.isra-shop-mini-card {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--isra-border);
  border-radius: 30px;
  box-shadow: var(--isra-shadow-sm);
  padding: 22px;
}
.isra-shop-promise h3,
.isra-shop-mini-card h3 { margin: 0 0 10px; font-size: 22px; }
.isra-shop-promise p,
.isra-shop-mini-card p { margin: 0; color: var(--isra-muted); line-height: 1.8; }
.isra-shop-cats,
.isra-course-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 10px;
}
.isra-shop-cat,
.isra-course-type-tabs a,
.isra-filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(26,92,56,.16) !important;
  background: rgba(255,255,255,.82) !important;
  color: var(--isra-green-deep) !important;
  font-weight: 900;
  box-shadow: none !important;
}
.isra-shop-cat:hover,
.isra-course-type-tabs a:hover,
.isra-filter-tabs button.is-active,
.isra-filter-tabs button:hover {
  background: var(--isra-green-deep) !important;
  color: #fff !important;
}

/* Product card V2 */
.isra-product-card-v2 .isra-product-card-inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(26,92,56,.14);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--isra-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.isra-product-card-v2 .isra-product-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: var(--isra-shadow-lg);
  border-color: rgba(200,168,75,.52);
}
.isra-product-card-v2 .isra-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / .82;
  background:
    radial-gradient(circle at 20% 18%, rgba(200,168,75,.18), transparent 32%),
    linear-gradient(145deg, #fffaf2, #eef7f1);
  overflow: hidden;
}
.isra-product-card-v2 .isra-product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 26px;
  transition: transform .35s ease;
}
.isra-product-card-v2:hover .isra-product-media img { transform: scale(1.055); }
.isra-product-badge,
.isra-sale-badge,
.isra-course-badge-v2 {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--isra-green-dark);
  border: 1px solid rgba(200,168,75,.45);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20,53,37,.08);
}
.isra-sale-badge { right: auto; left: 16px; background: var(--isra-gold); color: var(--isra-green-dark); border: 0; }
.isra-product-content { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.isra-product-category { color: var(--isra-muted); font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.isra-product-title { margin: 0 0 10px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; }
.isra-product-title a { color: var(--isra-green-dark) !important; }
.isra-product-title a:hover { color: var(--isra-green-deep) !important; }
.isra-product-desc { color: var(--isra-muted); line-height: 1.85; margin: 0 0 16px; font-size: 15px; }
.isra-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.isra-product-price,
.isra-product-price .amount,
.isra-product-price ins,
.isra-product-price bdi { color: var(--isra-green-deep) !important; font-size: 19px; font-weight: 950; text-decoration: none; }
.isra-product-price del,
.isra-product-price del .amount,
.isra-product-price del bdi { color: #a4ada8 !important; font-size: 14px; font-weight: 700; }
.isra-product-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.isra-product-card-v2 .add_to_cart_button,
.isra-product-card-v2 .product_type_variable,
.isra-product-card-v2 .product_type_grouped,
.isra-product-card-v2 .product_type_external {
  min-height: 44px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  font-size: 14px !important;
}
.isra-product-secondary { min-height: 44px; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; }

/* Single product V2 */
.isra-single-product {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.isra-single-gallery,
.isra-single-summary {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--isra-border);
  border-radius: 36px;
  box-shadow: var(--isra-shadow-sm);
  padding: 24px;
}
.isra-single-gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.isra-single-gallery .woocommerce-product-gallery__image img { border-radius: 26px; background: #fffaf2; object-fit: contain; }
.isra-single-summary .product_title { font-size: clamp(30px, 4vw, 52px); line-height: 1.25; margin: 8px 0 14px; }
.isra-single-summary .price { margin: 0 0 18px; color: var(--isra-green-deep) !important; font-size: 26px !important; font-weight: 950; }
.isra-single-summary .woocommerce-product-details__short-description { color: var(--isra-muted); line-height: 1.9; font-size: 17px; }
.isra-single-summary form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 !important; }
.isra-single-summary form.cart .quantity input.qty { min-height: 48px; border: 1px solid var(--isra-border); border-radius: 16px; }
.isra-product-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.isra-product-trust span { background: var(--isra-green-soft); color: var(--isra-green-dark); border: 1px solid var(--isra-border); border-radius: 18px; padding: 12px; text-align: center; font-weight: 900; font-size: 13px; }
body.isra-theme-active .woocommerce-tabs,
body.isra-theme-active .related.products,
body.isra-theme-active .upsells.products {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--isra-border);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--isra-shadow-sm);
  margin-top: 28px;
}
body.isra-theme-active .woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 18px !important; }
body.isra-theme-active .woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--isra-border) !important;
  background: #fff !important;
  border-radius: 999px !important;
  margin: 0 0 8px 8px !important;
}
body.isra-theme-active .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--isra-green-deep) !important; }
body.isra-theme-active .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }

/* Courses V2 */
.isra-courses-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.isra-course-type-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--isra-border);
  border-radius: 34px;
  padding: 26px;
  box-shadow: var(--isra-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.isra-course-type-card:hover { transform: translateY(-6px); box-shadow: var(--isra-shadow-md); border-color: rgba(200,168,75,.52); }
.isra-course-type-card::after {
  content: "";
  position: absolute;
  left: -48px;
  top: -48px;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background: rgba(200,168,75,.14);
}
.isra-course-type-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--isra-green-deep), var(--isra-green));
  color: #fff;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 18px 30px rgba(26,92,56,.17);
}
.isra-course-type-card.recorded .isra-course-type-icon { background: linear-gradient(135deg, #1a5c38, #50a36f); }
.isra-course-type-card.live .isra-course-type-icon { background: linear-gradient(135deg, #234f66, #2d7a4f); }
.isra-course-type-card.offline .isra-course-type-icon { background: linear-gradient(135deg, #8a6a1a, #c8a84b); color: var(--isra-green-dark); }
.isra-course-type-card h3 { margin: 0 0 10px; font-size: 24px; }
.isra-course-type-card p { margin: 0; color: var(--isra-muted); line-height: 1.85; }
.isra-course-type-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.isra-course-type-card li { position: relative; padding-right: 22px; color: var(--isra-ink); font-weight: 700; }
.isra-course-type-card li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--isra-gold); font-weight: 900; }

.isra-course-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(26,92,56,.14);
  border-radius: 34px;
  box-shadow: var(--isra-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.isra-course-card-v2:hover { transform: translateY(-8px); box-shadow: var(--isra-shadow-lg); border-color: rgba(200,168,75,.55); }
.isra-course-card-v2 .isra-course-media {
  position: relative;
  display: block;
  min-height: 230px;
  aspect-ratio: 1.25 / .78;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(200,168,75,.2), transparent 34%),
    linear-gradient(145deg, #eff8f2, #fffaf2);
}
.isra-course-card-v2 .isra-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.isra-course-card-v2:hover .isra-course-media img { transform: scale(1.06); }
.isra-course-card-v2 .fallback {
  width: 100%;
  min-height: 230px;
  display: grid;
  place-items: center;
  font-family: "Amiri", serif;
  font-size: 76px;
  color: rgba(26,92,56,.32);
}
.isra-course-badge-v2 {
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.92);
}
.isra-course-badge-v2.live { border-color: rgba(35,79,102,.28); }
.isra-course-badge-v2.offline { background: var(--isra-gold); border: 0; }
.isra-course-content-v2 { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.isra-course-title-v2 { margin: 0 0 12px; font-size: 23px; line-height: 1.4; }
.isra-course-title-v2 a { color: var(--isra-green-dark) !important; }
.isra-course-excerpt-v2 { color: var(--isra-muted); line-height: 1.85; margin: 0 0 16px; }
.isra-course-meta-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
}
.isra-course-meta-v2 span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 15px;
  background: var(--isra-green-soft);
  color: var(--isra-green-dark);
  font-size: 13px;
  font-weight: 900;
}
.isra-course-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.isra-course-price-v2 { color: var(--isra-green-deep); font-size: 20px; font-weight: 950; }
.isra-course-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 52px 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--isra-border);
}
.isra-course-section-title h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.isra-course-section-title span { color: var(--isra-muted); font-weight: 800; }
.isra-course-group { margin-top: 18px; }

.isra-single-course-v2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.isra-single-course-media,
.isra-single-course-summary,
.isra-course-side-box,
.isra-course-content-box {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--isra-border);
  border-radius: 36px;
  box-shadow: var(--isra-shadow-sm);
  padding: 24px;
}
.isra-single-course-media img { width: 100%; border-radius: 26px; display: block; }
.isra-single-course-summary h1 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.25; margin: 12px 0 16px; }
.isra-course-large-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.isra-course-large-meta div { background: var(--isra-green-soft); border: 1px solid var(--isra-border); border-radius: 18px; padding: 12px; }
.isra-course-large-meta small { display: block; color: var(--isra-muted); font-size: 12px; font-weight: 900; margin-bottom: 4px; }
.isra-course-large-meta strong { color: var(--isra-green-dark); font-size: 15px; }
.isra-course-content-box { margin-top: 28px; line-height: 1.95; }

/* Forms and sidebar filters */
body.isra-theme-active input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.isra-theme-active textarea,
body.isra-theme-active select,
body.isra-theme-active .nice-select {
  border: 1px solid rgba(26,92,56,.17) !important;
  background: rgba(255,255,255,.86) !important;
  color: var(--isra-ink) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
body.isra-theme-active input:focus,
body.isra-theme-active textarea:focus,
body.isra-theme-active select:focus { border-color: var(--isra-gold) !important; box-shadow: 0 0 0 4px rgba(200,168,75,.13) !important; }

@media (max-width: 1100px) {
  body.isra-theme-active.woocommerce-page ul.products,
  body.isra-theme-active .woocommerce ul.products,
  body.isra-theme-active ul.products.isra-products-grid,
  body.isra-theme-active .isra-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .isra-single-product,
  .isra-single-course-v2,
  .isra-shop-intro { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .isra-courses-intro-grid { grid-template-columns: 1fr; }
  .isra-product-trust { grid-template-columns: 1fr; }
  .isra-course-large-meta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body.isra-theme-active.woocommerce-page ul.products,
  body.isra-theme-active .woocommerce ul.products,
  body.isra-theme-active ul.products.isra-products-grid,
  body.isra-theme-active .isra-grid-3,
  body.isra-theme-active .isra-grid-4 { grid-template-columns: 1fr !important; }
  .isra-product-footer,
  .isra-course-footer-v2,
  .isra-course-section-title { align-items: flex-start; flex-direction: column; }
  .isra-course-meta-v2 { grid-template-columns: 1fr; }
  .isra-single-gallery,
  .isra-single-summary,
  .isra-single-course-media,
  .isra-single-course-summary,
  .isra-course-content-box { padding: 18px; border-radius: 26px; }
}
