/*
Theme Name: Blocksy Child
Description: Child theme for Blocksy
Template: blocksy
Version: 1.0
*/

/*put tags over the images*/
.woocommerce ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product {
    position: relative !important;
}

.woocommerce ul.products li.product .accessiup-product-tags,
.elementor-widget-woocommerce-products ul.products li.product .accessiup-product-tags {
    position: absolute !important;
    top: 12px !important;
    z-index: 99 !important;
    display: flex !important;
    gap: 6px;
    pointer-events: none;
}

.accessiup-product-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.accessiup-product-tag--fisico {
    color: #2563eb !important;
    background: #dbeafe !important;
}

.accessiup-product-tag--digitale {
    color: #7c3aed !important;
    background: #f3e8ff !important;
}

.accessiup-product-tag--ibrida {
    color: #059669 !important;
    background: #d1fae5 !important;
}

.woocommerce ul.products li.product {
    position: relative !important;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

/* Single product tag badge over image */
.single-product .accessiup-product-tags {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 10 !important;
}

.single-product .woocommerce-product-gallery {
    position: relative !important;
}

.single-product .woocommerce-product-gallery {
    min-height: 520px !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a {
    height: 520px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 520px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}


/* Create row for title + price */
/* Hide original WooCommerce/Blocksy title and price */
.woocommerce ul.products li.product > .woocommerce-loop-product__title,
.woocommerce ul.products li.product > .price {
    display: none !important;
}

/* Your custom inline row */
.accessiup-title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.accessiup-product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.accessiup-product-price {
    white-space: nowrap;
    font-weight: 600;
    text-align: right;
}

/* Add borders to product card */
.woocommerce ul.products li.product {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    padding: 0 !important;
}

/* Hover effect */
.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Full-width image */
.woocommerce ul.products li.product img {
    width: 100%;
    display: block;
    margin: 0;
}

/* Padding for title, price, brand, description, button */
.woocommerce ul.products li.product > *:not(.ct-image-container):not(.woocommerce-loop-product__link):not(figure) {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* Bottom spacing */
.woocommerce ul.products li.product .button {
    margin-bottom: 20px !important;
}

/*change description size and limit it to 2 rows*/
.woocommerce ul.products li.product p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* approx 12–15 words */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Force fixed height + crop */
.woocommerce ul.products li.product img {
    height: 220px;        
    width: 100%;
    object-fit: cover;    /* crops image nicely */
}



/* Move SALE badge to bottom-right */
.woocommerce ul.products li.product .onsale {
    top: auto !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
}

/* Optional: keep it above image nicely */
.woocommerce ul.products li.product {
    position: relative;
}


.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
    min-height: unset !important;
    height: auto !important;
    padding: 7px 25px !important;
    line-height: 1.1 !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}


/*Remove 'view cart' button*/
/* Hide View Cart button */
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

#view-all-btn .elementor-button-icon i,
#view-all-btn .elementor-button-icon svg {
    font-size: 40px !important;
    width: 40px !important;
    height: 40px !important;
}


/* Main product image */
.woocommerce div.product div.images img {
    border-radius: 12px;
    overflow: hidden;
}

/* Gallery thumbnails */
.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: 7px;
}

.single-product .woocommerce-product-gallery__trigger,
.single-product .zoomImg {
    display: none !important;
}

.single-product div.product .woocommerce-product-gallery {
    position: relative !important;
}

.single-product div.product span.onsale {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 9999 !important;
}


/* White square behind icons in home page*/
/* White square behind icon box icon */
.stat-icon .elementor-icon-box-icon {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* Facility filter section */
.facility-section {
  padding: 30px 0 40px;
}

.facility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.facility-header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #0b1f3a;
}

.facility-header span {
  font-size: 14px;
  color: #6b7280;
}

.facility-cards {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.facility-cards::-webkit-scrollbar {
  display: none;
}

.facility-card {
  flex: 0 0 180px;
  height: 210px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: #000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.facility-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.facility-card img {
  width: 100%;
  height: 80px !important;
  object-fit: cover;
  display: block;
}

.facility-content {
  flex: 1;
  padding: 14px 12px;
  display: grid;
  place-content: center;
  text-align: center;
}

.facility-content h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.facility-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .facility-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* remove search bar from not found*/
.error404 .search-form,
.search-no-results .search-form {
  display: none !important;
}


.icon-motor > a::before {
  content: "★";
  color: red;
  font-family: inherit !important;
}


/*Add icons for menu*/
/* Icon + text layout */
.menu-item i {
  margin-right: 8px;
}

/* Individual colors */
.icon-motor i {
  color: #00bcd4; /* cyan */
}

.product-brand-near-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 10px 8px 0 !important;
}

.product-brand-near-title img,
.product-brand-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  object-fit: contain !important;
  margin: 0 !important;
  display: inline-block !important;
}

.product-brand-near-title a,
.product-brand-near-title span {
  font-weight: 500;          /* same weight */
  color: #9ca3af   /* lighter grey */;            /* same grey */
  text-transform: uppercase; /* matches your theme */
  letter-spacing: 0.5px;     /* optional, tweak if needed */
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.product-brand-name {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  text-decoration: none;
}

.product-brand-name:hover {
  color: #1559ED;
}