/* ============================================
   ROYAL STITCHES — styles.css
   Luxury Boutique Stylesheet
   ============================================ */

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

:root {
  --gold:         #C9A84C;
  --gold-light:   #E8D5A0;
  --gold-dark:    #8B6914;
  --cream:        #FAF7F2;
  --charcoal:     #1A1A1A;
  --charcoal-soft:#2E2E2E;
  --mid:          #6B6B6B;
  --border:       rgba(201, 168, 76, 0.3);
  --transition:   0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ---------- NAVIGATION ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: box-shadow var(--transition);
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--mid);
  transition: color var(--transition);
  padding: 6px;
}

.icon-btn:hover {
  color: var(--gold);
}

.cart-btn {
  background: var(--gold);
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 8px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-btn:hover {
  background: var(--gold-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--charcoal);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1.5rem 2rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ---------- HERO ---------- */
.hero {
  margin-top: 64px;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 340px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--gold);
  color: white;
  border: none;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-ghost {
  background: none;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-right {
  background: #F0EAE0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #EDE4D5 0%, #D9CDB8 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
}

.hero-badge-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-badge-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
}

.hero-badge-sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- MARQUEE ---------- */
.marquee-bar {
  background: var(--gold);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 5rem 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
}

.section-title em {
  font-style: italic;
}

/* ---------- CATEGORIES ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

.cat-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: #D9CDB8;
}

.cat-card:first-child {
  aspect-ratio: unset;
  grid-row: span 2;
}

.cat-card-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.cat-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cat-card:hover .cat-card-bg {
  transform: scale(1.04);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.cat-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.cat-card-count {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.cat-card-arrow {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}

.cat-card:hover .cat-card-arrow {
  opacity: 1;
}

/* ---------- PRODUCTS ---------- */
.products-section {
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  cursor: pointer;
}

.product-img {
  aspect-ratio: 3 / 4;
  background: #EDE4D5;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card:hover .product-img-inner {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--charcoal);
  color: white;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-badge.sale {
  background: var(--gold);
}

.product-wish {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 32px; height: 32px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-wish.active {
  color: #e74c3c;
  opacity: 1;
}

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

.product-brand {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.product-price {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

.product-price strong {
  font-weight: 500;
  color: var(--charcoal);
  font-size: 15px;
}

.product-price s {
  color: #aaa;
  margin-left: 6px;
  font-size: 12px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  opacity: 0;
  transform: translateY(4px);
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart-btn:hover {
  background: var(--gold);
}

/* ---------- BRAND STRIP ---------- */
.brand-strip {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

.brand-names {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.brand-names span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #C8C0B0;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  cursor: pointer;
}

.brand-names span:hover {
  color: var(--gold);
}

/* ---------- PROMO BANNER ---------- */
.promo-banner {
  background: var(--charcoal);
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.promo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.promo-title em {
  font-style: italic;
  color: var(--gold-light);
}

.promo-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.promo-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 1.5rem;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 5rem 4rem;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: white;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.stars {
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--gold);
  padding: 4rem;
  text-align: center;
}

.newsletter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 12px 24px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #000;
}

.newsletter-msg {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  min-height: 20px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--charcoal-soft);
  padding: 4rem 4rem 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--gold);
}

.footer-about {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

/* ---------- CART TOAST ---------- */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.5rem;
  font-size: 13px;
  font-weight: 300;
  border-left: 3px solid var(--gold);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.35s ease;
  max-width: 280px;
}

.cart-toast.show {
  transform: translateX(0);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

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

  .hero-right {
    display: none;
  }

  .hero-left {
    padding: 3rem 1.5rem;
  }

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

  .cat-card:first-child {
    aspect-ratio: 3 / 4;
    grid-row: auto;
  }

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

  .promo-banner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }

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

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

  .section {
    padding: 3rem 1.5rem;
  }

  .brand-strip {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .brand-names {
    gap: 1.5rem;
  }
}

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter {
    padding: 3rem 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
