.product-page__sidebar-search-box .search-form {
  position: relative;
}

.product-page__sidebar-search-box .title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-page__sidebar-search-box .title .reset-filters-btn {
  font-size: 12px;
  line-height: 1;
  color: #7d6b4a;
  border: 1px solid #7d6b4a;
  border-radius: 16px;
  padding: 4px 10px;
  display: inline-block;
  font-weight: 600;
}

.product-page__sidebar-search-box .title .reset-filters-btn:hover {
  color: #ffffff;
  background-color: #7d6b4a;
}

.product-page__sidebar-categories-list li.active > a {
  font-weight: 700;
}

.product-page__sidebar-categories-list .cat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.single-shop-style1__discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #c43d2f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}

.product-discount-badge {
  display: inline-block;
  margin-top: 10px;
  background: #c43d2f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

.agricom-cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e8dfcf;
  border-left: 4px solid #7d6b4a;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 9999;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.agricom-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.agricom-cart-toast__icon i {
  color: #7d6b4a;
  font-size: 18px;
  line-height: 1;
}

.agricom-cart-toast__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 14px;
  color: #2a241b;
  line-height: 1.2;
}

.agricom-cart-toast__text {
  margin: 0;
  color: #6d6251;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.agricom-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agricom-cart-qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #d8cfbd;
  background: #fff;
  color: #7d6b4a;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.agricom-cart-qty-controls input {
  width: 64px;
  height: 36px;
  border: 1px solid #d8cfbd;
  border-radius: 8px;
  text-align: center;
  padding: 0 6px;
}

.agricom-cart-empty {
  padding: 24px;
  text-align: center;
  color: #7d6b4a;
  font-weight: 600;
}

.cart-info .left h4,
.cart-info .right h4 {
  font-weight: 700;
}

.cart-info #js-cart-items-count,
.cart-info #js-cart-total-price {
  display: inline-block;
  margin-left: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #7d6b4a;
  color: #fff !important;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.fieno-crok-hero {
  position: relative;
  background: #f5f4e8;
  padding: 20px 0 14px;
}

.fieno-crok-hero__title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  font-size: clamp(52px, 12vw, 168px);
  text-transform: uppercase;
  color: transparent;
  background-image: url("../images/sfondo_scritta.png");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.main-slider-style2__curved-top,
.main-slider-style2__curved-bottom {
  opacity: 0;
  transition: all 1000ms ease;
  z-index: 11;
}

/* Stabilizza il bordo basso dello slider durante il cambio slide */
.main-slider-style2 {
  overflow: hidden;
  background-color: #4e342e;
}

.main-slider-style2 .image-layer::before {
  background: linear-gradient(180deg, rgba(78, 52, 46, 0) 0%, rgba(78, 52, 46, 0) 30%, rgba(78, 52, 46, 0.24) 62%, rgba(78, 52, 46, 0.44) 100%);
}

.main-slider-style2 .image-layer::after {
  background: linear-gradient(180deg, rgba(78, 52, 46, 0.34) 0%, rgba(78, 52, 46, 0.36) 5%, rgba(78, 52, 46, 0.22) 15%, rgba(78, 52, 46, 0) 100%);
}

.main-slider-style2 .swiper-wrapper,
.main-slider-style2 .swiper-slide,
.main-slider-style2 .image-layer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.main-slider-style2 .swiper-slide {
  overflow: hidden;
}

.main-slider-style2__curved-top {
  transform: translateY(-36px);
}

/* Home: sezione ultimi prodotti sotto video */
.project-style2 .single-project-style2__img-content {
  left: 18px;
  right: 18px;
  bottom: 18px;
  align-items: flex-end;
  gap: 12px;
}

.project-style2 .single-project-style2__img-content-left {
  max-width: calc(100% - 72px);
}

.project-style2 .single-project-style2__img-content-left h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.12;
}

.project-style2 .single-project-style2__img-content-left h3 a {
  color: var(--thm-primary-color) !important;
}

.project-style2 .single-project-style2__img-content-left p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.28;
  color: #ffffff !important;
}

.project-style2 .single-project-style2__img-content-left p strong {
  color: var(--thm-primary-color) !important;
  font-size: 18px;
}

.project-style2 .single-project-style2__img-content-left p del {
  color: #ffffff !important;
  opacity: 0.75;
  font-size: 20px;
}

/* Chi siamo: evita lo scalino della shape laterale */
.about-style2__shape img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

@media (max-width: 1399px) {
  .project-style2 .single-project-style2__img-content-left h3 {
    font-size: 18px;
  }

  .project-style2 .single-project-style2__img-content-left p {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .project-style2 .single-project-style2__img-content-left h3 {
    font-size: 17px;
  }

  .project-style2 .single-project-style2__img-content-left p {
    font-size: 13px;
  }
}

/* Banner prodotti: evita il taglio del menu select */
.products-style2__banner {
  overflow: visible;
}

#products-style2__banner-form .nice-select {
  z-index: 30;
}

#products-style2__banner-form .nice-select .list {
  max-height: 320px;
  overflow-y: auto;
  z-index: 40;
}

