/* Trend eBooks - local rescue + polish CSS
   Loaded last so the static backup remains usable even when remote WP CSS is unavailable. */

:root{
  --te-blue:#0da9e6;
  --te-blue-dark:#0786b9;
  --te-red:#ef2b2d;
  --te-ink:#17202a;
  --te-muted:#667085;
  --te-line:#e5e7eb;
  --te-bg:#f7f9fc;
  --te-card:#ffffff;
  --te-radius:14px;
  --te-shadow:0 8px 28px rgba(17,24,39,.08);
}

html{box-sizing:border-box;scroll-behavior:smooth}
*,*::before,*::after{box-sizing:inherit}
body{
  margin:0 !important;
  background:var(--te-bg) !important;
  color:var(--te-ink) !important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%;height:auto}
a{color:var(--te-blue-dark);text-decoration:none}
a:hover{color:var(--te-red)}
ul,ol{padding-left:1.2rem}
.ast-container,
.site-primary-header-wrap,
.site-above-header-wrap,
.site-below-header-wrap,
.ast-builder-grid-row-container-inner{
  width:min(1200px,calc(100% - 32px)) !important;
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* ----- HEADER ----- */
.site-header{
  position:relative;
  z-index:999;
  background:#fff !important;
  border-bottom:1px solid var(--te-line);
  box-shadow:0 3px 16px rgba(17,24,39,.05);
}
#ast-desktop-header{display:block}
#ast-mobile-header{display:none}
.ast-above-header-wrap,
.ast-main-header-wrap,
.ast-below-header-wrap{background:#fff !important}
.ast-above-header-bar,
.ast-primary-header-bar,
.ast-below-header-bar{background:#fff !important;border:0 !important}
.ast-builder-grid-row{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:18px;
  width:100%;
}
.site-header-section{display:flex;align-items:center;justify-content:center}
.site-logo-img{display:inline-flex;align-items:center}
.custom-logo-link{display:inline-flex;align-items:center}
.custom-logo{
  width:auto !important;
  max-width:180px !important;
  max-height:82px !important;
  object-fit:contain;
}
.main-header-menu,
.ast-nav-menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
#ast-hf-menu-1{
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:3px;
}
#ast-hf-menu-1 > li{position:relative;margin:0}
#ast-hf-menu-1 > li > .menu-link{
  min-height:46px;
  display:flex !important;
  align-items:center;
  gap:7px;
  padding:10px 11px !important;
  border-radius:9px;
  color:#202833 !important;
  font-size:14px !important;
  font-weight:650 !important;
  line-height:1.2;
  transition:.18s ease;
}
#ast-hf-menu-1 > li > .menu-link:hover,
#ast-hf-menu-1 > .current-menu-item > .menu-link{
  color:var(--te-blue-dark) !important;
  background:#edf9fe !important;
}
#ast-hf-menu-1 .sub-menu{
  position:absolute !important;
  z-index:1000;
  top:calc(100% + 5px);
  left:0;
  display:none;
  min-width:230px;
  margin:0;
  padding:8px !important;
  list-style:none;
  background:#fff !important;
  border:1px solid var(--te-line) !important;
  border-radius:12px !important;
  box-shadow:var(--te-shadow) !important;
}
#ast-hf-menu-1 li:hover > .sub-menu,
#ast-hf-menu-1 li:focus-within > .sub-menu{display:block}
#ast-hf-menu-1 .sub-menu .menu-link{
  display:block;
  padding:9px 11px !important;
  border-radius:8px;
  color:#344054 !important;
  white-space:nowrap;
}
#ast-hf-menu-1 .sub-menu .menu-link:hover{background:#f2f7fb !important;color:var(--te-blue-dark) !important}
.ast-menu-toggle{border:0;background:transparent;padding:4px;cursor:pointer}

