/* Scoped to native WooCommerce product categories. */
.note-category-archive{--note-catalog-pad:var(--note-page-gutter);--note-course-orange:#e8981d}
.note-category-archive .note-content.note-shop{max-width:none;padding:0 0 50px;background:#fff}
.note-category-header{padding:60px 48px 64px;text-align:center;max-width:1700px;margin-inline:auto}
.note-category-header h1{font-size:40px;font-weight:400;letter-spacing:.18em;text-transform:uppercase;line-height:1.3;margin:0 0 24px;text-wrap:balance;overflow-wrap:anywhere}
.note-category-description{font-size:18px;line-height:1.65}
.note-category-description-content>p:last-child{margin-bottom:0}
.note-category-description-content.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:3.3em}
.note-category-description-content h2{font-size:26px;margin-top:30px;letter-spacing:.06em;text-transform:uppercase}
.note-category-description-content h3{font-size:21px;margin-top:24px}
.note-category-description-content a{text-decoration:underline;text-underline-offset:3px}
.note-description-toggle{display:inline-flex;align-items:center;gap:5px;border:0;padding:0;margin-top:12px;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit;min-height:32px}
.note-description-toggle[hidden],.note-description-toggle [hidden]{display:none!important}
.note-description-toggle[aria-expanded=true]>[aria-hidden]{transform:rotate(180deg)}
.note-category-search-row{padding:0 var(--note-catalog-pad);border-bottom:1px solid #bfbfbf}
.note-category-search{position:relative;display:flex;align-items:center;width:80%;margin:56px auto 32px;border:1px solid #ddd;border-radius:16px;background:white;box-shadow:0 1px 2px #00000005}
.note-category-search:focus-within{border-color:#777}
.note-category-search button{border:0;background:transparent;color:#222;flex:0 0 44px;padding:12px 0 12px 12px;min-height:46px;display:flex;justify-content:center;align-items:center;border-radius:16px}
.note-category-search button .note-icon{width:18px;height:18px}
.note-category-search input[type=search]{border:0;background:transparent;box-shadow:none;border-radius:16px;min-width:0;width:100%;padding:12px 16px 12px 5px;font-size:15px;line-height:1.5;color:#1c1c1c}
.note-category-search input::placeholder{color:#333;opacity:1}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:50px var(--note-catalog-pad);list-style:none}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products::before,:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products::after{display:none}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products li.product{float:none;width:auto!important;min-width:0;margin:0!important;padding:0;border:0;border-radius:16px;overflow:hidden;background:white;box-shadow:0 2px 12px #00000012;display:flex;flex-direction:column;text-align:left;transition:box-shadow .2s,transform .2s}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products li.product:hover{box-shadow:0 4px 24px #0000001f;transform:translateY(-2px)}
:is(.note-category-archive,.single-product.woocommerce .related.products) .note-course-image{display:block;flex:0 0 auto;position:relative}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products li.product .note-course-image img{display:block;width:100%;height:auto;aspect-ratio:1234/800;object-fit:contain;margin:0;border-radius:0;background:#fff}
:is(.note-category-archive,.single-product.woocommerce .related.products) .note-course-sale-badge{position:absolute;top:14px;left:14px;z-index:1;display:inline-block;background:#c92a81;color:#fff;padding:7px 13px;border-radius:20px;font-size:13px;font-weight:700;line-height:1.2;box-shadow:0 2px 8px #0002}
.note-course-info{padding:32px 12px 16px;flex:1;display:flex;flex-direction:column;min-width:0}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products li.product .woocommerce-loop-product__title{padding:0;margin:0;font-size:16px;font-weight:700;line-height:1.35;letter-spacing:.18em;text-transform:uppercase;overflow-wrap:anywhere}
.note-course-description{font-size:13px;color:#777;line-height:1.45;margin:18px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.note-course-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 0 20px;margin-top:auto}
:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products li.product .price{color:var(--note-course-orange);font-size:18px;font-weight:700;line-height:1.4;margin:0;max-width:100%;overflow-wrap:anywhere}
.note-course-bottom .price del{opacity:.6;display:block;font-size:14px}
.note-course-bottom .price ins{text-decoration:none}
.note-course-bottom .price del{color:#666}
.note-course-bottom .price small{font-size:12px;font-weight:400}
:is(.note-category-archive,.single-product.woocommerce .related.products) a.note-course-more{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--note-course-orange);color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:24px 24px 0 24px;padding:10px 24px;min-height:38px;transition:background .2s}
:is(.note-category-archive,.single-product.woocommerce .related.products) a.note-course-more:hover{background:#d48817;color:#fff}
.note-course-rating{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.5;color:#333;margin-top:0}
.note-course-stars{position:relative;display:inline-block;letter-spacing:1px;color:#d1d1d1;white-space:nowrap}
.note-course-stars>span{position:absolute;top:0;left:0;overflow:hidden;color:#1c1c1c;white-space:nowrap}
.note-category-empty{padding:50px var(--note-catalog-pad);text-align:center}
.note-category-empty a{text-decoration:underline}
.note-category-archive .woocommerce-notices-wrapper{margin:24px var(--note-catalog-pad) 0}
.note-category-archive.woocommerce nav.woocommerce-pagination{padding:0 var(--note-catalog-pad) 24px}
.note-category-archive.woocommerce nav.woocommerce-pagination ul{flex-wrap:wrap}
.note-category-archive.woocommerce nav.woocommerce-pagination a.next,.note-category-archive.woocommerce nav.woocommerce-pagination a.prev{border-radius:24px}
@media(min-width:1201px){.note-category-header{max-width:none;padding:50px var(--page-padding)}}
@media(max-width:1279px){:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:819px){:is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){
 .note-category-header{padding:40px 20px 32px}
 .note-category-header h1{font-size:32px;letter-spacing:.14em;margin-bottom:18px}
 .note-category-description{font-size:16px}
 .note-category-search{width:100%;margin-top:32px;margin-bottom:24px}
 :is(.note-category-archive.woocommerce,.single-product.woocommerce .related.products) ul.products{grid-template-columns:minmax(0,1fr);gap:12px;padding-top:30px}
 .note-course-info{padding:22px 16px 14px}
 .note-course-description{-webkit-line-clamp:2;margin-top:12px}
 .note-course-bottom{padding:16px 0;gap:10px}
 :is(.note-category-archive,.single-product.woocommerce .related.products) a.note-course-more{font-size:11px;padding:9px 20px}
}
@media(max-width:480px){.note-category-header h1{font-size:24px;line-height:1.35}}
.search.note-category-archive .note-category-header{padding-bottom:16px}
.search.note-category-archive .note-category-search{margin-top:22px}

/* The single-course page uses the same grid and NoTe card markup as archives.
   Keep it inside the existing product-page gutter rather than adding another one. */
.single-product.woocommerce .related.products{--note-catalog-pad:0px;--note-course-orange:#e8981d;clear:both;width:100%;margin-top:56px}
.single-product.woocommerce .related.products>h2{font-size:clamp(22px,2.6vw,32px);line-height:1.3;font-weight:400;text-transform:uppercase;letter-spacing:.14em;text-align:center;margin:0 0 12px}
.single-product.woocommerce .related.products ul.products{margin:0;padding-top:32px;padding-bottom:0}
@media(max-width:699px){.single-product.woocommerce .related.products{margin-top:36px}.single-product.woocommerce .related.products>h2{font-size:23px;letter-spacing:.1em}.single-product.woocommerce .related.products ul.products{padding-top:20px}}

/* WooCommerce shop archive: same NoTe course cards, search directly below title. */
.note-shop-archive .note-shop-header{padding-bottom:0}
.note-shop-archive .note-category-search{margin-top:28px}
.note-shop-archive .note-shop-description{padding:0 var(--note-catalog-pad);max-width:1400px;margin:0 auto}
.note-shop-archive .note-shop-description:empty{display:none}
.note-shop-archive .note-shop-description .page-description{margin:0 0 30px;line-height:1.65}
@media(max-width:699px){.note-shop-archive .note-category-search{margin-top:20px}}
