/* ============================================
   NestWears - Premium Homewear Brand
   Design: Pure, Warm, Artistic
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --cream: #FFF8F5;
  --warm-white: #FEFAF7;
  --blush: #F5E6D8;
  --rose: #D4A99A;
  --rose-deep: #C48B7A;
  --taupe: #C9A88C;
  --warm-brown: #8B6F5E;
  --dark: #3C2A22;
  --text: #5C4A3E;
  --text-light: #8C7A6E;
  --gold: #B8936E;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 20px rgba(139, 111, 94, 0.08);
  --shadow-medium: 0 8px 40px rgba(139, 111, 94, 0.12);
  --shadow-large: 0 20px 60px rgba(139, 111, 94, 0.15);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
  font-size: 1.05rem;
  color: var(--text);
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--warm-brown);
}

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

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 169, 154, 0.15);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 248, 245, 0.95);
  box-shadow: 0 2px 20px rgba(139, 111, 94, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: height var(--transition-smooth);
}

.navbar.scrolled .container {
  height: 72px;
}

.nav-logo {
  height: 55px;
  transition: height var(--transition-smooth);
}

.navbar.scrolled .nav-logo {
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose-deep);
  transition: width var(--transition-smooth);
}

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

.nav-links a.active {
  color: var(--rose-deep);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Page Header --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(212, 169, 154, 0.08) 0%, transparent 70%);
  animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.page-header h1 {
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease-out;
}

.page-header p {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  margin-top: 16px;
  font-size: 1.15rem;
  animation: fadeUp 1s ease-out 0.2s both;
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196, 139, 122, 0.3);
}

.btn-primary:hover {
  background: var(--warm-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 111, 94, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid var(--rose-deep);
}

.btn-outline:hover {
  background: var(--rose-deep);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

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

/* --- Hero Section (Home) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 50%, #F0E0D2 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 169, 154, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 230, 216, 0.15) 0%, transparent 60%);
  animation: heroPulse 10s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-tag {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--rose-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeUp 1s ease-out 0.15s both;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.45s both;
}

.hero-image {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 650px;
  opacity: 0.9;
  animation: floatIn 1.5s ease-out 0.5s both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(60px);
  }
  to {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
  }
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 36px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

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

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

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--blush);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--rose-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-sku {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-features {
  list-style: none;
  margin-bottom: 16px;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 3px 0;
  padding-left: 20px;
  position: relative;
}

.product-features li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--rose);
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-deep);
}

/* --- Product Detail --- */
.product-detail {
  padding: 140px 0 80px;
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 120px;
}

.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--blush);
  margin-bottom: 16px;
}

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

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.product-gallery-thumbs img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-smooth);
  border: 2px solid transparent;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--rose);
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.product-detail-sku {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.product-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 20px 0 28px;
}

.product-detail-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.product-detail-features {
  list-style: none;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--warm-white);
  border-radius: var(--radius-md);
}

.product-detail-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
}

.product-detail-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose-deep);
  font-weight: 600;
}

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--blush);
  position: relative;
}

.about-story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 169, 154, 0.1), transparent);
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.review-card {
  padding: 36px;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}

.review-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--rose);
  line-height: 1;
}

.review-author {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.review-verified {
  font-size: 0.8rem;
  color: var(--rose-deep);
}

/* --- Quality Page --- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.quality-card {
  padding: 40px 32px;
  text-align: center;
}

.quality-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.quality-card h3 {
  margin-bottom: 12px;
}

.quality-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

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

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Floating Decorative Elements --- */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 169, 154, 0.06);
  pointer-events: none;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right var(--transition-smooth);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .hero {
    text-align: center;
    min-height: auto;
    padding: 140px 0 60px;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .product-detail .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

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

  .section {
    padding: 60px 0;
  }

  .reviews-grid,
  .quality-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .product-detail-info h1 {
    font-size: 1.5rem;
  }
}