/* Local nav icons */
#menu-item-2618 > .menu-link::before,
#menu-item-291 > .menu-link::before,
#menu-item-2680 > .menu-link::before,
#menu-item-2621 > .menu-link::before,
#menu-item-2615 > .menu-link::before,
#menu-item-183 > .menu-link::before,
#menu-item-2637 > .menu-link::before,
#menu-item-2638 > .menu-link::before{
  content:"";
  width:17px;height:17px;
  display:inline-block;
  flex:0 0 17px;
  background:currentColor;
  -webkit-mask:center/contain no-repeat;
  mask:center/contain no-repeat;
}
#menu-item-2618 > .menu-link::before{-webkit-mask-image:url("icons/home.svg");mask-image:url("icons/home.svg")}
#menu-item-291 > .menu-link::before{-webkit-mask-image:url("icons/book.svg");mask-image:url("icons/book.svg")}
#menu-item-2680 > .menu-link::before{-webkit-mask-image:url("icons/grid.svg");mask-image:url("icons/grid.svg")}
#menu-item-2621 > .menu-link::before{-webkit-mask-image:url("icons/request.svg");mask-image:url("icons/request.svg")}
#menu-item-2615 > .menu-link::before{-webkit-mask-image:url("icons/info.svg");mask-image:url("icons/info.svg")}
#menu-item-183 > .menu-link::before{-webkit-mask-image:url("icons/mail.svg");mask-image:url("icons/mail.svg")}
#menu-item-2637 > .menu-link::before{-webkit-mask-image:url("icons/user.svg");mask-image:url("icons/user.svg")}
#menu-item-2638 > .menu-link::before{-webkit-mask-image:url("icons/user-plus.svg");mask-image:url("icons/user-plus.svg")}

/* Search */
.dgwt-wcas-search-wrapp{width:min(760px,100%) !important;margin:10px auto 14px !important}
.dgwt-wcas-search-form{width:100%}
.dgwt-wcas-sf-wrapp{position:relative !important;display:flex !important;align-items:center}
.dgwt-wcas-search-input{
  width:100% !important;
  height:46px !important;
  border:1px solid #d0d5dd !important;
  border-radius:12px !important;
  padding:0 52px 0 16px !important;
  background:#fff !important;
  color:#101828 !important;
  box-shadow:0 2px 8px rgba(17,24,39,.03);
  outline:none !important;
}
.dgwt-wcas-search-input:focus{border-color:var(--te-blue) !important;box-shadow:0 0 0 3px rgba(13,169,230,.12)}
.dgwt-wcas-search-submit{
  position:absolute !important;
  right:5px;top:5px;
  width:36px !important;height:36px !important;
  display:grid !important;place-items:center;
  padding:0 !important;
  border:0 !important;border-radius:9px !important;
  background:var(--te-blue) !important;
  color:#fff !important;
}
.dgwt-wcas-search-submit svg{width:18px;height:18px;fill:currentColor}

/* Cart icon fallback */
.astra-icon.ast-icon-shopping-bag{
  display:inline-block !important;
  width:21px !important;height:21px !important;
  background:var(--te-ink);
  -webkit-mask:url("icons/cart.svg") center/contain no-repeat;
  mask:url("icons/cart.svg") center/contain no-repeat;
  font-size:0 !important;
  vertical-align:middle;
  margin-left:6px;
}

/* ----- CONTENT ----- */
#content,.site-content,.site-main,.entry-content{min-width:0}
.site-content,.site-main{background:transparent !important}
.entry-content,.ast-woocommerce-container,.woocommerce-page .site-main{
  max-width:1200px;
  margin-left:auto !important;
  margin-right:auto !important;
}
.elementor-heading-title,h1,h2,h3,h4,h5,h6{
  color:#16202a !important;
  line-height:1.22 !important;
}
.elementor-heading-title{font-weight:750 !important}

