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

:root {
  --primary: #1a1a1a;
  --secondary: #8b7355;
  --background: #faf8f5;
  --surface: #f0ede8;
  --border: #e0dbd3;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

*::selection {
  background: var(--secondary);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
}

/* Navbar links removed to fix admin sidebar conflict */

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-decoration: none;
  color: var(--primary);
}

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

.search-toggle, .cart-toggle {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* SEARCH BAR */
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.97);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.search-overlay.active { display: flex; }
.search-overlay input {
  width: 60%;
  font-size: 2rem;
  border: none;
  border-bottom: 2px solid #1a1a1a;
  background: transparent;
  padding: 1rem 0;
  font-family: 'Playfair Display', serif;
  outline: none;
}
.search-overlay .close-search {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  width: 24px;
  height: 24px;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* HERO */
.hero {
  height: 90vh;
  background: url('../images/hero.jpg') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: white;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
}

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

.btn-primary:hover {
  opacity: 0.85;
}

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

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

.btn-sm {
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
}

/* COLLECTIONS */
.section {
  padding: 7rem 0;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 4rem;
}

.collection-card {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.collection-card:hover img {
  transform: scale(1.03);
}

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: white;
  padding: 3rem 2rem 2rem;
}

.collection-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.collection-link {
  font-size: 0.85rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PHILOSOPHY */
.philosophy {
  background: var(--surface);
  padding: 7rem 5rem;
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 4rem;
  align-items: center;
}

.philosophy-label {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.philosophy h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.philosophy p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.philosophy-image {
  background: #e8e0d5;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}

.philosophy-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  font-weight: 500;
}

/* PRODUCT CARDS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.product-card a {
  text-decoration: none;
  color: #2c2c2c !important;
}

.product-image-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #f5f5f5;
  position: relative;
}

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

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

/* BADGES */
.badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.product-card .badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-new { background: #1a1a1a; color: white; }
.badge-sale { background: #8b7355; color: white; }
.badge-bestseller { background: #556b2f; }
.badge-hot { background: #a52a2a; }

.product-category {
  display: block;
  font-size: 0.7rem;
  color: #8b7355 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.product-name {
  color: #2c2c2c !important;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.product-price {
  color: #8b7355;
  font-weight: 500;
  font-size: 1rem;
}

/* ADD TO CART BUTTON ON CARD */
.product-card .add-to-cart-btn {
  width: 100%;
  padding: 0.6rem;
  background: #1a1a1a;
  color: white;
  border: none;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: opacity 0.3s;
  display: block;
}

.product-card .add-to-cart-btn:hover {
  opacity: 0.8;
}

.product-card .add-to-cart-btn:disabled {
  background: #6b6b6b;
  cursor: not-allowed;
}

/* SLIDER */
.slider-container {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-card {
  min-width: 25%;
  padding: 0 1rem;
}

/* Product cards used directly inside slider wrapper */
.slider-wrapper .product-card {
  min-width: 25%;
  padding: 0 1rem;
  flex-shrink: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
}

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

/* NEWSLETTER */
.newsletter {
  background: var(--primary);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  border: none;
  border-bottom: 1px solid white;
  background: transparent;
  color: white;
  padding: 0.75rem 0;
  font-size: 1rem;
  outline: none;
}

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

/* FOOTER */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  display: block;
}

.footer-tagline {
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* FORMS */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* TABLES */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

/* BADGES */
.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* CLEANUP LEGACY BADGES */
.badge-pending { background: #f59e0b; color: white; border-radius: 20px; }
.badge-processing { background: #3b82f6; color: white; border-radius: 20px; }
.badge-shipped { background: #8b5cf6; color: white; border-radius: 20px; }
.badge-delivered { background: #10b981; color: white; border-radius: 20px; }
.badge-cancelled { background: #ef4444; color: white; border-radius: 20px; }

/* ALERTS */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-actions {
    gap: 1rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .collections-grid {
    grid-template-columns: 1fr;
  }
  
  .philosophy {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 3rem;
  }
  
  .slider-card {
    min-width: 50%;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .slider-card {
    min-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}
