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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #6366f1;
  gap: 8px;
}

.nav-logo i {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #6366f1;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #6366f1;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.btn-primary {
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffd700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-image {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  margin-bottom: 5px;
}

.card-1 {
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.card-2 {
  top: 150px;
  right: 80px;
  animation-delay: 1s;
}

.card-3 {
  bottom: 80px;
  left: 100px;
  animation-delay: 2s;
}

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

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #1f2937;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

/* Categories */
.categories {
  padding: 100px 0;
  background: #f9fafb;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #6366f1;
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2937;
}

.category-card p {
  color: #6b7280;
  line-height: 1.5;
}

/* Products */
.products {
  padding: 100px 0;
}

.products-header {
  text-align: center;
  margin-bottom: 50px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #6b7280;
}

.filter-btn.active,
.filter-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ef4444;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-badge.sale {
  background: #ef4444;
}

.product-badge.new {
  background: #10b981;
}

.product-info {
  padding: 25px;
}

.product-category {
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ef4444;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.stars {
  color: #fbbf24;
}

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

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

.btn-buy {
  flex: 1;
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-wishlist {
  background: #f3f4f6;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #6b7280;
}

.btn-wishlist:hover {
  background: #fca5a5;
  color: #dc2626;
}

.load-more {
  text-align: center;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #6366f1;
  color: #6366f1;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: #6366f1;
  color: white;
}

/* Features */
.features {
  padding: 100px 0;
  background: #f9fafb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Newsletter */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
}

.newsletter-content {
  color: white;
}

.newsletter h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.newsletter p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form .btn-primary {
  white-space: nowrap;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #6366f1;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #6366f1;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #6366f1;
  transform: translateY(-2px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #9ca3af;
}

.contact-info i {
  color: #6366f1;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #4f46e5;
  transform: translateY(-3px);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

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

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    height: 300px;
  }

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

  .categories-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-tabs {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 10px;
  }

  .newsletter h2 {
    font-size: 2rem;
  }

  .newsletter p {
    font-size: 1rem;
  }
}

/* Product Card Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: slideInUp 0.6s ease forwards;
}

/* Category Card Hover Effects */
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card:hover::before {
  opacity: 0.05;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}
/* About Section */
.about-section {
  padding: var(--section-padding);
  background-color: var(--text-color-light);
}

.about-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 90px;
  text-align: justify;
  color: #4b5563;
}

.about-section a {
  font-weight: bold;
  color: var(--primary-color);
}

.about-section a:hover {
  text-decoration: underline;
}

/* styles/style.css */

/* Basic Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
  animation: fadeIn 0.3s forwards; /* For fade-in effect */
  backdrop-filter: blur(5px); /* Optional: A subtle blur effect */
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 5% from the top and centered */
  padding: 30px;
  border-radius: 12px;
  width: 90%; /* Could be responsive */
  max-width: 900px; /* Max width */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideInFromTop 0.4s ease-out forwards; /* For slide-in effect */
  display: flex; /* Use flexbox for layout inside modal */
  flex-direction: column; /* Default to column for smaller screens */
  gap: 20px;
}

/* Close Button */
.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: var(--primary-color); /* Adjust to your primary color */
  text-decoration: none;
  cursor: pointer;
}

/* Modal Body Layout */
.modal-body {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 30px;
  align-items: flex-start;
}

.modal-product-image-container {
  flex: 1; /* Take available space */
  min-width: 250px; /* Minimum width before wrapping */
  max-width: 400px; /* Max width for the image container */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.modal-product-info {
  flex: 2; /* Take more space for info */
  min-width: 300px; /* Minimum width before wrapping */
}

.modal-product-info h2 {
  font-size: 2.2rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.modal-product-price {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-product-price .current-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.modal-product-price .original-price {
  font-size: 1.2rem;
  color: #888;
  text-decoration: line-through;
}

.modal-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-product-rating .stars .fas,
.modal-product-rating .stars .far,
.modal-product-rating .stars .fas.fa-star-half-alt {
  color: #ffc107; /* Star color */
  font-size: 1.1rem;
}

.modal-product-rating .rating-text {
  font-size: 0.95rem;
  color: #666;
}

/* Deskripsi Produk di Modal */
.modal-product-info .product-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: justify; /* Optional: for justified text */
}

.modal-product-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
    flex-direction: column; /* Stack image and info vertically */
  }
  .modal-body {
    flex-direction: column;
    gap: 20px;
  }
  .modal-product-image-container,
  .modal-product-info {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .modal-product-info h2 {
    font-size: 1.8rem;
  }
  .modal-product-price .current-price {
    font-size: 1.5rem;
  }
  .modal-product-actions {
    flex-direction: column; /* Stack buttons vertically */
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto; /* Less top margin for smaller screens */
    padding: 15px;
  }
  .modal-product-info h2 {
    font-size: 1.5rem;
  }
  .modal-product-price .current-price {
    font-size: 1.3rem;
  }
}

/* Animations (ensure these are in your CSS or main.js style block) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* styles/style.css */

/* --- Search Input Styles --- */
.products-header {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px; /* Spacing between items */
}

.search-input {
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 8px; /* Slightly rounded corners */
  font-size: 1rem;
  width: 250px; /* Default width */
  max-width: 100%; /* Ensures it doesn't overflow on small screens */
  outline: none; /* Remove default outline on focus */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  border-color: var(--primary-color); /* Highlight border on focus */
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2); /* Soft focus glow */
}

/* Adjustments for responsive layout in products-header */
@media (max-width: 768px) {
  .products-header {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align to the left */
  }

  .products-header .section-title {
    width: 100%; /* Title takes full width */
    text-align: center; /* Center title */
    margin-bottom: 20px;
  }

  .products-header .filter-tabs {
    width: 100%; /* Filter tabs take full width */
    justify-content: center; /* Center filter buttons */
    margin-bottom: 20px;
  }

  .search-input {
    width: 100%; /* Search input takes full width */
    margin-top: 10px; /* Add some space above search input */
  }
}

@media (max-width: 480px) {
  .search-input {
    padding: 10px 15px; /* Slightly smaller padding */
    font-size: 0.95rem;
  }
}

/* Pastikan variabel CSS seperti --primary-color dan --primary-color-rgb sudah didefinisikan di bagian :root{} atau di awal file CSS Anda */
/* Contoh:
:root {
    --primary-color: #4A90E2; // Biru yang cerah
    --primary-color-rgb: 74, 144, 226; // RGB dari primary-color
    --secondary-color: #6C757D;
    --text-color: #333;
    --heading-color: #222;
    --background-color: #f8f9fa;
}
*/

/* styles/style.css */

/* styles/style.css */

/* --- Hero Section Styling Adjustments --- */
.hero-container {
  display: flex;
  flex-direction: row; /* Default: content dan image berdampingan */
  align-items: center;
  justify-content: space-between;
  padding: 80px 0; /* Sesuaikan padding vertikal */
  max-width: 1200px; /* Batasi lebar container */
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  padding-right: 40px; /* Jarak antara teks dan gambar */
  max-width: 55%; /* Konten teks mengambil sekitar setengah lebar */
}

.hero-image {
  flex: 1;
  display: flex; /* Menggunakan flexbox untuk memusatkan gambar */
  justify-content: center; /* Memusatkan gambar secara horizontal */
  align-items: center; /* Memusatkan gambar secara vertikal */
  max-width: 45%; /* Gambar mengambil sekitar setengah lebar */
  position: relative; /* Penting jika ada efek tambahan */
  padding-left: 20px; /* Sedikit padding kiri agar tidak terlalu rapat */
}

/* Gaya untuk gambar iPhone utama di hero section */
.hero-main-product-img {
  width: 100%; /* Lebar gambar mengikuti lebar parent .hero-image */
  max-width: 450px; /* Batasi ukuran maksimal agar tidak terlalu besar di desktop */
  height: auto;
  object-fit: contain; /* Pastikan gambar terlihat penuh dan tidak terpotong */
  transform: rotate(5deg); /* Efek rotasi ringan agar lebih dinamis */
  filter: drop-shadow(
    0 15px 30px rgba(0, 0, 0, 0.2)
  ); /* Shadow yang lebih menonjol */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-main-product-img:hover {
  transform: rotate(0deg) scale(1.03); /* Efek zoom ringan saat hover */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* --- Responsive Adjustments untuk Hero Section --- */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column; /* Tumpuk konten dan gambar secara vertikal */
    text-align: center;
    padding: 60px 20px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px; /* Jarak antara konten dan gambar */
    max-width: 100%; /* Ambil lebar penuh */
  }

  .hero-image {
    max-width: 80%; /* Gambar hero lebih lebar di tablet */
    padding-left: 0;
  }

  .hero-main-product-img {
    max-width: 350px; /* Sesuaikan ukuran gambar di tablet */
  }
}

@media (max-width: 576px) {
  .hero-container {
    padding: 40px 15px;
  }

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

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

  .hero-image {
    max-width: 90%; /* Gambar hero lebih lebar di ponsel */
  }

  .hero-main-product-img {
    max-width: 280px; /* Sesuaikan ukuran gambar di ponsel */
  }
}

/* Pastikan Anda juga sudah memiliki styling dasar untuk .hero, .hero-container, dll. */
/* Jika Anda memiliki gaya untuk .floating-card dan .card-icon-img/.card-product-img yang tidak digunakan lagi di hero,
   Anda bisa menghapusnya atau memindahkannya jika masih digunakan di tempat lain. */
