/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/
/* CSS for short description text normaliztion */
.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description h1,
.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4,
.woocommerce-product-details__short-description span {
    text-transform: none !important;
}

/* Woo категории (Astra) – спира хоризонтално плъзгане на мобилен */
@media (max-width: 768px){
  body.tax-product_cat{
    overflow-x: hidden !important;
  }
}

/* Astra Woo Category Banner Title – оправя рязането/скалира заглавието на мобилен */
@media (max-width: 544px){
  body.tax-product_cat
  .ast-archive-entry-banner[data-post-type="product"]
  .ast-container h1{
    font-size: clamp(32px, 10.5vw, 46px) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto;
  }
}

/* CFVSW (CartFlows Variation Swatches): скрий swatches + лейбъли във ВСИЧКИ листинги (Home, Shop, Category, архиви),
   но остави видими в Single product */
body:not(.single-product) ul.products .cfvsw-swatches-container,
body:not(.single-product) ul.products .cfvsw-product-variations,
body:not(.single-product) ul.products table.variations,
body:not(.single-product) ul.products table.variations td.label,
body:not(.single-product) ul.products td.label{
  display: none !important;
}

/* Denssell Register Page - elegant */
.denssell-auth{
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
}

.denssell-auth__title{
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.denssell-auth__subtitle{
  text-align: center;
  margin: 0 0 22px;
  color: rgba(0,0,0,.55);
}

.denssell-auth__form{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.denssell-auth__form label{
  font-weight: 600;
  letter-spacing: .6px;
  color: rgba(0,0,0,.70);
}

.denssell-auth__form input{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px 14px;
  box-shadow: none;
}

.denssell-auth__form input:focus{
  border-color: #d8cfc4;
  outline: none;
}

.denssell-help{
  display:block;
  margin-top:6px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.denssell-auth__btn{
  width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.denssell-auth__foot{
  text-align:center;
  margin: 16px 0 0;
  color: rgba(0,0,0,.55);
}

@media (max-width: 544px){
  .denssell-auth{ padding: 14px; }
  .denssell-auth__form{ padding: 18px; border-radius: 14px; }
}

/* Само цифрите (SKU) да са черни */
.single-product .product_meta .sku {
    color: #000 !important;
}

/* Увеличаване на размера на meta текста - само Код и SKU */
.single-product .product_meta .sku_wrapper {
    font-size: 20px !important;
}

/* Search results като Woo shop grid */
.search ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* responsive */
@media (max-width: 1024px) {
  .search ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .search ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .search ul.products { grid-template-columns: 1fr; }
}

/* снимките да не се “сплескват” */
.search ul.products li.product a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Махни Astra page header-а само на Search страницата */
.search .ast-archive-entry-banner,
.search .ast-page-title-wrap {
  display: none !important;
}
