/* Homepage showcase sections — see components/home/HomeShowcaseSections.tsx. */
.sw-showcase-band {
  padding: 56px 0;
}
.sw-showcase-dark {
  background: #111214;
}
.sw-showcase-light {
  background: #f5f5f4;
}
.sw-showcase-white {
  background: #fff;
}

.sw-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.sw-showcase-header-center {
  flex-direction: column;
  text-align: center;
  margin-bottom: 40px;
}
.sw-showcase-dark .sw-showcase-header h2 {
  color: #fff;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.sw-showcase-light h2,
.sw-showcase-white h2 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: #171717;
}
.sw-showcase-eyebrow {
  color: var(--sw-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sw-showcase-viewall {
  color: var(--sw-primary-light);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sw-showcase-viewall:hover {
  color: #fff;
}

/* Deals band: 3 compact lists + 1 promo card */
.sw-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 24px;
}
@media (max-width: 1100px) {
  .sw-deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .sw-deals-grid {
    grid-template-columns: 1fr;
  }
}

.sw-compact-list {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 20px;
}
.sw-compact-list-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #171717;
}
.sw-compact-list-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sw-compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sw-compact-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
}
.sw-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-compact-info {
  min-width: 0;
}
.sw-compact-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.sw-compact-title:hover {
  color: var(--sw-primary);
}
.sw-compact-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sw-primary);
  margin-bottom: 2px;
}

.sw-promo-card {
  background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-hover));
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.sw-promo-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.sw-promo-card h3 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}
.sw-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #fff;
  color: var(--sw-primary);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
}
.sw-promo-btn:hover {
  background: #f2f2f2;
}

/* Blog band */
.sw-blog-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -4px;
}
.sw-blog-grid::-webkit-scrollbar {
  display: none;
}
.sw-blog-card {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}
.sw-blog-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sw-primary-light), var(--sw-primary));
}
.sw-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-blog-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}
.sw-blog-date span {
  display: block;
  font-size: 18px;
}
.sw-blog-body {
  padding: 20px;
}
.sw-blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}
.sw-blog-meta i {
  margin-right: 4px;
}
.sw-blog-body h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #171717;
  line-height: 1.4;
}
.sw-blog-excerpt {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #777;
  line-height: 1.6;
}
.sw-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sw-primary);
  font-weight: 700;
  font-size: 13.5px;
}

/* Testimonials band — a horizontally scrolling, scroll-snap row (same
   technique as ProductGrid's `.sw-product-scroll`) instead of a wrapping
   grid, so any number of testimonials reads as one swipeable strip rather
   than reflowing into more rows. */
.sw-testimonial-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -4px;
}
.sw-testimonial-grid::-webkit-scrollbar {
  display: none;
}
.sw-testimonial-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-testimonial-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 15px;
  cursor: pointer;
}
.sw-testimonial-nav button:hover {
  border-color: var(--sw-primary);
  color: var(--sw-primary);
}
.sw-testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
}
@media (max-width: 600px) {
  .sw-testimonial-card {
    flex-basis: 85%;
  }
}
.sw-testimonial-quote-icon {
  color: var(--sw-primary-light);
  font-size: 22px;
  margin-bottom: 14px;
}
.sw-testimonial-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.sw-testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sw-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sw-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sw-testimonial-role {
  font-size: 12.5px;
  color: #999;
}
.sw-testimonial-stars {
  margin-top: 14px;
}

/* Collections strip (Home3Collections.tsx / home3.css's .so-spotlight5) —
   home3.css only sets `img { width: 100% }` with no height/aspect-ratio, so
   real photos (which don't all share one aspect ratio, unlike the theme's
   original uniform demo images) render each tile at a different height and
   the row visibly misaligns/collapses. Force a fixed square aspect ratio +
   cover crop so every tile lines up regardless of the source photo shape. */
.so-spotlight5 .collection-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.so-spotlight5 .collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
