/* E-Wish Store - Homepage Clone */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;800&display=swap');
@import url('header.css');

:root {
  --text-primary: #121212;
  --text-secondary: #272727;
  --bg-primary: #ffffff;
  --bg-secondary: #f2f2f2;
  --sale-color: #d6683c;
  --badge-sale: #971316;
  --promo-red: #9b3132;
  --container: min(100% - 48px, 1660px);
  --gap: 24px;
  --radius: 8px;
  --header-height: 72px;
  --site-top-offset: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.hero-slideshow__track {
  display: flex;
  transition: transform .6s ease;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.8 / 1;
  object-fit: cover;
  transition: transform .5s ease, opacity .35s ease;
}

.hero-slide:hover img {
  transform: scale(1.02);
  opacity: .92;
}

.hero-slideshow__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-slideshow__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all .3s;
}

.hero-slideshow__dots button.is-active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* Collection Grid */
.section { padding: 48px 0; }
.section--tight { padding: 32px 0; }

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.section-header .link-underline {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.collection-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease;
}

.collection-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.collection-item:hover img { transform: scale(1.05); }

.collection-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.collection-item__overlay h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
}

/* Logo Marquee */
.logo-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  background: #fff;
}

.logo-marquee__scale {
  display: inline-block;
  animation: moveLogos 25s linear infinite;
}

.logo-marquee__scale:hover {
  animation-play-state: paused;
}

.logo-marquee__item {
  display: inline-block;
  vertical-align: middle;
  margin: 0 25px;
}

.logo-marquee__item img {
  width: 140px;
  height: auto;
  display: inline-block;
}

@keyframes moveLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Product Carousel */
.carousel-wrap { position: relative; }

.product-carousel {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 24px 8px;
}

.product-carousel::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 calc(20% - 20px);
  min-width: 180px;
  scroll-snap-align: start;
  text-align: center;
}

.product-card__figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 12px;
  background: #f8f8f8;
}

.product-card__figure .product-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.product-card__figure .img-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .img-primary { opacity: 0; }
.product-card:hover .img-secondary { opacity: 1; }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--badge-sale);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge--shipping { background: var(--text-secondary); border-radius: 5px; }

.product-card__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.price-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sale-price { color: var(--sale-color); font-weight: 700; }
.compare-price { color: #999; text-decoration: line-through; font-size: 13px; }
.discount-badge {
  background: var(--sale-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.carousel-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(18,18,18,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.carousel-btn:hover { background: var(--text-secondary); color: #fff; }
.carousel-btn:disabled { opacity: .3; cursor: not-allowed; }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

.carousel-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.carousel-btn--prev::after { transform: rotate(135deg); margin-left: 4px; }
.carousel-btn--next::after { transform: rotate(-45deg); margin-right: 4px; }

/* Promo Banners */
.promo-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease;
}

.promo-banner:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.promo-banner:hover img { transform: scale(1.05); }

.promo-banner__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.reviews-banner {
  text-align: center;
  margin-top: 32px;
}

.reviews-banner h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.reviews-banner a {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #1f4a2e;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}

.reviews-banner a:hover {
  background: #163622;
  transform: translateY(-1px);
}

/* Decor Cards */
.decor-cards {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 24px;
}

.decor-cards::-webkit-scrollbar { display: none; }

.decor-card {
  flex: 0 0 calc(33.33% - 16px);
  min-width: 280px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .35s ease, transform .35s ease;
}

.decor-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transform: translateY(-4px);
}

.decor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.decor-card:hover img {
  transform: scale(1.08);
}

.decor-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0,0,0,.3);
  color: #fff;
  padding: 24px;
  text-align: center;
  transition: background .35s ease;
}

.decor-card:hover .decor-card__content {
  background: rgba(0,0,0,.45);
}

.decor-card__content h4 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .35s ease;
}

.decor-card:hover .decor-card__content h4 {
  transform: scale(1.03);
}

.decor-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s ease, transform .35s ease;
}

.decor-card:hover .decor-card__arrow {
  opacity: 1;
  transform: scale(1);
}

.decor-card__arrow svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

/* Before / After */
.before-after-section .section-stack {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}

.before-after {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.before-after__after {
  position: relative;
}

.before-after__after img {
  width: 100%;
  display: block;
}

.before-after__before {
  position: absolute;
  inset: 0;
  width: 30%;
  overflow: hidden;
}

.before-after__before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.before-after__label {
  position: absolute;
  bottom: 16px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.before-after__label--before { left: 16px; }
.before-after__label--after { right: 16px; }

.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
}

.before-after__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 40px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  background-image: linear-gradient(to right, transparent 40%, #121212 40%, #121212 45%, transparent 45%, transparent 55%, #121212 55%, #121212 60%, transparent 60%);
}

.empty-wall-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 16px;
}

.empty-wall-text p { font-size: 15px; line-height: 1.6; }

/* Media with Text */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.media-text__video {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.media-text__video video,
.media-text__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.media-text__content {
  display: flex;
  align-items: center;
  padding: 32px;
  text-align: center;
}

.media-text__content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.media-text__content p { font-size: 14px; line-height: 1.7; }

/* Brand Values */
.brand-values { max-width: 1200px; margin: 0 auto; text-align: center; }

.brand-values h3 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.brand-values > p {
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.value-item p {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.value-item img { width: 100%; border-radius: var(--radius); }

/* Inspiration Grid */
.inspiration-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 24px;
}

.inspiration-carousel::-webkit-scrollbar { display: none; }

.inspiration-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.inspiration-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.inspiration-item:hover img { transform: scale(1.05); }

.inspiration-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
}

/* Blog Posts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.blog-card { border-radius: var(--radius); overflow: hidden; }

.blog-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body { padding: 16px 0; }

.blog-card__body h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card__body p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  font-size: 13px;
  opacity: .8;
  transition: opacity .2s;
}

.footer-col ul a:hover { opacity: 1; }

.newsletter {
  margin-top: 16px;
}

.newsletter h4 { margin-bottom: 8px; }

.newsletter p { font-size: 13px; margin-bottom: 12px; }

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  height: 42px;
  border: 1px solid rgba(18,18,18,.2);
  border-radius: 4px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
}

.newsletter-form button {
  height: 42px;
  padding: 0 20px;
  background: var(--text-secondary);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(18,18,18,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-bottom .copyright { opacity: .7; }

/* Responsive */
@media (max-width: 1200px) {
  .product-card { flex: 0 0 calc(25% - 18px); }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid .value-item:last-child { grid-column: span 3; max-width: 200px; margin: 0 auto; }
}

@media (max-width: 999px) {
  .product-card { flex: 0 0 calc(33.33% - 16px); }
  .before-after-section .section-stack { grid-template-columns: 1fr; }
  .media-text { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .promo-banners { grid-template-columns: 1fr; }
  .decor-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 699px) {
  :root { --container: min(100% - 32px, 1660px); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { flex: 0 0 calc(74vw); min-width: 74vw; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid .value-item:last-child { grid-column: span 2; }
  .hero-slide img { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
}
