/* =============================================
   Trading Fashion Corp – Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Scroll-reveal lazy sections ───────────────
   JS adds .is-visible via IntersectionObserver.
   .js-enabled on <html> guards the initial hide
   so sections are never invisible without JS.
   ─────────────────────────────────────────── */
.js-enabled .lazy-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-enabled .lazy-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a revealed section */
.js-enabled .lazy-section.is-visible .product-card,
.js-enabled .lazy-section.is-visible .collection-card,
.js-enabled .lazy-section.is-visible .blog-card,
.js-enabled .lazy-section.is-visible .product-card-grid {
  animation: cardFadeUp 0.5s ease both;
}

.js-enabled .lazy-section.is-visible .product-card:nth-child(1),
.js-enabled .lazy-section.is-visible .collection-card:nth-child(1),
.js-enabled .lazy-section.is-visible .blog-card:nth-child(1),
.js-enabled .lazy-section.is-visible .product-card-grid:nth-child(1)  { animation-delay: 0.05s; }
.js-enabled .lazy-section.is-visible .product-card:nth-child(2),
.js-enabled .lazy-section.is-visible .collection-card:nth-child(2),
.js-enabled .lazy-section.is-visible .blog-card:nth-child(2),
.js-enabled .lazy-section.is-visible .product-card-grid:nth-child(2)  { animation-delay: 0.12s; }
.js-enabled .lazy-section.is-visible .product-card:nth-child(3),
.js-enabled .lazy-section.is-visible .collection-card:nth-child(3),
.js-enabled .lazy-section.is-visible .blog-card:nth-child(3),
.js-enabled .lazy-section.is-visible .product-card-grid:nth-child(3)  { animation-delay: 0.19s; }
.js-enabled .lazy-section.is-visible .product-card:nth-child(n+4),
.js-enabled .lazy-section.is-visible .collection-card:nth-child(n+4),
.js-enabled .lazy-section.is-visible .product-card-grid:nth-child(n+4){ animation-delay: 0.26s; }

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:       #0d0d0d;
  --dark:        #1a1a1a;
  --mid:         #3a3a3a;
  --light-gray:  #f5f5f5;
  --border:      #e0e0e0;
  --white:       #ffffff;
  --accent:      #c9a84c;
  --accent-dark: #a6873b;
  --text:        #222222;
  --text-light:  #666666;
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width:   1280px;
  --radius:      8px;
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #f4f4f4;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* =============================================
   HERO
   ============================================= */

.hero-section {
  background: #f4f4f4;
}

.hero-collage {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-collage img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: cover;
  object-position: center top;
}

.hero-text {
  padding: 40px 24px 48px;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* =============================================
   MARQUEE / PARTNER LOGOS
   ============================================= */

.logos-row {
  background: var(--white);
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logos-grid img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter var(--transition), opacity var(--transition);
}

.logos-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
  }
  .logos-grid img {
    height: 36px;
    justify-self: center;
  }
}

/* =============================================
   SECTION COMMON
   ============================================= */

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   PRODUCT SLIDER (Essentials / Kidswear)
   ============================================= */

.slider-wrapper {
  position: relative;
}

.slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--light-gray);
}

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

.product-card-img .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .img-hover {
  opacity: 1;
}

.product-card:hover .img-main {
  transform: scale(1.04);
}

.product-card-info {
  padding: 16px;
}

.product-card-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-info .vendor {
  font-size: 13px;
  color: var(--text-light);
}

/* Slider arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-btn.prev { left: -22px; }
.slider-btn.next { right: -22px; }

.slider-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* =============================================
   COLLECTIONS GRID
   ============================================= */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  background: var(--dark);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.collection-card:hover img {
  transform: scale(1.06);
  opacity: 0.7;
}

.collection-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.collection-card-label h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.collection-card-label .arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.collection-card:hover .arrow {
  background: var(--accent);
}

.collection-card-label .arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   CONTACT / CTA FORM
   ============================================= */

.cta-section {
  background: var(--dark);
  padding: 80px 0;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* =============================================
   INSIGHTS / BLOG
   ============================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =============================================
   BLOG ARTICLE
   ============================================= */

.article-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.article-meta time {
  font-size: 14px;
  color: var(--text-light);
}

.article-wrapper h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 32px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.article-body strong {
  color: var(--dark);
}

.article-body a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--dark);
}

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.page-hero {
  background: var(--dark);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 700;
}

