/* ===================================================
   OLA Resources Theme — Global Styles
   Matches approved HTML prototypes exactly
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3F6B;
  --navy-muted: #344B6E;
  --coral: #E8747C;
  --coral-hover: #D8646C;
  --coral-pale: #FFF0F1;
  --mint: #7ECEC2;
  --mint-light: rgba(126, 206, 194, 0.15);
  --mint-pale: #E8F8F5;
  --yellow: #F5C842;
  --yellow-light: rgba(245, 200, 66, 0.15);
  --yellow-pale: #FFF8E1;
  --purple: #9B7EC8;
  --purple-light: rgba(155, 126, 200, 0.12);
  --purple-pale: #F3EEFA;
  --bg: #F4F0EB;
  --white: #FFFFFF;
  --card: #FFFFFF;
  --text: #2D2D2D;
  --text-dark: #1B2A4A;
  --text-light: #6B6B6B;
  --text-muted: #6B7A94;
  --text-subtle: #9B9B9B;
  --border: #E5E0DA;
  --border-light: #F0ECE7;
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08);
  --shadow: 0 4px 16px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 8px 30px rgba(27, 42, 74, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ───── HEADER ───── */
.ola-header {
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.ola-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--coral);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.search-bar {
  flex: 1;
  max-width: 420px;
  min-width: 200px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 10px 20px 10px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--text);
  outline: none;
}
.search-bar input:focus {
  border-color: var(--navy);
}
.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
  pointer-events: none;
}
.search-bar .search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-categories {
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav-categories:hover { opacity: 0.9; }
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  padding: 4px;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-sell {
  padding: 9px 22px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-sell:hover { opacity: 0.9; }

/* Logged-in user dropdown */
.user-menu-wrapper {
  position: relative;
}
.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
  padding: 0;
}
.user-avatar-btn:hover { border-color: var(--navy); }
.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 2000;
  overflow: hidden;
}
.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.user-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.user-dropdown-role {
  font-size: 12px;
  color: var(--text-light);
}
.user-dropdown ul {
  list-style: none;
  padding: 8px 0;
}
.user-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.user-dropdown li a:hover {
  background: rgba(244, 240, 235, 0.6);
}
.user-dropdown li a svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  flex-shrink: 0;
}
.user-dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.user-dropdown li a.logout-link {
  color: var(--coral);
}
.user-dropdown li a.logout-link svg {
  color: var(--coral);
}

