
/*
 * Isra redesign v3 — stronger creative educational visual layer.
 * Focus: playful premium UI, better product/course cards, motion, and child-learning atmosphere.
 */

:root {
  --isra-mint: #dff4ec;
  --isra-sky: #dfefff;
  --isra-peach: #ffe8d2;
  --isra-lavender: #eee6ff;
  --isra-sun: #ffe9a6;
  --isra-wave: rgba(255,255,255,.84);
}

body.isra-theme-active {
  background:
    radial-gradient(circle at 8% 8%, rgba(255,223,140,.17), transparent 22%),
    radial-gradient(circle at 94% 11%, rgba(157,225,191,.15), transparent 24%),
    radial-gradient(circle at 22% 84%, rgba(223,239,255,.25), transparent 20%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 32%, #f8f4ed 100%) !important;
}

body.isra-theme-active .isra-page-hero,
body.isra-theme-active .isra-hero,
body.isra-theme-active .isra-section {
  position: relative;
  overflow: hidden;
}

body.isra-theme-active .isra-page-hero::before,
body.isra-theme-active .isra-hero::before,
body.isra-theme-active .isra-section::before {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  top: 28px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,233,166,.32), rgba(255,233,166,0) 68%);
  pointer-events: none;
}

body.isra-theme-active .isra-page-hero::after,
body.isra-theme-active .isra-hero::after,
body.isra-theme-active .isra-section::after {
  content: "✦  ✎  ☁";
  position: absolute;
  inset-inline-end: 28px;
  top: 34px;
  color: rgba(200,168,75,.36);
  letter-spacing: 10px;
  font-size: 28px;
  pointer-events: none;
  animation: israFloat 7s ease-in-out infinite;
}

body.isra-theme-active .isra-page-hero {
  padding: clamp(50px, 7vw, 94px) 0 48px;
}

body.isra-theme-active .isra-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(26,92,56,.12);
  box-shadow: var(--isra-shadow-sm);
  font-weight: 700;
}

body.isra-theme-active .isra-heading {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
body.isra-theme-active .isra-subtitle {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

/* Intro cards / feature cards */
body.isra-theme-active .isra-shop-promise,
body.isra-theme-active .isra-shop-mini-card,
body.isra-theme-active .isra-course-type-card,
body.isra-theme-active .isra-card,
body.isra-theme-active .isra-empty {
  border-radius: 32px;
  box-shadow: 0 20px 44px rgba(20,53,37,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.92)),
    linear-gradient(135deg, rgba(223,244,236,.65), rgba(255,232,210,.55));
  border: 1px solid rgba(26,92,56,.12);
}

body.isra-theme-active .isra-shop-promise,
body.isra-theme-active .isra-shop-mini-card,
body.isra-theme-active .isra-course-type-card {
  position: relative;
  overflow: hidden;
}
body.isra-theme-active .isra-shop-promise::before,
body.isra-theme-active .isra-shop-mini-card::before,
body.isra-theme-active .isra-course-type-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -35px;
  top: -35px;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(200,168,75,.22), rgba(200,168,75,0));
  transform: rotate(18deg);
}
body.isra-theme-active .isra-course-type-card::after {
  content: "ABC";
  position: absolute;
  inset-inline-start: 18px;
  bottom: 12px;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 3px;
  opacity: .08;
  color: var(--isra-green-deep);
}

