/* Main-site homepage shop carousel — compact header, balanced layout */
.shw-widget {
  margin: 0 0 1.75rem;
  padding: 1.25rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.035) 0%, rgba(15, 23, 42, 0) 100%);
  border-block: 1px solid rgba(15, 23, 42, 0.07);
  box-sizing: border-box;
}

.shw-widget__contain {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

/* Header: stack on narrow screens, row on wider */
.shw-widget__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .shw-widget__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
  }
}

/* Lead: logo (small) + titles */
.shw-widget__lead {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.shw-widget__logo-wrap {
  flex: 0 0 auto;
  width: clamp(72px, 22vw, 100px);
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.shw-widget__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(26px, 7vw, 32px);
  object-fit: contain;
  object-position: center right;
}

.shw-widget__titles {
  min-width: 0;
  flex: 1 1 min(0, 100%);
}

.shw-widget__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.shw-widget__title {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.shw-widget__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .shw-widget__actions {
    justify-content: flex-end;
  }
}

.shw-widget__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: #0f766e;
  color: #fff !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.18);
  white-space: nowrap;
}

.shw-widget__link:hover {
  filter: brightness(1.06);
}

.shw-widget__btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.shw-widget__btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.shw-widget__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-inline: -0.15rem;
  padding-bottom: 0.3rem;
  max-width: 100%;
  outline: none;
}

.shw-widget__viewport:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}

.shw-widget__viewport::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}


.shw-widget__track {
  display: flex;
  gap: 0.75rem;
  padding: 0.15rem 0.15rem 0.45rem;
  min-height: 1px;
}

.shw-widget__card {
  flex: 0 0 clamp(140px, 38vw, 188px);
  scroll-snap-align: start;
}

.shw-widget__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shw-widget__card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.shw-widget__thumb {
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  position: relative;
}

.shw-widget__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shw-widget__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.shw-widget__body {
  padding: 0.5rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
}

.shw-widget__name {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shw-widget__price {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f766e;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}

.shw-widget__price-value {
  unicode-bidi: isolate;
}

.shw-widget__price-note {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  max-width: 100%;
}

.shw-widget__price--muted {
  color: #64748b;
  font-weight: 700;
  font-size: 0.72rem;
}

@media (max-width: 520px) {
  .shw-widget {
    padding: 1rem 0 1.25rem;
    margin-bottom: 1.35rem;
  }
  .shw-widget__actions .shw-widget__link {
    font-size: 0.76rem;
    padding: 0.38rem 0.7rem;
  }
  .shw-widget__logo-wrap {
    width: clamp(64px, 20vw, 88px);
  }
}

/* Classic theme: .container wrapper */
.shw-widget .container {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}

.shw-widget__empty {
  padding: 0.35rem 0 0.15rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 52ch;
}

.shw-widget__link--secondary {
  display: inline-flex;
  margin-top: 0.65rem;
  background: #fff !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.35);
  box-shadow: none;
}

/* Back-compat: old class name (no longer in blade) */
.shw-widget__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
