/* Stiluri generale   */

#block_content_7438 h2,
.product-summary__details .social-share {
    display: none !important;
}

.header.is-sticky .header-wrapper {
    padding-top: 6px;
    padding-bottom: 6px;
}
.header__logo-image {
  max-height: 120px !important;
  height: auto !important;
  width: auto !important;
}

.images__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-summary__main-image-wrapper:hover img,
.product-summary__main-image-wrapper img:active {
    transform: none !important;
    /* îndepărtează orice scalare */
}

.main-image-wrapper__outer {
    aspect-ratio: 3/4; /* ajustează după nevoi */
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.product-summary__main-image-wrapper,
.product-summary__main-image-wrapper figure,
.product-summary__main-image-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* ───────────────────────────────────────────────────────────────── */
/* Stiluri pentru mobil (≤480px)                                */
@media only screen and (max-width: 480px) {
    .product__name {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis;
        word-break: break-word;
        max-width: 100%;
        height: 55px;
    }
    .header__wrapper {
        height: 4rem !important;
    }
    .header .header__logo img {
    max-height: 70px !important;
    margin-left: 15px; /* ajustează valoarea după preferință */
    
    }
}

/* Wishlist icon styling */
.product-summary__save-wishlist .icon.icon--secondary.icon--left { 
    width: 2rem !important; /* Dimensiune */
    height: 2rem !important; /* Culoare – se aplică oricărui <path> cu fill="currentColor" */
    color: #ff0000 !important; /* Asigură-te că SVG-ul acceptă currentColor */ 
    fill: currentColor !important; 

}

/* În cazul în care <use> preia fill direct */
.product-summary__save-wishlist .icon.icon--secondary.icon--left use {
    fill: #ff0000 !important;
}

/* Opțional: culoare la hover */
.product-summary__save-wishlist:hover .icon.icon--secondary.icon--left,
.product-summary__save-wishlist:focus .icon.icon--secondary.icon--left {
    color: #ff0000 !important;
    fill: #ff0000 !important;
}

/* Ellipsis pentru numele produsului (2 linii) */
.product__name {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
    height: calc(2em * 2);
}

/* ───────────────────────────────────────────────────────────────── */
/* IMAGINEA DE PRODUS OCUPĂ TOT ECRANUL DE MOBILE (≤767px) */
@media (max-width: 767px) {
    /* 1. Scoatem wrapper-ul din container și îl facem full-width */
    .product-summary__images,
    .product-summary__image-wrapper {
        position: relative !important;
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding: 0 !important;
    }

    /* 2. Imaginea ocupă 100% din wrapper, păstrând raportul */
    .product-summary__main-image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* sau cover dacă vrei crop */
        margin: 0 !important;
    }
}

/* ───────────────────────────────────────────────────────────────── * 
  /* CASUTE DE FILTRE SI SORTEAZA CUSTOM PE MOBILE */
  
@media (max-width: 767px) {
  /* spațiu dedesubt */
  .catalog-actions {
    margin-bottom: 16px !important;
  }

  /* Stile comune pentru butonul Filtrează și containerul Sortează */
  .catalog-actions .facets-toggle,
  .catalog-actions .sort-view {
    flex: 1 1 45% !important;
    aspect-ratio: 4 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f0f0f0 !important;  /* gri deschis */
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
  }

  /* Stil dropdown intern */
  .catalog-actions .sort-view__options {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    cursor: pointer !important;
  }

  /* Săgeata custom */
  .catalog-actions .sort-view {
    position: relative !important;
  }
  .catalog-actions .sort-view::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid #333 !important;
    pointer-events: none !important;
  }
}

/* Ascunde link-ul MerchantPro din footer */
a.footer__link[href*="merchantpro.ro"] {
    display: none !important;
}

/* ROTUNJIRE VARIANTELE DE PRODUS  */
.variant-attribute__value label {
  border-radius: 9999px !important;
  padding: 0.50em 1em !important;
  font-size: 0.90rem !important;
  border: 1px solid #ccc !important;
  display: inline-block !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* Stare activă / selectată (stil distinct) */
.variant-attribute__value input:checked + label,
.variant-attribute__value label.selected {
  background-color: #000; /* Fundal negru */
  color: #fff; /* Text alb */
  border-color: #000; /* Contur negru */
}


/* Stil pentru link-urile din meniul principal */
nav#header_menu a {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
}


