/* ============================================================
   PRODUCT CARDS (WooCommerce)
   ============================================================ */
.archive-top {
  margin-bottom: 2rem;
}

.archive-title {
  margin: 0 0 0.4rem;
  color: #061B2C;
  font-size: 1.8rem;
  font-weight: 700;
}

.archive-top--shop .term-description,
.archive-top--shop p {
  color: #64748b;
  margin: 0;
}

.wc-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.shop-archive-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.1rem;
  align-items: start;
}

.shop-archive-main {
  min-width: 0;
  margin-top: -30px;
}

.shop-archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
}

.shop-sidebar-title {
  margin: 0 0 0.8rem;
  color: #334155;
  font-size: 1rem;
}

.shop-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shop-cat-list li a {
  display: block;
  text-decoration: none;
  color: #475569;
  border-right: 2px solid transparent;
  padding: 0.32rem 0.45rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.shop-cat-list li a:hover,
.shop-cat-list li.is-active a {
  color: #E25C37;
  border-right-color: #E25C37;
  background: rgba(226, 92, 55, 0.06);
}

.shop-sidebar-cta-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.shop-sidebar-cta {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.shop-sidebar-cta img {
  width: 100%;
  display: block;
  height: auto;
}

.shop-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.7rem;
  margin-bottom: 1rem;
}

.shop-archive-search {
  flex: 1;
  min-width: 0;
}

.shop-archive-search input[type="search"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.shop-archive-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.shop-archive-ordering .woocommerce-ordering {
  margin: 0;
}

.shop-archive-ordering .orderby {
  min-width: 180px;
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.88rem;
}

.shop-archive-view-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.shop-view-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  min-width: 38px;
  min-height: 38px;
  cursor: pointer;
  font-size: 1rem;
}

.shop-view-btn.is-active {
  background: #E25C37;
  color: #fff;
}

.shop-products-grid {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.woocommerce ul.products.shop-products-grid::before,
.woocommerce ul.products.shop-products-grid::after,
.woocommerce-page ul.products.shop-products-grid::before,
.woocommerce-page ul.products.shop-products-grid::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products.shop-products-grid > li.product,
.woocommerce-page ul.products.shop-products-grid > li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  min-width: 0;
  box-sizing: border-box;
}

.shop-products-grid.columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.product-card > a {
  display: block;
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.shop-products-grid.columns-3 .product-card > a {
  aspect-ratio: 1 / 1;
}

@media (max-width: 1024px) {
  .shop-products-grid.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.shop-products-grid.is-list {
  display: flex !important;
  flex-direction: column;
  gap: 0.8rem;
}

.shop-products-grid.is-list .product-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  min-height: 260px;
}

.shop-products-grid.is-list .product-card > a {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
}

.shop-products-grid.is-list .product-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.shop-products-grid.is-list .product-card-body {
  padding: 1rem;
}

.shop-archive-main .woocommerce-result-count {
  display: none !important;
}

.shop-archive-main nav.woocommerce-pagination {
  margin-top: 1.2rem;
}

.shop-archive-main nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.shop-archive-main nav.woocommerce-pagination ul li {
  border: 0;
  float: none;
  margin: 0;
}

.shop-archive-main nav.woocommerce-pagination ul li .page-numbers {
  min-width: 36px;
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.shop-archive-main nav.woocommerce-pagination ul li .page-numbers.current {
  background: #1e1b7a;
  border-color: #1e1b7a;
  color: #fff;
}

@media (max-width: 1100px) {
  .shop-archive-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-archive-sidebar {
    order: 2;
  }

  .shop-sidebar-cta-list {
    flex-direction: row;
  }

  .shop-sidebar-cta-list .shop-sidebar-cta {
    flex: 1;
  }
}

@media (max-width: 700px) {
  .shop-archive-main {
    margin-top: 0;
  }

  .archive-top {
    margin-bottom: 0.85rem;
  }

  .shop-archive-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.55rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .shop-archive-toolbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .shop-archive-ordering {
    flex: 1;
  }

  .shop-archive-ordering .orderby {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .shop-view-btn {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.9rem;
  }

  .shop-archive-search input[type="search"] {
    min-height: 38px;
    font-size: 0.84rem;
    padding: 0 0.7rem;
  }

  .shop-products-grid.columns-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .shop-products-grid.is-list .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shop-products-grid.is-list .product-card > a {
    width: 100%;
    height: auto;
  }

  .shop-sidebar-cta-list {
    flex-direction: column;
    gap: 0.65rem;
  }

  .shop-sidebar-card {
    padding: 0.72rem;
    border-radius: 12px;
  }

  .shop-sidebar-title {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .shop-cat-list li a {
    font-size: 0.84rem;
    padding: 0.36rem 0.46rem;
  }

  .shop-sidebar-cta {
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .product-card {
    border-radius: 12px;
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-card-title {
    font-size: 0.88rem;
    line-height: 1.65;
    min-height: auto;
  }

  .product-price {
    font-size: 0.9rem;
    min-height: 36px;
  }

  .product-price del {
    font-size: 0.76rem;
  }

  .product-price ins {
    font-size: 0.93rem;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.1);
  border-color: #d4dde9;
}

.product-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card-body {
  padding: 0.95rem 0.95rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}

.product-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #061B2C;
  text-decoration: none;
  line-height: 1.75;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.3em;
}

.product-card-title:hover { color: #E25C37; }

.product-card-title--disabled {
  color: #475569;
  cursor: default;
}

.product-card-link-disabled {
  display: block;
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.product-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(226, 92, 55, 0.1);
  color: #E25C37;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid #eef2f7;
}

.product-price {
  font-weight: 700;
  font-size: 0.98rem;
  color: #E25C37;
  line-height: 1.5;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.product-price del {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-left: 0.22rem;
}

.product-price ins {
  text-decoration: none;
  color: #E25C37;
  font-size: 1rem;
  font-weight: 800;
}

.product-price .woocommerce-Price-amount {
  white-space: nowrap;
}

.product-price .free { color: #10b981; }

.btn-add-to-cart {
  background: #E25C37;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0.48rem 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  min-height: 36px;
}

.btn-add-to-cart:hover {
  background: #c94d2a;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .product-card {
    border-radius: 12px;
  }

  .product-card-body {
    padding: 0.8rem;
  }

  .product-card-title {
    font-size: 0.9rem;
    min-height: auto;
  }

  .product-card-footer {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    gap: 0.5rem;
  }

  .product-price {
    font-size: 0.9rem;
    min-height: 38px;
  }

  .btn-add-to-cart {
    font-size: 0.75rem;
    padding: 0.42rem 0.65rem;
    min-height: 34px;
  }
}

.archive-title,
.content-card-title,
.woocommerce-products-header__title.page-title,
.woocommerce .page-title {
  display: none !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

@media (max-width: 900px) {
  .single-product-layout {
    grid-template-columns: 1fr;
  }
}

.product-title {
  margin: 0 0 0.7rem;
  color: #061B2C;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
}

.product-rating {
  margin-bottom: 1.2rem;
  color: #64748b;
}

.product-block {
  margin-top: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem;
}

.product-block-title {
  margin: 0 0 1rem;
  color: #061B2C;
  font-size: 1.25rem;
  font-weight: 700;
}

.product-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-chapter-details {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.product-chapter-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  color: #061B2C;
  font-weight: 700;
}

.product-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.75rem;
  font-size: 0.87rem;
}

.product-lesson-duration {
  color: #64748b;
}

.instructor-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.instructor-name {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: #061B2C;
}

.instructor-text {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.review-list {
  margin-bottom: 1.2rem;
}

.review-form {
  display: grid;
  gap: 0.75rem;
}

.review-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.review-submit {
  width: 100%;
  max-width: 180px;
  border: none;
  border-radius: 10px;
  background: #E25C37;
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.review-submit:hover {
  background: #c94d2a;
}

.review-message {
  margin: 0;
  font-size: 0.87rem;
}

.sidebar-cart-wrap {
  margin-bottom: 0.75rem;
}

.product-main { min-width: 0; }

.product-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.sidebar-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #E25C37;
  margin-bottom: 1rem;
}

.sidebar-price del {
  font-size: 1rem;
  color: #999;
  font-weight: 400;
  margin-right: 0.5rem;
}

.btn-purchase {
  display: block;
  width: 100%;
  background: #E25C37;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.btn-purchase:hover { background: #c94d2a; color: #fff; }

.sidebar-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #555;
}

.sidebar-features li svg { color: #E25C37; flex-shrink: 0; }

.product-featured-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.product-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.product-video video { width: 100%; height: 100%; }

.chapters-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.chapters-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #061B2C;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.chapter-item { border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; margin-bottom: 0.5rem; }

.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: #fafafa;
  transition: background 0.2s;
  user-select: none;
}

.chapter-header:hover { background: rgba(226,92,55,0.06); }
.chapter-header.open { background: rgba(226,92,55,0.08); }

.chapter-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chapter-number {
  background: #061B2C;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chapter-name { font-weight: 600; font-size: 0.9rem; color: #061B2C; }
.chapter-meta { font-size: 0.78rem; color: #888; }

.chapter-arrow {
  transition: transform 0.3s;
  color: #888;
}

.chapter-header.open .chapter-arrow { transform: rotate(180deg); }

.chapter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.chapter-content.open { max-height: 2000px; }

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.65rem 1rem;
  border-bottom: 1px solid #f8f8f8;
  font-size: 0.85rem;
}

.lesson-item:last-child { border-bottom: none; }

.lesson-item-right { display: flex; align-items: center; gap: 0.5rem; color: #555; }
.lesson-item-right svg { color: #E25C37; width: 16px; height: 16px; }
.lesson-duration { color: #999; font-size: 0.8rem; }

.instructor-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.instructor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #E25C37;
  flex-shrink: 0;
}

.instructor-name { font-weight: 700; color: #061B2C; font-size: 1rem; margin-bottom: 0.4rem; }
.instructor-bio { color: #666; font-size: 0.875rem; line-height: 1.75; }

.reviews-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child { border-bottom: none; }

.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.review-author { font-weight: 700; color: #061B2C; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: #999; }
.review-stars { color: #E25C37; font-size: 0.9rem; }
.review-content { color: #555; font-size: 0.875rem; line-height: 1.75; }

.review-form-wrapper { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid #f0f0f0; }
.review-form-title { font-weight: 700; color: #061B2C; margin-bottom: 1rem; }

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
  background: #fafafa;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: #E25C37;
  background: #fff;
}

.star-rating-input { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; }

.star-rating-input label {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating-input input { display: none; }
.star-rating-input label:hover,
.star-rating-input label.active { color: #E25C37; }

.btn-submit-review {
  background: #061B2C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit-review:hover { background: #E25C37; }

.review-form-msg {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.review-form-msg.success { background: #d1fae5; color: #065f46; }
.review-form-msg.error { background: #fee2e2; color: #991b1b; }

/* ============================================================
   SINGLE COURSE PAGE (CUSTOM LAYOUT)
   ============================================================ */
.course-single-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  gap: 1.25rem;
  align-items: start;
  direction: ltr;
  padding: 1.5rem 0 2.2rem;
}

.course-sidebar,
.course-main {
  direction: rtl;
}

.course-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.course-main {
  grid-area: main;
  min-width: 0;
}

.course-sidebar-card,
.course-sidebar-nav,
.course-hero-card,
.course-info-strip,
.course-content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
}

.course-sidebar-card {
  padding: 1rem;
  border-top: 4px solid #E25C37;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
}

.course-sidebar-price {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.course-sidebar-price del {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

.course-sidebar-price del .woocommerce-Price-amount {
  color: #94a3b8;
}

.course-sidebar-price ins {
  text-decoration: none;
}

.course-sidebar-price ins .woocommerce-Price-amount {
  color: #E25C37;
  font-size: 1.52rem;
  font-weight: 700;
}

.course-sidebar-time {
  color: #64748b;
  font-size: 0.84rem;
  margin-bottom: 0.7rem;
}

.course-sidebar-cart .quantity {
  margin-bottom: 0.5rem;
  width: 100%;
}

.course-sidebar-cart .quantity {
  display: none !important;
}

.course-sidebar-card form.cart .quantity,
.course-inline-purchase form.cart .quantity {
  display: none !important;
}

.course-sidebar-cart .quantity .qty {
  width: 100%;
  border: 1px solid #d6dee8;
  border-radius: 10px;
  min-height: 42px;
  text-align: center;
  font-family: inherit;
}

.course-sidebar-cart .single_add_to_cart_button {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: #E25C37;
  color: #fff;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.course-sidebar-cart .single_add_to_cart_button,
.course-sidebar-cart .single_add_to_cart_button:hover,
.course-sidebar-cart .single_add_to_cart_button:focus,
.course-sidebar-cart .single_add_to_cart_button:active,
.course-inline-purchase .single_add_to_cart_button,
.course-inline-purchase .single_add_to_cart_button:hover,
.course-inline-purchase .single_add_to_cart_button:focus,
.course-inline-purchase .single_add_to_cart_button:active {
  background: #E25C37 !important;
  border-color: #E25C37 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.course-sidebar-cart .single_add_to_cart_button.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.course-sidebar-cart .single_add_to_cart_button.is-redirecting {
  background: #061B2C;
}

.course-sidebar-cart .single_add_to_cart_button[disabled] {
  pointer-events: none;
  background: #E25C37 !important;
  border-color: #E25C37 !important;
  color: #fff !important;
}

.course-coming-soon-note {
  margin-bottom: 0.55rem;
  color: #475569;
  font-size: 0.84rem;
}

.course-coming-soon-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #94a3b8;
  background: #94a3b8;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: not-allowed;
}

.course-sidebar-nav {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.course-sidebar-nav a svg {
  width: 18px;
  height: 18px;
  color: #E25C37;
  flex-shrink: 0;
}

.course-sidebar-nav a:hover {
  background: rgba(226, 92, 55, 0.08);
  color: #E25C37;
  border-color: rgba(226, 92, 55, 0.3);
}

.course-hero-card {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.course-hero-media {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
}

.course-hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.course-title {
  margin: 0;
  color: #061B2C;
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  line-height: 1.6;
}

.course-hero-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.course-hero-rating {
  margin-top: 0.5rem;
}

.woocommerce .star-rating {
  color: #f59e0b;
}

.woocommerce .star-rating::before {
  color: #fde68a;
}

.woocommerce .star-rating span::before {
  color: #f59e0b;
}

.course-hero-buy {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.course-hero-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-weight: 700;
}

.course-hero-price del {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

.course-hero-price del .woocommerce-Price-amount {
  color: #94a3b8;
}

.course-hero-price ins {
  text-decoration: none;
}

.course-hero-price ins .woocommerce-Price-amount {
  color: #E25C37;
  font-size: 1.4rem;
  font-weight: 700;
}

.course-stock-state {
  background: rgba(22,163,74,0.1);
  color: #15803d;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.course-buy-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  background: #E25C37;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.course-buy-link:hover {
  background: #c94d2a;
  color: #fff;
}

.course-info-strip {
  margin-top: 0.95rem;
  padding: 1rem;
  display: block;
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.course-info-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem;
  background: #f8fafc;
}

.course-info-item strong {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.course-info-item span {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
}

.course-info-price-box {
  border: 1px solid #fde4dc;
  background: #fff7f3;
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
}

.course-info-price {
  color: #E25C37;
  font-size: 1.15rem;
  font-weight: 700;
}

.course-info-status {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.8rem;
}

.course-content-card {
  margin-top: 0.95rem;
  padding: 1rem;
}

.course-inline-purchase {
  display: none;
  margin-top: 0.95rem;
}

.course-section-title {
  margin: 0 0 0.8rem;
  color: #061B2C;
  font-size: 1.15rem;
  font-weight: 700;
}

.course-instructor-box {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.course-instructor-photo {
  width: 78px;
  height: 78px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(226, 92, 55, 0.2);
  flex-shrink: 0;
}

.course-instructor-name {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1rem;
}

.course-instructor-bio {
  margin: 0;
  color: #475569;
  line-height: 1.95;
}

.course-curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course-chapter-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.course-chapter-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.85rem;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.course-chapter-summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.course-chapter-item[open] .course-chapter-summary::after {
  transform: rotate(135deg);
}

.course-lesson-list {
  margin: 0;
  padding: 0 0.85rem 0.85rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.course-lesson-item {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.course-lesson-time {
  color: #64748b;
  font-size: 0.78rem;
}

.course-content-card #reviews {
  margin: 0;
}

#course-overview,
#course-curriculum,
#course-instructor,
#course-reviews,
#course-purchase-box,
#course-purchase-box-mobile {
  scroll-margin-top: 92px;
}

.course-content-card #comments .woocommerce-Reviews-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #0f172a;
}

.course-content-card #comments .woocommerce-noreviews {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}

.course-content-card .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-content-card .commentlist > li {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

.course-content-card .comment_container {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.course-content-card .woocommerce-review__author {
  color: #0f172a;
  font-weight: 700;
}

.course-content-card .woocommerce-review__published-date {
  color: #64748b;
  font-size: 0.78rem;
}

.course-content-card .star-rating {
  color: #f59e0b;
}

.course-content-card p.stars a {
  color: #fbbf24 !important;
}

.course-content-card p.stars:hover a,
.course-content-card p.stars.selected a:not(.active) {
  color: #fde68a !important;
}

.course-content-card p.stars.selected a.active,
.course-content-card p.stars a:hover,
.course-content-card p.stars a:focus {
  color: #f59e0b !important;
}

.course-content-card #review_form_wrapper {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.9rem;
}

.course-content-card .comment-reply-title {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 700;
}

.course-content-card .comment-form label {
  display: block;
  color: #334155;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.course-content-card .comment-form input,
.course-content-card .comment-form textarea,
.course-content-card .comment-form select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.course-content-card .comment-form textarea {
  min-height: 120px;
}

.course-content-card .comment-form .submit {
  min-height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 10px;
  background: #E25C37;
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff !important;
}

.course-content-card .comment-form .submit:hover {
  background: #c94d2a;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .course-single-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
    direction: rtl;
  }

  .course-sidebar {
    position: static;
    top: auto;
  }

  .course-sidebar-card {
    display: none;
  }

  .course-inline-purchase {
    display: block;
  }

  .course-inline-purchase .course-sidebar-card {
    display: block;
  }

  .course-hero-card {
    grid-template-columns: 1fr;
  }

  .course-info-strip {
    grid-template-columns: 1fr;
  }

  .course-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 640px) {
  .course-info-grid {
    grid-template-columns: 1fr;
  }

  .course-content-card,
  .course-hero-card,
  .course-info-strip,
  .course-sidebar-card,
  .course-sidebar-nav {
    border-radius: 14px;
  }

  .course-hero-image {
    min-height: 0;
  }
}

/* ============================================================
   CART / CHECKOUT / WC PAGES
   ============================================================ */
.wc-page-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.wc-page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #061B2C;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.cart-table { width: 100%; border-collapse: collapse; }

.cart-table th {
  background: #f8f8f8;
  color: #061B2C;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: right;
  font-size: 0.875rem;
  border-bottom: 2px solid #f0f0f0;
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.cart-product-info { display: flex; align-items: center; gap: 1rem; }
.cart-product-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }

.cart-product-name {
  font-weight: 600;
  color: #061B2C;
  font-size: 0.9rem;
  text-decoration: none;
}

.cart-product-name:hover { color: #E25C37; }

.cart-qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.35rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.cart-remove {
  color: #e74c3c;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.cart-remove:hover { color: #c0392b; }

.cart-totals-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.totals-row:last-child { border-bottom: none; }
.totals-row.total { font-weight: 700; font-size: 1.1rem; color: #E25C37; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  direction: rtl;
  text-align: right;
  background: #fafafa;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #E25C37;
  background: #fff;
}

.order-summary-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 5rem;
}

.thankyou-wrapper {
  text-align: center;
  padding: 4rem 2rem;
}

.thankyou-icon {
  width: 100px;
  height: 100px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #10b981;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 5rem;
}

.account-nav ul { list-style: none; margin: 0; padding: 0; }

.account-nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  color: #555;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-right: 3px solid transparent;
}

.account-nav ul li a:hover,
.account-nav ul li.is-active a {
  background: rgba(226,92,55,0.06);
  color: #E25C37;
  border-right-color: #E25C37;
}

.account-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ============================================================
   WOOCORE COMPATIBILITY
   ============================================================ */
.woocommerce { font-family: 'RaviFaNum', Tahoma, Arial, sans-serif; }
.woocommerce .woocommerce-message { border-right-color: #E25C37; background: #fff9f7; }
.woocommerce .woocommerce-message::before { color: #E25C37; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: 'RaviFaNum', Tahoma, Arial, sans-serif;
  background: #E25C37;
  color: #fff;
  border-radius: 8px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: #c94d2a; color: #fff; }

.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: #E25C37;
  font-family: 'RaviFaNum', Tahoma, Arial, sans-serif;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover { background: #c94d2a; }

.select2-container .select2-selection { direction: rtl; text-align: right; }

/* ============================================================
   WOO CUSTOM PAGES
   ============================================================ */
.wc-custom-page {
  padding: 1.25rem 0 2rem;
}

.wc-page-header {
  margin-bottom: 1rem;
}

.wc-page-header h1 {
  margin: 0 0 0.35rem;
  color: #061B2C;
  font-size: 1.7rem;
}

.wc-page-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.wc-text-muted {
  color: #64748b;
}

.wc-mb-4 { margin-bottom: 1rem; }
.wc-mb-5 { margin-bottom: 1.25rem; }
.wc-mt-6 { margin-top: 1.5rem; }

.wc-error-title {
  color: #dc2626;
}

.wc-action-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.wc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  padding: 1rem;
}

.wc-section-title {
  margin: 0 0 0.9rem;
  color: #061B2C;
  font-size: 1.2rem;
  font-weight: 700;
}

.wc-cart-page .shop_table {
  border: 0;
  margin: 0;
}

.wc-cart-page .shop_table th,
.wc-cart-page .shop_table td {
  border-color: #edf2f7;
}

.wc-cart-page .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.wc-cart-page .coupon {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wc-cart-page .coupon .input-text {
  min-width: 190px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: 'RaviFaNum', Tahoma, Arial, sans-serif;
}

.wc-cart-page .product-name a,
.wc-cart-page .product-name a:visited {
  color: #061B2C !important;
}

.wc-cart-page .product-name a:hover {
  color: #E25C37 !important;
}

.wc-cart-page .cart-collaterals {
  margin-top: 1rem;
}

.wc-cart-page .cart_totals h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  color: #061B2C;
}

.wc-cart-page .wc-proceed-to-checkout {
  margin-top: 1rem;
}

.wc-cart-page .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  text-align: center;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.wc-cart-page .wc-proceed-to-checkout .checkout-button:not(.wc-fallback-checkout-btn) + .wc-fallback-checkout-btn {
  display: none;
}

.wc-cart-page .cross-sells {
  display: none !important;
}

.wc-cart-empty-page {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2rem;
}

.wc-cart-page {
  margin-bottom: 2rem;
}

.wc-cart-empty-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.25rem;
}

.wc-cart-empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

/* ============================================================
   CART BLOCKS (WooCommerce Blocks)
   ============================================================ */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-cart .wc-block-cart {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  margin-bottom: 40px;
}

.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

/* Override Woo Blocks default desktop paddings */
.woocommerce .wc-block-components-sidebar {
  box-sizing: border-box;
  padding-right: 0 !important;
  width: 100%;
}

.woocommerce .wc-block-components-sidebar-layout .wc-block-components-main {
  box-sizing: border-box;
  margin: 0;
  padding-left: 0 !important;
  width: 100%;
}

/* Force full-width cart columns on cart page */
.woocommerce-cart .wc-block-components-sidebar {
  box-sizing: border-box;
  /* padding-right: 0 !important; */
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main {
  box-sizing: border-box;
  /* margin: 0 !important; */
  /* padding-left: 0 !important; */
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-cart .wc-block-components-main.wc-block-cart__main,
.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  padding: 1rem;
}

.woocommerce-cart .wc-block-cart-items thead {
  background: #f8fafc;
}

.woocommerce-cart .wc-block-cart-items th,
.woocommerce-cart .wc-block-cart-items td {
  border-color: #edf2f7;
}

.woocommerce-cart .wc-block-cart-items__row {
  border-bottom: 1px solid #edf2f7;
}

.woocommerce-cart .wc-block-components-product-name {
  color: #061B2C;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart .wc-block-components-product-name:hover {
  color: #E25C37;
}

.woocommerce-cart .wc-block-cart-item__image img {
  border-radius: 10px;
}

.woocommerce-cart .wc-block-cart-item__prices,
.woocommerce-cart .wc-block-cart-item__total {
  color: #E25C37;
  font-weight: 700;
}

.woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
  display: none !important;
}

.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.woocommerce-cart .wc-block-cart-item__remove-link {
  color: #dc2626;
}

.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #b91c1c;
}

.woocommerce-cart .wc-block-components-button,
.woocommerce-cart .wc-block-components-button:not(:disabled) {
  border-radius: 10px;
  font-weight: 700;
}

.woocommerce-cart .wc-block-components-totals-wrapper,
.woocommerce-cart .wc-block-components-totals-coupon,
.woocommerce-cart .wc-block-components-totals-item {
  border-color: #edf2f7;
}

.woocommerce-cart .wc-block-components-notice-banner {
  border-radius: 12px;
  border-color: #fed7aa;
  background: #fff7ed;
}

.woocommerce-cart .wc-block-grid__products {
  margin-top: 1rem;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  padding: 1.25rem;
  margin-top: 1rem;
  text-align: center;
}

.woocommerce-cart .wp-block-woocommerce-cart.is-cart-empty .wp-block-woocommerce-empty-cart-block {
  display: block;
}

.woocommerce-cart .wp-block-woocommerce-cart.is-cart-has-items .wp-block-woocommerce-empty-cart-block {
  display: none !important;
}

.woocommerce-cart .wc-empty-cart-state {
  max-width: 620px;
  margin: 0 auto;
  padding: 0.5rem 0 0.25rem;
}

.woocommerce-cart .wc-empty-cart-state__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.woocommerce-cart .wc-empty-cart-state__title {
  margin: 0 0 0.45rem;
  color: #061B2C;
  font-size: 1.25rem;
  font-weight: 700;
}

.woocommerce-cart .wc-empty-cart-state__text {
  margin: 0;
  color: #64748b;
}

.woocommerce-cart .wc-empty-cart-state__btn {
  margin-top: 1rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
}

.woocommerce-cart .wc-block-cart__empty-cart__title {
  color: #061B2C;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.woocommerce-cart .wc-block-cart__empty-cart__description {
  color: #64748b;
  margin: 0;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new {
  display: none !important;
}

.woocommerce-cart .wc-cart-sidebar-fallback {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
}

.woocommerce-cart .wc-cart-sidebar-fallback h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #061B2C;
}

.woocommerce-cart .wc-cart-sidebar-fallback p {
  margin: 0 0 0.7rem;
  color: #64748b;
  font-size: 0.84rem;
}

.woocommerce-cart .wc-cart-sidebar-fallback-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.woocommerce-cart .wc-cart-sidebar-fallback .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  color: #0f172a;
}

.woocommerce-cart .wc-cart-sidebar-fallback .button--primary {
  background: #E25C37;
  border-color: #E25C37;
  color: #fff;
}

.woocommerce-cart .wc-block-grid__product {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.85rem;
}

.woocommerce-cart .wc-block-grid__product-title {
  color: #061B2C;
  font-weight: 700;
}

.woocommerce-cart .wc-block-grid__product-price {
  color: #E25C37;
  font-weight: 700;
}

.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
.woocommerce-cart .wc-block-components-sidebar .wc-block-components-button {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
}

@media (max-width: 980px) {
  .woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
    position: static;
  }
}

.wc-checkout-layout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wc-checkout-layout .form-row input.input-text,
.wc-checkout-layout .form-row textarea,
.wc-checkout-layout .form-row select {
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

/* Force checkout custom layout over Woo defaults */
.woocommerce-checkout .wc-checkout-page .woocommerce-checkout.wc-checkout-layout {
  width: 100%;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .col2-set {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .col2-set .col-1,
.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .col2-set .col-2,
.woocommerce-checkout .wc-checkout-page .woocommerce-checkout-review-order,
.woocommerce-checkout .wc-checkout-page #order_review,
.woocommerce-checkout .wc-checkout-page #payment {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .form-row-first,
.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .form-row-last,
.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .form-row-wide {
  width: 100% !important;
  float: none !important;
  clear: both;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .shop_table {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .shop_table th,
.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .shop_table td {
  padding: 0.75rem;
  border-color: #edf2f7;
}

.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .place-order .button.alt,
.woocommerce-checkout .wc-checkout-page .wc-checkout-layout .place-order #place_order {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
}

.wc-account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.wc-account-hero {
  background: linear-gradient(135deg, #061B2C 0%, #102f45 100%);
  border-radius: 18px;
  border: 1px solid #143954;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wc-account-hero h1 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.wc-account-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.wc-account-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wc-account-quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(226, 92, 55, 0.16);
  border: 1px solid rgba(226, 92, 55, 0.45);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.wc-account-quick-actions a:hover {
  background: #E25C37;
  border-color: #E25C37;
}

.wc-account-shell {
  gap: 1.25rem;
}

.wc-account-nav {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  width: 100%;
  position: sticky;
  top: 5.75rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  float: right;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: left;
  width: 100%;
}

.wc-account-nav-title {
  color: #061B2C;
  font-weight: 700;
  margin-bottom: 0.9rem;
  padding: 0 0.25rem 0.55rem;
  border-bottom: 1px solid #eef2f7;
}

.wc-account-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-account-nav li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #1e293b;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  border: 1px solid transparent;
  min-height: 44px;
}

.wc-account-nav-icon {
  min-width: 36px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 0.45rem;
}

.wc-account-nav-label {
  flex: 1;
  min-width: 0;
}

.wc-account-nav li.is-active a,
.wc-account-nav li a:hover {
  background: rgba(226, 92, 55, 0.12);
  color: #E25C37;
  border-color: rgba(226, 92, 55, 0.35);
}

.wc-account-nav li.is-active .wc-account-nav-icon,
.wc-account-nav li a:hover .wc-account-nav-icon {
  color: #E25C37;
}

.wc-account-content-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  border: 1px solid #e6edf5;
  padding: 1.15rem;
}

.wc-account-content-card .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #dc2626;
}

.wc-account-content-card .woocommerce-info,
.wc-account-content-card .woocommerce-message {
  border-radius: 12px;
}

.wc-account-content-card table.shop_table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9edf3;
}

.wc-thankyou-page .wc-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
}

.wc-success-check {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .wc-checkout-layout .col2-set,
  .wc-account-layout {
    grid-template-columns: 1fr;
  }

  .wc-account-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-account-quick-actions {
    width: 100%;
  }

  .wc-account-nav {
    position: static;
  }
}
