/*
Theme Name: Maketify
Template: astra
Description: Lightweight Astra child theme for the Maketify store.
Version: 1.0.18
Text Domain: maketify
*/

/* ---------- Home ---------- */
.mk-hero {
  background: #f5f5f4;
  border-radius: 16px;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px);
  margin: 24px 0 40px;
  text-align: center;
}
.mk-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.mk-hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #4b5563;
  max-width: 560px;
  margin: 0 auto 28px;
}
.mk-btn,
.mk-btn:visited {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.mk-btn:hover, .mk-btn:focus { background: #e4572e; color: #fff; }

.mk-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.mk-trust li {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 12px;
  font-size: 15px;
}
.mk-trust strong { display: block; color: #111; font-size: 16px; }

.mk-section { margin: 0 0 48px; }
.mk-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.mk-section-head h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.mk-section-head a { font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .mk-trust { grid-template-columns: 1fr; }
}

/* ---------- Product cards ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.woocommerce ul.products li.product .price { color: #111; font-weight: 600; }
.woocommerce ul.products li.product a img {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f4;
}
.woocommerce span.onsale { background: #e4572e; }

/* Contact page */
.mk-contact { max-width: 640px; }

/* ---------- Layout fixes ---------- */
.home #primary { margin-top: 0; padding-top: 0; }
.home .site-content > .ast-container { padding-top: 8px; }
.mk-trust { margin-left: 0; margin-right: 0; }
.mk-btn, .mk-btn:hover, .mk-section-head a { text-decoration: none; }
/* Hide a product section until it has products */
.mk-section:not(:has(ul.products li)) { display: none; }

/* Header & footer */
.ast-primary-header-bar { background: #fff; border-bottom: 1px solid #e5e7eb; }
.site-below-footer-wrap[data-section="section-below-footer-builder"] { background: #fafaf9; border-top: 1px solid #e5e7eb; }
.ast-site-header-cart .ast-cart-menu-wrap .count,
.ast-site-header-cart .ast-addon-cart-wrap { border: 0; }
.mk-footer-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.mk-footer-links a { color: #4b5563; text-decoration: none; font-size: 15px; }
.mk-footer-links a:hover { color: #111; }
@media (max-width: 921px) { .mk-footer-links { justify-content: center; } }
.entry-content ul.mk-trust { margin: 0 0 48px; padding: 0; }
.entry-content a.mk-btn, .entry-content a.mk-btn:hover, .entry-content .mk-section-head a { text-decoration: none; }
.mk-section .woocommerce ul.products { margin-bottom: 0; }
.mk-section .woocommerce ul.products li.product { margin-bottom: 1.5em; }

/* ---------- Single product ---------- */
body, body.ast-separate-container, .ast-separate-container .ast-article-single,
.ast-separate-container .ast-woocommerce-container { background: #fff; }
.single-product #primary, .woocommerce-shop #primary, .tax-product_cat #primary { margin-top: 32px; }
.single-product div.product .product_title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 8px; }
.single-product div.product p.price { color: #111; font-size: 26px; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 12px; }
.single-product div.product form.cart .button { padding: 14px 36px; }
.woocommerce-tabs #reviews #review_form_wrapper #respond { border-color: #e5e7eb; border-radius: 12px; }
.single-product .site-content > .ast-container,
.woocommerce-shop .site-content > .ast-container,
.tax-product_cat .site-content > .ast-container { padding-top: 32px; }
.entry-content .mk-trust li a { color: #4b5563; text-decoration: none; }
.entry-content .mk-trust li a:hover { color: #111; text-decoration: underline; }
/* Policy pages */
body.page:not(.home):not(.woocommerce-page) .entry-content table { border-collapse: collapse; max-width: 520px; }
body.page:not(.home):not(.woocommerce-page) .entry-content th, body.page:not(.home):not(.woocommerce-page) .entry-content td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; }
body.page:not(.home):not(.woocommerce-page) .entry-content h2 { font-size: 22px; margin-top: 1.6em; }
body.page:not(.home):not(.woocommerce-page) .site-content > .ast-container { padding-top: 40px; padding-bottom: 24px; }
body.page:not(.home):not(.woocommerce-page) .entry-content { max-width: 820px; }

/* ---------- Image hero ---------- */
.mk-hero--img {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  min-height: clamp(380px, 46vw, 560px);
  display: flex;
  align-items: center;
  background: #2b2b2b;
}
.mk-hero--img .mk-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  border-radius: 0;
}
.mk-hero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.72) 0%, rgba(17,17,17,.45) 45%, rgba(17,17,17,0) 75%);
}
.mk-hero--img .mk-hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
}
.mk-hero--img h1 { color: #fff; }
.mk-hero--img p { color: rgba(255,255,255,.88); margin-left: 0; }
.mk-hero--img .mk-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}
.entry-content a.mk-btn--light, .entry-content a.mk-btn--light:visited { background: #fff; color: #111; }
.entry-content a.mk-btn--light:hover, .entry-content a.mk-btn--light:focus { background: #e4572e; color: #fff; }
@media (max-width: 640px) {
  .mk-hero--img { min-height: 440px; align-items: flex-end; }
  .mk-hero--img::after { background: linear-gradient(0deg, rgba(17,17,17,.8) 0%, rgba(17,17,17,.4) 55%, rgba(17,17,17,.1) 100%); }
  .mk-hero--img .mk-hero__img { object-position: 35% 50%; }
}
.mk-hero--img > p:first-of-type { display: contents; } /* wpautop wraps the <img> in <p> */
.mk-hero--img > br { display: none; }

/* ---------- Footer info ---------- */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] { background: #fafaf9; border-top: 1px solid #e5e7eb; padding: 48px 0 32px; }
.mk-footer-info { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; text-align: left; }
.mk-footer-info p, .mk-footer-info address { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #4b5563; font-style: normal; }
.mk-footer-info .mk-footer-title { color: #111; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.mk-footer-info a { color: #111; text-decoration: none; font-weight: 500; }
.mk-footer-info a:hover { color: #e4572e; }
.site-below-footer-wrap[data-section="section-below-footer-builder"] { border-top: 1px solid #e5e7eb; }
@media (max-width: 768px) { .mk-footer-info { grid-template-columns: 1fr; gap: 20px; text-align: center; } }
/* Footer rows aligned with header container */
.site-footer .ast-builder-grid-row-container .ast-builder-grid-row { max-width: 1280px; padding-left: 20px; padding-right: 20px; box-sizing: border-box; margin-left: auto; margin-right: auto; }
.site-footer .ast-footer-copyright, .site-footer .ast-footer-copyright p { margin: 0; padding: 0; }
.site-below-footer-wrap[data-section="section-below-footer-builder"] { padding-top: 22px; padding-bottom: 22px; }
.site-footer .ast-footer-copyright { text-align: left; }
.mk-footer-links { gap: 6px 18px; }
@media (max-width: 1000px) {
  .site-below-footer-wrap .ast-builder-grid-row { grid-template-columns: 1fr !important; row-gap: 10px; }
  .site-footer .ast-footer-copyright, .mk-footer-links { text-align: center; justify-content: center; }
}
.mk-footer-info .mk-footer-entity { color: #111; font-weight: 500; }

/* ---------- Cart & checkout ---------- */
.woocommerce-cart .site-content > .ast-container,
.woocommerce-checkout .site-content > .ast-container,
.woocommerce-account .site-content > .ast-container { padding-top: 40px; padding-bottom: 24px; }
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table { border: 1px solid #e5e7eb; border-radius: 12px; border-collapse: separate; overflow: hidden; }
.woocommerce-cart table.shop_table th, .woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { border-color: #e5e7eb; }
.woocommerce-cart .cart-collaterals .cart_totals { border: 1px solid #e5e7eb; border-radius: 12px; padding: 0 20px 20px; }
.woocommerce-cart .cart-collaterals .cart_totals > h2 { background: transparent; border: 0; padding: 20px 0 8px; margin: 0; font-size: 22px; }
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table { border: 0; }
.woocommerce-cart table.cart td.product-name a { color: #111; font-weight: 500; text-decoration: none; }
.woocommerce-cart table.cart img { width: 80px; border-radius: 8px; }
.woocommerce-cart .woocommerce-message, .woocommerce-checkout .woocommerce-info { border: 1px solid #e5e7eb; border-radius: 12px; }
.woocommerce-cart .cart_totals table.shop_table th, .woocommerce-cart .cart_totals table.shop_table td { border-top: 1px solid #e5e7eb !important; border-bottom: 0 !important; }
.woocommerce-cart .cart_totals table.shop_table tr:first-child th, .woocommerce-cart .cart_totals table.shop_table tr:first-child td { border-top: 0 !important; }
.mk-free-ship { background: #f5f5f4; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 15px; color: #111; }
.mk-free-ship strong { color: #e4572e; }
.mk-free-ship__bar { height: 6px; background: #e5e7eb; border-radius: 999px; margin-top: 10px; overflow: hidden; }
.mk-free-ship__bar span { display: block; height: 100%; background: #111; border-radius: 999px; }
.woocommerce-checkout form #order_review, .woocommerce-checkout form #order_review_heading { border-color: #e5e7eb; }
.woocommerce-checkout form #order_review { border-radius: 0 0 12px 12px; }
.woocommerce-checkout form #order_review_heading { border-radius: 12px 12px 0 0; }
.woocommerce-checkout #order_review table.shop_table { border: 0; }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { border-color: #e5e7eb; }
body.woocommerce-checkout form #order_review, body.woocommerce-checkout form #order_review_heading { border-color: #e5e7eb !important; border-width: 1px !important; }
