/* Created custom CSS file for elegant product cards and hover effects */

/* Color Variables */
:root {
  --pakistan-green: #1a5f3f;
  --sage: #aabe7f;
  --beige: #c7d2cc;
  --seasalt: #f8f9fa;
  --antiflash-white: #f1f3f4;
}

/* Navbar Hover Effects */
.custom-navbar {
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.custom-navbar:hover {
  border-bottom: 3px solid var(--sage);
}

.brand-hover {
  transition: all 0.3s ease;
  position: relative;
}

.brand-hover:hover {
  color: var(--sage) !important;
  transform: scale(1.05);
}

.brand-hover::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--sage);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.brand-hover:hover::after {
  width: 100%;
}

.nav-link-hover {
  position: relative;
  transition: all 0.3s ease;
  color: var(--pakistan-green) !important;
}

.nav-link-hover:hover {
  color: var(--sage) !important;
  transform: translateY(-2px);
}

.nav-link-hover::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--sage);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-hover:hover::before {
  width: 80%;
}

.custom-dropdown {
  border: none;
  box-shadow: 0 10px 30px rgba(20, 49, 9, 0.15);
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 10px;
}

.dropdown-item-hover {
  transition: all 0.3s ease;
  padding: 10px 20px;
  color: var(--pakistan-green);
}

.dropdown-item-hover:hover {
  background-color: var(--beige);
  color: var(--pakistan-green);
  transform: translateX(10px);
  padding-left: 30px;
}

.search-input {
  border: 2px solid var(--beige);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 0.2rem rgba(170, 174, 127, 0.25);
  transform: scale(1.02);
}

.search-btn {
  border-radius: 25px;
  transition: all 0.3s ease;
  border-color: var(--pakistan-green);
  color: var(--pakistan-green);
}

.search-btn:hover {
  background-color: var(--pakistan-green);
  border-color: var(--pakistan-green);
  transform: scale(1.1) rotate(5deg);
}

.cart-btn {
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--sage);
  color: var(--sage);
}

.cart-btn:hover {
  background-color: var(--sage);
  border-color: var(--sage);
  color: white;
  transform: scale(1.1);
}

.cart-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.login-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
  background-color: var(--pakistan-green);
  border-color: var(--pakistan-green);
}

.login-btn:hover {
  background-color: var(--sage);
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(170, 174, 127, 0.4);
}

/* Elegant Product Cards */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(20, 49, 9, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--beige);
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pakistan-green), var(--sage), var(--beige));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(20, 49, 9, 0.2);
  border-color: var(--sage);
}

.product-image {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: all 0.4s ease;
}

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

.product-card-body {
  padding: 1.5rem;
  position: relative;
}

.product-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--pakistan-green);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--sage);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 1rem;
}

.product-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.order-btn {
  background: linear-gradient(135deg, var(--pakistan-green), var(--sage));
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.order-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.order-btn:hover::before {
  left: 100%;
}

.order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 49, 9, 0.3);
  background: linear-gradient(135deg, var(--sage), var(--beige));
  color: var(--pakistan-green);
}

/* Enhanced Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, var(--pakistan-green) 0%, #2d7a5a 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(199, 210, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(170, 190, 127, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.hero-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 12px;
  color: var(--sage);
  animation: drawLine 2s ease-out 1s both;
}

@keyframes drawLine {
  0% {
    stroke-dasharray: 0 200;
  }
  100% {
    stroke-dasharray: 200 0;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--sage), var(--beige));
  border: none;
  color: var(--pakistan-green);
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(170, 190, 127, 0.4);
  color: var(--pakistan-green);
}

.hero-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sage);
  color: white;
  transform: translateY(-3px);
}

.hero-stats {
  margin-top: 3rem;
}

.stat-item h4 {
  font-weight: 700;
  font-size: 2rem;
}

/* Hero Cards Container */
.hero-cards-container {
  height: 500px;
}

.hero-main-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-featured-card {
  width: 280px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.hero-featured-card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-sm {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-floating-cards {
  position: relative;
  height: 100%;
}

.floating-card {
  position: absolute;
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 30%;
  left: 5%;
  animation-delay: 2s;
}

.floating-card-3 {
  top: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.floating-card .card {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.floating-card .card:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  position: relative;
  text-decoration: none;
}

.scroll-down span {
  display: block;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnimation 2s infinite;
}

.scroll-down span:nth-child(1) {
  top: 8px;
  animation-delay: 0s;
}
.scroll-down span:nth-child(2) {
  top: 16px;
  animation-delay: 0.3s;
}
.scroll-down span:nth-child(3) {
  top: 24px;
  animation-delay: 0.6s;
}

@keyframes scrollAnimation {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* Enhanced Products Section */
.products-section {
  background: linear-gradient(to bottom, var(--seasalt), white);
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--beige) !important;
  color: var(--pakistan-green);
  border: 1px solid var(--sage);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pakistan-green);
  margin: 2rem 0 1rem 0;
  position: relative;
}

/* .section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
} */

/* Enhanced Product Cards */
.product-card-enhanced {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 95, 63, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(199, 210, 204, 0.3);
  position: relative;
  height: 100%;
}

.product-card-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pakistan-green), var(--sage));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.product-card-enhanced:hover::before {
  transform: scaleX(1);
}

.product-card-enhanced:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(26, 95, 63, 0.15);
  border-color: var(--sage);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.product-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 95, 63, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.product-actions .btn:hover {
  transform: scale(1.1);
  background: var(--sage) !important;
  color: white !important;
}

.product-content {
  padding: 1.5rem;
}

.product-category {
  margin-bottom: 0.5rem;
}

.product-category small {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sage);
}

.rating-text {
  font-size: 0.8rem;
  color: #6b7280;
}

.product-price-section {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stok-container {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 10px !important;
  color: var(--sage);
}

.stok-text {
  font-size: 14px !important; /* Atau ukuran lain yang Anda inginkan */
  font-weight: 700; /* Menyesuaikan dengan gaya Anda */
  color: var(--sage);
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pakistan-green);
}

.original-price {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
}

.product-btn {
  background: linear-gradient(135deg, var(--pakistan-green), var(--sage));
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.product-btn:hover::before {
  left: 100%;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 95, 63, 0.3);
}

.products-cta .cta-btn {
  border: 2px solid var(--pakistan-green);
  color: var(--pakistan-green);
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.products-cta .cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--pakistan-green);
  transition: left 0.4s ease;
  z-index: -1;
}

.products-cta .cta-btn:hover::before {
  left: 0;
}

.products-cta .cta-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 95, 63, 0.3);
}

/* Content Hover Effects */
.hero-card {
  cursor: pointer;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--pakistan-green), var(--sage));
  border-radius: 2px;
}

.feature-card {
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  border: 1px solid var(--beige);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(20, 49, 9, 0.15);
  border-color: var(--sage);
}

.feature-card:hover .feature-icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-10px) scale(1.1);
  }
  80% {
    transform: translateY(-5px) scale(1.05);
  }
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cards-container {
    height: 300px;
  }

  .hero-featured-card {
    width: 240px;
  }

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

  .product-card-enhanced {
    margin-bottom: 2rem;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    text-align: center;
  }
}
