/* ==========================================================================
   Cosmetics Store — Homepage Styles
   Static file: static/css/home.css
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Palette: matches oscar-custom.css variables
   ========================================================================== */

:root {
  --purple-tint:   #f5f0ff;
  --purple-light:  #c9b8f5;
  --purple-mid:    #7c4fd4;
  --purple:        #3e03ab;
  --purple-dark:   #280070;
  --blue-tint:     #eef8fc;
  --blue-light:    #b8e2f0;
  --blue:          #77c4df;
  --blue-mid:      #4a9db8;
  --blue-dark:     #1f5f78;
}

/* ---------- Typography baseline ---------- */
body {
  font-family: 'DM Sans', sans-serif;
}
h1, h2, h3, h4,
.hero-title,
.section-title,
.about-title,
.newsletter-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page_inner {
  padding: 10px;
}

/* ---------- Container ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-track {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.18) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 600px;
  animation: heroFadeUp 0.9s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 72px);
  color: #fff;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
  line-height: 1.6;
  max-width: 420px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s, gap 0.2s;
}
.btn-hero:hover {
  background: var(--purple-dark);
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
.btn-arrow {
  transition: transform 0.2s;
}
.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

/* Carousel controls */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-nav:hover { background: rgba(255,255,255,0.25); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ==========================================================================
   2. TRUST BAR
   ========================================================================== */
.trust-bar {
  background: var(--purple-dark);
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  border-right: 0.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}
.trust-item:last-child { border-right: none; }

.trust-icon {
  color: var(--blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.trust-label {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: block;
}
.trust-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: block;
}

/* ==========================================================================
   3. SECTION COMMONS
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--purple-dark);
  margin: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  white-space: nowrap;
}
.section-link:hover { color: var(--purple); }

/* Scroll reveal */
[data-aos] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   4. CATEGORIES
   ========================================================================== */
.categories-section {
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s;
}
.category-card:hover { transform: translateY(-4px); text-decoration: none; }

.category-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--purple-tint);
}
.category-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-img-wrap img {
  transform: scale(1.07);
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62,3,171,0.12);
  transition: background 0.2s;
}
.category-card:hover .category-overlay {
  background: rgba(62,3,171,0.22);
}
.category-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  color: var(--purple-mid);
}
.category-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   5 & 6. PRODUCT GRIDS
   ========================================================================== */
.products-section--featured { background: var(--purple-light); }
.products-section--new      { background: var(--purple-tint); }

/* Desktop: 4 columns. Tablet: 3. Mobile: horizontal scroll with big cards. */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(62,3,171,0.14);
  transform: translateY(-5px);
}

.product-img-link {
  display: block;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.product-img-wrap {
  width: 100%;
  padding-bottom: 110%;
  position: relative;
  overflow: hidden;
  background: var(--purple-tint);
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--purple-mid);
  background: var(--purple-tint);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}
.badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.badge--featured { background: var(--purple); color: #fff; }
.badge--new      { background: var(--blue);   color: var(--blue-dark); }

.product-info {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin: 0 0 8px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.25;
  flex: 1;
}
.product-name a {
  color: var(--text);
  text-decoration: none;
}
.product-name a:hover { color: var(--purple); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: -0.02em;
}
.btn-product {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  border: 1px solid var(--purple);
  padding: 8px 16px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-product:hover {
  background: var(--purple);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   5. ABOUT / WHY US
   ========================================================================== */
.about-section {
  background: #fff;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin: 0 0 14px;
}
.about-title {
  font-size: clamp(26px, 3vw, 40px);
  color: var(--purple-dark);
  margin: 0 0 24px;
  line-height: 1.15;
}
.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-img-wrap {
  border-radius: 4px;
  overflow: hidden;
  margin-top: 28px;
}
.about-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--purple-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--purple-dark);
  margin: 0 0 4px;
}
.why-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   7. TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(62,3,171,0.10);
  transform: translateY(-3px);
}
.testimonial-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   8. NEWSLETTER
   ========================================================================== */
.newsletter-section {
  background: var(--purple);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-title {
  font-size: clamp(24px, 3vw, 38px);
  color: #fff;
  margin: 0 0 8px;
}
.newsletter-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  width: 420px;
  max-width: 100%;
}
.newsletter-input {
  flex: 1;
  border: none;
  border-radius: 2px 0 0 2px;
  padding: 13px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.95);
  outline: none;
}
.newsletter-input::placeholder { color: var(--text-faint); }
.newsletter-input:focus { background: #fff; }

.newsletter-btn {
  background: var(--blue);
  color: var(--blue-dark);
  border: none;
  border-radius: 0 2px 2px 0;
  padding: 13px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: var(--blue-mid);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Large tablet: 1100px — 3 product columns */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Tablet: 960px */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form { width: 100%; }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* Phablet: 768px — switch products to horizontal scroll */
@media (max-width: 768px) {
  .hero              { height: 70vh; min-height: 420px; }
  .hero-content      { padding: 0 28px; }
  .hero-title        { font-size: clamp(30px, 7vw, 44px); }
  .hero-nav          { display: none; }

  .section           { padding: 52px 0; }
  .section-header    { margin-bottom: 22px; }
  .trust-item        { padding: 8px 16px; }

  /* Horizontal scroll — cards stay large and readable */
  .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .products-grid::-webkit-scrollbar { height: 4px; }
  .products-grid::-webkit-scrollbar-track { background: transparent; }
  .products-grid::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 2px;
  }
  .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .categories-grid   { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-grid        { gap: 36px; }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  .hero              { height: 60vh; min-height: 360px; }
  .hero-content      { padding: 0 20px; }
  .container         { padding: 0 10px; }
  .section           { padding: 40px 0; }

  .product-card      { flex: 0 0 280px; }

  .categories-grid   { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-name     { font-size: 12px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .trust-grid        { flex-direction: column; align-items: stretch; gap: 0; }
  .trust-item        {
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    justify-content: center;
    padding: 10px 16px;
  }
  .trust-item:last-child { border-bottom: none; }

  .newsletter-section { padding: 44px 0; }
  .newsletter-form    { flex-direction: column; gap: 8px; }
  .newsletter-input   { border-radius: 2px; }
  .newsletter-btn     { border-radius: 2px; padding: 13px; }

  .section-title      { font-size: 26px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .product-card    { flex: 0 0 200px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}