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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-bg);
  color: var(--neutral-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
  color: var(--primary-emerald);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

/* ---------------- Top Contact Bar ---------------- */
.top-bar {
  background-color: var(--primary-emerald);
  color: #D1E5DB;
  font-size: 0.85rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.top-bar-contacts {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contacts a:hover {
  color: var(--accent-gold);
}

.top-bar-offer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--accent-gold);
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-mint));
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(10, 47, 29, 0.2);
}

.brand-text h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--primary-emerald);
}

.brand-text span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-dark);
  position: relative;
  padding: 4px 0;
}

.nav-links a.active, .nav-links a:hover {
  color: var(--primary-mint);
}

.nav-links a.active::after, .nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

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

.btn-icon-badge {
  position: relative;
  background: var(--neutral-bg);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-emerald);
  border: 1px solid var(--neutral-border);
}

.btn-icon-badge:hover {
  background-color: var(--primary-light-mint);
  color: var(--primary-mint);
}

.btn-icon-badge .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-gold);
  color: var(--primary-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-forest));
  color: var(--neutral-white);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(10, 47, 29, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-forest), var(--primary-mint));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 47, 29, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #C59F27);
  color: var(--primary-emerald);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E5BF47, var(--accent-gold));
  transform: translateY(-2px);
}

/* ---------------- Hero Slider Carousel ---------------- */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background-color: var(--primary-emerald);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 47, 29, 0.92) 0%, rgba(10, 47, 29, 0.6) 50%, rgba(10, 47, 29, 0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 48%;
  margin-left: 7%;
  color: var(--neutral-white);
}

.slide-tag {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.slide-content h2 {
  font-size: 2.8rem;
  color: var(--neutral-white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.slide-content p {
  font-size: 1.05rem;
  color: #D1E5DB;
  margin-bottom: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 24px;
  right: 5%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--accent-gold);
  width: 32px;
  border-radius: 6px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--accent-gold);
  color: var(--primary-emerald);
}

/* ---------------- Features Bar ---------------- */
.features-bar {
  background-color: var(--neutral-white);
  padding: 24px 5%;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  border-bottom: 1px solid var(--neutral-border);
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light-mint);
  color: var(--primary-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.feature-info p {
  font-size: 0.82rem;
  color: var(--neutral-muted);
}

/* ---------------- Section Commons ---------------- */
.section {
  padding: 50px 5%;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.section-title span {
  color: var(--primary-mint);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: 2.4rem;
  margin: 8px 0 12px 0;
}

.section-title p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
}

/* ---------------- Category Filter Pills ---------------- */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-border);
  color: var(--neutral-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.pill-btn.active, .pill-btn:hover {
  background-color: var(--primary-emerald);
  color: var(--neutral-white);
  border-color: var(--primary-emerald);
}

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

.product-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--neutral-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background-color: var(--accent-gold);
  color: var(--primary-emerald);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-color: #F0F4F2;
}

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

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

.product-actions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 47, 29, 0.4);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

.action-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--neutral-white);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}

.action-btn-circle:hover {
  background-color: var(--accent-gold);
  color: var(--primary-emerald);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--primary-mint);
  font-weight: 700;
  letter-spacing: 1px;

  margin-bottom: 4px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 6px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--neutral-muted);
  margin-bottom: 12px;
}

.stars {
  color: #F59E0B;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--neutral-border);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-emerald);
}

.price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--neutral-muted);
}

.btn-add-cart {
  background-color: var(--primary-light-mint);
  color: var(--primary-mint);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-add-cart:hover {
  background-color: var(--primary-emerald);
  color: var(--neutral-white);
}

.btn-wa-direct {
  background-color: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-wa-direct:hover {
  background-color: var(--whatsapp-green);
  color: white;
}

/* ---------------- Blog Hub ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-border);
  transition: var(--transition-normal);
}

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

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--neutral-muted);
  margin-bottom: 10px;
}

.blog-category-tag {
  background-color: var(--primary-light-mint);
  color: var(--primary-mint);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--primary-emerald);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--neutral-muted);
  margin-bottom: 18px;
}

.blog-read-more {
  color: var(--primary-mint);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  color: var(--primary-emerald);
}

/* ---------------- Contact Section ---------------- */
.contact-container {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--neutral-border);
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-forest));
  color: var(--neutral-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  color: var(--neutral-white);
  font-size: 2rem;
  margin-bottom: 14px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.contact-details p, .contact-details a {
  font-size: 1rem;
  color: #E2ECE7;
  font-weight: 500;
}

.contact-form-panel {
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-emerald);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--neutral-bg);
}

.form-control:focus {
  border-color: var(--primary-mint);
  outline: none;
  background-color: var(--neutral-white);
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ---------------- Cart Drawer ---------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 47, 29, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100%;
  background-color: var(--neutral-white);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header h3 {
  color: var(--neutral-white);
  font-size: 1.3rem;
}

.close-btn {
  background: transparent;
  color: var(--neutral-white);
  font-size: 1.4rem;
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--neutral-border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #F0F4F2;
}

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

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-emerald);
  font-size: 0.9rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--neutral-bg);
  border: 1px solid var(--neutral-border);
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 20px 24px;
  background-color: var(--neutral-bg);
  border-top: 1px solid var(--neutral-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-emerald);
  margin-bottom: 16px;
}

.checkout-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------------- Floating WhatsApp Widget ---------------- */
.whatsapp-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-popup {
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  width: 280px;
  border: 1px solid var(--neutral-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wa-status {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 600;
}

.whatsapp-popup p {
  font-size: 0.85rem;
  color: var(--neutral-body);
}

.whatsapp-btn-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-float:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
}

/* ---------------- Footer ---------------- */
.footer {
  background-color: var(--primary-emerald);
  color: #A3C7B5;
  padding: 60px 5% 24px 5%;
}

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

.footer-col h4 {
  color: var(--neutral-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--accent-gold);
}

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

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

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

/* ---------------- Modal Component ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 47, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .navbar {
    padding: 12px 4%;
  }

  .nav-links {
    display: none;
  }

  .hero-slider {
    height: 440px;
  }

  .slide-content {
    width: 86%;
    margin-left: 5%;
  }

  .slide-content h2 {
    font-size: 1.9rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}
