@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #ffe4e6;
  --accent: #059669;
  --accent-gold: #d97706;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --gray-light: #f8fafc;
  --gray-border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(225, 29, 72, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: #fafaf9;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOP CONTACT BAR */
.top-bar {
  background: #166534; /* bg-green-800 */
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #14532d;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dcfce7;
}

.top-contact-item:hover {
  color: #86efac;
}

/* HEADER & NAVBAR */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.brand-text h1 {
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--dark);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* NAV TAB MENU */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* DROPDOWN SUB MENU */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid var(--gray-border);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  padding-left: 24px;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn:active {
  transform: translateY(1px) scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25), 0 2px 4px rgba(225, 29, 72, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4), 0 4px 8px rgba(225, 29, 72, 0.2);
}

.btn-outline {
  border: 1.5px solid var(--gray-border);
  color: var(--text-main);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
  border-color: #10b981;
  color: var(--white);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-3px) scale(1.02);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25), 0 2px 4px rgba(16, 185, 129, 0.15);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* HERO BANNER SLIDER */
.hero-slider-section {
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
}

.banner-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 480px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 650px;
  padding: 0 48px;
}

.banner-badge {
  display: inline-block;
  background: rgba(225, 29, 72, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.banner-title {
  font-size: 2.8rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 16px;
}

.banner-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 28px;
}

/* SLIDER CONTROLS */
.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  transition: all 0.2s;
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--primary);
}

/* SECTION TITLES */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* BEST SELLER SLIDER */
.products-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  padding: 10px 0;
}

.products-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-out;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 72, 0.3);
}

.product-image-box {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

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

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.product-category-name {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

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

.original-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* CATEGORY SECTION */
.category-section {
  margin-bottom: 60px;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* GRID PRODUCTS & BLOGS (DESKTOP: 4 KOLOM, MOBILE: 2 KOLOM) */
.grid-products, .grid-blogs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-products, .grid-blogs {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .grid-products, .grid-blogs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-image-box {
    height: 160px;
  }

  .product-details {
    padding: 12px;
  }

  .product-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .current-price {
    font-size: 1rem;
  }

  .original-price {
    font-size: 0.75rem;
  }

  .badge-tag {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .btn-whatsapp {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .blog-card-img {
    height: 130px !important;
  }

  .blog-card-body {
    padding: 12px !important;
  }

  .blog-card-title {
    font-size: 0.9rem !important;
  }
}

/* FOOTER 3 COLUMN */
.site-footer {
  background: #052e16; /* bg-green-950 */
  color: #dcfce7; /* text-green-100 */
  padding-top: 60px;
  margin-top: 80px;
  border-top: 4px solid #064e3b; /* border-green-900 */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #10b981; /* Accent green */
  border-radius: 2px;
}

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

.footer-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
}

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

.footer-blog-item {
  border-bottom: 1px dashed rgba(20, 83, 45, 0.6);
  padding-bottom: 10px;
}

.footer-blog-item a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-blog-item a:hover {
  color: #10b981;
}

.footer-blog-date {
  font-size: 0.75rem;
  color: #86efac;
  margin-top: 4px;
}

.maps-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #064e3b;
}

.maps-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.copyright-bar {
  background: #022c22;
  border-top: 1px solid rgba(20, 83, 45, 0.6);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #86efac;
}

/* FLOATING WA BUTTON */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-wa-btn:hover {
  transform: scale(1.1);
}

/* MOBILE BOTTOM NAVIGATION BAR */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Sembunyikan nav tab menu di header pada mobile */
  .site-header .nav-menu {
    display: none;
  }
  
  .site-header .auth-btns {
    display: none;
  }

  body {
    padding-bottom: 70px;
  }

  .floating-wa-btn {
    bottom: 84px;
    width: 52px;
    height: 52px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
  }

  .mobile-nav-item svg {
    transition: transform 0.2s ease;
  }

  .mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--primary);
  }

  .mobile-nav-item.active svg {
    transform: translateY(-2px);
    stroke: var(--primary);
  }
}

/* GRID KEUNGGULAN TOKO */
.grid-keunggulan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .banner-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
  .navbar {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    padding: 16px 0;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .banner-slide {
    height: 380px;
  }
  .banner-content {
    padding: 0 24px;
  }
  .banner-title {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-keunggulan {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }
}

/* SLIDER PRODUCTS CAROUSEL 2 COLUMNS PER ROW ON MOBILE */
@media (max-width: 768px) {
  .products-track .product-card {
    min-width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }
  .products-track {
    gap: 12px !important;
  }
}
