/* SHW – aceeași familie ca Servicii/Transport: fundal închis, accente discrete cyan */
#SHW {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 0;
  box-sizing: border-box;
  background: #141a22;
  color: #e2e8f0;
  border-radius: 0;
}

#SHW .shw-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  gap: 0;
}

#SHW .shw-row {
  width: 100%;
  margin: 0;
}

/* Rând 1 – SH1: trei casete 25% | 50% | 25%; bandă puțin mai înaltă ca textul magazin să fie lizibil */
#SHW .shw-row-top {
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

#SHW .shw-sh1 {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  gap: 2px;
  padding: 2px;
  align-items: stretch;
}

#SHW .shw-sh1-cell {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  color: #cbd5e1;
  overflow: hidden;
}

#SHW .shw-sh1-1 {
  padding: 1px 2px;
  min-width: 0;
}

@keyframes shw-sh1-text-soft {
  0%,
  100% {
    color: #a5f3fc;
  }
  50% {
    color: #e2e8f0;
  }
}

/* Două rânduri fixe — fără flex 50%/50% pe fiecare (altfel spațiu uriaș între rânduri) */
#SHW .shw-sh1-magazin-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.12rem 0.2rem;
  gap: 0.03rem;
  text-decoration: none;
  color: #a5f3fc;
  text-shadow: none;
  animation: shw-sh1-text-soft 8s ease-in-out infinite;
}

#SHW .shw-sh1-magazin-line {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(1rem, 4.75vw, 1.42rem);
  font-weight: 900;
  line-height: 1.05;
  word-break: break-word;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
  color: inherit;
}

#SHW .shw-sh1-magazin-link:hover {
  color: #f0fdfa;
}

#SHW .shw-sh1-magazin-link:hover .shw-sh1-magazin-line {
  text-decoration: underline;
}

#SHW .shw-sh1-2 {
  padding: 0;
  border-color: rgba(255, 255, 255, 0.12);
}

#SHW .shw-sh1-3 {
  padding: 1px 2px;
}

/* SH1.3: aceeași animație, decalată cu 3s (½ ciclu) față de SH1.1 → niciodată aceeași culoare simultan */
#SHW .shw-sh1-donate-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.12rem 0.2rem;
  gap: 0.03rem;
  text-decoration: none;
  color: #bae6fd;
  text-shadow: none;
  animation: shw-sh1-text-soft 8s ease-in-out infinite;
  animation-delay: -4s;
}

#SHW .shw-sh1-donate-link:hover {
  color: #f0fdfa;
}

#SHW .shw-sh1-donate-link:hover .shw-sh1-donate-line {
  text-decoration: underline;
}

#SHW .shw-sh1-donate-line {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(0.95rem, 4.5vw, 1.35rem);
  font-weight: 900;
  line-height: 1.05;
  word-break: break-word;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
  color: inherit;
}

/* Desktop: text lung SH1.1 / SH1.3; variantă scurtă mobil portrait + landscape touch */
#SHW .shw-sh1-text--portrait {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #SHW .shw-sh1-magazin-link,
  #SHW .shw-sh1-donate-link {
    animation: none;
    color: #a5f3fc;
    text-shadow: none;
  }
}

/* SH4.1–SH4.3: rezervate pub, fără linkuri (momentan) */
#SHW .shw-sh4-pub {
  color: #94a3b8;
  font-size: 0.75rem;
}

#SHW .shw-header {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#SHW .shw-title {
  margin: 0;
  font-size: clamp(0.75rem, 2.2vw, 1.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f8fafc;
  line-height: 1.1;
  padding: 0 0.2rem;
}

/* Rând 2 – două casete stânga / dreapta; min-height:0 ca zona mijloc să se poată micșora și banda de jos să nu fie tăiată */
#SHW .shw-row-middle {
  display: flex;
  justify-content: space-between;
  gap: 0;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

#SHW .shw-row-middle-box {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

#SHW .shw-side-inner-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
}

#SHW .shw-side-inner-box {
  flex: 1 1 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.8rem;
}

#SHW .shw4-announcement {
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.5rem 0.6rem;
  text-align: center;
  color: #fcd34d;
}

#SHW .shw4-link {
  text-decoration: none;
}

#SHW .shw-row-middle-left,
#SHW .shw-row-middle-right {
  flex: 0 0 14%;
  max-width: 18%;
}

/* SH2 – zonă centrală cu taburi (CÂINI / PISICI / ACCESORII) */

#SHW .shw-row-middle-center {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
}

#SHW .shop-tabs-wrap {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