/* ───── NOTIFICATION DROPDOWN ───── */
.notif-wrapper {
  position: relative;
}
.notif-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: background 0.2s;
  color: var(--navy);
}
.notif-bell:hover { background: var(--bg); }
.notif-bell svg {
  width: 22px;
  height: 22px;
}
.notif-bell .notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -60px;
  width: 360px;
  max-height: 440px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 2000;
  overflow: hidden;
}
.notif-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-dropdown-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.notif-mark-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity 0.2s;
  padding: 0;
}
.notif-mark-read:hover { opacity: 0.7; }
.notif-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.notif-item:hover {
  background: rgba(244, 240, 235, 0.6);
}
.notif-item.unread {
  background: rgba(27, 42, 74, 0.03);
}
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.notif-item + .notif-item {
  border-top: 1px solid rgba(229, 224, 218, 0.5);
}
.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-icon svg {
  width: 18px;
  height: 18px;
}
.notif-icon-purchase { background: rgba(27, 42, 74, 0.08); color: var(--navy); }
.notif-icon-approved { background: var(--mint-light); color: #3A8A7D; }
.notif-icon-review { background: var(--yellow-light); color: #B89A2A; }
.notif-icon-download { background: rgba(27, 42, 74, 0.08); color: var(--navy); }
.notif-icon-message { background: var(--purple-light); color: #7660A0; }
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.notif-message {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
}
.notif-dropdown-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  text-align: center;
}
.notif-dropdown-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  transition: opacity 0.2s;
}
.notif-dropdown-footer a:hover { opacity: 0.7; }

/* ───── MINI-CART SIDEBAR ───── */
.minicart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.minicart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.minicart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 9999;
  box-shadow: -4px 0 30px rgba(27, 42, 74, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease;
}
.minicart-sidebar.active {
  transform: translateX(0);
}
.minicart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.minicart-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.minicart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
.minicart-close:hover { background: var(--border); }
.minicart-close svg { width: 18px; height: 18px; }
.minicart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.minicart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.minicart-item:last-child { border-bottom: none; }
.minicart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
}
.minicart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.minicart-item-details { flex: 1; min-width: 0; }
.minicart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.minicart-item-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.minicart-item-meta span {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.minicart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
  font-family: 'Poppins', sans-serif;
}
.minicart-item-remove {
  position: absolute;
  top: 14px;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  transition: color 0.2s, background 0.2s;
}
.minicart-item-remove:hover {
  color: var(--coral);
  background: rgba(232, 116, 124, 0.1);
}
.minicart-item-remove svg { width: 14px; height: 14px; }
.minicart-footer {
  flex-shrink: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
}
.minicart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.minicart-subtotal-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.minicart-subtotal-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
}
.minicart-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  border: none;
}
.minicart-btn:hover { opacity: 0.9; }
.minicart-btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy) !important;
  margin-bottom: 10px;
}
.minicart-btn-primary {
  background: var(--navy);
  color: var(--white);
}
.minicart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.minicart-empty svg { width: 64px; height: 64px; color: var(--border); margin-bottom: 18px; }
.minicart-empty p { font-size: 16px; font-weight: 600; color: var(--text-light); margin-bottom: 18px; }
.minicart-empty a {
  display: inline-block;
  padding: 11px 28px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.minicart-empty a:hover { opacity: 0.9; }
body.minicart-open { overflow: hidden; }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1E3258 60%, var(--navy-light) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero h1 span {
  color: var(--yellow);
  font-weight: 700;
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-search {
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 140px 16px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
}
.hero-search input::placeholder { color: var(--text-subtle); }
.hero-search input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.hero-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 28px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.hero-search button:hover { opacity: 0.9; }
.hero .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: var(--white);
}
.hero .shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.hero .shape-2 { width: 200px; height: 200px; bottom: 20px; right: -60px; }
.hero .shape-3 { width: 120px; height: 120px; top: 40px; right: 140px; }
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-badge {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-badge strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}
.trust-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 2px;
}

/* ───── CATEGORY PILLS ───── */
.categories {
  padding: 56px 0 36px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.categories h2 {
  text-align: center;
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 28px;
  font-weight: 700;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.pill-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-light);
  margin-right: 6px;
}
.pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.pill-curriculum {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(27, 42, 74, 0.25);
}
.pill-curriculum:hover {
  background: rgba(27, 42, 74, 0.06);
  border-color: rgba(27, 42, 74, 0.45);
}
.pill-curriculum.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pill-grade {
  background: var(--mint-light);
  color: #3A8A7D;
  border-color: rgba(126, 206, 194, 0.25);
}
.pill-grade:hover, .pill-grade.active {
  background: var(--mint);
  color: white;
  border-color: var(--mint);
}
.pill-subject {
  background: var(--purple-light);
  color: #7660A0;
  border-color: rgba(155, 126, 200, 0.2);
}
.pill-subject:hover, .pill-subject.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.pill-more {
  color: var(--text-light);
  border-color: var(--border);
  background: var(--white);
  font-weight: 600;
}
.pill-more:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

