/*
Theme Name:   WebpressHub.net
Theme URI:    https://webpresshub.net/readymade-designs/
Description:  Its a GeneratePress child theme for Digital Product website by WebpressHub
Author:       Teckshop.net
Author URI:   https://WebpressHub.net/
Template:     generatepress
Version:      0.1
*/

/* ==========================================================================
   Brand Color System: MSH Global Zone
   - Primary Brand Navy:   #0A2540 / #0F3B73 (from "MSH" letters & globe)
   - Vibrant Brand Green:  #16A34A / #22C55E (from "Global Zone" & swoosh)
   - Rating Gold:          #F59E0B (standard high-end eCommerce gold)
   - Soft Border:          #E2E8F0
   - Clean Card BG:        #FFFFFF / #F8FAFC
   ========================================================================== */

/* Header Navigation Layout & Responsive Rules */
@media (max-width: 1024px) {
  .elementor-element-mshnavc,
  .elementor-element-mshnavw {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (min-width: 1025px) {
  .elementor-element-mshnavc {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    max-width: 65% !important;
  }

  .elementor-element-mshnavw {
    display: block !important;
    width: 100% !important;
  }

  .elementor-element-mshnavw .elementor-nav-menu--main {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .elementor-element-mshnavw .elementor-nav-menu--main > li {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .elementor-element-mshnavw .elementor-nav-menu--main .elementor-item {
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
    color: #0A2540 !important;
    transition: color 0.2s ease-in-out !important;
  }

  .elementor-element-mshnavw .elementor-nav-menu--main .elementor-item:hover,
  .elementor-element-mshnavw .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #16A34A !important;
  }

  .elementor-element-mshnavw .elementor-nav-menu--main .elementor-item i.fa-shopping-cart,
  .elementor-element-mshnavw .elementor-nav-menu--main .elementor-item i.fas.fa-shopping-cart {
    font-size: 18px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    color: #16A34A !important;
  }
}

/* Header Logo Styling */
.elementor-2146 .elementor-element.elementor-element-b70777d,
.elementor-element-b70777d,
.elementor-element-b70777d.elementor-widget-theme-site-logo,
.elementor-element-b70777d.elementor-widget-image {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.elementor-2146 .elementor-element.elementor-element-b70777d img,
.elementor-element-b70777d img,
.elementor-widget-theme-site-logo img {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  object-fit: contain !important;
  height: 48px !important;
  width: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.2s ease !important;
}

.elementor-2146 .elementor-element.elementor-element-b70777d img:hover,
.elementor-element-b70777d img:hover {
  transform: scale(1.03) !important;
}

@media (max-width: 767px) {
  .elementor-2146 .elementor-element.elementor-element-b70777d img,
  .elementor-element-b70777d img {
    height: 38px !important;
    width: auto !important;
  }
}

/* 4-Column Product Grid & Brand Color Harmonization */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 0 0 40px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 767px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 14px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 3px 12px rgba(10, 37, 64, 0.04) !important;
  position: relative !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.09) !important;
  border-color: #CBD5E1 !important;
}

.woocommerce ul.products li.product > a.woocommerce-loop-product__link,
.woocommerce-page ul.products li.product > a.woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  text-decoration: none !important;
  margin-bottom: 12px !important;
}

/* Product Thumbnail with Soft Modern Border */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.02) !important;
}

/* Product Title in Brand Navy */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  color: #0A2540 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 4px 0 6px 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: #16A34A !important;
}

/* Star Rating in Warm Gold */
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
  color: #F59E0B !important;
  font-size: 13px !important;
  margin: 2px 0 6px 0 !important;
  height: 18px !important;
  line-height: 18px !important;
}

/* Pricing */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: #0A2540 !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 6px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
  color: #0A2540 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
  color: #94A3B8 !important;
  opacity: 0.8 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* "Add to cart" Button in Vibrant Brand Green (#16A34A) */
.woocommerce ul.products li.product .woocommerce-loop-product__buttons,
.woocommerce-page ul.products li.product .woocommerce-loop-product__buttons {
  margin-top: auto !important;
  width: 100% !important;
  display: block !important;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .add_to_cart_button {
  margin-top: auto !important;
  background-color: #16A34A !important;
  color: #ffffff !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  border-radius: 50px !important;
  padding: 10px 14px !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  border: none !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce-page ul.products li.product .add_to_cart_button:hover {
  background-color: #0A2540 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Sale Badge in Brand Gradient Green */
.woocommerce ul.products li.product span.onsale,
.woocommerce-page ul.products li.product span.onsale {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%) !important;
  color: #ffffff !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 30px !important;
  padding: 4px 11px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4) !important;
}

/* ==========================================================================
   Home Page Blog Preview Section Styling:
   - 2-Column Responsive Card Grid (1-Column on Mobile)
   - Matches brand Navy (#0A2540) and Green (#16A34A)
   ========================================================================== */
.msh-home-blog-section {
  padding: 60px 20px 70px 20px;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.msh-blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.msh-blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.msh-blog-badge {
  display: inline-block;
  background-color: rgba(22, 163, 74, 0.12);
  color: #16A34A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.msh-blog-title {
  color: #0A2540 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.25 !important;
}

.msh-blog-subtitle {
  color: #64748B !important;
  font-size: 16px !important;
  margin: 0 auto !important;
  max-width: 600px !important;
}

.msh-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .msh-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .msh-blog-title {
    font-size: 24px !important;
  }
}

.msh-blog-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.msh-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
  border-color: #CBD5E1;
}

.msh-blog-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.msh-blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.msh-blog-card:hover .msh-blog-img {
  transform: scale(1.04);
}

.msh-blog-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.msh-blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.msh-blog-meta {
  color: #94A3B8;
  font-size: 13px;
  margin-bottom: 8px;
}

.msh-blog-card-title {
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
}

.msh-blog-card-title a {
  color: #0A2540 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.msh-blog-card-title a:hover {
  color: #16A34A !important;
}

.msh-blog-excerpt {
  color: #64748B !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
  flex: 1 1 auto !important;
}

.msh-blog-readmore {
  color: #16A34A !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
  margin-top: auto !important;
}

.msh-blog-readmore:hover {
  color: #0A2540 !important;
  gap: 10px !important;
}

.msh-blog-footer-btn {
  text-align: center;
  margin-top: 40px;
}

.msh-view-all-btn {
  display: inline-block;
  background-color: #0A2540 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.15) !important;
}

.msh-view-all-btn:hover {
  background-color: #16A34A !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   Elementor Blog Posts Pagination Styling
   ========================================================================== */
.elementor-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 40px !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}

.elementor-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0A2540 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

.elementor-pagination .page-numbers:hover {
  background: #F8FAFC !important;
  border-color: #16A34A !important;
  color: #16A34A !important;
  transform: translateY(-2px) !important;
}

.elementor-pagination .page-numbers.current {
  background: #16A34A !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}