#SHW .shop-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  padding: 0;
  margin-top: 0.02rem;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#SHW .shop-tab {
  border: none;
  border-radius: 0;
  padding: 0.4rem 0;
  flex: 1 1 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#SHW .shop-tab:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #e2e8f0;
}

#SHW .shop-tab.active {
  background: linear-gradient(175deg, #5ee9f3 0%, #06b6d4 52%, #0e7490 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#SHW .shop-panels {
  flex: 1 1 0;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
}

#SHW .shop-panel {
  display: none;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  padding: 0;
}

#SHW .shop-panel.active {
  display: block;
}

#SHW .shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

#SHW .shop-grid-dogs {
  grid-auto-rows: 164px;
  max-height: calc(3 * 164px);
  overflow-y: auto;
}

#SHW .shop-grid-cats {
  grid-auto-rows: 164px;
  max-height: calc(3 * 164px);
  overflow-y: auto;
}

#SHW .shop-grid-accessories {
  grid-auto-rows: 164px;
  max-height: calc(3 * 164px);
  overflow-y: auto;
}

#SHW .shop-grid-dogs::-webkit-scrollbar,
#SHW .shop-grid-cats::-webkit-scrollbar,
#SHW .shop-grid-accessories::-webkit-scrollbar {
  width: 8px;
}
#SHW .shop-grid-dogs::-webkit-scrollbar-track,
#SHW .shop-grid-cats::-webkit-scrollbar-track,
#SHW .shop-grid-accessories::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.75);
}
#SHW .shop-grid-dogs::-webkit-scrollbar-thumb,
#SHW .shop-grid-cats::-webkit-scrollbar-thumb,
#SHW .shop-grid-accessories::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.45);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#SHW .shop-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  height: 100%;
  box-sizing: border-box;
}

#SHW .shop-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #a5f3fc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#SHW .shop-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Nuanțe discrete pe tab neactiv (fără galben/verde/albastru saturat) */
#SHW .shop-tab[data-tab="cats"] {
  color: #94a3b8;
  background: transparent;
}

#SHW .shop-tab[data-tab="accessories"] {
  color: #94a3b8;
  background: transparent;
}

#SHW .shop-tab[data-tab="dogs"].active,
#SHW .shop-tab[data-tab="cats"].active,
#SHW .shop-tab[data-tab="accessories"].active {
  background: linear-gradient(175deg, #5ee9f3 0%, #06b6d4 52%, #0e7490 100%);
  color: #ffffff;
}

#SHW .shop-panel#dogs {
  background: transparent;
}

#SHW .shop-panel#cats {
  background: transparent;
}

#SHW .shop-panel#accessories {
  background: transparent;
}

/* Rând 4 – bandă jos (slate, ca Servicii) */
#SHW .shw-row-bottom {
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  z-index: 4;
  min-height: 48px;
  border-radius: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
}

#SHW .shw-bottom-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

#SHW .shw-bottom-marquee {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#SHW .shw-bottom-track {
  display: inline-flex;
  white-space: nowrap;
  animation: shw-marquee 22s linear infinite;
}

#SHW .shw-bottom-text {
  display: inline-block;
  padding: 0 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#SHW .shw-bottom-sep {
  display: inline-block;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  color: #64748b;
}

#SHW .shw-bottom-sentence-sep {
  display: inline-block;
  padding: 0 0.75rem;
}

#SHW .shw-bottom-profit {
  color: #fecdd3;
}

@keyframes shw-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767.98px) {
  #SHW {
    padding: 0 0.5rem 0.75rem;
  }

  #SHW .shw-layout {
    gap: 0.4rem;
  }
}

/* Desktop / landscape: SH5 din dreapta — nu în coloana stângă */
#SHW .shw-pub-in-left-portrait-only {
  display: none !important;
}

