/* Variables - Matching Next.js exact colors */
:root {
  --background: #fafaf9;
  --foreground: #1c1917;
  --card: #ffffff;
  --primary: #1c1917;
  --primary-foreground: #fafaf9;
  --secondary: #d4af37;
  --muted: #f5f5f4;
  --muted-foreground: #78716c;
  --border: #e7e5e4;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--foreground);
  line-height: 1.6;
  background-color: var(--background);
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

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

/* Header - Exact Next.js styling */
.header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--secondary);
  letter-spacing: 0.1em;
}

.logo i {
  display: none;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

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

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cart-btn {
  background: none;
  border: none;
  color: var(--primary-foreground);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  padding: 10px;
  transition: var(--transition);
}

.cart-btn:hover {
  color: var(--secondary);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Slider - Luxury styling */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 80px;
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

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

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--primary-foreground);
  z-index: 10;
  width: 90%;
  max-width: 1000px;
}

.slide-title {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.slide-subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin-bottom: 40px;
  color: var(--secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 20px 48px;
  background-color: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #c9a962;
  transform: translateY(-2px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.slider-btn.prev {
  left: 24px;
}

.slider-btn.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.slider-dot {
  width: 32px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--secondary);
}

/* Section Styles - Luxury minimalist */
.section-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  margin: 0 0 16px;
  padding-top: 128px;
  color: var(--foreground);
  font-weight: 400;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 80px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* History Section - Clean luxury */
.history-section {
  padding: 128px 0;
  background-color: var(--card);
}

.history-grid {
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 64px;
}

.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.history-content.reverse {
  direction: rtl;
}

.history-content.reverse > * {
  direction: ltr;
}

.history-text h3 {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 24px;
  font-weight: 400;
}

.history-text p {
  color: var(--muted-foreground);
  margin-bottom: 16px;
  line-height: 1.75;
  font-weight: 300;
}

.history-image {
  overflow: hidden;
}

.history-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.history-content:hover .history-image img {
  transform: scale(1.05);
}

.heritage-badge {
  text-align: center;
  margin-top: 96px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--secondary);
  font-style: italic;
  font-weight: 400;
}

/* Products Section */
.products-section {
  padding: 128px 0;
}

.bg-cream {
  background-color: var(--muted);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0 0 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--foreground);
  border-bottom-color: var(--foreground);
}

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

.product-card {
  background-color: var(--card);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.product-image {
  width: 100%;
  height: 384px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
  padding: 32px;
}

.product-name {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--foreground);
  font-weight: 400;
}

.product-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 300;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 24px;
  font-family: "Playfair Display", serif;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-add-cart,
.btn-whatsapp {
  padding: 14px;
  border: none;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart {
  background-color: var(--foreground);
  color: var(--background);
}

.btn-add-cart:hover {
  background-color: #292524;
}

.btn-whatsapp {
  background-color: transparent;
  border: 1px solid #25d366;
  color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #25d366;
  color: white;
}

/* Collections Section */
.collections-section {
  padding: 128px 0;
  background-color: var(--card);
}

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

.collection-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  overflow: hidden;
}

.collection-header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 32px;
  text-align: center;
}

.collection-name {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 8px;
  font-weight: 400;
}

.collection-edition {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.collection-items {
  padding: 32px;
}

.collection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.collection-item:last-child {
  border-bottom: none;
}

.collection-item-name {
  flex: 1;
  color: var(--foreground);
  font-weight: 300;
}

.collection-item-price {
  font-weight: 400;
  color: var(--foreground);
  margin-right: 16px;
  font-family: "Playfair Display", serif;
}

.btn-whatsapp-small {
  background-color: transparent;
  color: #25d366;
  border: 1px solid #25d366;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp-small:hover {
  background-color: #25d366;
  color: white;
}

/* Contact Section */
.contact-section {
  padding: 128px 0;
  background-color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 4px;
}

.contact-item h4 {
  color: var(--foreground);
  margin-bottom: 8px;
  font-weight: 400;
}

.contact-item p {
  color: var(--muted-foreground);
  font-weight: 300;
}

.contact-map iframe {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 80px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 64px;
  margin-bottom: 48px;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 24px;
  font-weight: 400;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-weight: 300;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 300;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--secondary);
  margin-top: 16px;
  font-weight: 400;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-bottom: 0;
  padding: 0;
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--primary);
  padding-left: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  font-size: 0.875rem;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--primary);
  color: var(--white);
}

.cart-header h3 {
  color: var(--gold);
}

.close-cart {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  background-color: var(--cream);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-footer {
  padding: 20px;
  border-top: 2px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--brown);
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.checkout-btn:hover {
  background-color: #20ba5a;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.cart-overlay.active {
  display: block;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-cart i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-content h3 {
  color: var(--brown);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

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

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: #20ba5a;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 1998;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s ease;
  }

  .nav.active {
    left: 0;
  }

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

  .history-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .history-content.reverse {
    direction: ltr;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 768px) {
  .products-grid,
  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
