/* =========================================================
   Vitabolic - Producători redesign
   Scope: .producers-page only
   ========================================================= */
.producers-page {
  --prod-bg: #f3eee6;
  --prod-panel: #fffdf9;
  --prod-panel-soft: #fbf5eb;
  --prod-line: #e6d4b9;
  --prod-gold: #d39a24;
  --prod-gold-dark: #a66a00;
  --prod-text: #111111;
  --prod-muted: #6f5b45;
  background: var(--prod-bg);
  color: var(--prod-text);
}

.producers-page,
.producers-page * {
  box-sizing: border-box;
}

.producers-page .bar-content,
.producers-page.producers-page {
  background: var(--prod-bg) !important;
}

.producers-page .producers-wrapper {
  max-width: 1480px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 42px 0 70px;
}

/* pagina asta nu are nevoie de sidebar */
.producers-page #box-left-sidebar,
.producers-page #right-sidebar-tablet {
  display: none !important;
}

.producers-page .producers-main,
.producers-page .box80.producers-main {
  float: none !important;
  width: 100% !important;
  max-width: 1240px;
  margin: 0 auto !important;
}

.producers-hero {
  text-align: center;
  margin: 0 0 28px;
  padding: 22px 20px 28px;
  border: 1px solid var(--prod-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(211,154,36,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,253,249,.92));
  box-shadow: 0 20px 55px rgba(94, 64, 35, .08);
}

.producers-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--prod-gold-dark);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.producers-hero h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.05;
  font-weight: 400;
  color: #050505;
}

.producers-hero h1:after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--prod-gold), transparent);
}

.producers-hero p {
  margin: 14px auto 22px;
  max-width: 620px;
  color: var(--prod-muted);
  font-size: 15px;
  line-height: 1.55;
}

.producers-search-box {
  position: relative;
  max-width: 380px;
  width: min(100%, 380px);
  margin: 0 auto;
}

.producers-search-box input {
  width: 100% !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 1px solid var(--prod-line) !important;
  background: rgba(255,255,255,.84) !important;
  color: var(--prod-text) !important;
  padding: 0 52px 0 20px !important;
  font-size: 15px !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 26px rgba(94,64,35,.06) !important;
}

.producers-search-box input:focus {
  border-color: var(--prod-gold) !important;
  box-shadow: 0 0 0 3px rgba(211,154,36,.16), 0 14px 28px rgba(94,64,35,.08) !important;
}

.producers-search-box i {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #deb34b, #cf921d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(211,154,36,.28);
}

.producers-card-shell {
  border: 1px solid var(--prod-line);
  border-radius: 24px;
  background: rgba(255,253,249,.82);
  padding: 24px;
  box-shadow: 0 22px 65px rgba(94,64,35,.08);
}

.producers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--prod-line);
}

.producers-total {
  color: var(--prod-muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.producers-reset {
  min-height: 36px;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--prod-gold-dark);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.producers-reset:hover {
  border-color: var(--prod-gold);
  color: #fff;
  background: linear-gradient(180deg, #deb34b, #cf921d);
}

.producers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.producer-card {
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
}

.producer-card.is-hidden {
  display: none !important;
}

.producer-card a {
  position: relative;
  min-height: 220px;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px 20px;
  border: 1px solid var(--prod-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,242,.90));
  color: var(--prod-text) !important;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(94,64,35,.055);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.producer-card a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--prod-gold), transparent);
  opacity: .75;
}

.producer-card a:hover {
  transform: translateY(-4px);
  border-color: var(--prod-gold);
  box-shadow: 0 24px 50px rgba(94,64,35,.13);
}

.producer-logo-box {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
}

.producer-logo-box img {
  max-width: 170px !important;
  max-height: 86px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  filter: none !important;
  transition: transform .2s ease;
}

.producer-card a:hover .producer-logo-box img {
  transform: scale(1.045);
}

.producer-logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--prod-line);
  background: var(--prod-panel-soft);
  color: var(--prod-gold-dark);
  font-size: 28px;
  font-family: Georgia, 'Times New Roman', serif;
}

.producer-card h2 {
  margin: 0;
  color: var(--prod-text);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.producer-card-link {
  color: var(--prod-gold-dark);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .95;
}

.producer-card-link i {
  margin-left: 4px;
  transition: transform .2s ease;
}

.producer-card a:hover .producer-card-link i {
  transform: translateX(3px);
}

.producers-empty {
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--prod-muted);
  text-align: center;
  border: 1px dashed var(--prod-line);
  border-radius: 18px;
  background: rgba(255,250,242,.65);
}