/* ───── PRODUCT GRID ───── */
.featured {
  padding: 36px 0 72px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-header h2 {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
}
.section-header a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}
.section-header a:hover { opacity: 0.8; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-thumb {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}
.thumb-emoji { font-size: 40px; }
.thumb-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.card-badge.featured { background: var(--yellow); color: var(--navy); }
.card-badge.popular { background: var(--coral); color: #fff; }
.card-badge.new { background: var(--mint); color: var(--navy); }
.card-badge.free { background: var(--navy); color: #fff; }
.card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  color: var(--text-light);
  transition: color 0.2s;
  box-shadow: var(--shadow-sm);
}
.card-wishlist:hover { color: var(--coral); }
.card-body {
  padding: 16px 18px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.card-meta span {
  font-size: 11px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.meta-grade { background: #E6DCFA; color: #6B4FA0; }
.meta-subject { background: #D4F1EC; color: #3A8A7D; }
.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-author {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F0ECE6;
}
.card-price,
.woocommerce ul.products li.product .card-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--coral) !important;
}
.card-price.free-price { color: var(--mint) !important; }
.card-price del { color: var(--text-subtle) !important; font-size: 13px; font-weight: 500; }
.card-price ins { text-decoration: none; }
.card-price .woocommerce-Price-amount { color: inherit !important; }
.card-price .woocommerce-Price-currencySymbol { font-weight: 600; }
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--yellow);
}
.card-rating span { color: var(--text-subtle); font-size: 11px; }

/* ───── HOW IT WORKS ───── */
.how-it-works {
  padding: 72px 0;
  background: var(--white);
  position: relative;
  z-index: 2;
}
.how-it-works h2 {
  text-align: center;
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 52px;
  font-weight: 700;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.step-1 .step-icon { background: var(--mint-light); }
.step-1 .step-number { color: #3A8A7D; }
.step-2 .step-icon { background: var(--yellow-light); }
.step-2 .step-number { color: #B89A2A; }
.step-3 .step-icon { background: rgba(232, 116, 124, 0.12); }
.step-3 .step-number { color: var(--coral); }
.step h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
}
.step p {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* ───── CONTRIBUTOR CTA ───── */
.contributor-cta {
  padding: 72px 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.cta-banner {
  background: linear-gradient(160deg, var(--navy) 0%, #1E3258 50%, var(--navy-light) 100%);
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.04;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.06;
}
.cta-text { flex: 1; min-width: 280px; position: relative; z-index: 1; }
.cta-text h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 14px;
  font-weight: 700;
}
.cta-text h2 span { color: var(--yellow); }
.cta-text p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 420px;
  font-weight: 400;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.cta-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-stat { text-align: center; min-width: 100px; }
.cta-stat .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--white);
}
.cta-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

/* ───── FOOTER ───── */
.ola-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-icon { background: var(--coral); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: white; }
.ola-footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ola-footer ul { list-style: none; }
.ola-footer li { margin-bottom: 10px; }
.ola-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.ola-footer a:hover { color: rgba(255,255,255,0.95); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ───── PAGE WRAPPER ───── */
.page-wrapper {
  padding: 48px 0;
  min-height: 60vh;
}

/* ───── WOOCOMMERCE OVERRIDES ───── */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
  gap: 24px !important;
}
.woocommerce .products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce .product .price {
  color: var(--coral) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 10px 24px !important;
  transition: opacity 0.2s !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--coral-hover) !important;
}
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--navy) !important;
}
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
  background-color: var(--navy-light) !important;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--mint) !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--mint) !important;
}
.woocommerce-error {
  border-top-color: var(--coral) !important;
}

/* Mobile burger menu */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero { padding: 60px 0 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 28px; }
  .ola-header .container { gap: 12px; }
  .pill-row { gap: 8px; }
  .categories h2 { font-size: 22px; }
  .search-bar { max-width: 100%; flex-basis: 100%; order: 5; }
  .nav-categories { display: none; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .minicart-sidebar { width: 100%; }

  /* Hide desktop-only header items on mobile — they're in the mobile nav panel */
  .header-actions > .icon-btn[title="Wishlist"],
  .header-actions > .notif-wrapper,
  .header-actions > .user-menu-wrapper,
  .header-actions > .btn-sell {
    display: none;
  }
  /* Keep cart + hamburger visible */
  .header-actions { gap: 10px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 70px; }
  .trust-badges { gap: 16px; }
  .header-actions { gap: 8px; }
  .btn-sell { padding: 7px 14px; font-size: 12px; }
  .container { padding: 0 16px; }
  .minicart-footer { padding: 16px 18px 20px; }
  .minicart-items { padding: 12px 18px; }
  .minicart-header { padding: 16px 18px; }
  .hero h1 { font-size: 26px; }
}

