/* OFIDIO theme — page layout on top of tokens.css + bundle.css.
   Bootstrap 3 is still loaded (checkout/account pages rely on it), so this file
   also resets the Bootstrap defaults that fight the design system.
   Colours: tokens only (var(--...)). Component classes: of-* from bundle.css. */

html, body { background: var(--surface); }
body { margin: 0; color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); color: inherit; }
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-strong); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.of-page { min-height: 100vh; display: flex; flex-direction: column; }
.of-main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; width: 100%; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* Header */
.of-header { background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.of-header__bar { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.of-logo { font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.of-logo:hover, .of-logo:focus { color: var(--ink); text-decoration: none; }
.of-nav { display: flex; gap: 24px; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.navlink:hover, .navlink:focus { color: var(--brand); text-decoration: none; }
.of-search { flex: 1 1 240px; position: relative; display: block; margin: 0; }
.of-search .of-input { height: 40px; padding-left: 40px; }
.of-search button { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink-muted); padding: 6px; cursor: pointer; border-radius: var(--radius-sm); }
.of-search button svg { width: 20px; height: 20px; display: block; }
.of-header__actions { display: flex; gap: 8px; align-items: center; }
.of-minicart { position: relative; flex: none; }
.of-minicart__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.of-minicart__btn svg { width: 18px; height: 18px; flex: none; }
.of-account-menu { display: none; position: relative; flex: none; }
.of-account-menu__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.of-account-menu__btn svg { width: 20px; height: 20px; display: block; }
.of-account-menu .dropdown-menu { min-width: 180px; padding: 8px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); background: var(--surface-raised); }
.of-account-menu .dropdown-menu > li > a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; }
.of-account-menu .dropdown-menu > li > a:hover,
.of-account-menu .dropdown-menu > li > a:focus { background: var(--surface); color: var(--brand); }

@media (max-width: 767px) {
  .of-header__bar {
    min-height: 52px;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  /* Fill the first row so search/cart/burger wrap as a left-aligned second row */
  .of-header__bar > .of-nav { flex: 1 1 auto; }
  .of-header__actions { display: none; }
  .of-account-menu { display: block; }
  .of-search {
    flex: 1 1 140px;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
  }
  .of-search .of-input { width: 100%; box-sizing: border-box; }
}
.of-minicart .dropdown-menu { min-width: 280px; padding: 8px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); background: var(--surface-raised); }
.of-minicart__item { display: flex; align-items: baseline; gap: 12px; padding: 8px; font-size: 14px; line-height: 20px; color: var(--ink); }
.of-minicart__item a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.of-minicart__item a:hover { color: var(--brand); }
.of-minicart__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; padding: 8px; border-top: 1px solid var(--line); }
.of-minicart .dropdown-menu > li.of-minicart__actions > a { display: inline-flex; width: auto; padding: 8px 4px; background: transparent; color: var(--brand); font-weight: 600; line-height: 20px; white-space: nowrap; text-decoration: none; }
.of-minicart .dropdown-menu > li.of-minicart__actions > a:hover,
.of-minicart .dropdown-menu > li.of-minicart__actions > a:focus { background: transparent; color: var(--brand-strong); }
.of-minicart .dropdown-menu > li.of-minicart__actions > a.of-btn { padding: 0 14px; color: var(--on-brand); background: var(--brand); }
.of-minicart .dropdown-menu > li.of-minicart__actions > a.of-btn:hover,
.of-minicart .dropdown-menu > li.of-minicart__actions > a.of-btn:focus { color: var(--on-brand); background: var(--brand-strong); }
.of-minicart__empty { margin: 0; padding: 8px; color: var(--ink-muted); font-size: 14px; }
.of-header--checkout .of-header__bar { justify-content: space-between; max-width: 1100px; }
.of-secure { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink-muted); }
.of-secure i {
  width: 24px;     
  height: 24px;        
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.of-btn:hover, .of-btn:focus { text-decoration: none; }
.of-btn--primary:hover, .of-btn--primary:focus { color: var(--on-brand); }
.of-btn--secondary:hover, .of-btn--secondary:focus { color: var(--ink); }

/* Footer */
.of-footer { background: var(--night); color: var(--night-ink); margin-top: 64px; }
.of-footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.of-footer__brand { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.of-footer__tag { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.8); }
.of-footer nav { display: flex; gap: 48px; flex-wrap: wrap; }
.of-footer__col { display: grid; gap: 8px; align-content: start; }
.of-footer__col .text-caption { color: var(--accent); }
.of-footer a { color: var(--night-ink); text-decoration: none; font-size: 14px; line-height: 20px; }
.of-footer a:hover, .of-footer a:focus { color: var(--accent); }
.of-footer__legal { margin: 0; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; color: rgba(255,255,255,0.8); }

/* Shared page bits */
.of-section { padding-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.of-featured.wrap { overflow: visible; }
.of-featured__rail {
  position: relative;
  margin-left: -56px;
  margin-right: -56px;
  padding-left: 56px;
  padding-right: 56px;
}
.of-featured__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  margin: 0;
}
.of-featured__track::-webkit-scrollbar { display: none; }
.of-featured__track > .of-card {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
  box-shadow: none;
}
.of-featured__track > .of-card:hover,
.of-featured__track > .of-card:focus {
  box-shadow: none;
  transform: none;
}
.of-featured__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.of-featured__nav svg { width: 22px; height: 22px; display: block; }
.of-featured__nav:hover { color: var(--brand); border-color: var(--brand); }
.of-featured__nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.of-featured__nav[hidden] { display: none !important; }
.of-featured__nav--prev { left: 0; }
.of-featured__nav--next { right: 0; }

@media (max-width: 640px) {
  .of-featured__rail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .of-featured__track {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .of-featured__nav {
    position: static;
    transform: none;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
  .of-featured__nav--prev,
  .of-featured__nav--next {
    left: auto;
    right: auto;
  }
  .of-featured__track > .of-card {
    flex-basis: min(240px, calc(100% - 4px));
    width: min(240px, calc(100% - 4px));
    max-width: min(240px, calc(100% - 4px));
  }
}
.of-crumbs { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.of-crumbs a { text-decoration: none; }
.of-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.of-alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.of-alert--danger { background: var(--danger-soft); color: var(--danger); }
.of-alert--success { background: var(--success-soft); color: var(--success); }
.of-text-muted { color: var(--ink-muted); }
.of-card:hover, .of-card:focus { color: var(--ink); text-decoration: none; }

/* Home */
.of-hero { background: var(--night); color: var(--night-ink); overflow: hidden; }
.of-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.of-hero__copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.of-hero__art { flex: 1 1 360px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 96px 96px 96px; gap: 16px; max-width: 460px; }
.of-hero__art span:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--brand); border-radius: var(--radius-lg); }
.of-hero__art span:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 4; border-radius: var(--radius-lg); background-color: rgba(255,255,255,0.06); background-image: radial-gradient(var(--accent) 2px, transparent 2.5px); background-size: 16px 16px; background-position: 8px 8px; }
.of-hero__art span:nth-child(3) { grid-column: 1 / 2; grid-row: 3; background: var(--accent); border-radius: var(--radius-md); }
.of-hero__art span:nth-child(4) { grid-column: 2 / 3; grid-row: 3; background: var(--brand-soft); border-radius: var(--radius-md); }
.of-btn--accent { background: var(--accent); color: var(--on-accent); }
.of-btn--accent:hover, .of-btn--accent:focus { color: var(--on-accent); filter: brightness(0.95); }
.of-btn--on-night { background: transparent; color: var(--night-ink); border-color: rgba(255,255,255,0.5); }
.of-btn--on-night:hover, .of-btn--on-night:focus { color: var(--night-ink); background: rgba(255,255,255,0.08); }
.of-step { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.of-step__num { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.of-includes { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) {
  .of-hero__inner { padding-top: 48px; padding-bottom: 48px; }
  .of-hero .text-display { font-size: 36px; line-height: 44px; }
  .of-hero__art { display: none; }
}

/* Catalog */
.of-catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.of-filters { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;margin-top: 62px; }

.of-account .of-filters  { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;margin-top: 38px; }

.of-filters .text-caption { font-family: var(--font-sans);font-size: 12px;line-height: 16px;font-weight: 600;letter-spacing: 0.04em; }
.of-filters .check{display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 15px;
    cursor: pointer;}
.of-filter__count {
    margin-left: auto;
    color: var(--ink-muted);
    font-size: 13px;
}
.of-filters .check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    margin: 0;
}
.of-filters a { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; color: var(--ink); text-decoration: none; }
.of-filters a:hover { color: var(--brand); }
.of-filters a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.of-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.of-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.of-results__bar label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0; }
.of-results__bar select.of-input { height: 40px; width: auto; padding-right: 32px; }
@media (max-width: 640px) { .of-filters { max-width: none; } }

/* OpenCart pagination (ul.pagination from Bootstrap) restyled as of-btn */
.of-pagination { display: flex; justify-content: center; padding-top: 8px; }
.of-pagination .pagination { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.of-pagination .pagination > li > a, .of-pagination .pagination > li > span { float: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-md) !important; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 600 14px/1 var(--font-sans); margin: 0; }
.of-pagination .pagination > .active > span, .of-pagination .pagination > .active > span:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Course page */
.of-course-hero { background: var(--night); color: var(--night-ink); }
.of-course-hero__inner { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.of-course-hero .of-crumbs, .of-course-hero .of-crumbs a { color: rgba(255,255,255,0.8); }
.of-course-hero .of-crumbs a { color: var(--night-ink); }
.of-course-hero__summary { margin: 0; max-width: 720px; color: rgba(255,255,255,0.85); }
.of-course-hero__summary p { margin: 0 0 8px; }
.of-course-hero__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: rgba(255,255,255,0.85); }
.of-badge--on-night { background: rgba(255,255,255,0.12); color: var(--night-ink); }
.of-course { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; }
.of-course__aside { flex: 1 1 300px; max-width: 360px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.of-course__body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.of-preview { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--night); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.of-preview__mark { position: absolute; right: 16px; top: 16px; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--brand); }
.of-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.of-btn--light { background: var(--surface-raised); color: var(--ink); position: relative; }
.of-btn--light:hover, .of-btn--light:focus { color: var(--ink); background: var(--surface-sunken); }
.learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.learn li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.learn svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.of-sample-note { font-size: 13px; line-height: 18px; color: var(--warning); background: var(--warning-soft); border-radius: var(--radius-md); padding: 8px 12px; margin: 0; }
.of-instructor { display: flex; gap: 16px; align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.of-instructor__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); flex: none; object-fit: cover; display: block; }
.faq { border-top: 1px solid var(--line); padding: 16px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; line-height: 24px; list-style-position: outside; }
.faq p { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.of-buy .of-price small { font-size: .6em; }
@media (max-width: 900px) { .of-course__aside { position: static; max-width: none; } }

/* Auth (login / register) */
.of-auth { display: flex; justify-content: center; padding: 56px 16px; }
.of-auth__inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.of-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-sunken); border-radius: 12px; }
.of-tab { flex: 1; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font: 600 15px/1 var(--font-sans); color: var(--ink-muted); text-decoration: none; }
.of-tab:hover, .of-tab:focus { color: var(--ink); text-decoration: none; }
.of-tab[aria-current="page"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-card); }
.of-auth__card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.of-auth__card .of-field { margin: 0; font-weight: 400; }
.of-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 400; margin: 0; }
.of-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.of-field__error { font: 400 13px/18px var(--font-sans); color: var(--danger); }