.producers-empty i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prod-gold);
  border: 1px solid var(--prod-line);
  background: #fffaf3;
}

@media only screen and (max-width: 1180px) {
  .producers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 850px) {
  .producers-page .producers-wrapper {
    width: calc(100% - 28px);
    padding-top: 26px;
  }

  .producers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .producer-card a {
    min-height: 190px;
    padding: 18px 12px;
  }

  .producer-logo-box {
    height: 82px;
  }

  .producer-logo-box img {
    max-width: 135px !important;
    max-height: 72px !important;
  }
}

@media only screen and (max-width: 520px) {
  .producers-page .producers-wrapper {
    width: calc(100% - 20px);
    padding: 20px 0 48px;
  }

  .producers-hero {
    padding: 20px 14px 22px;
    border-radius: 18px;
  }

  .producers-hero h1 {
    font-size: 38px;
  }

  .producers-card-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .producers-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .producers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .producer-card a {
    min-height: 162px;
    border-radius: 14px;
    gap: 8px;
  }

  .producer-logo-box {
    height: 66px;
  }

  .producer-logo-box img {
    max-width: 112px !important;
    max-height: 58px !important;
  }

  .producer-card h2 {
    font-size: 12px;
  }

  .producer-card-link {
    display: none;
  }
}


/* v2: search mai compact */
@media only screen and (max-width: 700px) {
  .producers-search-box {
    max-width: 320px;
    width: 100%;
  }

  .producers-search-box input {
    height: 46px !important;
    font-size: 14px !important;
  }

  .producers-search-box i {
    width: 34px;
    height: 34px;
  }
}

/* v3 hard override: bara de cautare mai ingusta, peste regulile din main.css/jQuery mobile */
html body main#main.producers-page .producers-hero .producers-search-box {
  display: block !important;
  width: 360px !important;
  max-width: 360px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body main#main.producers-page .producers-hero .producers-search-box input#producerSearch {
  display: block !important;
  width: 360px !important;
  max-width: 360px !important;
  min-width: 0 !important;
  height: 46px !important;
  padding-left: 18px !important;
  padding-right: 50px !important;
}

html body main#main.producers-page .producers-hero .producers-search-box .fa-search,
html body main#main.producers-page .producers-hero .producers-search-box i.fa-search {
  width: 34px !important;
  height: 34px !important;
  right: 6px !important;
  font-size: 14px !important;
}

@media only screen and (max-width: 700px) {
  html body main#main.producers-page .producers-hero .producers-search-box,
  html body main#main.producers-page .producers-hero .producers-search-box input#producerSearch {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
  }
}

/* v4: fix real pentru latimea search-ului, mai ales pe mobile.
   Problema era ca input-ul primea width fix + padding in content-box si iesea din card. */
html body main#main.producers-page,
html body main#main.producers-page *,
html body main#main.producers-page *::before,
html body main#main.producers-page *::after {
  box-sizing: border-box !important;
}

html body main#main.producers-page .producers-hero {
  overflow: hidden !important;
}

html body main#main.producers-page .producers-hero .producers-search-box {
  width: 340px !important;
  max-width: 340px !important;
  min-width: 0 !important;
}

html body main#main.producers-page .producers-hero .producers-search-box input#producerSearch {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media only screen and (max-width: 700px) {
  html body main#main.producers-page .producers-hero {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  html body main#main.producers-page .producers-hero .producers-search-box {
    width: 240px !important;
    max-width: calc(100vw - 96px) !important;
  }

  html body main#main.producers-page .producers-hero .producers-search-box input#producerSearch {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 0 46px 0 16px !important;
    font-size: 14px !important;
  }

  html body main#main.producers-page .producers-hero .producers-search-box .fa-search,
  html body main#main.producers-page .producers-hero .producers-search-box i.fa-search {
    width: 32px !important;
    height: 32px !important;
    right: 6px !important;
  }
}

@media only screen and (max-width: 360px) {
  html body main#main.producers-page .producers-hero .producers-search-box {
    width: 220px !important;
    max-width: calc(100vw - 86px) !important;
  }
}