.about-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.about-content p strong {
  color: var(--dark);
}

.about-content a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info .info-item span {
  font-size: 20px;
  line-height: 1;
}

.contact-form-light {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-light .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-light .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-light label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form-light input,
.contact-form-light textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.contact-form-light input:focus,
.contact-form-light textarea:focus {
  border-color: var(--accent);
}

.contact-form-light textarea {
  resize: vertical;
  min-height: 140px;
}

/* =============================================
   COLLECTIONS LIST PAGE
   ============================================= */

.collections-page {
  padding: 60px 0;
}

.collections-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 40px;
  text-align: center;
}

/* =============================================
   COLLECTION DETAIL PAGE (product listing)
   ============================================= */

.collection-header {
  background: var(--light-gray);
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.collection-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 48px 0 0;
}

.product-card-grid {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card-grid:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.product-card-grid .product-card-img {
  aspect-ratio: 3 / 4;
}

.product-card-grid .product-card-info {
  padding: 16px;
}

/* =============================================
   INSIGHTS LIST PAGE
   ============================================= */

.insights-header {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
}

.insights-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
}

.insights-grid {
  padding: 60px 0;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-brand a {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* =============================================
   VIEW ALL LINK
   ============================================= */

.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px !important;
  margin-bottom: 48px;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  transition: all var(--transition);
}

.view-all:hover {
  background: var(--dark);
  color: var(--white);
}

.view-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   FORM SUCCESS MESSAGE
   ============================================= */

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 15px;
}

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

@media (max-width: 1024px) {
  .hero-content {
    margin-left: 5%;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }

  .hero-section {
    display: grid;
  }

  .hero-collage {
    grid-row: 1;
    grid-column: 1;
  }

  .hero-collage img {
    height: 480px;
    max-height: none;
    object-position: center center;
  }

  .hero-text {
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  }

  .hero-text h1 {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .hero-text p {
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .slider-btn { display: none; }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 56px 0;
  }
}


/* ── Product detail page ────────────────────── */
.product-page {
  padding: 60px 0 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Info LEFT, Gallery RIGHT — gallery sticky */
.product-gallery {
  position: sticky;
  top: 90px;
}

.product-main-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 3 / 4;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* Thumbnail strip with nav arrows */
.product-thumbs-wrap {
  position: relative;
  margin-top: 12px;
  padding: 0 24px;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar { display: none; }

.product-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition);
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--accent);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.thumbs-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.thumbs-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thumbs-btn.prev { left: 0; }
.thumbs-btn.next { right: 0; }

/* Info panel */
.product-info {
  padding-top: 8px;
}

.product-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.product-breadcrumb a:hover { color: var(--accent-dark); }

.product-vendor {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.product-info h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}

.product-desc em { color: var(--dark); font-style: italic; }

/* Size chart */
.product-size-chart {
  margin-bottom: 24px;
}

.size-chart-table-wrap {
  background: #0f1f3d;
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  overflow-x: auto;
}

.size-chart-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--white);
  font-size: 13px;
}

.size-chart-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.size-chart-table th:first-child { text-align: left; }

.size-chart-table td {
  padding: 7px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.size-chart-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.size-chart-table tr:last-child td { border-bottom: none; }

.size-chart-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
}

/* Available colors */
.product-colors {
  margin-bottom: 24px;
}

.product-colors-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-colors-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
}

.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--accent);
}

.color-swatch--white { background: #ffffff; border-color: #d0d0d0; }

/* CTA box */
.product-cta {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.product-cta p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.product-cta .btn {
  display: block;
  text-align: center;
  width: 100%;
}

/* Share button */
.product-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  transition: color var(--transition);
}

.product-share:hover { color: var(--dark); }

.product-share svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Industry favorites */
.product-favorites {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 72px;
}

.product-favorites .container > h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }
  /* Gallery appears first on mobile */
  .product-gallery {
    position: static;
    order: -1;
    padding: 24px 24px 0;
  }
  .product-info {
    padding: 24px;
  }
  .product-thumbs-wrap { padding: 0 20px; }
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