/* ───── Suppress Elementor page backgrounds ───── */
.elementor-page .hero,
.elementor-page .categories,
.elementor-page .featured,
.elementor-page .how-it-works,
.elementor-page .contributor-cta,
.elementor-page .ola-footer {
  position: relative;
  z-index: 2;
}
/* Hide any Elementor-injected content on our custom template pages */
.ola-home .elementor,
.ola-home .elementor-section-wrap {
  display: none !important;
}

/* ───── WooCommerce Single Product wrapper ───── */
.woocommerce-product-page .page-wrapper {
  padding-top: 32px;
  padding-bottom: 48px;
}

/* ───── WordPress Admin Bar Fix ───── */
body.admin-bar .ola-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .ola-header {
    top: 46px;
  }
}

/* =============================================================
   BREADCRUMB
   ============================================================= */
.ola-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  padding: 20px 0 0;
  margin-bottom: 4px;
}
.ola-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.ola-breadcrumb a:hover { color: var(--coral); }
.ola-breadcrumb .sep { opacity: 0.5; }
.ola-breadcrumb .current { color: var(--navy); font-weight: 500; }

/* =============================================================
   BROWSE PAGE LAYOUT
   ============================================================= */
.browse-page {
  padding-bottom: 60px;
}
.browse-hero {
  padding: 24px 0 8px;
}
.browse-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.browse-hero p {
  font-size: 15px;
  color: var(--text-light);
}
.browse-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── SIDEBAR ── */
.browse-sidebar {
  position: sticky;
  top: 80px;
}
body.admin-bar .browse-sidebar { top: 112px; }

/* Filter section card */
.filter-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.filter-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clear-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
  text-transform: none;
  letter-spacing: 0;
}
.clear-btn:hover { opacity: 0.7; text-decoration: underline; }

/* Curriculum radio filter */
.curriculum-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.curriculum-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.curriculum-option:hover { background: var(--bg); }
.curriculum-option.active { color: var(--navy); font-weight: 600; }
.curriculum-option.active .curriculum-radio { border-color: var(--navy); }
.curriculum-option.active .curriculum-radio-inner { transform: scale(1); }
.curriculum-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #D0CBC4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.curriculum-radio-inner {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  transform: scale(0);
  transition: transform 0.2s;
}

/* Grade chip filter */
.grade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.grade-chip {
  padding: 5px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.grade-chip:hover { border-color: var(--navy); }
.grade-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Subject list filter */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.subject-list::-webkit-scrollbar { width: 4px; }
.subject-list::-webkit-scrollbar-track { background: transparent; }
.subject-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.subject-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.subject-check:hover { background: var(--bg); }
.subject-check.active { color: var(--navy); font-weight: 600; }
.subject-check.active .subject-checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}
.subject-check.active .subject-checkbox-custom svg { opacity: 1; }
.subject-checkbox-custom {
  width: 16px;
  height: 16px;
  border: 2px solid #D0CBC4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.subject-checkbox-custom svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
.subject-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Resource type filter */
.type-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.type-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.type-item:hover { background: var(--bg); }
.type-item.active { color: var(--navy); font-weight: 600; }
.type-item.active .type-checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}
.type-item.active .type-checkbox-custom svg { opacity: 1; }
.type-checkbox-custom {
  width: 16px;
  height: 16px;
  border: 2px solid #D0CBC4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.type-checkbox-custom svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}

/* ── BROWSE MAIN (right column) ── */
.browse-main { min-width: 0; }

/* Top bar */
.browse-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.browse-count { font-size: 14px; color: var(--text-light); }
.browse-count strong { color: var(--navy); font-weight: 600; }
.browse-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile filter toggle button */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-toggle-btn:hover { border-color: var(--navy); }
.filter-toggle-btn svg { flex-shrink: 0; }

/* Active filters bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.active-filter-label { font-weight: 600; }
.remove-filter {
  color: var(--coral);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.remove-filter:hover { color: var(--coral); }
.clear-all-btn {
  padding: 5px 14px;
  background: none;
  border: 1px solid var(--coral);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--coral);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}
.clear-all-btn:hover { background: var(--coral); color: var(--white); }

/* WooCommerce result count + ordering overrides inside browse */
.browse-main .woocommerce-result-count {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
.browse-main .woocommerce-ordering {
  float: none;
  margin: 0;
}
.browse-main .woocommerce-ordering select {
  padding: 8px 36px 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.browse-main .woocommerce-ordering select:focus { border-color: var(--navy); }
.browse-main .woocommerce-ordering::after {
  display: none;
}

/* WC before/after shop loop spacing */
.browse-main .woocommerce-result-count { margin-bottom: 0 !important; }
.browse-main .woocommerce + nav.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-pagination ul li a:hover { border-color: var(--navy); background: var(--navy); color: white; }
.woocommerce-pagination ul li span.current { background: var(--navy); border-color: var(--navy); color: white; }

/* Mobile sidebar overlay */
.browse-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.browse-sidebar-overlay.active { opacity: 1; }

/* Override WC default product list styles.
   WC layout CSS uses float:left + width:22% — we kill all of that. */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both;
}
/* Kill WC clearfix pseudo-elements that interfere with grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
  display: none !important;
}
/* Kill WC float/width on every li.product — let CSS grid control sizing */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
ul.products li.ola-product-card {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}
.browse-main ul.products,
.browse-main .woocommerce ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* OLA product card in WC loop */
li.ola-product-card {
  background: none;
  border: none !important;
  box-shadow: none !important;
  list-style: none;
}
li.ola-product-card a.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: var(--white) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  text-decoration: none !important;
  color: inherit !important;
}
li.ola-product-card a.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
}
/* Kill WC default img margin inside our cards */
li.ola-product-card a.product-card img {
  margin: 0 !important;
}
/* product-grid ul override */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Browse page: force 3-column grid matching prototype */
.browse-main .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =============================================================
   SINGLE PRODUCT PAGE
   ============================================================= */