/* Titluri centrate și bold */
.widget-banner__heading,
.widget-products__heading,
.widget-title,
.widget-products-slider__heading,
.widget-recently-viewed__heading {
    text-align: center !important;
    font-weight: 700 !important;
}

.widget-banner__heading span,
.widget-products__heading span,
.widget-title span,
.widget-products-slider__heading span,
.widget-recently-viewed__heading span {
    display: block;
    text-align: center;
    font-weight: inherit;
}

/* Bară decorativă gri deschis sub titluri */
.widget-banner__heading::after,
.widget-products__heading::after,
.widget-title::after,
.widget-products-slider__heading::after,
.widget-recently-viewed__heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #cccccc !important;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Ascunde complet/sar putea sa iti placa / ce zic clienti/ de pe orice ecran */
#recommendations_1930_tab,
#reviews_tab {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* BUTON ADAUGA IN COS STILIZAT Aplică stiluri doar pe dispozitivele mobile, până la 767px */

  .product-summary__info--actions .product-action--add-to-cart .btn,
  .product-summary__info--actions .product-action--add-to-cart,
  .product-summary__info--actions .product-action--buy-now .btn,
  .product-summary__info--actions .product-action--buy-now {
    width: 100% !important;
    display: block !important;
  }

  /* Buton Adaugă în coș cu litere mari, bold și padding mai lat */
  .product-summary__info--actions .product-action--add-to-cart .btn {
    text-transform: uppercase !important;
    padding: 0.75rem 1.5rem !important;
    box-sizing: border-box !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
  }
 
  /* 🔥 Shake 1s + Pauză 2s = ciclu 3s */
  .product-summary__info--actions .product-action--add-to-cart .btn {
    animation: shakePause 3s infinite;
  }

  @keyframes shakePause {
    0%, 100% { transform: translateX(0); }
    5%, 15%, 25% { transform: translateX(-6px); }
    10%, 20%, 30% { transform: translateX(6px); }
    30%, 100% { transform: translateX(0); } /* pauză între 30% și 100% */
  }
}
/* DE AICI MAI PUI COD IN SUS NUMAI ATINGI  */

/* LIVRARE RAPIDA  / PLATA SECURIZATA / DREPT DE RETUR ETC SUB BUTON ADAUGA IN COS MOBILE    */
/* ============================= */
.notification-banner-mobile {
  display: none;
  width: 100% !important;
  margin: 1rem 0;
}
@media only screen and (max-width: 767px) {
.notification-banner-mobile {
  display: block !important;
  margin: 10px 0; /* Adaugă 10px de spațiu sus și jos */
}

  .notification-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
  }
  .notification-grid li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.90rem;
    color: #000;
  }
  body .notification-grid li::before {
    content: "✔" !important;
    color: #e74c3c !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 768px) {
  .footer__blocks {
    padding-top: 1rem !important;
  }
   .footer__bottom {
    padding-top: 1rem !important;
    margin-top: 0 !important;
  }
}


.footer__widgets > section {
  padding: 0 !important;
}
/* Spațiu redus între produse pe pagina de catalog și homepage */
.products-grid__items[data-cols-m="2"],
.products-grid__items[data-cols="3"],
.products-grid__items[data-cols="4"],
.products-grid__items[data-cols="5"] {
    gap: 0.5rem !important;
}


@media (max-width: 768px) {
  .page:where(:not(.site-page .page)),
  .site-page :where(.page__aside-head, .page__content) {   
      padding-left: 0.5rem;
      padding-right: 0.5rem;
  }
}

.checkout-logo {
  display: inline-block;
}

.checkout-logo picture,
.checkout-logo__image {
  width: 150px !important;    /* dimensiune pe desktop */
  max-width: 100% !important; /* se micșorează pe mobil */
  height: auto !important;
}

@media (max-width: 991.98px) {
  .checkout-logo picture,
  .checkout-logo__image {
    width: 70px !important; /* dimensiune pe mobil */
  }
}
/* DISTANTA FOOTER / PANA LA SF PAGINI REDUS */

@media (max-width: 768px) {
  footer {
    padding-bottom: 3rem !important;
  }
}


/* Ascunde pe homepage REVIEW STARS */
html.site-index .product__rating {
    display: none !important;
}

