/* === edumath-home.css === */
/* Học liệu Việt storefront foundations and homepage. */
:where(body.ed-live-home,.ed-site-chrome){--ed-primary:#0070F0;--ed-primary-dark:#005EC7;--ed-deep:#003060;--ed-soft:#EAF3FF;--ed-soft-strong:#D9E9FF;--ed-page:#F5F8FC;--ed-surface:#FFFFFF;--ed-text:#10233E;--ed-muted:#526176;--ed-border:#DCE4EF;--ed-border-strong:#C9D5E5;--ed-on-primary:#FFFFFF;--ed-success:#147D43;--ed-danger:#B42318;--ed-radius:16px;font-family:Roboto,"Segoe UI",Arial,sans-serif;color:var(--ed-text)}
*{box-sizing:border-box}
body.ed-live-home{background:var(--ed-page)!important;font-size:16px;line-height:1.5;margin:0;overflow-x:hidden}
.ed-live-home h1,.ed-live-home h2,.ed-live-home h3,.ed-live-home p{margin:0}
.ed-live-home h1,.ed-live-home h2,.ed-live-home h3{color:var(--ed-text);font-family:inherit;text-transform:none;letter-spacing:-.02em}
.ed-live-home a{text-decoration:none}
.ed-container{margin-inline:auto;max-width:1200px;padding-inline:24px;width:100%}
.ed-icon{display:inline-block;fill:none;height:20px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;vertical-align:middle;width:20px}
.ed-skip{background:#fff;border:1px solid var(--ed-border);border-radius:12px;color:var(--ed-deep);left:16px;padding:10px 14px;position:fixed;top:-80px;z-index:1000}
.ed-skip:focus{top:16px}

/* Shared header */
.ed-header{background:#fff;border-bottom:1px solid var(--ed-border);position:relative;z-index:100}
.ed-util-bar{background:var(--ed-primary);color:#fff}
.ed-util-bar-inner{align-items:center;display:flex;gap:18px;justify-content:flex-end;min-height:36px}
.ed-util-bar a{align-items:center;color:#fff;display:flex;font-size:12.5px;font-weight:600;gap:6px}
.ed-util-bar a:hover{text-decoration:underline}
.ed-util-bar .ed-icon{height:15px;width:15px}
@media(max-width:849px){.ed-util-bar{display:none}}
.ed-header-main{align-items:center;display:grid;gap:28px;grid-template-columns:132px minmax(260px,1fr) auto;min-height:100px}
.ed-logo{align-items:center;display:inline-flex;justify-content:flex-start;line-height:1}
.ed-logo img{aspect-ratio:4/3;display:block;height:82px;object-fit:contain;width:auto}
.ed-search{border:1px solid var(--ed-border-strong);border-radius:12px;display:flex;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.ed-search:focus-within{border-color:var(--ed-primary);box-shadow:0 0 0 3px rgba(0,112,240,.14)}
.ed-site-chrome .ed-search input{background:#fff;border:0!important;box-shadow:none!important;color:var(--ed-text);font:inherit;font-size:15px;height:44px!important;margin:0;min-height:44px!important;min-width:0;padding:0 16px;width:100%}
.ed-site-chrome .ed-search button{align-items:center;background:var(--ed-primary)!important;border:0;color:#fff!important;display:flex;height:44px!important;justify-content:center;margin:0;min-height:44px!important;padding:0;width:48px}
.ed-site-chrome .ed-search button:hover{background:var(--ed-primary-dark)!important;color:#fff!important}
.ed-header-actions{align-items:center;display:flex;gap:8px}
.ed-header-actions>a{align-items:center;border:1px solid transparent;border-radius:12px;color:var(--ed-muted);display:flex;font-size:13px;font-weight:600;gap:8px;justify-content:center;min-height:44px;padding:8px 10px;position:relative}
.ed-header-actions>a:hover{background:var(--ed-soft);color:var(--ed-deep)}
.ed-cart-count{align-items:center;background:var(--ed-primary);border-radius:999px;color:var(--ed-on-primary);display:flex;font-size:10px;height:18px;justify-content:center;position:absolute;right:2px;top:1px;width:18px}
.ed-nav{align-items:center;border-top:1px solid var(--ed-border);display:flex;gap:4px;min-height:48px;overflow:visible;position:relative}
.ed-nav>.ed-category-menu{flex:0 0 auto}
.ed-nav-scroll{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none}
.ed-nav-scroll::-webkit-scrollbar{display:none}
.ed-nav-scroll>a,.ed-nav-scroll>.ed-nav-type{flex:0 0 auto}
.ed-nav-scroll>a,.ed-category-toggle,.ed-nav-type>summary{align-items:center;border-radius:10px;color:var(--ed-text);display:flex;font-size:13px;font-weight:600;gap:6px;min-height:40px;padding:8px 12px;white-space:nowrap}
.ed-nav-scroll>a:hover,.ed-category-toggle:hover,.ed-nav-type>summary:hover{background:var(--ed-soft);color:var(--ed-deep)}
.ed-nav-type{position:relative}
.ed-nav-type[open]>summary{background:var(--ed-soft);color:var(--ed-deep)}
/* position:fixed, placed by JS (edumath-home.js): .ed-nav-type sits inside .ed-nav-scroll,
   which needs overflow-x:auto to scroll the pill row — but that forces overflow-y:auto too
   (CSS can't mix "auto" on one axis with "visible" on the other), so an absolutely
   positioned dropdown here gets clipped invisible the instant it opens. Fixed positioning
   escapes that clipping entirely. */
.ed-nav-type-menu{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:0 18px 45px rgba(16,35,62,.16);max-height:calc(100vh - 100px);max-width:calc(100vw - 32px);overflow-y:auto;padding:10px;position:fixed;width:max-content;z-index:110}
.ed-nav-type-menu a{border-radius:10px;color:var(--ed-text);display:block;font-size:13px;padding:8px 10px;white-space:nowrap}
.ed-nav-type-menu a:hover{background:var(--ed-soft);color:var(--ed-deep)}
.ed-nav-type-all{border-bottom:1px solid var(--ed-border);color:var(--ed-primary-dark)!important;font-weight:700;margin-bottom:6px;padding-bottom:10px!important}
.ed-nav-type-cols{display:flex;flex-wrap:wrap;gap:4px 18px}
.ed-nav-type-col{display:flex;flex-direction:column;gap:2px;min-width:128px}
.ed-nav-type-subject{color:var(--ed-muted);font-size:11px;font-weight:700;letter-spacing:.04em;margin:4px 0 2px;padding:0 10px;text-transform:uppercase}
.ed-nav-note{align-items:center;color:var(--ed-muted);display:flex;font-size:12px;gap:7px;margin-left:auto;white-space:nowrap}
.ed-nav-note .ed-icon{color:var(--ed-primary);height:17px;width:17px}
.ed-category-menu{position:relative}
.ed-category-menu summary{cursor:pointer;list-style:none}
.ed-category-menu summary::-webkit-details-marker{display:none}
.ed-grade-menu,.ed-subject-menu,.ed-type-menu{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:0 18px 45px rgba(16,35,62,.16);padding:10px}
.ed-grade-menu{left:0;max-height:70vh;overflow-y:auto;position:absolute;top:calc(100% + 8px);width:320px;z-index:110}
.ed-grade-branch,.ed-subject-branch{position:relative}
.ed-grade-branch>summary,.ed-subject-branch>summary,.ed-type-menu>a{align-items:center;border-radius:10px;color:var(--ed-text);display:flex;font-size:13px;gap:9px;justify-content:space-between;min-height:40px;padding:8px 10px;white-space:nowrap}
.ed-grade-branch>summary:hover,.ed-subject-branch>summary:hover,.ed-type-menu>a:hover{background:var(--ed-soft)}
.ed-subject-menu,.ed-type-menu{box-shadow:none;left:0;margin:4px 0 8px 10px;min-width:0;position:relative;top:0;width:calc(100% - 10px)}
.ed-subject-menu{background:var(--ed-page)}
.ed-type-menu>a{justify-content:flex-start;white-space:normal}
.ed-menu-caption{color:var(--ed-muted);font-size:12px;font-weight:700;letter-spacing:.08em;padding:8px 10px;text-transform:uppercase}
.ed-category-toggle:focus-visible{outline:0}
.ed-grade-dot{background:var(--ed-primary);border-radius:50%;height:7px;width:7px}

/* Desktop: three stable columns (grade -> subject -> document type). */
@media(min-width:761px){
  .ed-grade-menu{height:var(--ed-menu-fit-height,min(620px,calc(100vh - 130px)));max-height:none;overflow:hidden;transition:height .15s ease;width:min(840px,calc(100vw - 48px))}
  .ed-grade-branch,.ed-subject-branch{position:static}
  .ed-grade-branch{width:200px}
  .ed-grade-branch>summary{min-height:36px;padding-block:6px;width:200px}
  .ed-grade-branch[open]>summary,.ed-subject-branch[open]>summary{background:var(--ed-soft);color:var(--ed-deep);font-weight:700}
  .ed-subject-menu,.ed-type-menu{border:0;border-left:1px solid var(--ed-border);border-radius:0;box-shadow:none;margin:0;position:absolute;top:0}
  .ed-subject-menu{background:var(--ed-page);left:220px;overflow:visible;padding:10px;width:230px}
  .ed-type-menu{background:#fff;left:100%;padding:10px;right:auto;width:calc(min(840px,calc(100vw - 48px)) - 450px)}
  .ed-menu-caption{min-height:40px;padding:10px}
}

@media(min-width:761px) and (max-height:700px){
  .ed-grade-branch>summary,.ed-subject-branch>summary,.ed-type-menu>a{min-height:32px;padding-block:5px}
  .ed-menu-caption{min-height:32px;padding-block:6px}
}

/* Reusable controls */
.ed-btn{align-items:center;background:#fff;border:1px solid var(--ed-border-strong);border-radius:12px;color:var(--ed-deep);display:inline-flex;font-size:14px;font-weight:600;gap:8px;justify-content:center;line-height:1.3;min-height:44px;padding:10px 16px;transition:background-color .18s ease,color .18s ease}
.ed-btn:hover{background:var(--ed-soft);border-color:var(--ed-border-strong);color:var(--ed-deep)}
.ed-btn.ed-primary{background:var(--ed-primary);border-color:var(--ed-primary);color:var(--ed-on-primary)}
.ed-btn.ed-primary:hover{background:var(--ed-primary-dark);border-color:var(--ed-primary);color:var(--ed-on-primary)}
.ed-text-link{align-items:center;color:var(--ed-primary-dark);display:inline-flex;font-size:14px;font-weight:600;gap:8px;min-height:44px}
.ed-eyebrow{color:var(--ed-primary-dark);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.ed-section{padding-block:72px}
.ed-white{background:#fff;border-block:1px solid var(--ed-border)}
.ed-section-heading{align-items:flex-end;display:flex;gap:24px;justify-content:space-between;margin-bottom:28px}
.ed-section-heading h2,.ed-section>div>h2{font-size:30px;line-height:1.25}
.ed-section-heading p{color:var(--ed-muted);font-size:14px;margin-top:8px}

/* Hero */
.ed-hero{align-items:stretch;background:var(--ed-deep);border-radius:20px;color:#fff;display:grid;grid-template-columns:1.08fr .92fr;margin-top:28px;min-height:420px;overflow:hidden}
.ed-hero-copy{align-self:center;padding:52px 24px 52px 52px}
.ed-hero-copy .ed-eyebrow{color:#91C6FF}
.ed-live-home .ed-hero h1{color:#fff;font-size:46px;line-height:1.12;max-width:590px}
.ed-hero-copy>p:not(.ed-eyebrow){color:#DCEBFA;font-size:16px;line-height:1.7;margin:20px 0 26px;max-width:490px}
.ed-hero-steps{color:#C6DAEF;display:flex;flex-wrap:wrap;font-size:12px;gap:12px;margin-top:24px}
.ed-hero-art{align-items:center;background:#052A50;display:flex;gap:18px;justify-content:center;padding:40px 32px}
.ed-sheet{aspect-ratio:3/4;background:#fff;border:1px solid #6E8AA6;border-radius:12px;display:flex;flex-direction:column;gap:10px;justify-content:center;padding:12px;width:min(42%,190px)}
.ed-sheet img{height:calc(100% - 28px);min-height:0;object-fit:contain;width:100%}
.ed-sheet span{align-items:center;color:var(--ed-primary);display:flex;font-size:10px;gap:5px;justify-content:center}
.ed-sheet span .ed-icon{height:14px;width:14px}
.ed-hero-brand{align-items:center;background:#fff;border:1px solid #6E8AA6;border-radius:16px;display:flex;flex-direction:column;justify-content:center;max-width:320px;padding:28px;width:100%}
.ed-hero-brand img{height:auto;max-height:250px;object-fit:contain;width:100%}
.ed-hero-brand p{color:var(--ed-deep);font-size:13px;font-weight:600;letter-spacing:.05em;margin-top:12px;text-transform:uppercase}

.ed-trust{border-bottom:1px solid var(--ed-border);display:grid;gap:20px;grid-template-columns:repeat(3,1fr);padding-block:26px}
.ed-trust>div{align-items:center;display:flex;gap:12px;justify-content:center}
.ed-trust>.ed-icon,.ed-trust>div>.ed-icon{color:var(--ed-primary);height:24px;width:24px}
.ed-trust strong{display:block;font-size:14px}
.ed-trust p{color:var(--ed-muted);font-size:12px;margin-top:3px}

/* Finder and catalogue */
.ed-finder{padding-top:48px;scroll-margin-top:20px}
.ed-finder form{background:#fff;border:1px solid var(--ed-border);border-radius:16px;padding:24px}
.ed-filter-fields{align-items:end;display:grid;gap:18px;grid-template-columns:1fr 24px 1fr auto}
.ed-filter-fields label{color:var(--ed-text);display:grid;font-size:14px;font-weight:600;gap:8px;margin:0}
.ed-live-home .ed-filter-fields select{background:#fff;border:1px solid var(--ed-border-strong);border-radius:12px;color:var(--ed-text);font:inherit;font-size:16px;height:48px;margin:0;padding:0 36px 0 14px;width:100%}
.ed-live-home .ed-filter-fields select:focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px rgba(0,112,240,.14);outline:0}
.ed-filter-fields select:disabled{background:var(--ed-page);color:var(--ed-muted)}
.ed-filter-fields .ed-btn{min-height:48px}
.ed-filter-arrow{align-self:end;color:var(--ed-primary);font-size:22px;line-height:48px;text-align:center}
.ed-filter-note{color:var(--ed-muted);font-size:12px;margin-top:12px!important}
.ed-zalo-groups{margin-bottom:32px}
.ed-zalo-groups-title{color:var(--ed-text);font-size:15px;font-weight:700;margin-bottom:14px!important}
.ed-zalo-level{margin-top:18px}
.ed-zalo-level:first-child{margin-top:0}
.ed-zalo-level-title{color:var(--ed-primary-dark);font-size:12px;font-weight:800;letter-spacing:.04em;margin-bottom:10px!important;text-transform:uppercase}
.ed-zalo-groups-grid{display:flex;flex-wrap:wrap;gap:12px}
.ed-zalo-chip{align-items:center;background:#fff;border:1.5px solid #BFDBFF;border-radius:999px;box-shadow:0 2px 10px rgba(0,104,255,.1);color:var(--ed-deep);display:inline-flex;flex:0 0 210px;font-size:15px;font-weight:700;gap:10px;min-height:54px;padding:6px 22px 6px 6px;white-space:nowrap;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.ed-zalo-badge{align-items:center;display:inline-flex;flex-shrink:0;height:42px;justify-content:center;width:42px}
.ed-zalo-badge img{display:block;height:100%;width:100%}
.ed-zalo-chip-arrow{color:var(--ed-primary);font-size:16px;margin-left:-2px;transition:transform .18s ease}
a.ed-zalo-chip:hover{background:var(--ed-soft);border-color:#0068FF;box-shadow:0 8px 20px rgba(0,104,255,.2);transform:translateY(-2px)}
a.ed-zalo-chip:hover .ed-zalo-chip-arrow{transform:translateX(3px)}
.ed-zalo-chip-pending{background:#F5F8FC;border-color:var(--ed-border);box-shadow:none;color:var(--ed-muted)}
.ed-zalo-chip-pending .ed-zalo-badge img{filter:grayscale(1) opacity(.5)}
#ed-documents{scroll-margin-top:20px}
.ed-level-block{margin-top:36px}
.ed-level-block-heading{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}
.ed-level-block-heading h3{align-items:center;color:var(--ed-primary-dark);display:flex;font-size:20px;font-weight:800;gap:10px}
.ed-level-block-heading h3::before{background:var(--ed-primary);border-radius:3px;content:"";display:inline-block;flex-shrink:0;height:20px;width:5px}
.ed-level-block-heading a{align-items:center;color:var(--ed-primary-dark);display:inline-flex;font-size:13px;font-weight:600;gap:6px;white-space:nowrap}
.ed-level-block-heading a:hover{color:var(--ed-primary-dark)}
.ed-level-block-heading a .ed-icon{height:14px;width:14px}
.ed-grade-rows{display:flex;flex-direction:column;gap:28px}
.ed-grade-row-title{color:var(--ed-deep);font-size:15px;font-weight:700;margin-bottom:12px}
.ed-grade-row-empty{color:var(--ed-muted);font-size:13px}
.ed-grade-row-cards-wrap{align-items:center;display:flex;gap:10px}
/* margin/padding:0 vì Flatsome gắn padding 0 1.2em cho mọi <button>, bóp icon 20px còn vài px. */
.ed-grade-row-nav{align-items:center;background:var(--ed-primary);border:0;border-radius:50%;box-shadow:0 6px 16px rgba(0,112,240,.3);color:var(--ed-on-primary);cursor:pointer;display:flex;flex-shrink:0;height:44px;justify-content:center;margin:0;min-height:0;padding:0;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;width:44px}
.ed-grade-row-nav:hover{background:var(--ed-primary-dark);box-shadow:0 8px 20px rgba(0,112,240,.4);transform:scale(1.06)}
.ed-grade-row-nav:focus-visible{outline:3px solid var(--ed-soft-strong);outline-offset:2px}
.ed-grade-row-nav:disabled{background:var(--ed-surface);border:1px solid var(--ed-border-strong);box-shadow:none;color:var(--ed-muted);cursor:default;opacity:.55;pointer-events:none;transform:none}
.ed-grade-row-nav .ed-icon{flex-shrink:0;height:20px;stroke-width:2.6;width:20px}
.ed-grade-row-prev .ed-icon{transform:rotate(180deg)}
/* Hàng vừa đủ hiện hết thẻ thì không cần mũi tên; giữ chỗ để các hàng thẳng cột với nhau. */
.ed-grade-row-cards-wrap.is-static .ed-grade-row-nav{visibility:hidden}
.ed-grade-row-cards{display:flex;flex:1;gap:16px;min-width:0;overflow-x:auto;padding-bottom:6px;scroll-behavior:smooth;scrollbar-width:none}
.ed-grade-row-cards::-webkit-scrollbar{display:none}
.ed-grade-row-cards .ed-card{flex:0 0 calc((100% - 48px) / 4);min-width:0;width:auto}
@media(max-width:1000px){.ed-grade-row-cards .ed-card{flex-basis:calc((100% - 32px) / 3)}}
.ed-grade-row-cards .ed-cover{height:156px;padding:14px}
.ed-grade-row-cards .ed-card-body{gap:8px;padding:14px;text-align:center}
.ed-grade-row-cards .ed-card h3{font-size:13.5px}
.ed-grade-row-cards .ed-card-title{-webkit-line-clamp:2;min-height:auto}
.ed-grade-row-cards .ed-meta{font-size:11.5px}
.ed-grade-row-cards .ed-format{font-size:11.5px;justify-content:center;min-height:auto}
.ed-grade-row-cards .ed-badge{font-size:11.5px;line-height:18px;padding:2px 7px}
.ed-grade-row-cards .ed-price,.ed-grade-row-cards .ed-price .amount{font-size:15px}
.ed-grade-row-cards .ed-price del,.ed-grade-row-cards .ed-price del .amount{font-size:12px}
.ed-grade-row-cards .ed-card-actions{gap:8px;margin-top:10px}
.ed-grade-row-cards .ed-card-actions .ed-btn{font-size:12.5px;min-height:36px;padding:7px 11px}
.ed-tabs{background:#E8EEF6;border-radius:12px;display:flex;flex-shrink:0;gap:4px;padding:4px}
.ed-tabs a{align-items:center;border-radius:9px;color:var(--ed-muted);display:flex;font-size:13px;font-weight:600;justify-content:center;min-height:40px;padding:8px 15px;white-space:nowrap}
.ed-tabs a[aria-current=true]{background:#fff;color:var(--ed-deep)}
.ed-type-filter{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px;-webkit-overflow-scrolling:touch}
.ed-type-filter a{align-items:center;background:#fff;border:1px solid var(--ed-border-strong);border-radius:999px;color:var(--ed-muted);display:inline-flex;font-size:13px;font-weight:600;min-height:38px;padding:6px 14px;white-space:nowrap;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.ed-type-filter a:hover{border-color:var(--ed-primary);color:var(--ed-primary-dark)}
.ed-type-filter a[aria-current=true]{background:var(--ed-primary);border-color:var(--ed-primary);color:var(--ed-on-primary)}
.ed-grid{display:grid;gap:22px;grid-template-columns:repeat(4,minmax(0,1fr))}
.ed-card{background:#fff;border:1px solid var(--ed-border);border-radius:16px;display:flex;flex-direction:column;min-width:0;overflow:hidden;transition:border-color .18s ease}
.ed-card:hover{border-color:#AFC1D7}
.ed-cover{align-items:center;background:#EEF3F8;border-bottom:1px solid var(--ed-border);display:flex;height:218px;justify-content:center;padding:18px 24px;position:relative}
.ed-cover img{height:100%;object-fit:contain;width:100%}
.ed-cover-label{background:#fff;border:1px solid var(--ed-border);border-radius:8px;color:var(--ed-muted);font-size:10px;left:12px;padding:4px 7px;position:absolute;text-transform:uppercase;top:12px}
.ed-card-body{display:flex;flex:1;flex-direction:column;gap:10px;padding:16px}
.ed-meta{color:var(--ed-muted);font-size:12px}
.ed-card h3{font-size:16px;font-weight:600;line-height:1.45}
.ed-card-title{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:var(--ed-text);display:-webkit-box;min-height:69px;overflow:hidden}
.ed-card-title:hover{color:var(--ed-primary)}
.ed-format{align-items:center;color:var(--ed-muted);display:flex;font-size:12px;gap:8px;min-height:26px}
.ed-badge{background:var(--ed-soft);border-radius:8px;color:var(--ed-deep);display:inline-flex;font-size:12px;font-weight:600;line-height:20px;padding:3px 8px}
.ed-card-bottom{margin-top:auto;padding-top:8px}
.ed-price,.ed-price .amount{color:var(--ed-primary);font-size:20px;font-weight:700;line-height:1.5}
.ed-price del,.ed-price del .amount{color:var(--ed-muted)!important;font-size:13px;font-weight:400;opacity:1!important}
.ed-price ins{background:none;text-decoration:none}
.ed-card-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ed-card-actions .ed-cart-action{color:var(--ed-primary);width:100%}
.ed-cart-action .ed-icon{height:16px;margin-right:2px;width:16px}
.ed-view-all{text-align:center;margin-top:28px}
.ed-clear{align-items:center;color:var(--ed-primary);display:inline-flex;font-size:14px;min-height:44px}
.ed-empty{background:#fff;border:1px solid var(--ed-border);border-radius:16px;color:var(--ed-muted);padding:28px;text-align:center}
.ed-empty>.ed-icon,.ed-empty h3{display:none}
.ed-empty p{display:inline;margin:0}
.ed-empty .ed-btn{background:transparent;border:0;color:var(--ed-primary);display:inline;min-height:0;padding:0 0 0 6px}

.ed-category-grid{display:grid;gap:16px;grid-template-columns:repeat(4,1fr)}
.ed-category{background:#fff;border:1px solid var(--ed-border);border-radius:16px;color:var(--ed-text);display:grid;gap:10px;padding:24px;transition:background-color .18s ease}
.ed-category:hover{background:var(--ed-soft);border-color:var(--ed-border)}
.ed-category>.ed-icon{color:var(--ed-primary);height:28px;margin-bottom:8px;width:28px}
.ed-category h3{font-size:18px}
.ed-category p{color:var(--ed-muted);font-size:13px}
.ed-category span{color:var(--ed-primary);font-size:13px;margin-top:4px}
.ed-how{display:grid;gap:30px;grid-template-columns:repeat(3,1fr);margin-top:32px}
.ed-how>div{display:flex;gap:16px}
.ed-step-number{background:var(--ed-soft);border-radius:50%;color:var(--ed-primary-dark);display:grid;flex-shrink:0;font-weight:700;height:40px;place-items:center;width:40px}
.ed-how h3{font-size:17px}
.ed-how p{color:var(--ed-muted);font-size:14px;line-height:1.7;margin-top:8px}

.ed-faq-layout{display:grid;gap:64px;grid-template-columns:1fr 1.7fr}
.ed-faq-layout>div>p:not(.ed-eyebrow){color:var(--ed-muted);font-size:14px;line-height:1.7;margin-top:12px}
.ed-faq-item{border-bottom:1px solid var(--ed-border)}
.ed-faq-toggle{align-items:center;background:transparent;border:0;color:var(--ed-text);cursor:pointer;display:flex;font:inherit;font-weight:600;justify-content:space-between;min-height:60px;padding:10px 0;text-align:left;width:100%}
.ed-faq-toggle::after{color:var(--ed-primary);content:"+";font-size:22px;margin-left:16px}
.ed-faq-toggle[aria-expanded=true]::after{content:"−"}
.ed-faq-answer{color:var(--ed-muted);font-size:14px;line-height:1.7;padding:0 0 18px}

/* Footer */
.ed-footer{background:var(--ed-deep);color:#fff;padding:54px 0 22px}
.ed-footer-grid{display:grid;gap:42px;grid-template-columns:2fr 1fr 1fr 1.3fr}
.ed-footer .ed-logo{background:#fff;border-radius:14px;padding:8px 14px;width:max-content}
.ed-footer .ed-logo img{height:86px}
.ed-footer h3{color:#fff;font-size:14px;margin-bottom:16px}
.ed-footer p{color:#C6DAEF;font-size:13px;line-height:1.8;margin-top:16px;max-width:330px}
.ed-footer a:not(.ed-logo){align-items:center;color:#DCEBFA;display:flex;font-size:13px;min-height:40px;overflow-wrap:anywhere}
.ed-footer a:hover{color:#fff;text-decoration:underline}
.ed-footer-bottom{border-top:1px solid rgba(255,255,255,.2);color:#C6DAEF;font-size:12px;margin-top:34px;padding-top:20px}

@media(max-width:1000px){
  .ed-header-main{gap:18px;grid-template-columns:110px 1fr auto}
  .ed-logo img{height:70px}
  .ed-header-actions span{display:none}
  .ed-nav-note{display:none}
  .ed-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ed-category-grid{grid-template-columns:repeat(2,1fr)}
  .ed-footer-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .ed-container{padding-inline:16px}
  .ed-header-main{gap:12px;grid-template-columns:82px 1fr;min-height:auto;padding-block:10px}
  .ed-logo img{height:62px}
  .ed-search{grid-column:1/-1;grid-row:2}
  .ed-header-actions{grid-column:2;grid-row:1;justify-content:flex-end;justify-self:stretch;min-width:0;width:100%}
  .ed-header-actions>a{flex:0 0 40px;padding:6px}
  .ed-nav-scroll{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);padding-right:44px}
  .ed-category-toggle{width:max-content}
  .ed-category-toggle>span{white-space:nowrap}
  .ed-grade-menu{left:0;max-height:65vh;width:calc(100vw - 32px)}
  .ed-subject-menu,.ed-type-menu{box-shadow:none;left:0;margin:4px 0 8px 10px;min-width:0;position:relative;top:0;width:calc(100% - 10px)}
  .ed-hero{border-radius:16px;grid-template-columns:1fr;margin:16px 0 0;min-height:0}
  .ed-hero-copy{padding:38px 24px}
  .ed-live-home .ed-hero h1{font-size:36px}
  .ed-hero-art{min-height:270px;padding:28px 20px}
  .ed-sheet{width:145px}
  .ed-trust{grid-template-columns:1fr;padding-block:22px}
  .ed-trust>div{justify-content:flex-start}
  .ed-section{padding-block:52px}
  .ed-section-heading{align-items:flex-start;flex-direction:column;margin-bottom:24px}
  .ed-section-heading h2,.ed-section>div>h2{font-size:26px}
  .ed-filter-fields{grid-template-columns:1fr}
  .ed-filter-arrow{display:none}
  .ed-filter-fields .ed-btn{width:100%}
  .ed-tabs{width:100%}
  .ed-tabs a{flex:1}
  .ed-grid{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-cover{height:170px;padding:14px}
  .ed-card-body{padding:13px}
  .ed-card h3{font-size:14px}
  .ed-card-title{min-height:61px}
  .ed-level-block{margin-top:34px}
  .ed-level-block-heading{margin-bottom:14px}
  .ed-level-block-heading h3{font-size:17px}
  .ed-grade-row-cards{-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px 8px}
  .ed-grade-row-cards .ed-card{flex:0 0 230px;width:230px}
  .ed-grade-row-nav{display:none}
  .ed-category-grid,.ed-how,.ed-faq-layout,.ed-footer-grid{grid-template-columns:1fr}
  .ed-how{gap:24px}
  .ed-faq-layout{gap:32px}
  .ed-footer{padding-top:44px}
}

@media(max-width:390px){
  .ed-live-home .ed-hero h1{font-size:32px}
  .ed-hero-art{gap:10px}
  .ed-sheet{width:132px}
  .ed-cover{height:152px}
  .ed-price,.ed-price .amount{font-size:17px}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important}}

/* === edumath-storefront.css === */
/* Học liệu Việt styling for WooCommerce catalogue, product, cart, checkout and account pages. */
body.ed-storefront{--ed-primary:#0070F0;--ed-primary-dark:#005EC7;--ed-deep:#003060;--ed-soft:#EAF3FF;--ed-soft-strong:#D9E9FF;--ed-page:#F5F8FC;--ed-text:#10233E;--ed-muted:#526176;--ed-border:#DCE4EF;--ed-border-strong:#C9D5E5;--ed-on-primary:#FFFFFF;background:var(--ed-page);color:var(--ed-text);font-family:Roboto,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5}
.ed-site-chrome{font-family:Roboto,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;position:relative}
.ed-site-chrome.ed-header{z-index:100}
.ed-site-chrome .ed-nav{margin:0}
.ed-storefront #main{min-height:50vh;padding-bottom:48px}
.ed-storefront #main>.shop-container,.ed-storefront #main>.page-wrapper,.ed-storefront #main>.product-container{padding-top:32px}
.ed-storefront #main h1,.ed-storefront #main h2,.ed-storefront #main h3{color:var(--ed-text);font-family:inherit;letter-spacing:-.02em;text-transform:none}
.ed-storefront #main h1{font-size:34px;line-height:1.25}
.ed-storefront #main h2{font-size:26px;line-height:1.35}
.ed-storefront #main h3{font-size:19px;line-height:1.4}
.ed-storefront .hlv-seo-page-heading,.ed-storefront .hlv-seo-archive-heading{margin:0 0 24px}
.ed-storefront .hlv-seo-page-heading h1,.ed-storefront .hlv-seo-archive-heading h1{margin:0}
.ed-storefront .hlv-seo-archive-heading p{color:var(--ed-muted);margin:6px 0 0}
.ed-storefront .shop-page-title{background:#fff;border-bottom:1px solid var(--ed-border);padding:14px 0}
.ed-storefront .woocommerce-breadcrumb{color:var(--ed-muted);font-size:13px;letter-spacing:normal;line-height:1.6;text-transform:none}

.ed-storefront #main input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),.ed-storefront #main select,.ed-storefront #main textarea{background:#fff;border:1px solid var(--ed-border-strong);border-radius:12px;box-shadow:none;color:var(--ed-text);font-family:inherit;font-size:16px;min-height:44px}
.ed-storefront #main input:not([type=checkbox]):not([type=radio]):focus,.ed-storefront #main select:focus,.ed-storefront #main textarea:focus{border-color:var(--ed-primary);box-shadow:0 0 0 3px rgba(0,112,240,.14);outline:0}
.ed-storefront #main input[type=checkbox],.ed-storefront #main input[type=radio]{accent-color:var(--ed-primary)}
.ed-storefront #main .button,.ed-storefront #main button:not(.mfp-close):not(.flickity-button){background:#fff;border:1px solid var(--ed-border-strong);border-radius:12px;box-shadow:none;color:var(--ed-deep);font-size:14px;font-weight:600;letter-spacing:normal;line-height:1.4;min-height:44px;padding:10px 18px;text-transform:none;white-space:normal}
.ed-storefront #main .button:hover,.ed-storefront #main button:not(.mfp-close):not(.flickity-button):hover{background:var(--ed-soft);border-color:var(--ed-border-strong);color:var(--ed-deep)}
.ed-storefront #main .button.alt,.ed-storefront #main button[type=submit],.ed-storefront #main .single_add_to_cart_button{background:var(--ed-primary);border-color:var(--ed-primary);color:var(--ed-on-primary)}
.ed-storefront #main .button.alt:hover,.ed-storefront #main button[type=submit]:hover,.ed-storefront #main .single_add_to_cart_button:hover{background:var(--ed-primary-dark);border-color:var(--ed-primary-dark);color:var(--ed-on-primary)}

.ed-storefront .product-small.box{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:none;height:100%}
.ed-storefront .product-small.box:hover{border-color:#AFC1D7;box-shadow:none;transform:none}
.ed-storefront .product-small .box-image{background:#EEF3F8;padding:16px}
.ed-storefront .product-small .box-image img{height:220px;object-fit:contain;width:100%}
.ed-storefront .product-small .box-text{background:#fff;padding:16px!important}
.ed-storefront .product-small .product-title a{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:var(--ed-text);display:-webkit-box;font-size:16px;line-height:1.5;min-height:72px;overflow:hidden}
.ed-storefront .price,.ed-storefront .price .amount{color:var(--ed-primary-dark);font-size:20px;font-weight:700}
.ed-storefront .price del,.ed-storefront .price del .amount{color:var(--ed-muted)!important;font-size:13px;opacity:1!important}
.ed-storefront .ed-loop-meta{color:var(--ed-muted);display:flex;flex-wrap:wrap;font-size:12px;gap:6px;margin:8px 0}
.ed-storefront .ed-loop-format{background:var(--ed-soft);border-radius:8px;color:var(--ed-deep);padding:2px 7px}
.ed-storefront .products>.ed-catalog-item{display:flex}
.ed-storefront .ed-catalog-item>.col-inner{background:none!important;border:0!important;box-shadow:none!important;display:flex;flex-direction:column;height:100%;width:100%}
.ed-storefront .ed-catalog-item .ed-card{height:100%;text-align:left}
.ed-storefront .ed-catalog-item .ed-card h3{font-size:16px!important;line-height:1.45!important}

.ed-storefront .product-info,.ed-storefront .product-gallery{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:0 8px 24px rgba(16,35,62,.06)}
.ed-storefront .product-info{padding:24px!important}
.ed-storefront .product-info .product-title{font-size:27px!important;line-height:1.28!important;margin-bottom:8px}
.ed-storefront .product-info .price,.ed-storefront .product-info .price ins,.ed-storefront .product-info .price ins .amount{color:var(--ed-primary-dark)!important}
.ed-storefront .product-info .price del,.ed-storefront .product-info .price del .amount{color:var(--ed-muted)!important;opacity:1}
.ed-storefront .product-gallery{align-self:flex-start;padding:16px}
.ed-storefront .product-gallery img{object-fit:contain}
.ed-storefront .product-info .product-short-description{color:var(--ed-muted);font-size:15px;line-height:1.75;margin-top:16px}
.ed-storefront .product-info form.cart{border-top:1px solid var(--ed-border);margin-top:16px;padding-top:16px}
.ed-storefront .product-info form.cart .quantity{margin-bottom:0}
.ed-storefront .product-info .single_add_to_cart_button{min-height:48px;padding-inline:24px}
.ed-storefront .product_meta{border-top:1px solid var(--ed-border);color:var(--ed-muted);font-size:12px;margin-top:20px;padding-top:16px}
.ed-storefront .hlv-product-facts{background:var(--ed-border);border:1px solid var(--ed-border);border-radius:12px;display:grid;gap:1px;grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0 0;opacity:1!important;overflow:hidden}
.ed-storefront .hlv-product-facts>div{background:var(--ed-page);display:grid;gap:3px;padding:10px 12px}
.ed-storefront .hlv-product-facts dt{color:var(--ed-muted);font-size:12px;font-weight:500;margin:0;text-transform:uppercase}
.ed-storefront .hlv-product-facts dd{color:var(--ed-text);font-size:14px;font-weight:600;margin:0}
.ed-storefront .hlv-purchase-note{border-top:1px solid var(--ed-border);display:grid;gap:7px;margin-top:14px;padding-top:12px}
.ed-storefront .hlv-purchase-note span{align-items:center;color:var(--ed-muted);display:flex;font-size:13px;gap:9px}
.ed-storefront .hlv-purchase-note .ed-icon{color:var(--ed-primary);height:18px;width:18px}
.ed-storefront .product-footer{margin-top:18px}
.ed-storefront .hlv-product-intro{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:none;display:grid;gap:0 28px;grid-column:1/-1;grid-template-columns:minmax(170px,.55fr) minmax(0,2fr);margin:0;padding:24px}
.ed-storefront .hlv-product-intro__heading{border-right:1px solid var(--ed-border);display:flex;flex-direction:column;justify-content:center;padding-right:20px}
.ed-storefront .hlv-product-intro__heading p{color:var(--ed-primary-dark);font-size:12px;font-weight:700;letter-spacing:.12em;margin:0 0 8px;text-transform:uppercase}
.ed-storefront .hlv-product-intro__heading h2{color:var(--ed-primary-dark);font-size:25px!important;font-weight:800;margin:0}
.ed-storefront .hlv-intro-icon{align-items:center;background:var(--ed-soft);border:1px solid #B9D6FA;border-radius:50%;color:var(--ed-primary-dark);display:flex;flex:0 0 auto;height:68px;justify-content:center;margin:0 0 16px;width:68px}
.ed-storefront .hlv-intro-icon .ed-icon{height:32px;width:32px}
.ed-storefront .hlv-product-intro__content{color:var(--ed-muted);display:grid;font-size:14px;gap:0 28px;grid-template-columns:repeat(2,minmax(0,1fr));line-height:1.65;min-width:0}
.ed-storefront .hlv-product-intro__content>:first-child{margin-top:0}
.ed-storefront .hlv-product-intro__content>:last-child{margin-bottom:0}
.ed-storefront .hlv-product-intro__content h2,.ed-storefront .hlv-product-intro__content h3{align-items:center;color:var(--ed-text);display:flex;font-size:15px!important;gap:10px;margin:0 0 10px}
.ed-storefront .hlv-section-icon{align-items:center;border-radius:50%;display:flex;flex:0 0 32px;height:32px;justify-content:center;width:32px}
.ed-storefront .hlv-section-icon .ed-icon{height:16px;width:16px}
.ed-storefront .hlv-section-icon--blue{background:var(--ed-soft);color:var(--ed-primary-dark)}
.ed-storefront .hlv-section-icon--purple{background:#EFECFE;color:#6D54E0}
.ed-storefront .hlv-section-icon--orange{background:#FFF1E0;color:#C2690A}
.ed-storefront .hlv-product-intro__content ul{margin:8px 0 0 18px}
.ed-storefront .hlv-product-intro__content li{margin-bottom:6px}
.ed-storefront .hlv-product-intro__content img{border-radius:12px;height:auto;max-width:100%}
.ed-storefront .woocommerce-tabs{background:#fff;border:1px solid var(--ed-border);border-radius:16px;box-shadow:none;padding:26px}
.ed-storefront .tabs.wc-tabs{border-bottom:1px solid var(--ed-border)}
.ed-storefront .tabs.wc-tabs li a{color:var(--ed-muted);font-size:14px;text-transform:none}
.ed-storefront .tabs.wc-tabs li.active a{color:var(--ed-primary)}

.ed-storefront .woocommerce-cart-form,.ed-storefront .cart_totals,.ed-storefront #order_review,.ed-storefront .woocommerce-billing-fields,.ed-storefront .woocommerce-additional-fields,.ed-storefront .woocommerce-MyAccount-content,.ed-storefront #customer_login>div{background:#fff;border:1px solid var(--ed-border);border-radius:16px;padding:26px}
.ed-storefront .woocommerce-cart-form,.ed-storefront .woocommerce-billing-fields,.ed-storefront .woocommerce-additional-fields{margin-bottom:24px}
.ed-storefront .woocommerce-additional-fields:empty{display:none}
.ed-storefront .woocommerce-MyAccount-navigation{background:#fff;border:1px solid var(--ed-border);border-radius:16px;padding:12px}
.ed-storefront .woocommerce-MyAccount-navigation a{color:var(--ed-muted);font-size:14px;min-height:44px;padding:12px;text-transform:none}
.ed-storefront .woocommerce-MyAccount-navigation .is-active a{background:var(--ed-soft);border-radius:10px;color:var(--ed-deep);font-weight:700}
.ed-storefront #main th{color:var(--ed-text);font-size:14px;letter-spacing:normal;text-transform:none}
.ed-storefront #main td,.ed-storefront #main th{border-color:var(--ed-border)}
.ed-storefront .woocommerce-message,.ed-storefront .woocommerce-info,.ed-storefront .woocommerce-error{background:#fff;border:1px solid var(--ed-border);border-radius:12px;color:var(--ed-text);padding:16px 18px}
.ed-storefront .woocommerce-info{border-left:4px solid var(--ed-primary)}
.ed-storefront .woocommerce-error{border-left:4px solid #B42318}
.ed-storefront .com-doc-order{background:#fff}
.ed-storefront .woocommerce-breadcrumb a{color:var(--ed-muted)!important}
.ed-storefront span.divider{color:var(--ed-muted)!important;opacity:1!important}
.ed-storefront .widget_product_title,.ed-storefront .widget_product_title a,.ed-storefront .product-title,.ed-storefront .product-title a{color:var(--ed-primary-dark)!important}
.ed-storefront.single-product .product-info .price del,.ed-storefront.single-product .product-info .price del bdi,.ed-storefront .widget_products del,.ed-storefront .widget_products del bdi{color:var(--ed-muted)!important;opacity:1!important}
.ed-storefront.single-product .product-info .price ins bdi,.ed-storefront .widget_products ins bdi,.ed-storefront .widget_products li>bdi{color:var(--ed-primary-dark)!important}
.ed-storefront .widget_products del,.ed-storefront .widget_products del .amount{opacity:1!important}
.ed-storefront .hlv-product-facts dt{color:var(--ed-muted)!important}
.ed-storefront .chat-now{align-items:center;background:#fff!important;border:1px solid var(--ed-border-strong)!important;border-radius:12px!important;color:var(--ed-deep)!important;display:flex;justify-content:center;margin:0!important;min-height:50px;padding:12px 18px!important;width:100%}
.ed-storefront .chat-now:hover{background:var(--ed-soft)!important;border-color:var(--ed-border-strong)!important;color:var(--ed-deep)!important}
.ed-storefront.single-product #product-sidebar>.widget{display:none}
.ed-storefront .flickity-button{transform:none!important}
.ed-storefront.single-product .product-gallery:has(.woocommerce-product-gallery__image:first-child:last-child) .flickity-button{display:none!important}
.ed-storefront .product-title,.ed-storefront .hlv-product-intro h2,.ed-storefront .hlv-product-intro__content{overflow-wrap:anywhere;text-wrap:pretty}
.ed-storefront #main .button:hover,.ed-storefront #main button:not(.mfp-close):not(.flickity-button):hover{border-color:var(--ed-border-strong)}
.ed-storefront #main .button.alt:hover,.ed-storefront #main button[type=submit]:hover,.ed-storefront #main .single_add_to_cart_button:hover{border-color:var(--ed-primary)}

/* Brand-consistent product benefits, buttons and icons. This replaces legacy green/orange block styles. */
.ed-storefront.single-product .tieu-chi-2{margin:0}
.ed-storefront.single-product .tieu-chi-2>.col{padding:0}
.ed-storefront.single-product .tieu-chi-2 .col-inner{background:var(--ed-border);border:1px solid var(--ed-border)!important;border-radius:14px!important;box-shadow:none;display:grid;gap:1px;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}
.ed-storefront.single-product .tieu-chi-2 h3{align-items:center;background:var(--ed-primary)!important;border-radius:0!important;color:var(--ed-on-primary)!important;display:flex;font-size:14px!important;font-weight:700;grid-column:1/-1;line-height:1.35;margin:0!important;padding:12px 14px!important;text-align:left;text-transform:none!important;text-wrap:balance}
.ed-storefront.single-product .tieu-chi-2 .icon-box{align-items:center;background:#fff;border:0!important;display:flex;gap:9px;margin:0!important;min-height:72px;padding:10px!important}
.ed-storefront.single-product .tieu-chi-2 .icon-box:last-child{grid-column:1/-1}
.ed-storefront.single-product .tieu-chi-2 .icon-box-img{align-items:center;background:var(--ed-soft);border:1px solid #B9D6FA;border-radius:50%;color:var(--ed-primary-dark);display:flex;flex:0 0 32px;height:32px;justify-content:center;margin:0!important;width:32px!important}
.ed-storefront.single-product .tieu-chi-2 .icon-box-img .icon,.ed-storefront.single-product .tieu-chi-2 .icon-box-img .icon-inner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}
.ed-storefront.single-product .tieu-chi-2 .icon-box-img svg{color:inherit;height:21px!important;overflow:visible;width:21px!important}
.ed-storefront.single-product .tieu-chi-2 .icon-box-img svg>*{fill:none!important;stroke:currentColor!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-width:5!important}
.ed-storefront.single-product .tieu-chi-2 .icon-box-img svg>circle:first-child{display:none}
.ed-storefront.single-product .tieu-chi-2 .icon-box-text{min-width:0}
.ed-storefront.single-product .tieu-chi-2 .icon-box h4{color:var(--ed-text)!important;font-size:13px!important;font-weight:600;line-height:1.45;margin:0!important;text-transform:none;text-wrap:pretty}
.ed-storefront.single-product .tieu-chi-2 .icon-box p{color:var(--ed-muted)!important;font-size:12px!important;line-height:1.5;margin:4px 0 0!important}

.ed-storefront #main button .ed-icon,.ed-storefront #main .button .ed-icon,.ed-storefront #main a.button .ed-icon{color:currentColor;flex:0 0 18px;height:18px;width:18px}
.ed-storefront .com-wl-heart{align-items:center;color:var(--ed-primary-dark);display:inline-flex;height:18px;justify-content:center;width:18px}
.ed-storefront .com-wl-heart svg{fill:none;height:18px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:18px}
.ed-storefront .com-wl-btn.is-saved .com-wl-heart svg{fill:currentColor}
.ed-storefront .hlv-product-tools button{color:var(--ed-deep)!important;font-size:13px!important;min-height:44px!important}
.ed-storefront .hlv-product-tools button .ed-icon{color:var(--ed-primary-dark)}
.ed-storefront .hlv-product-tools button:hover .ed-icon{color:currentColor}

/* Product page: sidebar + gallery + info as three columns, then a full-width
   customer-benefit band. */
.ed-storefront.single-product .product-footer .container.content-row{padding-left:0!important;padding-right:0!important}
.ed-storefront.single-product #product-sidebar{display:block!important;flex-basis:100%;max-width:100%;width:100%}
.ed-storefront.single-product .product-footer .section-02>.large-9{flex-basis:100%;max-width:100%;width:100%}
.ed-storefront.single-product .product-footer .section-02>.large-9{display:grid;gap:16px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.ed-storefront.single-product .product-footer .section-02>.large-9:has(.woocommerce-tabs:has(.woocommerce-noreviews)){grid-template-columns:1fr}
/* woocommerce_after_single_product_summary appends the tabs, upsells, related
   products AND our own combo/recent-products sections as plain siblings inside
   this 2-column .large-9 grid — without an explicit placement each extra
   section (related products, "recently viewed", combo/bundle) landed in
   whichever single ~half-width column the grid auto-flow gave it next, instead
   of the full row width, which is why their product cards looked cramped into
   half the page. Make each of these span both columns so they get the row's
   full width like a normal full-width section. */
.ed-storefront.single-product .product-footer .section-02>.large-9>.related.related-products-wrapper,
.ed-storefront.single-product .product-footer .section-02>.large-9>.up-sells.upsells,
.ed-storefront.single-product .product-footer .section-02>.large-9>.hlv-product-row{grid-column:1/-1}
.ed-storefront.single-product .product-footer .section-02>.large-3{display:none}
.ed-storefront.single-product .product-footer .woocommerce-tabs:has(.woocommerce-noreviews){display:none}
/* Text contrast guardrails for WooCommerce and legacy Flatsome widgets. */
.ed-storefront #main :where(p,li,dd,td,.description,.woocommerce-result-count){color:inherit}
.ed-storefront #main :where(.product-short-description,.hlv-product-intro__content,.woocommerce-breadcrumb,.woocommerce-MyAccount-navigation a){opacity:1}
.ed-storefront #main :where(del,del .amount,del bdi){color:var(--ed-muted)!important;opacity:1!important}
.ed-storefront #main del{display:inline-block;position:relative;text-decoration:none!important}
.ed-storefront #main del::after{background:currentColor;bottom:20%;content:"";height:1px;left:0;opacity:.7;position:absolute;right:0}
.ed-storefront #main :where(a:not(.button),button){text-underline-offset:3px}
.ed-storefront #main :where(a:not(.button)):focus-visible{outline:2px solid var(--ed-primary);outline-offset:3px}

/* Dynamic default document cover: brand mark plus the real product title. */
.hlv-default-cover{background:radial-gradient(circle at 50% 38%,#F3F8FF 0%,#fff 62%);border-radius:inherit;box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;position:relative;width:100%}
.hlv-default-cover>img{box-sizing:border-box;filter:drop-shadow(0 10px 18px rgba(6,79,158,.16));flex:1 1 auto;height:60%!important;min-height:0;object-fit:contain!important;padding:12px 18px 6px;width:100%!important}
.hlv-default-cover__content{align-items:flex-start!important;background-color:#052E6E;background-image:linear-gradient(135deg,#0A5BC4,#052E6E);box-sizing:border-box;color:#fff!important;display:flex!important;flex:0 0 auto;flex-direction:column;gap:4px!important;justify-content:center!important;min-height:82px;padding:12px 16px;position:relative;text-align:left;width:100%}
.hlv-default-cover__content small{color:#DCEBFA;font-size:12px;font-weight:700;letter-spacing:.12em;line-height:1.2}
.hlv-default-cover__content strong{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#fff;display:-webkit-box;font-size:14px;font-weight:700;line-height:1.28;overflow:hidden;text-wrap:balance}
.hlv-default-cover__content.is-medium strong{font-size:13px}.hlv-default-cover__content.is-long strong{font-size:11px;line-height:1.22}
.ed-cover>.hlv-default-cover{height:218px;width:100%}
.ed-cover>.hlv-default-cover .hlv-default-cover__content{min-height:86px}
.ed-sheet>.hlv-default-cover{height:calc(100% - 28px);width:100%}
.ed-sheet>.hlv-default-cover .hlv-default-cover__content{gap:2px!important;min-height:68px;padding:8px 9px}
.ed-sheet>.hlv-default-cover .hlv-default-cover__content strong{font-size:10px;-webkit-line-clamp:3}.ed-sheet>.hlv-default-cover .hlv-default-cover__content small{font-size:7px}
.ed-grade-row-cards .ed-cover>.hlv-default-cover{height:156px;width:100%}
.ed-grade-row-cards .ed-cover>.hlv-default-cover .hlv-default-cover__content{gap:2px!important;min-height:58px;padding:8px 10px}
.ed-grade-row-cards .ed-cover>.hlv-default-cover .hlv-default-cover__content strong{font-size:10px;-webkit-line-clamp:2}
.ed-grade-row-cards .ed-cover>.hlv-default-cover .hlv-default-cover__content small{font-size:7px}
.ed-sheet>.ed-sheet-action{color:var(--ed-primary)!important;display:flex!important;flex:none!important}
.product-gallery .woocommerce-product-gallery__image.hlv-default-cover,.product-gallery .woocommerce-product-gallery__image--placeholder.hlv-default-cover{aspect-ratio:1/1;display:block!important;min-height:350px;overflow:hidden;position:relative}
.ed-storefront.single-product .product-gallery .woocommerce-product-gallery__wrapper,.ed-storefront.single-product .product-gallery .woocommerce-product-gallery__wrapper>.flickity-viewport{min-height:350px}
.ed-storefront.single-product .product-gallery .hlv-gallery-caption{display:grid;gap:2px;margin:14px 0 0}
.ed-storefront.single-product .product-gallery .hlv-gallery-caption strong{color:var(--ed-text);font-size:13px;font-weight:700}
.ed-storefront.single-product .product-gallery .hlv-gallery-caption span{color:var(--ed-muted);font-size:12px;line-height:1.4}
.ed-storefront.single-product .product-gallery .product-thumbnails{margin:10px 0 0}
.ed-storefront.single-product .product-gallery .product-thumbnails .col{padding:0 4px}
.ed-storefront.single-product .product-gallery .product-thumbnails .col>a{align-items:center;aspect-ratio:1/1;background:var(--ed-page);border:1px solid var(--ed-border);border-radius:10px;cursor:pointer;display:flex;justify-content:center;overflow:hidden}
.ed-storefront.single-product .product-gallery .product-thumbnails img{height:100%;object-fit:contain;width:100%}
.ed-storefront.single-product .product-gallery .product-thumbnails .is-nav-selected>a{border-color:var(--ed-primary);border-width:2px}
.product-gallery .hlv-default-cover>a{display:block;height:100%;width:100%}
.product-gallery .hlv-default-cover>img,.product-gallery .hlv-default-cover>a>img{box-sizing:border-box;display:block;height:100%!important;object-fit:contain!important;padding:22px 34px 140px;width:100%!important}
.product-gallery .hlv-default-cover__content{bottom:0;left:0;min-height:120px;padding:18px 24px;position:absolute;right:0;z-index:2}
.product-gallery .hlv-default-cover__content strong{font-size:20px;line-height:1.25}.product-gallery .hlv-default-cover__content.is-medium strong{font-size:18px}.product-gallery .hlv-default-cover__content.is-long strong{font-size:16px}
.product-gallery .image-tools.bottom.left{bottom:132px}
.widget_products .hlv-default-cover__content{display:none!important}.widget_products .hlv-default-cover>img{height:100%!important;padding:0}

@media(min-width:1000px){
  .ed-storefront .products:not(.slider)>.ed-catalog-item{flex-basis:25%;max-width:25%}
  .ed-storefront.single-product .product-main>.content-row{align-items:start;display:grid;gap:18px;grid-template-columns:360px minmax(0,1fr) minmax(340px,1.1fr)}
  .ed-storefront.single-product .product-main>.content-row>.product-gallery,.ed-storefront.single-product .product-main>.content-row>.product-info,.ed-storefront.single-product .product-main>.content-row>#product-sidebar{flex-basis:auto!important;max-width:none!important;width:auto!important}
  .ed-storefront.single-product .product-main>.content-row>#product-sidebar{grid-column:1;grid-row:1;margin-top:0!important;padding:0!important;position:sticky;top:20px}
  .ed-storefront.single-product .product-main>.content-row>.product-gallery{align-self:start;grid-column:2;grid-row:1;height:auto!important}
  .ed-storefront.single-product .product-main>.content-row>.product-info{grid-column:3;grid-row:1}
}
@media(min-width:850px) and (max-width:999px){
  .ed-storefront.single-product .product-main>.content-row{align-items:start;display:grid;gap:18px;grid-template-columns:minmax(0,44fr) minmax(380px,56fr)}
  .ed-storefront.single-product .product-main>.content-row>.product-gallery,.ed-storefront.single-product .product-main>.content-row>.product-info{flex-basis:auto!important;max-width:none!important;width:auto!important}
  .ed-storefront.single-product .product-main>.content-row>.product-gallery{align-self:start;grid-column:1;grid-row:1;height:auto!important}
  .ed-storefront.single-product .product-main>.content-row>.product-info{grid-column:2;grid-row:1/span 2}
  .ed-storefront.single-product .product-main>.content-row>#product-sidebar{grid-column:1;grid-row:2;margin-top:16px;padding:0!important}
}
@media(min-width:850px) and (max-width:1100px){
  .ed-storefront .hlv-product-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-storefront .hlv-product-facts>div:last-child:nth-child(odd){grid-column:1/-1}
}
@media(min-width:761px) and (max-width:849px){
  .ed-storefront.single-product #product-sidebar{margin-top:16px;padding:0!important}
  .ed-storefront.single-product .tieu-chi-2 .col-inner{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ed-storefront.single-product .tieu-chi-2 h3{grid-column:1/-1}
  .ed-storefront.single-product .tieu-chi-2 .icon-box:last-child{grid-column:auto}
  .ed-storefront.single-product .product-footer .section-02>.large-9{grid-template-columns:1fr}
}
@media(max-width:760px){
  .ed-storefront #main{padding-bottom:28px}
  .ed-storefront #main h1{font-size:27px}.ed-storefront #main h2{font-size:23px}
  .ed-storefront.single-product .product-main{padding:18px 0 8px}
  .ed-storefront .product-info{margin-top:12px;padding:16px!important}
  .ed-storefront .product-gallery{padding:12px}
  .ed-storefront .product-info .product-title{font-size:22px!important;line-height:1.3!important}
  .ed-storefront .product-small .box-image{padding:12px}.ed-storefront .product-small .box-image img{height:165px}
  .ed-storefront .product-small .box-text{padding:12px!important}.ed-storefront .product-small .product-title a{font-size:14px;min-height:63px}
  .ed-storefront .woocommerce-cart-form,.ed-storefront .cart_totals,.ed-storefront #order_review,.ed-storefront .woocommerce-billing-fields,.ed-storefront .woocommerce-additional-fields,.ed-storefront .woocommerce-MyAccount-content,.ed-storefront #customer_login>div,.ed-storefront .woocommerce-tabs{padding:16px}
  .ed-storefront .hlv-product-intro{gap:14px;grid-template-columns:1fr;margin:0;padding:16px}
  .ed-storefront .hlv-product-intro__heading{border-right:0;padding-right:0}
  .ed-storefront .hlv-product-intro__heading h2{font-size:21px!important}
  .ed-storefront .hlv-product-intro__content{display:block;font-size:14px;line-height:1.65}
  .ed-storefront .hlv-product-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
  .ed-storefront .hlv-product-facts>div{padding:9px 10px}
  .ed-storefront .hlv-product-facts dt{font-size:12px}.ed-storefront .hlv-product-facts dd{font-size:12px}
  .ed-storefront.single-product #product-sidebar{display:block!important;margin-top:14px;padding:0 15px!important}
  .ed-storefront.single-product .tieu-chi-2 .col-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-storefront.single-product .tieu-chi-2 h3{grid-column:1/-1}
  .ed-storefront.single-product .tieu-chi-2 .icon-box:last-child{grid-column:1/-1}
  .ed-storefront.single-product .tieu-chi-2 h3{padding:12px 14px!important;text-align:left}
  .ed-storefront.single-product .tieu-chi-2 .icon-box{min-height:68px;padding:10px!important}
  .ed-storefront .ed-catalog-item .ed-card h3{font-size:14px!important}
  .ed-storefront .shop_table{display:block;max-width:100%;overflow-x:auto}
  .product-gallery .woocommerce-product-gallery__image.hlv-default-cover,.product-gallery .woocommerce-product-gallery__image--placeholder.hlv-default-cover{min-height:250px}
  .ed-storefront.single-product .product-gallery .woocommerce-product-gallery__wrapper,.ed-storefront.single-product .product-gallery .woocommerce-product-gallery__wrapper>.flickity-viewport{min-height:250px}
  .product-gallery .hlv-default-cover>img,.product-gallery .hlv-default-cover>a>img{padding:14px 20px 104px}
  .product-gallery .hlv-default-cover__content{min-height:88px;padding:12px 16px}
  .product-gallery .hlv-default-cover__content strong{font-size:17px}.product-gallery .hlv-default-cover__content.is-medium strong{font-size:15px}.product-gallery .hlv-default-cover__content.is-long strong{font-size:14px}
  .product-gallery .image-tools.bottom.left{bottom:94px}
  .ed-cover>.hlv-default-cover{height:170px;width:100%}
  .ed-cover>.hlv-default-cover .hlv-default-cover__content{min-height:72px;padding:9px 10px}.ed-cover>.hlv-default-cover .hlv-default-cover__content strong{font-size:11px}.ed-cover>.hlv-default-cover .hlv-default-cover__content.is-long strong{font-size:9px}
}

@media(max-width:760px){
  .ed-storefront.single-product .product-footer{margin-top:14px}
  .ed-storefront.single-product .product-footer .section-02>.large-9{display:grid;gap:12px;grid-template-columns:1fr}
  .ed-storefront.single-product .hlv-intro-section{padding:15px 0 2px}
  .ed-storefront.single-product .hlv-intro-section h3{font-size:17px!important;margin-bottom:7px!important}
  .ed-storefront.single-product .ed-footer{padding:32px 0 18px}
  .ed-storefront.single-product .ed-footer-grid{gap:24px}
  .ed-storefront.single-product .ed-footer .ed-logo img{height:68px}
  .ed-storefront.single-product .ed-footer h3{margin-bottom:8px}
  .ed-storefront.single-product .ed-footer p{line-height:1.65;margin-top:12px}
  .ed-storefront.single-product .ed-footer a:not(.ed-logo){min-height:34px}
  .ed-storefront.single-product .ed-footer-bottom{margin-top:22px;padding-top:16px}
}

@media(max-width:390px){.ed-cover>.hlv-default-cover{height:152px}.ed-cover>.hlv-default-cover .hlv-default-cover__content{min-height:66px}}

/* === hlv-commerce.css === */
/* Commerce enhancements for Học liệu Việt. Flat, quiet and conversion-focused. */
:root{--hlv-primary:#0070f0;--hlv-primary-dark:#005ec7;--hlv-deep:#003060;--hlv-soft:#eaf3ff;--hlv-page:#f5f8fc;--hlv-text:#10233e;--hlv-muted:#526176;--hlv-border:#dce4ef;--hlv-border-strong:#c9d5e5;--hlv-on-primary:#fff;--hlv-danger:#b42318;--hlv-success:#067647}

/* Search suggestions */
.ed-search{overflow:visible!important;position:relative}
.ed-search input{border-radius:12px 0 0 12px!important}
.hlv-search-suggestions{background:#fff;border:1px solid var(--hlv-border);border-radius:14px;box-shadow:0 16px 40px rgba(0,48,96,.14);display:none;left:0;margin:8px 0 0;max-height:min(68vh,520px);overflow:auto;padding:6px;position:absolute;right:0;top:100%;z-index:120}
.hlv-search-suggestions.is-open{display:block}
.hlv-search-suggestions a{align-items:center;border-radius:10px;color:var(--hlv-text);display:grid;gap:2px 12px;grid-template-columns:52px minmax(0,1fr) auto;min-height:68px;padding:8px;text-decoration:none}
.hlv-search-suggestions a:hover,.hlv-search-suggestions a:focus{background:var(--hlv-soft);outline:0}
.hlv-search-suggestions img{background:var(--hlv-page);border:1px solid var(--hlv-border);border-radius:8px;grid-row:1/3;height:52px;object-fit:contain;width:52px}
.hlv-search-suggestions strong{font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hlv-search-suggestions small{color:var(--hlv-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hlv-search-suggestions b{color:var(--hlv-primary-dark);font-size:13px;grid-column:3;grid-row:1/3;white-space:nowrap}
.hlv-search-state{color:var(--hlv-muted);font-size:13px;padding:16px;text-align:center}
.hlv-search-skeleton{animation:hlv-pulse 1s ease-in-out infinite alternate;background:linear-gradient(90deg,#eef3f8,#f8fafc,#eef3f8);border-radius:10px;height:56px;margin:6px}
@keyframes hlv-pulse{to{opacity:.55}}

/* Catalogue badges and filters */
.product-small .box-image{position:relative}
.hlv-card-badges{display:flex;flex-wrap:wrap;gap:5px;left:12px;pointer-events:none;position:absolute;right:12px;top:12px;z-index:3}
.hlv-card-badges span{background:#fff;border:1px solid var(--hlv-border);border-radius:999px;color:var(--hlv-deep);font-size:10px;font-weight:700;letter-spacing:.02em;line-height:1.2;padding:5px 8px}
.com-filter-toggle{align-items:center;background:#fff;border:1px solid var(--hlv-border-strong);border-radius:12px;color:var(--hlv-deep);display:none;font-size:14px;font-weight:700;gap:8px;min-height:44px;padding:9px 14px}
.com-filter__mobile-head{display:none}
.com-filter{background:#fff!important;border:1px solid var(--hlv-border)!important;border-radius:16px!important;gap:14px 16px!important;padding:16px!important}
.com-filter label{color:var(--hlv-muted)!important;font-size:12px!important;font-weight:600;gap:6px!important}
.com-filter select{background:#fff;min-height:44px;min-width:165px}
.com-filter .button{min-height:44px}
.com-filter__reset{align-items:center;color:var(--hlv-primary-dark);display:inline-flex;font-size:13px;min-height:44px}
.com-active-filters{align-items:center;color:var(--hlv-muted);display:flex;flex-wrap:wrap;font-size:12px;gap:8px;margin:-6px 0 18px}
.com-active-filters a{background:var(--hlv-soft);border:1px solid #cfe3ff;border-radius:999px;color:var(--hlv-deep);padding:6px 10px;text-decoration:none}
.com-filter-backdrop{display:none}

/* Product detail hierarchy */
.ed-storefront.single-product .product-info form.cart{display:grid!important;gap:10px!important;grid-template-columns:repeat(2,minmax(0,1fr))}
.ed-storefront.single-product .product-info form.cart .quantity{display:none!important}
.ed-storefront.single-product .product-info form.cart .local-buy-now-btn--single{background:var(--hlv-primary)!important;border:1px solid var(--hlv-primary)!important;border-radius:12px!important;box-shadow:none!important;color:var(--hlv-on-primary)!important;font-size:15px!important;height:46px!important;margin:0!important;order:-1!important;padding:10px 18px!important;width:100%!important}
.ed-storefront.single-product .product-info form.cart .local-buy-now-btn--single:hover{background:var(--hlv-primary-dark)!important;border-color:var(--hlv-primary)!important}
.ed-storefront.single-product .product-info form.cart .single_add_to_cart_button{background:#fff!important;border:1px solid var(--hlv-primary)!important;border-radius:12px!important;color:var(--hlv-primary-dark)!important;font-size:15px!important;height:46px!important;margin:0!important;padding:10px 18px!important;width:100%!important}
.ed-storefront.single-product .product-info form.cart .single_add_to_cart_button:hover{background:var(--hlv-soft)!important;color:var(--hlv-primary-dark)!important}
.ed-storefront.single-product .product-info .chat-now{display:none!important}
.ed-storefront.single-product .com-preview-cta span{text-wrap:pretty}
.ed-storefront.single-product .product-info form.cart .local-buy-now-btn--single,.ed-storefront.single-product .product-info form.cart .single_add_to_cart_button{white-space:nowrap!important}
.ed-storefront.single-product .com-wl{align-items:center;border-top:1px solid var(--hlv-border);display:grid;gap:6px 10px;grid-template-columns:minmax(0,1fr) auto;margin:10px 0 0;padding-top:8px}
.ed-storefront.single-product .com-wl-btn{background:transparent!important;border:0!important;color:var(--hlv-muted)!important;justify-content:flex-start;margin:0;min-height:42px;min-width:0;padding:8px!important;white-space:nowrap;width:100%}
.ed-storefront.single-product .com-wl-btn:hover{background:var(--hlv-soft)!important;color:var(--hlv-deep)!important}
.ed-storefront.single-product .com-wl-link{align-items:center;display:flex;min-height:44px;white-space:nowrap}
.hlv-product-tools{display:grid;gap:4px 8px;grid-template-columns:repeat(2,minmax(0,1fr));margin:2px 0 0}
.ed-storefront #main .hlv-product-tools button{align-items:center;background:transparent!important;border:0!important;color:var(--hlv-muted);display:flex;font-size:12px;gap:8px;justify-content:flex-start;min-width:0;padding:9px 8px!important;text-align:left}
.ed-storefront #main .hlv-product-tools button:hover{background:var(--hlv-soft)!important;color:var(--hlv-deep)!important}
.ed-storefront #main .hlv-product-tools button[aria-pressed=true]{background:var(--hlv-soft);border-color:#cfe3ff;color:var(--hlv-deep)}
.hlv-product-tools button span:last-child{overflow:visible;text-overflow:clip;white-space:nowrap}

/* Structured introduction */
.hlv-intro-section{padding:0 0 2px;scroll-margin-top:110px}
.hlv-intro-section:nth-of-type(n+3):not(.hlv-intro-section--preview){border-top:1px solid var(--hlv-border);margin-top:6px;padding-top:18px}
.hlv-intro-section--preview{background:var(--hlv-page);border-radius:12px;grid-column:1/-1;margin-top:4px!important;padding:16px!important}
.hlv-intro-section h3{font-size:15px!important;margin:0 0 10px!important}
.hlv-intro-section ul{display:grid;gap:9px;list-style:none;margin:0!important;padding:0}
.hlv-intro-section li{margin:0!important;padding-left:25px;position:relative}
.hlv-intro-section li:before{background:var(--hlv-primary);border-radius:50%;content:"✓";color:#fff;font-size:9px;font-weight:800;height:16px;left:0;line-height:16px;position:absolute;text-align:center;top:5px;width:16px}

/* Related, combo/bundle and "recently viewed" product rows. WooCommerce's own
   native "related products" block (Flatsome's related.php) ships with no card
   background/border of its own (its "has-shadow" class is a no-op here) and a
   plain, undecorated <h3> heading — so it rendered as a visibly different
   component sitting right next to our own hlv-product-row sections on the same
   page. Give both the same panel + heading treatment so the whole bottom of
   the product page reads as one consistent design instead of two. */
.hlv-product-row,
.related.related-products-wrapper{background:#fff;border:1px solid var(--hlv-border);border-radius:16px;box-shadow:none!important;clear:both;display:flow-root;margin:20px 0;padding:20px}
.related.related-products-wrapper .product-section-title{align-items:center;border:0!important;display:flex;justify-content:flex-start;margin:0 0 16px!important;padding:0!important;text-align:left;text-transform:none!important}
.related.related-products-wrapper .product-section-title b,
.related.related-products-wrapper .product-section-title i{display:none!important}
.hlv-section-heading h2,
.related.related-products-wrapper .product-section-title span{color:var(--hlv-deep)!important;font-size:20px!important;font-weight:800!important;margin:0!important;padding-left:14px!important;position:relative!important}
.hlv-section-heading h2:before,
.related.related-products-wrapper .product-section-title span:before{background:var(--hlv-primary);border-radius:3px;content:"";height:18px;left:0;position:absolute;top:3px;width:4px}
.hlv-section-heading{align-items:end;display:flex;justify-content:space-between;margin-bottom:16px}
.hlv-product-row .products{margin-bottom:0}
/* Leftover brand CSS from this site's previous owner (stored in the Flatsome
   "Additional CSS" theme option, not in any theme file — a ".related h3 span"
   pill badge + ".related h3:before/:after" line-and-dot) is still live site-wide.
   It targets every <h3> inside .related, which also matches each product
   card's own title, not just the section heading — recolored to the new blue
   brand at some point but never removed. Cancel all of it here. */
.related h3:before,
.related h3:after,
.bai-viet-lien-quan h3:before,
.bai-viet-lien-quan h3:after{content:none!important;display:none!important}
.related h3 span{background:none!important;background-image:none!important;border-radius:0!important;display:inline!important;padding:0!important;position:static!important;top:auto!important;width:auto!important}
/* .ed-card-title reserves height for a 3-line title and .ed-card-bottom is
   pinned to the card's bottom edge with margin-top:auto — both exist to keep
   price/buttons aligned across a shop-grid row of titles with very different
   lengths. In these rows the 1-2 items are short, same-length titles, so the
   reserve + bottom-pin just shows up as a big empty gap in the middle of the
   card. Let the title and price/buttons sit close together instead. */
.hlv-product-row .ed-card-title,
.related.related-products-wrapper .ed-card-title{min-height:0!important}
.hlv-product-row .ed-card-bottom,
.related.related-products-wrapper .ed-card-bottom{margin-top:0!important}
/* Document covers here come in two real ratios (1:1 and 9:16). A sitewide
   rule (shop-buy-now-button.php) forces every product thumbnail into a
   square box via padding-top:100%, which was meant for the shop/category
   grid but also crops the top/bottom off every 9:16 cover shown in this row.
   Undo the square-crop just here and center each image at its own true
   ratio inside a fixed-height frame instead, so nothing gets cropped and
   every card in the row still lines up at the same height. */
.hlv-product-row .box-image,
.related.related-products-wrapper .box-image{align-items:center!important;display:flex!important;height:200px!important;justify-content:center!important;padding-top:0!important}
.hlv-product-row .box-image img,
.related.related-products-wrapper .box-image img{height:auto!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;position:static!important;width:auto!important}

/* Purchased-document library */
.hlv-library-toolbar{background:var(--hlv-page);border:1px solid var(--hlv-border);border-radius:14px;margin:0 0 20px;padding:16px}
.hlv-library-toolbar>label{color:var(--hlv-text);display:block;font-size:14px;font-weight:700;margin-bottom:8px}
.hlv-library-toolbar>div{display:grid;gap:10px;grid-template-columns:minmax(0,1fr) 170px}
.hlv-library-toolbar input,.hlv-library-toolbar select{margin:0!important}
.hlv-library-count{color:var(--hlv-muted);font-size:12px;margin:8px 0 0}
.hlv-library-empty{background:#fff;border:1px dashed var(--hlv-border-strong);border-radius:12px;color:var(--hlv-muted);padding:24px;text-align:center}
.com-doc-order[hidden]{display:none!important}

/* Customer avatar: edit it directly from the My Account sidebar. */
.ed-storefront .account-user{align-items:center;display:flex;flex-wrap:wrap}
.ed-storefront .account-user .image img.avatar{background:var(--hlv-soft);border-radius:50%;box-shadow:0 0 0 1px var(--hlv-border-strong);height:70px;object-fit:cover;width:70px}
.hlv-account-avatar-quick{align-items:center;display:flex;flex:0 0 100%;flex-wrap:wrap;gap:8px;margin:12px 0 2px;min-width:0;width:100%}
.hlv-account-avatar-quick__choose,.ed-storefront #main .hlv-account-avatar-quick button.hlv-account-avatar-quick__remove{align-items:center;background:#fff;border:1px solid var(--hlv-border-strong);border-radius:10px;color:var(--hlv-primary-dark);cursor:pointer;display:inline-flex;font-size:12px;font-weight:700;gap:7px;justify-content:center;line-height:1.25;margin:0;min-height:38px;padding:8px 11px;text-transform:none}
.hlv-account-avatar-quick__choose:hover,.hlv-account-avatar-quick__choose:focus-visible,.ed-storefront #main .hlv-account-avatar-quick button.hlv-account-avatar-quick__remove:hover{background:var(--hlv-soft);border-color:var(--hlv-border-strong);color:var(--hlv-deep);outline:0}
.hlv-account-avatar-quick__choose svg{fill:none;height:16px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:16px}
.ed-storefront #main .hlv-account-avatar-quick button.hlv-account-avatar-quick__remove{color:var(--hlv-muted);min-width:0}
.hlv-account-avatar-quick__status{color:var(--hlv-muted)!important;flex:0 0 100%;font-size:11px;line-height:1.45;margin:0!important;text-wrap:pretty}
.hlv-account-avatar-quick.is-loading .hlv-account-avatar-quick__choose{cursor:progress;opacity:.72}
.hlv-account-avatar-quick.has-error .hlv-account-avatar-quick__status{color:var(--hlv-danger)!important}
.hlv-avatar-settings{border:1px solid var(--hlv-border);border-radius:14px;margin:0 0 24px;padding:18px}
.hlv-avatar-settings legend{color:var(--hlv-text);font-size:16px;font-weight:700;padding:0 8px}
.hlv-avatar-settings__preview{margin:2px 0 14px}
.hlv-avatar-settings__preview img{background:var(--hlv-soft);border-radius:50%;box-shadow:0 0 0 1px var(--hlv-border-strong);display:block;height:96px;object-fit:cover;width:96px}

/* Mobile purchase bar */
.hlv-mobile-buy{display:none}

@media(max-width:760px){
  .hlv-search-suggestions{left:-64px;right:0}
  .hlv-search-suggestions a{grid-template-columns:46px minmax(0,1fr)}
  .hlv-search-suggestions img{height:46px;width:46px}.hlv-search-suggestions b{grid-column:2;grid-row:auto}
  .com-filter-toggle{display:inline-flex;margin:0 0 14px}
  .com-filter{background:#fff!important;border:0!important;border-radius:18px 18px 0 0!important;bottom:0;display:block!important;left:0;margin:0!important;max-height:min(82vh,720px);overflow:auto;padding:18px!important;position:fixed;right:0;transform:translateY(105%);transition:transform .2s ease;z-index:100002}
  .com-filter.is-open{transform:translateY(0)}
  .com-filter__mobile-head{align-items:center;border-bottom:1px solid var(--hlv-border);display:flex;justify-content:space-between;margin:-4px 0 16px;padding-bottom:12px}
  .ed-storefront #main .com-filter-close{border:0;border-radius:12px;min-height:40px;padding:0;width:40px}.com-filter-close .ed-icon{height:20px;width:20px}
  .com-filter label{margin:0 0 14px!important}.com-filter select{width:100%}
  .com-filter .button{margin-right:8px;width:calc(65% - 8px)}.com-filter__reset{justify-content:center;width:33%}
  .com-filter-backdrop{background:rgba(0,24,48,.56);inset:0;position:fixed;z-index:100001}.com-filter-backdrop:not([hidden]){display:block}
  body.hlv-filter-lock{overflow:hidden}
  .ed-storefront.single-product .product-info form.cart{gap:8px!important;grid-template-columns:1fr!important;margin-top:12px;padding-top:12px}
  .hlv-product-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hlv-product-row,.related.related-products-wrapper{margin:12px 0;padding:16px}
  .hlv-section-heading h2,.related.related-products-wrapper .product-section-title span{font-size:17px!important}
  .hlv-product-row .box-image,.related.related-products-wrapper .box-image{height:150px!important}
  .hlv-library-toolbar>div{grid-template-columns:1fr}
  .hlv-mobile-buy{align-items:center;background:#fff;border-top:1px solid var(--hlv-border);bottom:0;box-shadow:0 -10px 30px rgba(0,48,96,.11);display:grid;gap:8px;grid-template-columns:minmax(0,1fr) auto auto;left:0;opacity:0;padding:9px max(12px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));pointer-events:none;position:fixed;right:0;transform:translateY(110%);transition:opacity .18s ease,transform .18s ease;visibility:hidden;z-index:99990}
  .hlv-mobile-buy.is-visible{opacity:1;pointer-events:auto;transform:translateY(0);visibility:visible}
  .hlv-mobile-buy>div{display:grid;min-width:0}.hlv-mobile-buy>div span{color:var(--hlv-muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hlv-mobile-buy>div strong,.hlv-mobile-buy>div strong .amount{color:var(--hlv-primary-dark);font-size:14px}
  .hlv-mobile-buy button,.hlv-mobile-buy a{align-items:center;border-radius:10px;display:flex;font-size:12px;font-weight:700;justify-content:center;min-height:42px;padding:8px 11px;text-decoration:none}
  .hlv-mobile-buy button{background:#fff!important;border:1px solid var(--hlv-border-strong);color:var(--hlv-deep)!important}
  .hlv-mobile-buy__primary{background:var(--hlv-primary)!important;border:1px solid var(--hlv-primary);color:var(--hlv-on-primary)!important}
  body.ed-storefront.single-product{padding-bottom:76px}
  .hlv-account-avatar-quick__choose,.ed-storefront #main .hlv-account-avatar-quick button.hlv-account-avatar-quick__remove{flex:1 1 0;min-height:44px}
}

@media(max-width:420px){
  .hlv-mobile-buy{grid-template-columns:minmax(0,1fr) auto}.hlv-mobile-buy>div{display:none}.hlv-mobile-buy button,.hlv-mobile-buy a{padding-inline:16px}
  .hlv-product-intro{padding:16px!important}
  .ed-storefront.single-product .product-info .com-preview-cta{align-items:center!important;display:grid!important;gap:10px!important;grid-template-columns:minmax(0,1fr) auto!important;padding:11px 12px!important}
  .ed-storefront.single-product .product-info .com-preview-cta>div{min-width:0}
  .ed-storefront.single-product .product-info .com-preview-cta span{display:none}
  .ed-storefront.single-product .product-info .com-preview-cta .button{min-height:42px;padding:8px 12px!important;width:auto!important}
  .ed-storefront.single-product .com-wl-btn,.ed-storefront #main .hlv-product-tools button{min-height:40px!important;padding:7px 6px!important}
}

@media(prefers-reduced-motion:reduce){.com-filter,.hlv-search-suggestions,.hlv-mobile-buy{transition:none}.hlv-search-skeleton{animation:none}}