.main-slider-style2__curved-bottom {
  transform: translateY(36px);
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-top,
.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-bottom {
  opacity: 1;
  transform: translateY(0);
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-top {
  transition-delay: 1200ms;
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-bottom {
  transition-delay: 2100ms;
}

@media (max-width: 767px) {
  .fieno-crok-hero {
    padding: 14px 0 10px;
  }

  .fieno-crok-hero__title {
    letter-spacing: 0.03em;
    font-size: clamp(36px, 14vw, 62px);
  }
}

@media (max-width: 991px) {
  .main-slider-style2 .container {
    padding: 210px 12px 120px;
  }

  .main-slider-style2__content {
    padding: 82px 8px 86px;
    overflow: visible;
  }

  .main-slider-style2 .big-title h2 {
    font-size: clamp(34px, 9.2vw, 52px);
    line-height: 1.08;
  }

  .main-slider-style2 .title h3 {
    font-size: clamp(20px, 4.8vw, 30px);
    line-height: 1.2;
    text-align: center;
  }

  .main-slider-style2__curved-top,
  .main-slider-style2__curved-bottom {
    left: 0;
    right: 0;
    width: min(330px, 92vw);
    max-width: 92vw;
    font-size: clamp(11px, 2.3vw, 14px);
    letter-spacing: 0.03em;
  }

  .main-slider-style2__curved-bottom {
    bottom: -62px;
  }

  .main-slider-style2 .btn-box {
    padding-top: 20px;
  }

  .main-slider-style2 .btn-one i {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .main-slider-style2 .btn-one .txt {
    padding: 5px 18px;
    line-height: 34px;
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .main-slider-style2 .container {
    padding: 188px 10px 108px;
  }

  .main-slider-style2__content {
    padding: 72px 6px 78px;
  }

  .main-slider-style2 .sub-title h5 {
    font-size: 12px;
    line-height: 1.3;
  }

  .main-slider-style2 .big-title h2 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  .main-slider-style2 .title h3 {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  .main-slider-style2__curved-top,
  .main-slider-style2__curved-bottom {
    width: min(300px, 94vw);
    max-width: 94vw;
    font-size: 11px;
  }
}

@media (max-width: 991px) {
  .features-style1__inner-cards {
    flex-direction: column;
    gap: 18px;
  }

  .features-style1__inner + .features-style1__inner .features-style1__group-title {
    margin-top: 12px;
  }

  .features-style1__list.two,
  .features-style1__list.three {
    margin: 0;
  }

  .features-style1__group-title {
    max-width: 220px;
    font-size: 18px;
  }
}

.products-style2 ul.row > li {
  display: flex;
}

.products-style2 .single-products-style2 {
  width: 100%;
  height: 100%;
}

.products-style2 .single-products-style2__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products-style2 .single-products-style2__img {
  margin-top: auto;
}

.footer-links-group-title {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.2;
  color: #20150d;
}

.header-logo-box-style2 img,
.sticky-logo-box-style1 img {
  max-height: 72px;
  width: auto;
}

.granadoro-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.granadoro-language-switch__label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.granadoro-language-switch__item {
  display: inline-flex;
  align-items: center;
}

.granadoro-language-switch__item img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.main-header-style2__content-top {
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.main-header-style2__content-top-left,
.main-header-style2__content-top-right {
  gap: 14px;
}

/* Navbar: disattiva evidenziazione selected/current in style2 */
.main-menu.main-menu-style2 .main-menu__list > li.current > a,
.main-menu.main-menu-style2 .main-menu__list > li:hover > a,
.stricky-header .main-menu__list > li.current > a,
.stricky-header .main-menu__list > li:hover > a {
  color: var(--thm-black) !important;
}

.main-menu.main-menu-style2 .main-menu__list > li.current > a::before,
.main-menu.main-menu-style2 .main-menu__list > li:hover > a::before,
.main-menu.main-menu-style2 .main-menu__list > li.current.dropdown > a::before,
.main-menu.main-menu-style2 .main-menu__list > li:hover.dropdown > a::before {
  opacity: 0 !important;
  transform: scale(0) !important;
}

.main-menu.main-menu-style2 .main-menu__list > li.current.dropdown > a:after,
.main-menu.main-menu-style2 .main-menu__list > li:hover.dropdown > a:after {
  color: #7f7f7f !important;
}

/* Sticky nav: rimuove evidenza current/hover e icona selected */
.stricky-header.stricky-header--style1 .main-menu__list > li.current > a,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover > a {
  color: inherit !important;
}

.stricky-header.stricky-header--style1 .main-menu__list > li > a,
.stricky-header.stricky-header--style1 .main-menu__list > li.current > a,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover > a,
.stricky-header.stricky-header--style1 .main-menu__list > li.dropdown > a:after,
.stricky-header.stricky-header--style1 .main-menu__list > li.current.dropdown > a:after,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover.dropdown > a:after {
  color: #ffffff !important;
}

.stricky-header.stricky-header--style1 .main-menu__list > li.current > a::before,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover > a::before,
.stricky-header.stricky-header--style1 .main-menu__list > li.current.dropdown > a::before,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover.dropdown > a::before {
  opacity: 0 !important;
  transform: scale(0) !important;
}

.stricky-header.stricky-header--style1 .main-menu__list > li.current.dropdown > a:after,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover.dropdown > a:after {
  color: inherit !important;
}

@media (max-width: 1199px) {
  .header-logo-box-style2 img,
  .sticky-logo-box-style1 img {
    max-height: 60px;
  }

  .granadoro-language-switch {
    margin-left: 8px;
    gap: 6px;
  }

  .granadoro-language-switch__label {
    font-size: 12px;
  }
}
/* Sidebar shop recent products: remove dark hover overlay on thumbnails */
.product-page__sidebar-recent-post-img::before {
  opacity: 0 !important;
}

.product-page__sidebar-recent-post__list li:hover .product-page__sidebar-recent-post-img::before {
  opacity: 0 !important;
}

/* Footer middle card: keep dark readable text (as requested) */
.footer-widget-style2__content-inner {
  border-top-color: #cdbf9f !important;
}

.footer-widget-style2__content-title h4,
.footer-widget-style2__content-list li .left p,
.footer-widget-style2__content-list li .left .dot,
.footer-widget-style2__content-list li .right p,
.footer-widget-style2__content-list li .right p.color {
  color: #20150d !important;
}
