/* Homepage — full-width e-commerce layout */

.page-home-ecom .home-shop-shell {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home-ecom .home-shop-main {
  width: 100%;
  min-width: 0;
}

.page-home-ecom .home-section-inner {
  width: 100%;
}

.page-home-ecom .section-band {
  padding-top: clamp(1.15rem, 2vw, 1.75rem);
  padding-bottom: clamp(1.15rem, 2vw, 1.75rem);
}

/* Flash strip */
.home-flash-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home-flash-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-flash-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 74, 62, 0.12);
}

.home-flash-pill-trending {
  background: linear-gradient(135deg, #fff8ee 0%, #ffe8c8 100%);
  border-color: #e8b84a;
}

.home-flash-pill-offers {
  background: linear-gradient(135deg, #fff0f0 0%, #ffd6d6 100%);
  border-color: #e88a8a;
}

.home-flash-pill strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green, #2d4a3e);
}

.home-flash-pill span {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7c72);
}

.home-flash-icon {
  font-size: 1.35rem;
  line-height: 1;
}

/* Zone sections — scoped to home shop shell for consistent alignment */
.page-home-ecom .home-shop-main > #zone-trending,
.page-home-ecom .home-shop-main > #zone-offers {
  width: 100%;
  scroll-margin-top: clamp(4.5rem, 12vw, 6rem);
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending,
.page-home-ecom .home-shop-main .section-band.section-zone-offers {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  margin-bottom: 0.35rem;
  padding: 0.65rem 0 clamp(1.15rem, 2vw, 1.75rem);
  border-radius: 0 0 16px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.95) 0%, rgba(255, 255, 255, 0) 82%) !important;
  border: 0;
  border-top: 3px solid #e8b84a;
}

.page-home-ecom .home-shop-main .section-band.section-zone-offers {
  background: linear-gradient(180deg, rgba(255, 240, 240, 0.95) 0%, rgba(255, 255, 255, 0) 82%) !important;
  border: 0;
  border-top: 3px solid #d64545;
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending .home-section-inner,
.page-home-ecom .home-shop-main .section-band.section-zone-offers .home-section-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-home-ecom .home-shop-main .section-ecom .section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  width: 100%;
}

.page-home-ecom .home-shop-main .section-ecom .section-head-text {
  flex: 1 1 12rem;
  min-width: 0;
}

