/**
 * Shop / WooCommerce styles — loaded only on shop, product, cart, checkout, account
 */

/* Shop layout */
.hm-shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  align-items: start;
}

.hm-filter-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  padding: 1.7rem;
  position: sticky;
  top: 130px;
}

.hm-filter-panel h3 {
  font-family: var(--hm-font-display);
  font-size: 1rem;
  color: var(--hm-sand);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-fg {
  margin-bottom: 1.4rem;
}

.hm-fg__title {
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hm-faint);
  margin-bottom: 0.6rem;
  display: block;
}

.hm-fcheck {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 200;
  color: var(--hm-dim);
}

.hm-fcheck input {
  accent-color: var(--hm-sand);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Bundle banner */
.hm-bundle-banner {
  background: linear-gradient(135deg, rgba(46, 139, 122, 0.18), rgba(212, 169, 106, 0.1));
  border: 1px solid rgba(212, 169, 106, 0.28);
  border-radius: var(--hm-r);
  padding: 2.3rem 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hm-bundle-orig {
  text-decoration: line-through;
  color: var(--hm-faint);
  font-size: 0.82rem;
}

.hm-bundle-price {
  font-family: var(--hm-font-display);
  font-size: 2.6rem;
  color: var(--hm-sand);
  font-weight: 600;
}

.hm-bundle-save {
  font-size: 0.63rem;
  color: var(--hm-jade);
  letter-spacing: 0.1em;
}

/* Product card overrides for WC */
.woocommerce ul.products li.product .price {
  font-family: var(--hm-font-display);
  font-size: 1.2rem;
  color: var(--hm-sand);
  font-weight: 600;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hm-font-display);
  color: var(--hm-white);
  font-size: 1.1rem;
}

/* Single product page */
.hm-prod-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.hm-book-wrap {
  position: sticky;
  top: 130px;
}

.hm-book-3d {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--hm-r);
  overflow: hidden;
  position: relative;
  box-shadow: 14px 22px 60px rgba(0, 0, 0, 0.55), -5px 0 0 rgba(0, 0, 0, 0.28);
}

.hm-book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.hm-pdf-badge {
  display: inline-block;
  background: rgba(46, 139, 122, 0.15);
  border: 1px solid rgba(46, 139, 122, 0.3);
  color: var(--hm-jade);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hm-pages-count {
  font-size: 0.7rem;
  color: var(--hm-dim);
  font-weight: 200;
  margin-bottom: 1rem;
}

.hm-guarantee {
  background: rgba(212, 169, 106, 0.08);
  border: 1px solid rgba(212, 169, 106, 0.2);
  color: var(--hm-cream);
  padding: 0.85rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 200;
  text-align: center;
  margin: 1rem 0;
}

/* Cart table */
.woocommerce table.shop_table {
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hm-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce table.shop_table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  color: var(--hm-cream);
}

/* Checkout */
.woocommerce-checkout #payment {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  padding: 1.5rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hm-border);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  color: var(--hm-white);
  font-family: var(--hm-font-body);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--hm-sand);
  outline: none;
}

/* My Account */
.woocommerce-MyAccount-navigation ul {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  padding: 1rem;
  list-style: none;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 0.25rem;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  color: var(--hm-dim);
  transition: all 0.25s;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(212, 169, 106, 0.12);
  color: var(--hm-sand);
}

/* Library grid (custom my-account/library endpoint) */
.hm-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.hm-lib-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  padding: 1.5rem;
}

.hm-lib-card h3 {
  font-family: var(--hm-font-display);
  font-size: 1.05rem;
  color: var(--hm-cream);
  margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
  .hm-shop-layout,
  .hm-prod-layout {
    grid-template-columns: 1fr;
  }
  .hm-filter-panel,
  .hm-book-wrap {
    position: static;
  }
}

@media (max-width: 768px) {
  .hm-bundle-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hm-book-3d {
    max-width: 240px;
    margin: 0 auto;
  }
}


/* v1.0.15 ebook/card UX */
.hm-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
.hm-shop-products .woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}
.hm-shop-products .woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price {
  font-size: .98rem !important;
  line-height: 1.25 !important;
}
.hm-shop-products .woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .button {
  font-size: .76rem !important;
  letter-spacing: .12em !important;
  border-radius: 999px !important;
}