.ola-single-product-page .ola-breadcrumb { padding-top: 16px; }

/* OLA Vault plugin single product styles */
.ola-product {
  padding: 28px 0 60px;
}
.ola-product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.ola-product__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ola-product__badge--grade { background: var(--mint-light); color: #3A8A7D; }
.ola-product__badge--subject { background: var(--yellow-light); color: #B89A2A; }
.ola-product__badge--resource_type { background: rgba(232, 116, 124, 0.12); color: var(--coral); }
.ola-product__badge--curriculum { background: var(--purple-light); color: #7660A0; }

.ola-product__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}
.ola-product__image-col {
  position: sticky;
  top: 100px;
}
.ola-product__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ola-product__image {
  width: 100%;
  height: auto;
  display: block;
}
.ola-product__gallery {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ola-product__gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s;
}
.ola-product__gallery-thumb:hover { border-color: var(--navy); }
.ola-product__gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ola-product__details-col { min-width: 0; }
.ola-product__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.ola-product__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ola-product__rating-text {
  font-size: 14px;
  color: var(--text-light);
}
.ola-product__rating-count { color: var(--text-subtle); }
.ola-product__price {
  margin-bottom: 20px;
}
.ola-product__price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--coral);
  font-family: 'Poppins', sans-serif;
}
.ola-product__price-free {
  font-size: 24px;
  font-weight: 700;
  color: #3A8A7D;
}
.ola-product__description,
.ola-product__short-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.ola-product__description p,
.ola-product__short-desc p { margin-bottom: 12px; }

