/* MOMIEN Brand Clothing CSS - Design System */

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

:root {
  /* Color Palette - Premium Warm Minimalist */
  --bg-primary: #fdfdfd;
  --bg-secondary: #f6f5f0;
  --bg-dark: #121212;
  --bg-dark-accent: #1e1e1e;
  --text-primary: #121212;
  --text-secondary: #6e6e6a;
  --text-light: #fdfdfd;
  --accent-gold: #c5a880;
  --accent-gold-hover: #b3956e;
  --border-light: rgba(18, 18, 18, 0.08);
  --border-dark: rgba(253, 253, 253, 0.1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  outline: none;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(253, 253, 253, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(253, 253, 253, 0.95);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  padding: 12px 40px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-icon {
  font-size: 1.2rem;
  position: relative;
  padding: 5px;
  transition: var(--transition-fast);
}

.nav-icon:hover {
  opacity: 0.7;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-primary);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(246, 245, 240, 0.4) 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.hero h1 span {
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

/* Styled Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-dark);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 253, 253, 0.15);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

/* Main Content Wrapper */
main {
  position: relative;
}

/* Brand Section (Value Prop) */
.brand-intro {
  padding: 120px 8%;
  background-color: var(--bg-primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.brand-intro-text {
  max-width: 500px;
}

.brand-intro-text h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.25;
}

.brand-intro-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.brand-intro-image {
  height: 550px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.brand-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-intro-image:hover img {
  transform: scale(1.05);
}

/* Products Grid */
.products-section {
  padding: 100px 8% 120px 8%;
  background-color: var(--bg-secondary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
  text-align: right;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-image {
  position: relative;
  height: 420px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.1);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.btn-quick-add {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  padding: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.btn-quick-add:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.newsletter p {
  color: #a0a09e;
  margin-bottom: 40px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font-sans);
  padding: 10px 5px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #6e6e6a;
}

.btn-newsletter {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

/* Footer Section */
footer {
  background-color: var(--bg-dark-accent);
  color: #a0a09e;
  padding: 80px 8% 40px 8%;
  border-top: 1px solid rgba(253, 253, 253, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.social-links a {
  font-size: 1.1rem;
  color: #a0a09e;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-light);
}

.footer-col h4 {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(253, 253, 253, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Shopping Cart Drawer */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.cart-backdrop.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.5rem;
}

.btn-close-cart {
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.btn-close-cart:hover {
  transform: rotate(90deg);
}

.cart-items-container {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Empty State */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 15px;
}

.cart-empty i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
  width: 90px;
  height: 110px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--text-primary);
}

.cart-item-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-qty {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cart-item-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}

.cart-footer {
  padding: 30px 40px 40px 40px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-secondary);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.cart-subtotal-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.btn-checkout {
  width: 100%;
  padding: 18px;
  text-align: center;
  justify-content: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 16px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  animation: slideInUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border-left: 3px solid var(--accent-gold);
}

.toast.removing {
  animation: fadeOutDown 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOutDown {
  to {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none; /* In a responsive mobile build, we'd add drawer menu toggle */
  }
  
  .mobile-toggle {
    display: block;
    margin-right: 15px;
  }
  
  .hero {
    flex-direction: column;
    padding: 140px 6% 60px 6%;
    height: auto;
    text-align: center;
  }
  
  .hero-bg {
    position: relative;
    width: 100%;
    height: 50vh;
    order: -1;
    margin-bottom: 40px;
  }
  
  .hero-bg::after {
    background: linear-gradient(180deg, transparent 60%, var(--bg-secondary) 100%);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .brand-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 6%;
  }
  
  .brand-intro-image {
    height: 400px;
    order: -1;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .section-header p {
    text-align: left;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-drawer {
    width: 100%;
  }
}