body.isra-theme-active .isra-courses-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
body.isra-theme-active .isra-course-type-card {
  padding: 26px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.isra-theme-active .isra-course-type-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  box-shadow: var(--isra-shadow-lg);
}
body.isra-theme-active .isra-course-type-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 36px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(20,53,37,.08);
}
body.isra-theme-active .isra-course-type-card.recorded .isra-course-type-icon { background: linear-gradient(135deg, var(--isra-sky), #ffffff); }
body.isra-theme-active .isra-course-type-card.live .isra-course-type-icon { background: linear-gradient(135deg, var(--isra-mint), #ffffff); }
body.isra-theme-active .isra-course-type-card.offline .isra-course-type-icon { background: linear-gradient(135deg, var(--isra-peach), #ffffff); }
body.isra-theme-active .isra-course-type-card h3 { font-size: 24px; margin-bottom: 10px; }
body.isra-theme-active .isra-course-type-card p { color: var(--isra-muted); line-height: 1.9; }
body.isra-theme-active .isra-course-type-card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
body.isra-theme-active .isra-course-type-card ul li {
  background: rgba(255,255,255,.8);
  border: 1px dashed rgba(26,92,56,.16);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--isra-green-dark);
}
body.isra-theme-active .isra-course-type-card ul li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--isra-green-soft);
  color: var(--isra-green-deep);
  margin-inline-end: 8px;
  font-size: 12px;
}

/* Filter pills */
body.isra-theme-active .isra-filter-tabs,
body.isra-theme-active .isra-course-type-tabs,
body.isra-theme-active .isra-shop-cats {
  gap: 12px;
}
body.isra-theme-active .isra-filter-tabs button,
body.isra-theme-active .isra-course-type-tabs a,
body.isra-theme-active .isra-shop-cat {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 999px;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.isra-theme-active .isra-filter-tabs button:hover,
body.isra-theme-active .isra-filter-tabs button.is-active,
body.isra-theme-active .isra-course-type-tabs a:hover,
body.isra-theme-active .isra-shop-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26,92,56,.14) !important;
}

/* Shop toolbar */
body.isra-theme-active .isra-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(26,92,56,.11);
  box-shadow: var(--isra-shadow-sm);
}
body.isra-theme-active .isra-shop-toolbar select,
body.isra-theme-active .woocommerce-ordering select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(26,92,56,.16);
  padding: 0 14px;
  background: #fff;
}