.page-home-ecom .home-shop-main .section-ecom .section-head .link-more {
  flex: 0 0 auto;
  margin-left: auto;
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending .section-head h2::after,
.page-home-ecom .home-shop-main .section-band.section-zone-offers .section-head h2::after {
  content: none;
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending .section-zone-tag,
.page-home-ecom .home-shop-main .section-band.section-zone-offers .section-zone-tag {
  margin: 0 0 0.3rem;
}

.page-home-ecom .home-shop-main .section-band.section-zone-trending .product-grid,
.page-home-ecom .home-shop-main .section-band.section-zone-offers .product-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.section-zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin: 0 0 0.35rem;
}

.section-zone-tag-trending {
  background: #e8b84a;
  color: #3d2e00;
}

.section-zone-tag-offers {
  background: #d64545;
  color: #fff;
}

/* Highlighted product cards */
.product-card--trending {
  border: 2px solid #e8b84a;
  box-shadow: 0 6px 20px rgba(232, 184, 74, 0.2);
}

.product-card--trending .badge-trending {
  background: #e8b84a;
  color: #3d2e00;
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

.product-card--offers {
  border: 2px solid #d64545;
  box-shadow: 0 6px 20px rgba(214, 69, 69, 0.15);
}

.product-card--offers .badge-sale,
.product-card--offers .badge-hot-offer {
  background: #d64545;
  color: #fff;
  font-weight: 700;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Homepage grids — full container width */
.page-home-ecom .section-ecom .product-grid {
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 992px) {
  .page-home-ecom .section-ecom .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1400px) {
  .page-home-ecom .section-ecom .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Inline offers (inside shop shell — no double container) */
.offers-inline {
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.offers-inline .section-head-center {
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.offers-inline .offers-intro {
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0.15rem;
}

.offers-inline .offers-cards-grid {
  justify-content: center;
  margin-inline: auto;
}

.offers-inline .offers-cards-grid > .offer-card {
  flex: 0 1 320px;
  width: min(100%, 320px);
  max-width: 320px;
}

/* Flash deals — horizontal strip (full width) */
.home-deals-sidebar {
  position: static;
  background: #fff;
  border: 1px solid var(--border, #e8e0d4);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(45, 74, 62, 0.06);
  margin-bottom: 1rem;
  max-height: none;
  overflow: visible;
}

.home-deals-sidebar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border, #e8e0d4);
}

.home-deals-sidebar-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.home-deals-note {
  font-size: 0.75rem;
  margin: 0;
  flex: 1 1 100%;
}

.home-deals-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-deals-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 991px) {
  .page-home-ecom .home-deals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-deals-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.deal-sidebar-card {
  border: 1px solid var(--border, #e8e0d4);
  border-radius: 12px;
  overflow: hidden;
  background: #faf8f5;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.deal-sidebar-card.deal-urgent {
  border-color: #d64545;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.15);
}

.deal-sidebar-card.deal-urgent .deal-timer-bar {
  background: #d64545;
  color: #fff;
}

.deal-timer-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  background: var(--green, #2d4a3e);
  color: #fff;
  font-size: 0.68rem;
}

.deal-timer-bar strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.deal-sidebar-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.55rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.deal-sidebar-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(26, 61, 50, 0.06);
}

.deal-sidebar-body h3 {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.1rem 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-sidebar-brand {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}

.deal-sidebar-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.deal-sidebar-price .badge {
  font-size: 0.55rem;
}

.deal-sidebar-wa {
  display: block;
  margin: 0 0.55rem 0.55rem;
  text-align: center;
  width: calc(100% - 1.1rem);
  font-size: 0.72rem;
  padding: 0.4rem 0.5rem;
}

@media (max-width: 639px) {
  .home-flash-strip {
    grid-template-columns: 1fr;
  }

  .home-deals-list {
    grid-template-columns: 1fr;
  }

  .deal-sidebar-link {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .deal-sidebar-link .deal-sidebar-img {
    flex: 0 0 6.75rem;
    width: 6.75rem;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border: 1px solid rgba(26, 61, 50, 0.06);
  }

  .deal-sidebar-body {
    flex: 1;
    min-width: 0;
  }
}

/* —— Homepage responsive alignment —— */
.page-home-ecom .site-main {
  overflow-x: clip;
}

.page-home-ecom .home-section-inner {
  max-width: 100%;
  box-sizing: border-box;
}

.page-home-ecom .social-proof-bar .container {
  padding-inline: var(--layout-pad-x);
  box-sizing: border-box;
}

.page-home-ecom .brands-section .container {
  padding-inline: var(--layout-pad-x);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .page-home-ecom .home-shop-main .section-ecom .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-home-ecom .home-shop-main .section-ecom .section-head .link-more {
    margin-left: 0;
    white-space: normal;
  }

  .page-home-ecom .instagram-section .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-home-ecom .instagram-section .section-head .link-more {
    margin-left: 0;
    white-space: normal;
  }

  .page-home-ecom .hero-2026-shell {
    margin-left: var(--layout-pad-x);
    margin-right: var(--layout-pad-x);
  }

  .page-home-ecom .hero-2026-controls {
    width: 100%;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .page-home-ecom .home-shop-shell {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .page-home-ecom .section-band {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page-home-ecom .trust-marquee {
    margin-top: 0.65rem;
  }

  .page-home-ecom .social-proof-bar {
    margin: 1rem 0 1.15rem;
  }
}

@media (max-width: 639px) {
  .page-home-ecom .offers-inline .offers-cards-grid > .offer-card {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .page-home-ecom .category-grid {
    gap: 0.75rem;
  }

  .page-home-ecom .insta-grid {
    gap: 0.45rem;
  }

  .page-home-ecom .reviews-grid {
    gap: 0.85rem;
  }

  .page-home-ecom .brand-card {
    text-align: center;
  }

  .page-home-ecom .brand-card .btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 380px) {
  .page-home-ecom .section-ecom .product-grid {
    gap: 0.85rem 0.65rem;
  }

  .page-home-ecom .home-flash-pill {
    padding: 0.75rem 0.85rem;
  }

  .page-home-ecom .home-deals-sidebar {
    padding: 0.85rem;
  }
}