/* Cart page */
.of-cartpage { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.of-cartpage__layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.of-cartpage__items { flex: 999 1 520px; min-width: 0; }
.of-cartpage__summary { flex: 1 1 280px; max-width: 380px; }
.of-cartpage__empty { flex: none; width: 100%; max-width: 380px; }
.of-cartpage__item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.of-cartpage__item:last-child { padding-bottom: 0; border-bottom: 0; }
.of-cartpage__product { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; color: var(--ink); text-decoration: none; }
.of-cartpage__product:hover { color: var(--brand); }
.of-cartpage__thumb { position: relative; width: 88px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--night); overflow: hidden; flex: none; }
.of-cartpage__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-cartpage__thumb .of-thumb__dot { right: 28px; top: 6px; width: 8px; height: 8px; }
.of-cartpage__thumb .of-thumb__mark { width: 16px; height: 16px; right: 6px; top: 6px; border-radius: 4px; }
.of-cartpage__name { font-weight: 600; min-width: 0; }
.of-cartpage__price { font-weight: 800; font-size: 18px; }
.of-cartpage__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; }
.of-cartpage__row--total { font-weight: 800; font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.of-cartpage__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.of-cartpage__actions .of-btn { flex: 1 1 160px; }
@media (max-width: 640px) { .of-cartpage__summary { max-width: none; } }

/* Checkout */
.of-checkout { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.of-checkout__intro { display: flex; flex-direction: column; gap: 8px; }
.of-checkout__back { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--brand); width: fit-content; }
.of-checkout__back:hover, .of-checkout__back:focus { color: var(--brand-strong); }
.of-checkout__layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.of-checkout__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.of-checkout__aside { flex: 1 1 300px; max-width: 380px; position: sticky; top: 24px; }
.of-checkout__details-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.of-checkout__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.of-checkout__methods { display: flex; flex-direction: column; gap: 12px; }
.of-checkout__method { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; background: var(--surface-raised); }
.of-checkout__method input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.of-checkout__method.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.of-checkout__method-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.of-checkout__method-copy strong { font-size: 15px; line-height: 20px; color: var(--ink); }
.of-checkout__summary { box-shadow: var(--shadow-card); }
.of-checkout__product { display: flex; gap: 12px; align-items: center; }
.of-checkout__thumb { position: relative; width: 88px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--night); overflow: hidden; flex: none; }
.of-checkout__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-checkout__thumb .of-thumb__dot { right: 28px; top: 6px; width: 8px; height: 8px; }
.of-checkout__thumb .of-thumb__mark { width: 16px; height: 16px; right: 6px; top: 6px; border-radius: 4px; }
.of-checkout__product-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-checkout__product-copy strong { font-size: 15px; line-height: 20px; }
.of-checkout__totals { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.of-checkout__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; }
.of-checkout__row--total { font-weight: 800; font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.of-checkout .of-check a { color: var(--brand); }
.of-checkout .of-buy__note { text-align: center; }
@media (max-width: 720px) { .of-checkout__aside { max-width: none; position: static; } }

/* Success / message pages */
.of-message { display: flex; justify-content: center; padding: 56px 16px; }
.of-message__inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.of-message__hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; width: 100%; }
.of-message__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; flex: none; }
.of-message__icon svg { width: 32px; height: 32px; }
.of-message__body { color: var(--ink-muted); font-size: 18px; line-height: 28px; }
.of-message__body p { margin: 0 0 8px; }
.of-message__card { width: 100%; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px 12px; text-align: left; box-sizing: border-box; }
.of-message__kv { margin: 0; }
.of-message__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.of-message__row--first { border-top: 0; }
.of-message__row dt { color: var(--ink-muted); font-weight: 400; }
.of-message__row dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.of-message__total { font-size: 18px; font-weight: 800; }
.of-message__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* My Courses */
.of-mycourses { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; box-sizing: border-box; }
.of-mycourses__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.of-mycourses__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.of-mycourses__block { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.of-mycourses__results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.of-mycourses__list { display: flex; flex-direction: column; gap: 16px; }
.of-mycourses__empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.of-mycourses .of-catalog { align-items: flex-start; }
.of-filter--child { padding-left: 12px; }

.of-mycourses .cover{ background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }

@media (max-width: 900px) {
.of-mycourses__actions { gap:2px; }
}




.of-owned { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-card); }
.of-owned__thumb { width: 240px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--night); position: relative; flex: none; overflow: hidden; }
.of-owned__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-owned__thumb .of-thumb__mark { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); }
.of-owned__thumb .of-thumb__dot { position: absolute; right: 60px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.of-owned__body { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.of-owned__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.of-input--area { height: auto; min-height: 88px; padding: 10px 14px; resize: vertical; font: inherit; }
.of-input--readonly { display: flex; align-items: center; margin: 0; background: var(--surface-sunken, var(--surface)); color: var(--ink); cursor: default; user-select: text; }
.of-input--readonly:focus { outline: none; border-color: var(--line-strong); }
.of-radio { display: flex; align-items: flex-start; gap: 10px; font: 400 14px/20px var(--font-sans); color: var(--ink); margin: 0 0 8px; cursor: pointer; }
.of-radio input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

.of-account-form { display: flex; justify-content: center; padding: 40px 16px 64px; }
.of-account-form__inner { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 20px; }
.of-account-form__back { font: 600 14px/20px var(--font-sans); text-decoration: none; color: var(--brand); width: fit-content; }
.of-account-form__back:hover, .of-account-form__back:focus { color: var(--brand-strong); }
.of-account-form__card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.of-account-form__card .of-field { margin: 0; font-weight: 400; }
.of-account-form__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.of-returns { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; max-width: 800px; }
.of-returns__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.of-returns__items { 
  list-style: decimal; 
  margin: 0; 
  padding: 12px 14px 12px 32px;
  border: 1px solid var(--line); 
  border-radius: var(--radius-md); 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.of-returns__items li { 
  margin: 0;
  font-size: 15px; 
  line-height: 22px; 
  color: var(--ink); 
  font-weight: 600; 
}

.of-returns__items li + li { 
  padding-top: 8px; 
}
.of-returns__card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.of-returns__kv { margin: 0; display: grid; gap: 10px; }
.of-returns__kv > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; }
.of-returns__kv dt { color: var(--ink-muted); font-weight: 400; margin: 0; }
.of-returns__kv dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.of-returns__pager { font-size: 14px; color: var(--ink-muted); }

/* Course player */
.of-player-page { background: var(--surface); }
.of-player-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 64px; padding: 12px 24px; background: var(--surface-raised); border-bottom: 1px solid var(--line); box-sizing: border-box; }
.of-player-bar__rule { width: 1px; height: 24px; background: var(--line); flex: none; }
.of-player-bar__title { flex: 1; min-width: 160px; font: 600 15px/22px var(--font-sans); color: var(--ink); }
.of-player { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-start; }
.of-player__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.of-player__stage { background: #000; aspect-ratio: 16 / 9; max-height: 72vh; display: flex; align-items: center; justify-content: center; }
.of-player__video { width: 100%; height: 100%; max-height: 72vh; background: #000; display: block; }
.of-player__empty { color: rgba(255,255,255,0.7); font: 600 15px/22px var(--font-sans); }
.of-player__body { padding: 24px; display: flex; flex-direction: column; gap: 24px; max-width: 880px; box-sizing: border-box; }
.of-player__lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.of-player__nav { display: flex; gap: 8px; flex-wrap: wrap; }
.of-player__files { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.of-player__file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.of-player__file svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.of-player__file-name { flex: 1; min-width: 0; color: var(--ink); }
.of-player__side { flex: 1 1 320px; max-width: 100%; border-left: 1px solid var(--line); background: var(--surface-raised); align-self: stretch; }
a.of-lesson { text-decoration: none; }
span.of-lesson { cursor: default; }
.of-lesson--locked { color: var(--ink-muted); pointer-events: none; }
.of-lesson--locked:hover { background: transparent; }
@media (max-width: 900px) {
  .of-player__side { border-left: 0; border-top: 1px solid var(--line); }
}

/* Generic content pages (information, account) that still use stock templates */
#information-information, #account-download, #account-edit, #account-password, #account-forgotten, #product-search { 
    padding-top: 32px;
    padding-bottom: 32px;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;  
}

.information-bg-container{
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.information-bg-container h1{
  text-align: center;
}

/* Keep stock edit / password forms, just center and shorten inputs */
#account-edit > .row,
#account-password > .row,
#account-forgotten > .row {
  display: flex;
  justify-content: center;
}
#account-edit #content,
#account-password #content,
#account-forgotten #content {
  float: none;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
#account-edit #content > h1,
#account-password #content > h1,
#account-forgotten #content > h1 {
  margin: 0 0 20px;
  font: 700 28px/36px var(--font-sans);
  letter-spacing: -0.02em;
}
#account-forgotten #content > p {
  margin: -8px 0 20px;
  font: 400 15px/22px var(--font-sans);
  color: var(--ink-muted);
}
#account-edit form.form-horizontal,
#account-password form.form-horizontal,
#account-forgotten form.form-horizontal {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
#account-edit form.form-horizontal > fieldset,
#account-password form.form-horizontal > fieldset,
#account-forgotten form.form-horizontal > fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
#account-edit form.form-horizontal > fieldset > legend,
#account-password form.form-horizontal > fieldset > legend,
#account-forgotten form.form-horizontal > fieldset > legend {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font: 600 16px/24px var(--font-sans);
  color: var(--ink);
}
#account-edit .form-horizontal .form-group,
#account-password .form-horizontal .form-group,
#account-forgotten .form-horizontal .form-group {
  margin-left: 0;
  margin-right: 0;
}
#account-edit .form-horizontal .control-label,
#account-password .form-horizontal .control-label,
#account-forgotten .form-horizontal .control-label {
  width: 28%;
  max-width: 140px;
  padding-top: 10px;
  font: 600 14px/20px var(--font-sans);
  color: var(--ink);
  text-align: left;
}
#account-edit .form-horizontal .col-sm-10,
#account-password .form-horizontal .col-sm-10,
#account-forgotten .form-horizontal .col-sm-10 {
  width: 72%;
  max-width: 360px;
}
#account-edit .form-control,
#account-password .form-control,
#account-forgotten .form-control {
  max-width: 360px;
  height: 40px;
  border-radius: var(--radius-md);
  border-color: var(--line-strong);
  box-shadow: none;
}
#account-edit .form-control:focus,
#account-password .form-control:focus,
#account-forgotten .form-control:focus {
  border-color: var(--brand);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
#account-edit .buttons,
#account-password .buttons,
#account-forgotten .buttons {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#account-edit .buttons .btn,
#account-password .buttons .btn,
#account-forgotten .buttons .btn {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font: 600 14px/1 var(--font-sans);
}
#account-edit .buttons .btn-default,
#account-password .buttons .btn-default,
#account-forgotten .buttons .btn-default {
  background: var(--surface-raised);
  border-color: var(--line-strong);
  color: var(--ink);
}
@media (max-width: 767px) {
  #account-edit .form-horizontal .control-label,
  #account-password .form-horizontal .control-label,
  #account-forgotten .form-horizontal .control-label,
  #account-edit .form-horizontal .col-sm-10,
  #account-password .form-horizontal .col-sm-10,
  #account-forgotten .form-horizontal .col-sm-10 {
    width: 100%;
    max-width: none;
  }
  #account-edit .form-control,
  #account-password .form-control,
  #account-forgotten .form-control {
    max-width: none;
  }
}
.breadcrumb { background: transparent; padding: 0; margin: 0 0 16px; font-size: 14px; }
.breadcrumb > li + li:before { color: var(--ink-muted); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--brand-strong); border-color: var(--brand-strong); }
