/* ===== Medneo custom CSS (minimal, safe) ===== */
/* Only visual polish: rounded corners, shadows, hover. No layout/responsive overrides. */

:root{
  --mn-radius: 14px;
  --mn-radius-pill: 999px;
  --mn-accent: #0066cc;
  --mn-shadow: 0 6px 20px rgba(18, 38, 74, .08);
  --mn-shadow-hover: 0 14px 34px rgba(18, 38, 74, .16);
  --mn-ease: .25s cubic-bezier(.4,.0,.2,1);
}

/* category tile: rounded + shadow */
.shop-grid .product-category{
  border-radius: var(--mn-radius) !important;
  overflow: hidden;
  box-shadow: var(--mn-shadow);
  transition: transform var(--mn-ease), box-shadow var(--mn-ease);
}
.shop-grid .product-category:hover{
  transform: translateY(-4px);
  box-shadow: var(--mn-shadow-hover);
}
.shop-grid .product-category img{
  border-top-left-radius: var(--mn-radius) !important;
  border-top-right-radius: var(--mn-radius) !important;
  transition: transform var(--mn-ease);
}
.shop-grid .product-category:hover img{ transform: scale(1.05); }

/* product card: rounded + shadow */
.shop-item{
  border-radius: var(--mn-radius) !important;
  overflow: hidden;
  box-shadow: var(--mn-shadow);
  transition: transform var(--mn-ease), box-shadow var(--mn-ease);
}
.shop-item:hover{
  transform: translateY(-4px);
  box-shadow: var(--mn-shadow-hover);
}
.shop-item img{
  border-top-left-radius: var(--mn-radius) !important;
  border-top-right-radius: var(--mn-radius) !important;
  transition: transform var(--mn-ease);
}
.shop-item:hover img{ transform: scale(1.04); }

/* buttons rounded */
.add_to_cart_button,
a.button, button.button, input[type="submit"]{
  border-radius: var(--mn-radius-pill) !important;
  font-weight: 600 !important;
  transition: transform var(--mn-ease), box-shadow var(--mn-ease) !important;
}
.add_to_cart_button:hover, a.button:hover, button.button:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,102,204,.25);
}

/* header shadow + rounded search */
.site-header, #masthead{ box-shadow: 0 2px 12px rgba(18,38,74,.06) !important; }
.site-header input[type="search"], #masthead input[type="search"]{
  border-radius: var(--mn-radius-pill) !important;
  padding: 8px 16px !important;
}
.site-header button, #masthead button{ border-radius: var(--mn-radius-pill) !important; }

/* ===== Fix: no empty gap below image (fill container, tight margin) ===== */
.shop-item .shop-item__image{ margin-bottom: 0 !important; }
.shop-item .shop-item__image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  max-height: none !important;
  max-width: none !important;
}

/* ===== Fix: remove min-height 250px and gaps inside product card ===== */
.shop-item--type-standard{ min-height: 0 !important; }
.shop-item--type-standard .shop-item-inner{
  justify-content: flex-start !important;
  padding: 10px !important;
}
.shop-item--type-standard .shop-item__badges{ margin-bottom: 0 !important; }
.shop-item--type-standard .shop-item__title{ margin: 4px 0 2px !important; }

/* ===== Fix: cancel line-clamp on long titles (show full title) ===== */
.shop-item .shop-item__title,
.shop-item .shop-item__title a{
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
}



/* ===== Interactive product tile (mn-int) on home ===== */
.mn-int-wrap{ margin: 0 0 32px; }
.mn-int-wrap > h2{
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}
.mn-int-wrap .mn-int{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
}
.mn-int-wrap .mn-int-bg{
  background-size: cover;
  background-position: center;
  background-color: #0b1f3a;
  transition: background-image .4s;
}
.mn-int-wrap .mn-int-list{
  padding: 14px;
  overflow-y: auto;
  max-height: 340px;
}
.mn-int-wrap .mn-int-item.active{
  background: #eff6ff;
}

/* mn-int responsive: stack on mobile */
@media (max-width: 768px){
  .mn-int-wrap .mn-int{
    grid-template-columns: 1fr !important;
  }
  .mn-int-wrap .mn-int-bg{
    min-height: 200px !important;
    height: 200px !important;
  }
  .mn-int-wrap .mn-int-list{
    max-height: none !important;
    overflow: visible !important;
  }
  .mn-int-wrap .mn-int-item{ align-items: center !important; }
}