/* Ascunde pe paginile de catalog / categorie */
html.site-catalog.site-catalog--category .product__rating {
    display: none !important;
}


/* SETARI DIMENSIUNE TEXT  */
/* Desktop (≥ 768px) */
@media (min-width: 768px) {
  .page__heading {
    font-weight: 500 !important;
    font-size: 2.2rem !important; /* titlu principal mai mare */
  }

  .product-content__block-heading {
    font-weight: 500 !important;
    font-size: 1.6rem !important; /* subtitluri mai mici */
  }

   .widget-banner__heading { 
    font-weight: 600 !important;
    font-size: 2rem !important;
  }
  
  .widget-products-slider__heading { 
    font-weight: 600 !important;
    font-size: 2rem !important;
  }
  
  .widget-recently-viewed__heading  { 
    font-weight: 600 !important;
    font-size: 2rem !important;
  }
      
}


/* Mobile (< 768px) */
@media (max-width: 767px) {
  .page__heading {
    font-weight: 600 !important;
    font-size: 1.3rem !important; /* mai mic pe mobil */
  }
  

  .product-content__block-heading {
    font-weight: 600 !important;
    font-size: 1.3rem !important;
  }
  
   .product-summary__heading {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
  }
}

/* ultimile bucati grabestete mai apropiat de agauga in cos  */
.product-summary__info--availability .product-summary__info--message {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}


@media (max-width: 767px) {
  .product-summary__info {
    word-spacing: -1px !important;
    letter-spacing: -0.3px !important;
  }
}
 /* ASCUNDE TAXE DE LIVRARE NU SUNT INCLUSE SUB TITLU */
.product-summary__info--shipping {
  display: none !important;
}


/* pagina de cos setari */
@media (max-width: 767px) {
  .page.page--cart.page--aside-right,
  .page--cart .page__content-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  /* Preț nou */
  .product--grid .product__info--price-gross span {
    font-size: 15px !important;
    font-weight: 600 !important; /* bold */
  }

  /* Preț vechi */
  .product--grid .product__info--old-price-gross span {
    font-size: 14px !important;
    font-weight: 400 !important;
  }
}

/* tabletă (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .product--grid .product__info--price-gross span {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .product--grid .product__info--old-price-gross span {
    font-size: 14px !important;
    font-weight: 400 !important;
  }
}

/*  Desktop (peste 1025px) */
@media (min-width: 1025px) {
  .product--grid .product__info--price-gross span {
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .product--grid .product__info--old-price-gross span {
    font-size: 16px !important;
    font-weight: 400 !important;
  }
}

 /* stilizare bara marime sub poza de produs pagini catalog produs */
 
/* ===== SIZE BAR — catalog ===== */
.site-catalog.site-catalog--category .grid-image { position: relative; overflow: hidden; }

.site-catalog.site-catalog--category .grid-image__sizebar{
  background: #fff; /* ALB */
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  backdrop-filter: saturate(120%) blur(2px);
  padding: 8px 10px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.06);
  border-top: 1px solid rgba(0,0,0,.05);
  left: 0; right: 0; bottom: 0; position: absolute; z-index: 3;
}

