/* ==========================================================
   SSPS FASHION HUB — Visual theme (loaded after styles.css)
   Restructured layout: compact header, proportioned hero,
   refined product cards, dark multi-column footer.
   ========================================================== */

:root {
  --bg-body: #fbf7f3;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);
  --border-subtle: #ece4da;
  --text-main: #1d1530;
  --text-subtle: #6b645c;
  --primary: #d24a22;
  --primary-deep: #a93a18;
  --primary-soft: #d24a221a;
  --ink-dark: #1b1b2f;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(27, 27, 47, 0.08);
  --shadow-card: 0 1px 2px rgba(27, 27, 47, 0.06), 0 6px 18px rgba(27, 27, 47, 0.06);
  --shadow-card-hover: 0 14px 34px rgba(27, 27, 47, 0.14);
}

body {
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(92%, 1220px);
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  color: var(--ink-dark);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-header);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(27, 27, 47, 0.03);
}

.header-inner {
  padding: 0.55rem 0;
  gap: 1rem;
}

.site-logo {
  height: 58px !important;
  width: auto;
  display: block;
}

.nav > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a3530;
  margin-left: 1.6rem;
  padding: 0.45rem 0.1rem;
}

.nav > a:hover {
  color: var(--primary);
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-login-btn:hover {
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
}

.cart-link {
  position: relative;
  font-size: 1.15rem;
  color: var(--ink-dark);
}

/* ---------- Hero ---------- */
.hero-slider {
  padding: 1.25rem 0 0.5rem;
}

.slider,
.hero-slider .slider {
  height: clamp(340px, 52vh, 520px) !important;
  min-height: 0 !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.slide {
  height: 100% !important;
  min-height: 0 !important;
}

.slide-overlay {
  background: linear-gradient(90deg, rgba(27, 27, 47, 0.82) 0%, rgba(27, 27, 47, 0.45) 55%, rgba(27, 27, 47, 0.15) 100%) !important;
}

.slide-left {
  max-width: 560px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.slide-left h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  margin: 0.6rem 0 0.6rem;
}

.slide-left p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.slide-cta {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(210, 74, 34, 0.35);
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.slider-dots {
  bottom: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.section-header {
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-header h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  margin: 0;
}

.section-subtitle {
  color: var(--text-subtle);
  margin: 0.25rem 0 0;
}

.link-inline {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Product cards ---------- */
.product-grid {
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.product-image-wrap {
  border-radius: 0;
  background: #f3eef8;
  aspect-ratio: 4 / 5;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.product-card .btn-primary,
.product-card button[class*="add"] {
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn-primary,
button.add-to-cart,
.add-to-cart {
  background: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover,
.add-to-cart:hover {
  background: var(--primary-deep);
}

.btn-primary:active,
.add-to-cart:active {
  transform: scale(0.98);
}

/* ---------- Info strip ---------- */
.info-strip {
  background: #fff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.info-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
}

/* ---------- Footer ---------- */
.df-footer {
  background: var(--ink-dark);
  color: #cfc6e0;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.df-footer a {
  color: #cfc6e0;
}

.df-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.df-footer-heading {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.df-footer-text,
.df-footer-meta,
.df-footer-line {
  color: #b9afd0;
}

.df-footer-logo img {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .info-strip-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-logo {
    height: 46px !important;
  }

  .slider,
  .hero-slider .slider {
    height: 62vh !important;
    min-height: 300px !important;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    gap: 0.9rem;
  }
}

/* ---------- Hero slide (rendered by app.js as .slide.slide-full) ---------- */
.slider {
  background: var(--ink-dark) !important;
}

.slide.slide-full {
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  position: relative;
}

.slide-full .slide-overlay {
  position: absolute;
  inset: 0;
}

.slide-full .slide-full-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  color: #fff;
}

.slide-full .slide-full-content h1 {
  color: #fff !important;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0.6rem 0;
}

.slide-full .slide-full-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 46ch;
}

.slide-full .slide-badges .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.slide-full .slide-badges .badge-primary {
  background: #1b1b2f;
  border-color: #1b1b2f;
}

.slide-full .slide-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* Slides must fill the slider height (track is a flex row) */
.slider-track {
  height: 100%;
}

.slider .slide {
  height: 100% !important;
  min-width: 100%;
}

/* Arrows sit bottom-right so they never cover the headline/CTA */
.slider-btn {
  top: auto !important;
  bottom: 10px;
  transform: none !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 0.8rem;
}

.slider-btn.prev {
  left: auto !important;
  right: 58px !important;
}

.slider-btn.next {
  right: 12px !important;
}

.slider-dots {
  bottom: 18px;
  left: 16px;
  right: auto;
  justify-content: flex-start;
}

/* Tighten the gap between hero and the first section */
.hero-slider + .section {
  padding-top: 2rem;
}

.hero-slider + .section {
  padding-top: 1rem;
}

/* ---------- Mobile overflow guard ---------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slider-track {
  width: 100%;
}

.slider .slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide-full .slide-full-content {
  max-width: 100%;
  padding-right: 56px; /* keep text clear of the arrow buttons */
}

@media (max-width: 640px) {
  .slide-full .slide-full-content {
    padding: 1.1rem 1rem 2.8rem;
  }
  .slide-full .slide-full-content h1 {
    font-size: 1.6rem;
  }
  .slide-full .slide-full-content p {
    font-size: 0.92rem;
  }
  .slide-full .slide-meta {
    display: block;
    margin-top: 0.4rem;
  }
}

/* ---------- Shop / inner-page banner ---------- */
.shop-cta-banner {
  min-height: clamp(180px, 28vh, 260px);
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-cta-overlay {
  background: linear-gradient(180deg, rgba(27, 27, 47, 0.55), rgba(27, 27, 47, 0.75)) !important;
}

.shop-cta-content h1,
.shop-cta-banner h1 {
  color: #fff !important;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

/* ---------- Header search row ---------- */
.header-search-row {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-body);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.header-search > i {
  color: var(--text-subtle);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  outline: none;
  color: var(--text-main);
}

.header-search button {
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--primary-deep);
}

/* ---------- Categories dropdown ---------- */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
  order: 2; /* desktop .nav is display:contents, keep it in the link row */
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0.45rem 0.1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a3530;
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
}

.nav-dropdown-toggle i {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem;
  z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-dropdown {
    display: block;
    margin-left: 0;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 0.6rem;
    min-width: 0;
  }
}