/* ===== Mobile: 4 cols categories, 2 cols products (override theme width on all mobile) ===== */
@media (max-width: 991px){
  .shop-grid{ gap: 10px !important; }
  .shop-grid.shop-grid--columns-5 .product-category{
    width: calc(25% - 8px) !important;
    max-width: calc(25% - 8px) !important;
    flex: 0 0 calc(25% - 8px) !important;
  }
  .shop-grid.shop-grid--columns-5 .shop-item{
    width: calc(25% - 8px) !important;
    max-width: calc(25% - 8px) !important;
    flex: 0 0 calc(25% - 8px) !important;
  }
}
@media (max-width: 575px){
  .shop-grid.shop-grid--columns-5 .product-category{
    width: calc(25% - 6px) !important;
    max-width: calc(25% - 6px) !important;
    flex: 0 0 calc(25% - 6px) !important;
  }
  .shop-grid.shop-grid--columns-5 .shop-item{
    width: calc(25% - 6px) !important;
    max-width: calc(25% - 6px) !important;
    flex: 0 0 calc(25% - 6px) !important;
  }
  .shop-grid{ gap: 8px !important; }
  .shop-grid .product-category img{ aspect-ratio: 1/1 !important; object-fit: cover !important; }
  .shop-grid .product-category .woocommerce-loop-category__title,
  .shop-grid .product-category h2, .shop-grid .product-category h3{
    font-size: 11px !important; padding: 5px 4px !important; line-height: 1.2 !important;
  }
  /* compact product card for 4-per-row on mobile */
  .shop-grid .shop-item .shop-item__image{ aspect-ratio: 1/1 !important; height: auto !important; }
  .shop-grid .shop-item img{ object-fit: cover !important; }
  .shop-grid .shop-item .shop-item__title{
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 4px 4px 2px !important;
    margin: 0 !important;
  }
  .shop-grid .shop-item .shop-item__title a{ font-size: 10px !important; }
  .shop-grid .shop-item .price{
    font-size: 11px !important;
    padding: 0 4px 4px !important;
    margin: 0 !important;
  }
  .shop-grid .shop-item .price ins, .shop-grid .shop-item .price .amount{ font-size: 11px !important; }
  .shop-grid .shop-item .shop-item__buttons{ padding: 2px 4px 4px !important; }
  .shop-grid .shop-item .shop-item__buttons .add_to_cart_button,
  .shop-grid .shop-item .shop-item__buttons-cart{
    font-size: 0 !important;
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    line-height: 26px !important;
    text-align: center !important;
  }
  .shop-grid .shop-item .shop-item__buttons .add_to_cart_button::before{
    content: "F6D2" !important;
    font-size: 14px !important;
    line-height: 26px !important;
  }
  .shop-grid .shop-item .shop-item-inner{ padding: 4px !important; }

}

/* ===== Categories as separate block on home ===== */
.mn-categories-block{
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}
.mn-products-block{ margin-top: 8px; }
.mn-section-title{
  font-size: 24px;
  font-weight: 800;
  color: #14213d;
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}
/* categories: smaller tiles + compact (CSS only) */
.shop-grid .product-category .woocommerce-loop-category__title,
.shop-grid .product-category h2,
.shop-grid .product-category h3{
  font-size: 13px !important;
  padding: 8px 6px !important;
  line-height: 1.25 !important;
}
.shop-grid .product-category img{ aspect-ratio: 1/1 !important; object-fit: cover !important; }
@media (max-width: 575px){
  .shop-grid .product-category .woocommerce-loop-category__title,
  .shop-grid .product-category h2, .shop-grid .product-category h3{
    font-size: 11px !important; padding: 5px 4px !important;
  }
  .mn-section-title{ font-size: 20px; }
}

/* ===== Home: categories block (from shortcode) ===== */
.mn-cats-section{
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid #e2e8f0;
}
.mn-cats-title{
  font-size: 26px;
  font-weight: 800;
  color: #14213d;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}
.mn-cats-section ul.products,
.mn-cats-section ul{
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.mn-cats-section li.product-category,
.mn-cats-section .product-category{
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18,38,74,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mn-cats-section li.product-category:hover,
.mn-cats-section .product-category:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18,38,74,.12);
}
.mn-cats-section .product-category img{
  width: 100% !important;
  height: 120px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}
.mn-cats-section .product-category .woocommerce-loop-category__title,
.mn-cats-section .product-category h2,
.mn-cats-section .product-category h3{
  margin: 0 !important;
  padding: 8px 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center;
  color: #14213d !important;
  line-height: 1.25 !important;
}
.mn-cats-section .product-category mark,
.mn-cats-section .product-category .count{
  background: none;
  color: #6b7280;
  font-weight: 500;
  font-size: 11px;
}

/* responsive */
@media (max-width: 991px){
  .mn-cats-section ul.products, .mn-cats-section ul{
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 575px){
  .mn-cats-section ul.products, .mn-cats-section ul{
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .mn-cats-section .product-category .woocommerce-loop-category__title,
  .mn-cats-section .product-category h2, .mn-cats-section .product-category h3{
    font-size: 11px !important;
    padding: 5px 4px !important;
  }
  .mn-cats-title{ font-size: 20px; }
}


/* ===== Fix: category tiles in shortcode block (Bono uses shop-grid--columns-6) ===== */
.mn-cats-section .shop-grid,
.mn-cats-section .shop-grid.shop-grid--columns-6{
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
}
.mn-cats-section .shop-grid .product-category{
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}
@media (max-width: 991px){
  .mn-cats-section .shop-grid,
  .mn-cats-section .shop-grid.shop-grid--columns-6{
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 575px){
  .mn-cats-section .shop-grid,
  .mn-cats-section .shop-grid.shop-grid--columns-6{
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}
