/* HEMPCITY Frontend v6.5.3 — visible rebuild: cart, cards, newsletter, account */

/* 01 — One product-card language everywhere */
body .hc-v6-product-card,
body.woocommerce ul.products li.product,
body .wc-block-grid__product,
body .wp-block-woocommerce-product-collection .wc-block-product {
  display:flex!important; flex-direction:column!important; min-width:0!important;
  background:#fff!important; border:1px solid #e3e1db!important; border-radius:0!important;
  box-shadow:none!important; overflow:hidden!important; padding:0!important;
}
body .hc-v6-product-card__media,
body.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body .wc-block-grid__product-image,
body .wc-block-components-product-image {
  display:flex!important; align-items:center!important; justify-content:center!important;
  aspect-ratio:1/1!important; min-height:0!important; padding:22px!important; background:#fff!important;
  overflow:hidden!important;
}
body .hc-v6-product-card__media img,
body.woocommerce ul.products li.product img,
body .wc-block-grid__product-image img,
body .wc-block-components-product-image img {
  width:100%!important; height:100%!important; max-height:330px!important; object-fit:contain!important; margin:0!important;
}
body .hc-v6-product-card__body,
body.woocommerce ul.products li.product .astra-shop-summary-wrap,
body .wc-block-grid__product > :not(.wc-block-grid__product-image) {
  padding-left:24px!important; padding-right:24px!important;
}
body .hc-v6-product-card__body {display:flex!important;flex:1!important;flex-direction:column!important;padding:24px!important;background:#f8f7f4!important;}
body .hc-v6-product-card h3,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body .wc-block-grid__product-title {
  min-height:2.7em!important; margin:8px 0 18px!important; font-size:18px!important; line-height:1.35!important;
  font-weight:720!important; color:#111!important; display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
body .hc-v6-product-card__category,
body.woocommerce ul.products li.product .ast-woo-product-category,
body .wc-block-grid__product .wc-block-grid__product-title + * {
  color:#85857f!important; font-size:11px!important; font-weight:750!important; letter-spacing:.12em!important; text-transform:uppercase!important;
}
body .hc-v6-product-card__bottom {margin-top:auto!important;display:flex!important;flex-direction:column!important;gap:18px!important;}
body .hc-v6-product-card__bottom strong,
body.woocommerce ul.products li.product .price,
body .wc-block-grid__product-price {font-size:21px!important;font-weight:760!important;color:#111!important;}
body .hc-v6-product-card .button,
body.woocommerce ul.products li.product .button,
body .wc-block-grid__product-add-to-cart a,
body .wp-block-button.wc-block-components-product-button .wp-block-button__link {
  width:100%!important; min-height:54px!important; display:flex!important; align-items:center!important; justify-content:center!important;
  margin:0!important; padding:0 20px!important; border:0!important; border-radius:0!important; background:#111!important; color:#fff!important;
  font-size:14px!important; font-weight:750!important; text-decoration:none!important;
}
/* Kill every broken/floating bag pseudo icon. CTA remains clean and reliable. */
body .add_to_cart_button::before, body .add_to_cart_button::after,
body .hc-v6-product-card .button::before, body .hc-v6-product-card .button::after,
body.woocommerce ul.products li.product .button::before, body.woocommerce ul.products li.product .button::after {content:none!important;display:none!important;}

/* Homepage grid exactly follows archive cards */
.home .hc-v6-product-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important;}

/* 02 — Newsletter: visibly new, calmer and shorter */
.home .hc-v6-newsletter{background:#111!important;padding:0!important;margin:0 auto!important;max-width:calc(var(--hc-container,1480px) + 0px)!important;}
.home .hc-v6-newsletter__grid{display:grid!important;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr)!important;gap:0!important;align-items:stretch!important;}
.home .hc-v6-newsletter__visual{margin:0!important;min-height:560px!important;overflow:hidden!important;}
.home .hc-v6-newsletter__visual img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;}
.home .hc-v6-newsletter__content{display:flex!important;flex-direction:column!important;justify-content:center!important;padding:64px clamp(42px,5vw,80px)!important;}
.home .hc-v6-newsletter h2{max-width:720px!important;margin:14px 0 18px!important;font-size:clamp(44px,4.5vw,70px)!important;line-height:.98!important;letter-spacing:-.045em!important;color:#fff!important;}
.home .hc-v6-newsletter__copy>p:not(.hc-v6-eyebrow){max-width:540px!important;margin:0!important;color:#bbb!important;font-size:17px!important;line-height:1.55!important;}
.home .hc-v6-newsletter__benefits{margin:26px 0 30px!important;gap:10px 24px!important;}
.home .hc-v6-newsletter__fields{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;}
.home .hc-v6-newsletter input[type=email],.home .hc-v6-newsletter button{min-height:58px!important;border-radius:0!important;}
.home .hc-v6-newsletter button{background:#fff!important;color:#111!important;border-color:#fff!important;}

/* 03 — Cart: rebuild Woo Blocks into a stable 2-column premium layout */
body.woocommerce-cart main, body.woocommerce-cart .site-main, body.woocommerce-cart .entry-content{max-width:none!important;width:100%!important;}
body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart{max-width:1400px!important;margin:0 auto!important;padding:72px 32px 110px!important;}
body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr) 390px!important;gap:40px!important;align-items:start!important;width:100%!important;
}
body.woocommerce-cart .wc-block-cart__main{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;}
body.woocommerce-cart .wc-block-cart__sidebar{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;position:sticky!important;top:130px!important;}
body.woocommerce-cart table.wc-block-cart-items{display:block!important;width:100%!important;border:1px solid #e3e1db!important;background:#fff!important;table-layout:auto!important;}
body.woocommerce-cart .wc-block-cart-items thead{display:block!important;background:#f6f5f2!important;}
body.woocommerce-cart .wc-block-cart-items thead tr{display:grid!important;grid-template-columns:140px minmax(0,1fr) 120px!important;}
body.woocommerce-cart .wc-block-cart-items tbody{display:block!important;}
body.woocommerce-cart .wc-block-cart-items__row{
  display:grid!important;grid-template-columns:140px minmax(0,1fr) 120px!important;gap:26px!important;align-items:center!important;
  width:100%!important;padding:28px!important;border-bottom:1px solid #e3e1db!important;
}
body.woocommerce-cart .wc-block-cart-items__row:last-child{border-bottom:0!important;}
body.woocommerce-cart .wc-block-cart-item__image,
body.woocommerce-cart .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart-item__total{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;position:static!important;}
body.woocommerce-cart .wc-block-cart-item__image img{width:130px!important;height:130px!important;object-fit:contain!important;background:#fff!important;}
body.woocommerce-cart .wc-block-components-product-name{display:block!important;font-size:20px!important;line-height:1.3!important;font-weight:750!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;}
body.woocommerce-cart .wc-block-components-product-metadata{max-width:600px!important;font-size:14px!important;line-height:1.5!important;color:#666!important;}
body.woocommerce-cart .wc-block-cart-item__total{text-align:right!important;align-self:start!important;font-size:18px!important;font-weight:750!important;}
body.woocommerce-cart .wc-block-cart__sidebar{border:1px solid #e3e1db!important;background:#f6f5f2!important;}
body.woocommerce-cart .wc-block-cart__sidebar > *{padding-left:30px!important;padding-right:30px!important;}
body.woocommerce-cart .wc-block-cart__submit{padding:0 30px 30px!important;}
body.woocommerce-cart .wc-block-cart__submit-button{min-height:62px!important;border-radius:0!important;background:#111!important;color:#fff!important;font-weight:760!important;}
body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block{max-width:1400px!important;margin:0 auto!important;padding:0 32px 110px!important;}
body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product{min-width:0!important;}
body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .wc-block-grid__products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;}

/* 04 — My Account: editorial page system, no giant empty top */
body.woocommerce-account .site-content{background:#f6f5f2!important;}
body.woocommerce-account .entry-content, body.woocommerce-account .woocommerce{max-width:1280px!important;margin:0 auto!important;}
body.woocommerce-account .entry-content{padding:70px 28px 110px!important;}
body.woocommerce-account .hc-account-shell, body.woocommerce-account .woocommerce{color:#111!important;}
body.woocommerce-account .hc-account-hero{margin:0 0 36px!important;padding:50px 54px!important;background:#111!important;color:#fff!important;}
body.woocommerce-account .hc-account-hero h1, body.woocommerce-account .hc-account-hero p{color:#fff!important;}
body.woocommerce-account .woocommerce-MyAccount-navigation{margin:0 0 24px!important;background:#fff!important;border:1px solid #deded8!important;}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex!important;flex-wrap:wrap!important;gap:0!important;margin:0!important;padding:10px!important;list-style:none!important;}
body.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0!important;}
body.woocommerce-account .woocommerce-MyAccount-navigation a{display:flex!important;min-height:50px!important;align-items:center!important;padding:0 20px!important;color:#555!important;font-weight:680!important;text-decoration:none!important;}
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:#111!important;color:#fff!important;}
body.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important;padding:46px!important;background:#fff!important;border:1px solid #deded8!important;}
body.woocommerce-account .hc-account-dashboard-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;}
body.woocommerce-account .hc-account-card{min-height:210px!important;padding:30px!important;background:#f8f7f4!important;border:1px solid #deded8!important;}
body.woocommerce-account table.shop_table{border:0!important;background:#fff!important;}
body.woocommerce-account table.shop_table th{background:#f6f5f2!important;padding:18px!important;font-size:12px!important;letter-spacing:.1em!important;text-transform:uppercase!important;}
body.woocommerce-account table.shop_table td{padding:20px 18px!important;border-bottom:1px solid #e3e1db!important;}
body.woocommerce-account input,body.woocommerce-account select,body.woocommerce-account textarea{min-height:58px!important;border:1px solid #c7c4bc!important;border-radius:0!important;background:#fff!important;}
body.woocommerce-account button.button,body.woocommerce-account a.button{min-height:52px!important;border-radius:0!important;background:#111!important;color:#fff!important;padding:0 26px!important;}

@media(max-width:1024px){
 .home .hc-v6-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .home .hc-v6-newsletter__grid{grid-template-columns:1fr!important;}
 .home .hc-v6-newsletter__visual{min-height:420px!important;}
 body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar-layout{grid-template-columns:1fr!important;}
 body.woocommerce-cart .wc-block-cart__sidebar{position:static!important;}
 body.woocommerce-account .hc-account-dashboard-grid{grid-template-columns:1fr!important;}
}
@media(max-width:680px){
 .home .hc-v6-product-grid{grid-template-columns:1fr!important;}
 .home .hc-v6-newsletter__content{padding:44px 24px!important;}
 .home .hc-v6-newsletter__fields{grid-template-columns:1fr!important;}
 body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart{padding:42px 16px 80px!important;}
 body.woocommerce-cart .wc-block-cart-items__row{grid-template-columns:86px minmax(0,1fr)!important;gap:16px!important;padding:18px!important;}
 body.woocommerce-cart .wc-block-cart-item__image img{width:82px!important;height:82px!important;}
 body.woocommerce-cart .wc-block-cart-item__total{grid-column:2!important;text-align:left!important;}
 body.woocommerce-account .entry-content{padding:40px 16px 80px!important;}
 body.woocommerce-account .hc-account-hero{padding:34px 24px!important;}
 body.woocommerce-account .woocommerce-MyAccount-content{padding:24px!important;}
}