/* v1.0.16 — Shop archive with hero, sidebar and product grid */
.hm-shop-archive-hero{padding-top:4.8rem!important;padding-bottom:4.8rem!important;background:linear-gradient(155deg,#091f1d 0%,#0d3d3a 55%,#152e2b 100%)!important;}
.hm-shop-archive-main .section{padding-top:5rem!important;}
.hm-shop-catalog-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:3rem;align-items:start;}
.hm-shop-sidebar{position:sticky;top:calc(var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
body.admin-bar .hm-shop-sidebar{top:calc(32px + var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
.hm-shop-widget{background:rgba(255,255,255,.04);border:1px solid var(--hm-border);border-radius:var(--hm-r);padding:1.45rem;margin-bottom:1.25rem;}
.hm-shop-widget h3{font-size:1.2rem!important;color:var(--hm-sand);margin:0 0 1rem!important;}
.hm-shop-widget ul{list-style:none!important;margin:0!important;padding:0!important;}
.hm-shop-widget li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid rgba(255,255,255,.06);padding:.58rem 0;margin:0!important;color:rgba(244,237,224,.65);}
.hm-shop-widget li:last-child{border-bottom:0;}
.hm-shop-widget a{color:rgba(244,237,224,.76);text-decoration:none;}
.hm-shop-widget a:hover{color:var(--hm-sand);}
.hm-shop-products-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.4rem;flex-wrap:wrap;}
.hm-shop-products-head h2{font-size:clamp(1.8rem,3vw,2.5rem)!important;margin:0!important;}
.hm-shop-products .woocommerce-result-count{color:rgba(244,237,224,.55);font-size:.9rem;}
.hm-shop-products .woocommerce-ordering select{background:rgba(255,255,255,.07);border:1px solid var(--hm-border);color:var(--hm-cream);border-radius:.7rem;padding:.65rem .9rem;}
.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.6rem!important;margin:1rem 0 0!important;}
.hm-shop-products .woocommerce ul.products li.product,.woocommerce-page .hm-shop-products ul.products li.product{width:auto!important;margin:0!important;background:rgba(255,255,255,.04);border:1px solid var(--hm-border);border-radius:1.15rem;overflow:hidden;padding:0 0 1.25rem!important;}
.hm-shop-products ul.products li.product img{aspect-ratio:3/4;object-fit:cover;margin:0 0 1rem!important;width:100%;}
.hm-shop-products ul.products li.product .woocommerce-loop-product__title{font-size:1.35rem!important;line-height:1.18!important;padding:0 1.15rem!important;margin:.35rem 0 .55rem!important;}
.hm-shop-products ul.products li.product .price{font-size:1.05rem!important;padding:0 1.15rem!important;color:var(--hm-sand)!important;}
.hm-shop-products ul.products li.product .button{margin:.75rem 1.15rem 0!important;background:var(--hm-coral)!important;color:var(--hm-white)!important;border-radius:999px!important;padding:.72rem 1rem!important;font-size:.78rem!important;letter-spacing:.1em;text-transform:uppercase;}
.hm-shop-products .woocommerce-pagination{margin-top:2.5rem;}
.hm-shop-products .woocommerce-pagination ul{border:0!important;display:flex;gap:.45rem;justify-content:center;}
.hm-shop-products .woocommerce-pagination li{border:0!important;}
.hm-shop-products .woocommerce-pagination a,.hm-shop-products .woocommerce-pagination span{background:rgba(255,255,255,.05)!important;border:1px solid var(--hm-border)!important;color:var(--hm-cream)!important;border-radius:.6rem!important;min-width:42px;padding:.65rem .8rem!important;}
.hm-shop-products .woocommerce-pagination .current{background:var(--hm-sand)!important;color:var(--hm-lava)!important;}
@media(max-width:1100px){.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:900px){.hm-shop-catalog-layout{grid-template-columns:1fr}.hm-shop-sidebar{position:static}.hm-shop-products-head{align-items:flex-start}.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{grid-template-columns:1fr!important;}}
/* END v1.0.16 */