/* Action buttons */
.ola-product__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.ola-product__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s, background 0.2s;
  text-decoration: none;
}
.ola-product__btn--cart {
  background: var(--coral);
  color: var(--white);
}
.ola-product__btn--cart:hover { opacity: 0.9; }
.ola-product__btn--wishlist {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.ola-product__btn--wishlist:hover { border-color: var(--coral); color: var(--coral); }
.ola-product__btn--wishlisted {
  background: rgba(232, 116, 124, 0.08);
  color: var(--coral);
  border-color: var(--coral);
}

/* Contributor card */
.ola-product__contributor {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.ola-product__contributor-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.ola-product__contributor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.ola-product__contributor-info {
  flex: 1;
}
.ola-product__contributor-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.ola-product__contributor-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
}
/* Tier classes matching plugin output: starter, rising, top_creator */
.ola-product__contributor-tier--starter { background: var(--mint-light); color: #3A8A7D; }
.ola-product__contributor-tier--rising { background: var(--yellow-light); color: #B89A2A; }
.ola-product__contributor-tier--top_creator { background: var(--purple-light); color: #7660A0; }
/* Legacy tier names (plugin CSS compat) */
.ola-product__contributor-tier--standard { background: var(--border-light); color: var(--text-light); }
.ola-product__contributor-tier--gold { background: var(--yellow-light); color: #B89A2A; }
.ola-product__contributor-tier--silver { background: rgba(155,155,155,0.12); color: #666; }
.ola-product__contributor-tier--platinum { background: rgba(27,42,74,0.1); color: var(--navy); }
.ola-product__contributor-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.ola-product__contributor-stat {
  font-size: 12px;
  color: var(--text-light);
}
.ola-product__contributor-stat strong {
  color: var(--navy);
  font-weight: 600;
}

/* Meta */
.ola-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-light);
}
.ola-product__meta-item strong { color: var(--text); }
.ola-product__meta a { color: var(--coral); text-decoration: none; }

/* =============================================================
   AUTH PAGES (login, register, password reset)
   ============================================================= */
.ola-auth-page { background: var(--bg); }
.ola-auth-container {
  max-width: 960px !important;
  padding-top: 40px;
  padding-bottom: 72px;
}
.page-wrapper .ola-auth-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 0 72px;
}
/* If OLA plugin renders a centered card, ensure it looks good */
.page-wrapper .ola-login-form,
.page-wrapper .ola-register-form,
.page-wrapper .ola-reset-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
/* Form elements from OLA plugin */
.ola-form-group { margin-bottom: 18px; }
.ola-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.ola-form-input,
.ola-form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.ola-form-input:focus,
.ola-form-select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 116, 124, 0.15); }
.ola-btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ola-btn-primary:hover { opacity: 0.9; }

/* =============================================================
   WOOCOMMERCE CART & CHECKOUT (enhanced)
   ============================================================= */
.woocommerce-cart .page-wrapper,
.woocommerce-checkout .page-wrapper {
  padding: 40px 0 72px;
}
/* Cart table */
.woocommerce-cart-form table.shop_table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.woocommerce-cart-form table.shop_table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border: none;
}
.woocommerce-cart-form table.shop_table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.woocommerce-cart-form table.shop_table tbody tr:last-child td {
  border-bottom: none;
}
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
  color: var(--coral) !important;
  font-weight: 700;
}
/* Cart totals */
.cart-collaterals .cart_totals {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  font-family: 'Poppins', sans-serif;
}
.cart-collaterals .cart_totals h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 16px;
}
.cart-collaterals .cart_totals .order-total .amount {
  color: var(--coral) !important;
  font-weight: 700 !important;
  font-size: 20px;
}

/* Checkout form */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3#ship-to-different-address {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  transition: border-color 0.2s !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus { border-color: var(--navy) !important; outline: none !important; }

/* =============================================================
   CART & CHECKOUT RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .woocommerce-cart-form table.shop_table thead { display: none; }
  .woocommerce-cart-form table.shop_table,
  .woocommerce-cart-form table.shop_table tbody,
  .woocommerce-cart-form table.shop_table tr,
  .woocommerce-cart-form table.shop_table td {
    display: block;
    width: 100%;
  }
  .woocommerce-cart-form table.shop_table tbody td {
    padding: 8px 18px;
    text-align: right;
    border-bottom: none;
  }
  .woocommerce-cart-form table.shop_table tbody td::before {
    content: attr(data-title);
    float: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
  }
  .woocommerce-cart-form table.shop_table tbody tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .woocommerce-cart .page-wrapper,
  .woocommerce-checkout .page-wrapper {
    padding: 24px 0 48px;
  }
  .cart-collaterals .cart_totals {
    padding: 20px;
  }
}

/* =============================================================
   BROWSE PAGE RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .browse-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }
  .browse-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .browse-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 30px rgba(27, 42, 74, 0.15);
  }
  .browse-sidebar.open { transform: translateX(0); }
  .browse-sidebar-overlay { display: block; }
  .filter-toggle-btn { display: flex; }
  .browse-hero h1 { font-size: 24px; }
}
@media (max-width: 640px) {
  .browse-layout { gap: 16px; }
  .browse-top-bar { flex-direction: column; align-items: flex-start; }
  .browse-top-actions { width: 100%; justify-content: space-between; }
  .browse-main .product-grid { grid-template-columns: 1fr; }
  .ola-product__layout { grid-template-columns: 1fr; }
  .ola-product__image-col { position: static; }
  .ola-product__title { font-size: 22px; }
  .ola-product__price-amount { font-size: 26px; }
}

/* =============================================================
   SINGLE PRODUCT WC TABS (styled)
   ============================================================= */