/* Mobil portrait: lipit stânga/dreapta — fără goluri laterale */
@media (max-width: 767.98px) and (orientation: portrait) {
  #SHW {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  #SHW .shw-layout {
    gap: 0 !important;
  }

  #SHW .shw-sh1 {
    padding: 0 !important;
    gap: 0 !important;
  }

  #SHW .shw-row-top {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  #SHW .shw-sh1-text--desktop {
    display: none !important;
  }

  #SHW .shw-sh1-text--portrait {
    display: block !important;
  }

  #SHW .shw-sh1-magazin-link,
  #SHW .shw-sh1-donate-link {
    padding: 0.08rem 0.15rem !important;
    gap: 0 !important;
  }

  #SHW .shw-sh1-magazin-line.shw-sh1-text--portrait,
  #SHW .shw-sh1-donate-line.shw-sh1-text--portrait {
    font-size: clamp(0.58rem, 2.65vw, 0.72rem) !important;
    line-height: 1.12 !important;
    word-break: normal;
    hyphens: none;
  }

  #SHW .shw-row-middle {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  #SHW .shw-row-middle-center {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #SHW .shop-tabs-wrap {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #SHW .shop-panels {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }

  #SHW .shop-panel.active {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  #SHW .shw-row-middle-left {
    flex: 0 0 23%;
    min-width: 0;
    max-width: 25%;
  }

  #SHW .shw-row-middle-right {
    display: none !important;
  }

  #SHW .shw-pub-in-left-portrait-only {
    display: flex !important;
  }

  #SHW .shw-side-inner-grid {
    min-height: 0;
  }

  #SHW .shw-side-inner-box {
    flex: 1 1 0;
    min-height: 0;
  }

  #SHW .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #SHW .shop-grid-dogs,
  #SHW .shop-grid-cats,
  #SHW .shop-grid-accessories {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    --shop-portrait-visible-rows: 4;
    grid-auto-rows: calc(100% / var(--shop-portrait-visible-rows)) !important;
    align-content: start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #SHW .shop-card {
    min-height: 0 !important;
    overflow: hidden;
  }
}

/* Mobil landscape touch (telefon): SH1 compact — aceleași 3 texte ca portrait */
@media (orientation: landscape) and (max-height: 34em) and (hover: none) and (pointer: coarse) {
  body.page-shop #main_content #SHW {
    height: calc(100dvh - var(--nav-height, var(--nav-h, 64px))) !important;
    max-height: calc(100dvh - var(--nav-height, var(--nav-h, 64px))) !important;
  }

  #SHW {
    padding: 0 !important;
    margin: 0 !important;
  }

  #SHW .shw-layout {
    gap: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 0 !important;
  }

  #SHW .shw-sh1 {
    padding: 0 !important;
    gap: 0 !important;
  }

  #SHW .shw-row-top {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  #SHW .shw-sh1-text--desktop {
    display: none !important;
  }

  #SHW .shw-sh1-text--portrait {
    display: block !important;
  }

  #SHW .shw-sh1-magazin-link,
  #SHW .shw-sh1-donate-link {
    padding: 0.08rem 0.15rem !important;
    gap: 0 !important;
  }

  #SHW .shw-sh1-magazin-line.shw-sh1-text--portrait,
  #SHW .shw-sh1-donate-line.shw-sh1-text--portrait {
    font-size: clamp(0.58rem, 2.65vw, 0.72rem) !important;
    line-height: 1.12 !important;
    word-break: normal;
    hyphens: none;
  }

  /* Pub: 3 stânga (SH4) + 3 dreapta (SH5) — nu merge portrait 6-stânga */
  #SHW .shw-pub-in-left-portrait-only {
    display: none !important;
  }

  #SHW .shw-row-middle {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    align-items: stretch !important;
    height: auto !important;
    overflow: hidden !important;
  }

  #SHW .shw-row-middle-box {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  #SHW .shw-row-middle-left,
  #SHW .shw-row-middle-right {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 14% !important;
    max-width: 18% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #SHW .shw-side-inner-grid {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #SHW .shw-side-inner-box {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }

  #SHW .shw-row-middle-center {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #SHW .shop-tabs-wrap {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  #SHW .shop-panels {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }

  #SHW .shop-panel.active {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  /* Produse: 4 coloane × 2 rânduri vizibile, restul scroll */
  #SHW .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #SHW .shop-grid-dogs,
  #SHW .shop-grid-cats,
  #SHW .shop-grid-accessories {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    --shop-landscape-visible-rows: 2;
    grid-auto-rows: calc(100% / var(--shop-landscape-visible-rows)) !important;
    align-content: start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #SHW .shop-card {
    min-height: 0 !important;
    overflow: hidden;
  }

  /* Bandă cursivă jos — lipită de marginea ecranului */
  #SHW .shw-row-bottom {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin: 0 !important;
    min-height: 40px !important;
    max-height: 40px !important;
    height: 40px !important;
    align-self: stretch !important;
  }
}

/* Mobil landscape: coloanele laterale (SH4 / SH5) umplu înălțimea rândului mijlociu — fără alte schimbări de layout */
@media (max-width: 767.98px) and (orientation: landscape) {
  #SHW .shw-row-middle {
    flex: 1 1 0;
    min-height: 0;
    align-items: stretch;
  }

  #SHW .shw-row-middle-left,
  #SHW .shw-row-middle-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
    height: 100%;
  }

  #SHW .shw-side-inner-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }
}