/* Product cards — more premium + child-learning */
body.isra-theme-active .isra-product-card-v2 .isra-product-card-inner {
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.95));
  border: 1px solid rgba(26,92,56,.12);
  box-shadow: 0 20px 42px rgba(20,53,37,.08);
}
body.isra-theme-active .isra-product-card-v2 .isra-product-card-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--isra-gold), #dfc87b, #97d7b4, #b8d7ff);
  z-index: 1;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-card-inner::after {
  content: "✦";
  position: absolute;
  inset-inline-start: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--isra-gold);
  box-shadow: var(--isra-shadow-sm);
  z-index: 3;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-media {
  aspect-ratio: 1 / .84;
  background:
    radial-gradient(circle at 20% 16%, rgba(255,233,166,.45), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(159,221,193,.42), transparent 18%),
    linear-gradient(145deg, #fffaf2, #eef8f2);
}
body.isra-theme-active .isra-product-card-v2 .isra-product-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-doodles::before,
body.isra-theme-active .isra-product-card-v2 .isra-product-doodles::after {
  position: absolute;
  font-weight: 900;
  color: rgba(26,92,56,.12);
  animation: israFloat 6s ease-in-out infinite;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-doodles::before {
  content: "ABC";
  top: 18px;
  left: 24px;
  font-size: 20px;
  letter-spacing: 2px;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-doodles::after {
  content: "★";
  bottom: 18px;
  right: 24px;
  font-size: 22px;
  animation-duration: 5s;
}
body.isra-theme-active .isra-product-card-v2 .isra-product-media img {
  padding: 32px 24px 22px;
  filter: drop-shadow(0 22px 28px rgba(20,53,37,.10));
}
body.isra-theme-active .isra-product-badge,
body.isra-theme-active .isra-sale-badge {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(20,53,37,.08);
}
body.isra-theme-active .isra-product-badge {
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.92);
  color: var(--isra-green-deep);
}
body.isra-theme-active .isra-sale-badge {
  top: 60px;
  right: 18px;
  background: linear-gradient(135deg, #f7de84, var(--isra-gold));
  color: var(--isra-green-dark);
}
body.isra-theme-active .isra-product-content {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
body.isra-theme-active .isra-product-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.isra-theme-active .isra-product-category,
body.isra-theme-active .isra-product-age {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
body.isra-theme-active .isra-product-category {
  background: var(--isra-mint);
  color: var(--isra-green-deep);
}
body.isra-theme-active .isra-product-age {
  background: var(--isra-peach);
  color: #825321;
}
body.isra-theme-active .isra-product-title {
  font-size: 24px;
  line-height: 1.45;
  min-height: 70px;
  margin: 0;
}
body.isra-theme-active .isra-product-title a { color: var(--isra-green-dark) !important; }
body.isra-theme-active .isra-product-title a:hover { color: var(--isra-green-deep) !important; }
body.isra-theme-active .isra-product-desc {
  color: var(--isra-muted);
  line-height: 1.88;
  min-height: 84px;
  margin: 0;
}
body.isra-theme-active .isra-product-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223,244,236,.95), rgba(255,232,210,.9));
  color: var(--isra-green-dark);
  font-size: 13px;
  font-weight: 800;
}
body.isra-theme-active .isra-product-note span { color: var(--isra-gold); font-size: 16px; }
body.isra-theme-active .isra-product-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}
body.isra-theme-active .isra-product-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--isra-green-deep);
  background: rgba(255,255,255,.84);
  border: 1px dashed rgba(26,92,56,.16);
  border-radius: 18px;
  padding: 10px 14px;
}
body.isra-theme-active .isra-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
body.isra-theme-active .isra-product-actions .button,
body.isra-theme-active .isra-product-secondary {
  min-height: 46px;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
body.isra-theme-active .isra-product-secondary {
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid rgba(26,92,56,.14) !important;
}
body.isra-theme-active .isra-product-card-v2:nth-child(3n+1) .isra-product-card-inner {
  transform: rotate(-.4deg);
}
body.isra-theme-active .isra-product-card-v2:nth-child(3n+2) .isra-product-card-inner {
  transform: rotate(.35deg);
}
body.isra-theme-active .isra-product-card-v2:hover .isra-product-card-inner { transform: translateY(-8px) rotate(0deg); }

/* Course cards v3 */
body.isra-theme-active .isra-course-card-v2 {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.95));
  border: 1px solid rgba(26,92,56,.12);
  box-shadow: 0 20px 42px rgba(20,53,37,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
body.isra-theme-active .isra-course-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: var(--isra-shadow-lg);
}
body.isra-theme-active .isra-course-card-v2::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--isra-gold), #b7dbff, #a9e4ca, #ffcda9);
  z-index: 2;
}
body.isra-theme-active .isra-course-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / .74;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,233,166,.45), transparent 20%),
    radial-gradient(circle at 16% 88%, rgba(184,215,255,.45), transparent 20%),
    linear-gradient(135deg, #fffaf2, #eff8f3);
}
body.isra-theme-active .isra-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
body.isra-theme-active .isra-course-card-v2:hover .isra-course-media img { transform: scale(1.05); }
body.isra-theme-active .isra-course-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.isra-theme-active .isra-course-orbs::before,
body.isra-theme-active .isra-course-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: israPulse 6s ease-in-out infinite;
}
body.isra-theme-active .isra-course-orbs::before {
  width: 70px;
  height: 70px;
  top: 18px;
  left: 20px;
  background: rgba(255,255,255,.26);
}
body.isra-theme-active .isra-course-orbs::after {
  width: 42px;
  height: 42px;
  bottom: 22px;
  right: 20px;
  background: rgba(255,255,255,.4);
  animation-duration: 4.8s;
}
body.isra-theme-active .isra-course-badge-v2 {
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 18px rgba(20,53,37,.09);
}
body.isra-theme-active .isra-course-badge-v2.recorded { background: linear-gradient(135deg, var(--isra-sky), #fff); color: #234f80; }
body.isra-theme-active .isra-course-badge-v2.live { background: linear-gradient(135deg, var(--isra-mint), #fff); color: var(--isra-green-deep); }
body.isra-theme-active .isra-course-badge-v2.offline { background: linear-gradient(135deg, var(--isra-peach), #fff); color: #8b5626; }
body.isra-theme-active .isra-course-content-v2 {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.isra-theme-active .isra-course-mini-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.isra-theme-active .isra-course-pill {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
body.isra-theme-active .isra-course-pill-level { background: var(--isra-lavender); color: #5d428f; }
body.isra-theme-active .isra-course-pill-age { background: var(--isra-sun); color: #735a16; }
body.isra-theme-active .isra-course-title-v2 {
  font-size: 24px;
  line-height: 1.45;
  margin: 0;
  min-height: 68px;
}
body.isra-theme-active .isra-course-title-v2 a { color: var(--isra-green-dark); }
body.isra-theme-active .isra-course-excerpt-v2 {
  margin: 0;
  color: var(--isra-muted);
  line-height: 1.88;
  min-height: 86px;
}
body.isra-theme-active .isra-course-meta-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.isra-theme-active .isra-course-meta-v2 span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  border: 1px dashed rgba(26,92,56,.14);
  background: rgba(255,255,255,.84);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--isra-green-dark);
}
body.isra-theme-active .isra-course-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223,239,255,.8), rgba(223,244,236,.8));
  color: var(--isra-green-dark);
  font-size: 13px;
  font-weight: 800;
}
body.isra-theme-active .isra-course-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
body.isra-theme-active .isra-course-price-v2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--isra-green-deep);
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(26,92,56,.16);
  background: rgba(255,255,255,.84);
}
body.isra-theme-active .isra-course-footer-v2 .isra-btn { min-height: 48px; padding-inline: 18px; }

/* Empty states / pagination */
body.isra-theme-active .isra-empty {
  padding: 28px 24px;
  color: var(--isra-green-dark);
  line-height: 1.9;
  font-weight: 700;
}
body.isra-theme-active nav.woocommerce-pagination,
body.isra-theme-active .pagination,
body.isra-theme-active .nav-links {
  margin-top: 28px;
}
body.isra-theme-active .woocommerce-pagination ul.page-numbers,
body.isra-theme-active .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
}
body.isra-theme-active .page-numbers li,
body.isra-theme-active .page-numbers a,
body.isra-theme-active .page-numbers span {
  margin: 0;
}
body.isra-theme-active .page-numbers a,
body.isra-theme-active .page-numbers span {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(26,92,56,.14);
  background: #fff;
  color: var(--isra-green-deep);
  font-weight: 800;
}
body.isra-theme-active .page-numbers .current,
body.isra-theme-active .page-numbers a:hover {
  background: var(--isra-green-deep);
  color: #fff;
}

/* Motion */
@keyframes israFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes israPulse {
  0%,100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: .55; }
}

/* Responsive */
@media (max-width: 1100px) {
  body.isra-theme-active .isra-courses-intro-grid,
  body.isra-theme-active .isra-shop-intro,
  body.isra-theme-active .isra-grid-3,
  body.isra-theme-active .woocommerce ul.products,
  body.isra-theme-active ul.products.isra-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.isra-theme-active .isra-page-hero { padding-bottom: 28px; }
  body.isra-theme-active .isra-page-hero::after,
  body.isra-theme-active .isra-section::after,
  body.isra-theme-active .isra-hero::after { font-size: 18px; top: 18px; inset-inline-end: 12px; }
  body.isra-theme-active .isra-courses-intro-grid,
  body.isra-theme-active .isra-shop-intro,
  body.isra-theme-active .isra-grid-3,
  body.isra-theme-active .woocommerce ul.products,
  body.isra-theme-active ul.products.isra-products-grid,
  body.isra-theme-active .isra-course-meta-v2 {
    grid-template-columns: 1fr !important;
  }
  body.isra-theme-active .isra-shop-toolbar,
  body.isra-theme-active .isra-product-footer,
  body.isra-theme-active .isra-course-footer-v2 {
    flex-direction: column;
    align-items: stretch;
  }
  body.isra-theme-active .isra-product-title,
  body.isra-theme-active .isra-course-title-v2,
  body.isra-theme-active .isra-product-desc,
  body.isra-theme-active .isra-course-excerpt-v2 {
    min-height: auto;
  }
  body.isra-theme-active .isra-product-actions {
    flex-direction: column;
  }
  body.isra-theme-active .isra-product-actions .button,
  body.isra-theme-active .isra-product-secondary,
  body.isra-theme-active .isra-course-footer-v2 .isra-btn {
    width: 100%;
  }
}