/* scroller centrat, pe un rând */
.site-catalog.site-catalog--category .grid-image__sizebar-scroller{
  display: flex; justify-content: center;
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.site-catalog.site-catalog--category .grid-image__sizebar-scroller::-webkit-scrollbar{ display:none; }

.site-catalog.site-catalog--category .variant-attribute__values{
  display: inline-flex; align-items: center;
  gap: 10px; width: max-content; margin: 0 auto;
}

/* ===== TEXT-ONLY (fără pătrate / pastile) ===== */
.site-catalog.site-catalog--category .variant-attribute__value{
  display: inline; padding: 0; border: none; border-radius: 0; background: transparent;
  color: #111; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: 13px; line-height: 1.1; transition: opacity .12s ease;
}
/* resetează orice stil vechi de hover pe chip-uri */
@media (hover:hover) and (pointer:fine){
  .site-catalog.site-catalog--category .variant-attribute__value:hover{
    opacity: .85; transform: none; box-shadow: none; background: transparent; color: #111; border: none;
  }
}

/* out-of-stock */
.site-catalog.site-catalog--category .variant-attribute__value.is-oos{
  opacity: .45; text-decoration: line-through;
}

/* ===== desktop: bara doar la hover ===== */
@media (hover:hover) and (pointer:fine){
  .site-catalog.site-catalog--category .grid-image__sizebar{
    opacity: 0; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none; /* pune 'auto' dacă vrei click pe mărimi */
  }
  .site-catalog.site-catalog--category .product-summary:hover .grid-image__sizebar,
  .site-catalog.site-catalog--category .grid-image:hover .grid-image__sizebar{
    opacity: 1; transform: translateY(0);
  }
}
/* ===== mobile: bară mai îngustă + font mai mic + centrat ===== */
@media (max-width: 600px){
  .site-catalog.site-catalog--category .grid-image__sizebar{
    padding: 5px 7px; background: white;
  }
  .site-catalog.site-catalog--category .variant-attribute__values{ gap: 6px; }
  .site-catalog.site-catalog--category .variant-attribute__value{
    font-size: 10px; letter-spacing: .020em;
  }
}


 /* MUTAT ICON WISHLIST IN STANGA SUS  */
 /* Asigură referința pentru poziționare */
.site-catalog.site-catalog--category .grid-image { position: relative; }

/* Mută butonul „Favorite” în colțul stânga-sus al imaginii */
.site-catalog.site-catalog--category .grid-image__save-wishlist{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;                         /* peste bare/etichete (sizebar are z-index:3) */
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Dimensiunea iconului */
.site-catalog.site-catalog--category .grid-image__save-wishlist svg{
  width: 18px;
  height: 18px;
}

/* Hover efect (desktop) */
@media (hover:hover) and (pointer:fine){
  .site-catalog.site-catalog--category .grid-image__save-wishlist:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
  }
}

/* Starea „salvat” – colorează inima */
.site-catalog.site-catalog--category .grid-image__save-wishlist--saved svg{
  fill: #e53935;      /* roșu */
  stroke: #e53935;
}



/* Catalog: fă imaginile puțin mai lungi pe mobil */
@media (max-width: 600px){
  .site-catalog.site-catalog--category .grid-image__image-wrapper{
    aspect-ratio: 3 / 5 !important;  /* ușor mai înalt decât 1:1; poți încerca 3/4 pentru și mai înalt */
  }
  .site-catalog.site-catalog--category .grid-image__image{
    width: 100%;
    height: 100%;
    object-fit: cover;               /* umple cadrul fără benzi albe */
  }
}


/* Sticky SECTIUNEA CU DETALIILE DE PRODUS PRET TITULU ETC ETC doar pe desktop */
@media (min-width: 768px) {
/* Sticky doar pe desktop */
@media (min-width: 992px) {
  /* 1) Nu bloca sticky prin overflow pe ancestori */
  .page__content[data-section-id="product_summary"],
  .product-summary {
    overflow: visible !important;
  }

  /* 2) Grid pe 2 coloane (imagini + detalii) */
  .product-summary.product-summary--product-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 24px;
    align-items: start;
  }

  /* Coloana cu imagini – doar ca ancoră vizuală */
  .product-summary__images {
    position: relative;
  }

  /* 3) Detaliile – sticky în interiorul secțiunii de produs */
  .product-summary__details {
    position: sticky;
    top: calc(var(--header-h, 80px) + 12px); /* nu se suprapune peste header */
    z-index: 5;
    height: fit-content;
  }
}

/* Pe mobil rămâne normal */
@media (max-width: 991.98px) {
  .product-summary__details { position: static; }
}


/* Pe DESKTOP POZELE DE PRODUS AFISATE GRID 2 PE UN RAND  */

/* ===== Laptopuri + Desktop (≥1000px) → GRID ===== */
@media (min-width: 1000px) {
  .product-summary__main-images {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 24px;
  }

  .product-summary__thumbnails--ttb {
    display: none !important;
  }

  .product-summary__main-images .splide__track {
    overflow: visible !important;
    height: auto !important;
  }

  .product-summary__main-images .splide__list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* 2 pe rând */
    gap: 20px;
    transform: none !important;
    width: 100% !important;
  }

  .product-summary__main-images .splide__slide {
    display: block !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .product-summary__main-images img.product-summary__main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }

  .product-summary__main-images .splide__arrows,
  .product-summary__main-images .splide__pagination {
    display: none !important;
  }
}