.woocommerce-tabs {
  margin-top: 48px;
}
.woocommerce-tabs ul.tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 0;
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
}
.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s, background 0.2s;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--navy);
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--border);
  border-bottom: 2px solid var(--white);
  margin-bottom: -2px;
}
.woocommerce-tabs ul.tabs li a:hover { color: var(--navy); }
.woocommerce-tabs .panel {
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  border: 2px solid var(--border);
  border-top: none;
  padding: 28px 32px;
}

/* Related products */
.related.products > h2 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 24px;
}
.related.products .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =============================================================
   STAR RATINGS (used by OLA Vault product template)
   ============================================================= */
.ola-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ola-star {
  font-size: 16px;
  line-height: 1;
  color: var(--border);
}
.ola-star--full,
.ola-star--filled { color: var(--yellow); }
.ola-star--half {
  position: relative;
  color: var(--border);
}
.ola-star--half::before {
  content: '\2605';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--yellow);
}
.ola-star--empty { color: var(--border); }

/* =============================================================
   MOBILE NAVIGATION PANEL
   ============================================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.5);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 100001;
  box-shadow: -4px 0 30px rgba(27, 42, 74, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}
/* Offset for WP admin bar on mobile */
body.admin-bar .mobile-nav { top: 46px; height: calc(100dvh - 46px); }
body.admin-bar .mobile-nav-overlay { top: 46px; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid var(--border);
}
.mobile-nav-header .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-nav-close:hover { background: var(--bg); }
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav-links {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}
.mobile-nav-links li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-nav-links li a:hover {
  background: var(--bg);
  color: var(--coral);
}
.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}
.mobile-nav-logout {
  color: var(--coral) !important;
}
.mobile-nav-cta {
  color: var(--white) !important;
  background: var(--coral) !important;
  margin: 8px 20px !important;
  border-radius: var(--radius-pill) !important;
  text-align: center !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
}
.mobile-nav-cta:hover {
  background: var(--coral-hover) !important;
}

/* Mobile nav is always in DOM but hidden via transform+visibility.
   The hamburger toggle (shown at 768px) controls the .active class. */

/* =============================================================
   WOOCOMMERCE MY-ACCOUNT PAGE
   ============================================================= */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  margin-bottom: 24px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--bg);
  color: var(--coral);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--bg);
  color: var(--coral);
  font-weight: 600;
  border-left: 3px solid var(--coral);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--navy);
}

/* =============================================================
   WOOCOMMERCE NOTICES (enhanced)
   ============================================================= */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* =============================================================
   ELEMENTOR KIT GLOBAL OVERRIDES
   Suppress old site's background images & destructive html rules
   from Elementor Kit (#26274) settings.
   ============================================================= */
.elementor-kit-26274,
body[class*="elementor-page-"],
body.elementor-default {
  background-image: none !important;
  background-color: var(--bg) !important;
}
html {
  height: auto !important;
  overflow: visible !important;
}
body {
  scroll-snap-type: none !important;
  height: auto !important;
}

/* Hide WC breadcrumb on product pages (theme provides its own) */
.ola-single-product-page .woocommerce-breadcrumb,
.woocommerce-product-page .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb { display: none !important; }

/* =============================================================
   PRINT STYLES
   ============================================================= */
@media print {
  .ola-header, .ola-footer, .minicart-sidebar, .minicart-overlay,
  .mobile-nav, .mobile-nav-overlay, .notif-dropdown, .user-dropdown { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; padding: 0; }
}