/* ----- PRODUCT GRIDS ----- */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  margin:22px 0 34px !important;
  padding:0 !important;
  list-style:none !important;
}
.home .woocommerce.columns-3 ul.products,
.home .woocommerce ul.products.columns-3{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none !important}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  padding:14px 14px 16px !important;
  min-width:0;
  background:var(--te-card) !important;
  border:1px solid #e7eaf0 !important;
  border-radius:var(--te-radius) !important;
  box-shadow:0 5px 18px rgba(15,23,42,.05) !important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  overflow:hidden;
}
.woocommerce ul.products li.product:hover{
  transform:translateY(-3px);
  border-color:#cfeefb !important;
  box-shadow:0 12px 30px rgba(15,23,42,.10) !important;
}
.astra-shop-thumbnail-wrap{position:relative;overflow:hidden;border-radius:10px;background:#eef2f6}
.woocommerce ul.products li.product a img{
  display:block;
  width:100% !important;
  aspect-ratio:3/4;
  object-fit:cover !important;
  margin:0 !important;
  border-radius:10px;
}
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale{
  position:absolute !important;
  z-index:2;
  top:9px !important;left:9px !important;right:auto !important;
  min-width:auto !important;min-height:auto !important;
  line-height:1 !important;
  margin:0 !important;
  padding:7px 9px !important;
  border-radius:999px !important;
  background:var(--te-red) !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:750 !important;
}
.astra-shop-summary-wrap{padding-top:12px}
.ast-woo-product-category{
  display:block;
  color:var(--te-muted) !important;
  font-size:12px !important;
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.woocommerce-loop-product__title{
  margin:5px 0 7px !important;
  font-size:16px !important;
  font-weight:720 !important;
  line-height:1.35 !important;
  color:#17202a !important;
}
.woocommerce ul.products li.product .price{
  display:block !important;
  margin:6px 0 12px !important;
  color:var(--te-red) !important;
  font-size:16px !important;
  font-weight:750 !important;
}
.woocommerce ul.products li.product .price del{color:#98a2b3 !important;font-size:13px;opacity:1}
.woocommerce ul.products li.product .price ins{text-decoration:none !important}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.add_to_cart_button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 15px !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--te-blue) !important;
  color:#fff !important;
  font-weight:700 !important;
  box-shadow:none !important;
  transition:.18s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.add_to_cart_button:hover{background:var(--te-blue-dark) !important;color:#fff !important;transform:translateY(-1px)}

/* Shop controls */
.woocommerce-products-header,
.woocommerce .woocommerce-breadcrumb{margin:24px auto 10px}
.woocommerce .woocommerce-result-count{color:var(--te-muted);margin-top:10px}
.woocommerce .woocommerce-ordering select{
  min-height:42px;
  border:1px solid #d0d5dd;
  border-radius:9px;
  background:#fff;
  padding:7px 34px 7px 11px;
}

/* ----- CART ----- */
.woocommerce-cart-form,.cart_totals,.woocommerce-notices-wrapper{
  background:#fff;
  border:1px solid var(--te-line);
  border-radius:14px;
  box-shadow:0 5px 18px rgba(15,23,42,.04);
}
.woocommerce-cart-form{padding:14px;overflow-x:auto}
.woocommerce table.shop_table{width:100%;border-collapse:separate !important;border-spacing:0;border:0 !important}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{
  padding:13px !important;
  border-color:#edf0f3 !important;
}
.cart_totals{padding:18px;margin-top:22px}
.woocommerce .quantity .qty{
  width:74px !important;
  min-height:39px;
  border:1px solid #d0d5dd !important;
  border-radius:8px;
}

/* ----- FOOTER / NEWSLETTER ----- */
.site-footer{
  margin-top:46px;
  background:#101828 !important;
  color:#e4e7ec !important;
}
.site-above-footer-wrap,
.site-below-footer-wrap{background:transparent !important}
.site-footer .tnp-subscription{
  width:min(860px,calc(100% - 24px)) !important;
  height:auto !important;
  margin:30px auto !important;
  padding:28px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#dff6ff,#ecfaff) !important;
  box-shadow:0 14px 32px rgba(0,0,0,.12) !important;
}
.site-footer .tnp-subscription h2{margin:0 0 8px !important;color:#0f172a !important;font-size:28px !important;font-weight:800 !important}
.site-footer .tnp-subscription p{color:#344054 !important}
.site-footer .tnp-field-email,
.site-footer .tnp-field-button{max-width:520px;margin:0 auto !important}
.site-footer .tnp-email,
.site-footer input[type="email"]{
  width:100% !important;
  height:46px !important;
  padding:0 14px !important;
  border:1px solid #b9c7d2 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#111827 !important;
}
.site-footer .tnp-submit{
  display:block !important;
  width:150px !important;
  height:43px !important;
  margin:14px auto 0 !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--te-blue) !important;
  color:#fff !important;
  font-weight:750 !important;
}
.site-below-footer-inner-wrap{
  display:grid !important;
  grid-template-columns:1fr 2fr !important;
  gap:25px;
  align-items:start;
  padding:22px 0 28px;
}
.site-footer a{color:#e4e7ec !important}
.site-footer a:hover{color:#7dd3fc !important}
#astra-footer-menu{
  display:flex !important;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px 16px;
  list-style:none;
  margin:0 !important;
  padding:0 !important;
}
.ast-footer-copyright p{margin:0;color:#98a2b3}

/* Inputs */
input,select,textarea,button{font:inherit}
input[type="text"],input[type="email"],input[type="search"],input[type="number"],input[type="password"],textarea,select{
  border:1px solid #d0d5dd;
  border-radius:9px;
  background:#fff;
  color:#101828;
}
input:focus,textarea:focus,select:focus{
  outline:0 !important;
  border-color:var(--te-blue) !important;
  box-shadow:0 0 0 3px rgba(13,169,230,.12) !important;
}

/* ----- MOBILE ----- */
@media (max-width:921px){
  #ast-desktop-header{display:none !important}
  #ast-mobile-header{display:block !important;background:#fff}
  .ast-primary-header-bar{padding:8px 0 !important}
  .site-header-primary-section-center{justify-content:space-between !important;width:100%}
  .ast-builder-layout-element{width:auto}
  .menu-toggle.main-header-menu-toggle{
    display:inline-grid !important;
    place-items:center;
    width:44px;height:44px;
    padding:0 !important;
    border:1px solid #dfe3e8 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#17202a !important;
  }
  #ast-hf-menu-1-mobile{
    display:flex !important;
    flex-direction:column;
    gap:2px;
    margin:0 !important;
    padding:10px 14px 16px !important;
    background:#fff !important;
  }
  #ast-hf-menu-1-mobile li{width:100%;list-style:none}
  #ast-hf-menu-1-mobile .menu-link{
    display:flex !important;
    align-items:center;
    width:100%;
    padding:11px 10px !important;
    border-radius:8px;
    color:#26323f !important;
  }
  #ast-hf-menu-1-mobile .menu-link:hover{background:#f2f7fb !important}
  #ast-hf-menu-1-mobile .sub-menu{
    position:static !important;
    width:100% !important;
    box-shadow:none !important;
    border:0 !important;
    padding:2px 0 3px 14px !important;
    background:#f8fafc !important;
  }
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .home .woocommerce.columns-3 ul.products,
  .home .woocommerce ul.products.columns-3{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{padding:10px 10px 13px !important}
  .site-below-footer-inner-wrap{grid-template-columns:1fr !important;text-align:center}
  #astra-footer-menu{justify-content:center !important}
}
@media (max-width:560px){
  .ast-container,
  .site-primary-header-wrap,
  .site-above-header-wrap,
  .site-below-header-wrap,
  .ast-builder-grid-row-container-inner{width:min(100% - 20px,1200px) !important}
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .home .woocommerce.columns-3 ul.products,
  .home .woocommerce ul.products.columns-3{gap:10px !important}
  .woocommerce-loop-product__title{font-size:14px !important}
  .woocommerce ul.products li.product .price{font-size:14px !important}
  .woocommerce a.button,.add_to_cart_button{width:100%;font-size:13px}
  .site-footer .tnp-subscription{padding:20px 16px !important}
  .site-footer .tnp-subscription h2{font-size:23px !important}
}
