/* NAVBAR */
nav #store a {
  font-family: "Visby Round", sans-serif !important;
}

.work-sans {
  font-family: "Work Sans", sans-serif;
}

nav#header {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  position: relative;
  z-index: 1000;
}

#menu-toggle:checked + #menu {
  display: block;
}

/* PRODUK */
.hover\:grow {
  transition: all 0.3s;
  transform: scale(1);
}

.hover\:grow:hover {
  transform: scale(1.02);
}

/* HALAMAN HOME */
.carousel-open:checked + .carousel-item {
  position: static;
  opacity: 100;
}

.carousel-item {
  -webkit-transition: opacity 0.6s ease-out;
  transition: opacity 0.6s ease-out;
}

#carousel-1:checked ~ .control-1,
#carousel-2:checked ~ .control-2,
#carousel-3:checked ~ .control-3 {
  display: block;
}

.carousel-indicators {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

#carousel-1:checked
  ~ .control-1
  ~ .carousel-indicators
  li:nth-child(1)
  .carousel-bullet,
#carousel-2:checked
  ~ .control-2
  ~ .carousel-indicators
  li:nth-child(2)
  .carousel-bullet,
#carousel-3:checked
  ~ .control-3
  ~ .carousel-indicators
  li:nth-child(3)
  .carousel-bullet {
  color: #000;
}

.benefit_item {
  transition: all 0.3s ease;
}

.banner-bg {
  background-color: #f5f5f5;
  background-image: url("images/slide/slide-3.webp");
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
}

.placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  z-index: -1;
}

.product-item {
  transition: all 0.3s ease-in-out;
}

/* HALAMAN SHOP */
#search-input {
  border-radius: 9999px;
}

#sort-select {
  color: #70757b;
}

#sort-select option[disabled] {
  display: none;
}

#search-input::-webkit-search-cancel-button {
  display: none;
}

.product-item {
  transition: all 0.3s ease-in-out;
}

/* Gaya pagination yang diperbaiki */
#pagination-container button {
  transition: all 0.3s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pagination-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pagination Container */
#pagination-container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 0;
}

.page-button {
  padding: 8px 12px;
  border-radius: 4px;
  background: #f3f4f6;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.page-button.active {
  background: #1f2937;
  color: white;
}

.page-button:hover:not(.active) {
  background: #e5e7eb;
}

.pagination-group {
  display: flex;
  gap: 8px;
}

#page-numbers {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-grow: 1;
  max-width: 200px;
  overflow-x: hidden;
}

#pagination-container button {
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* HALAMAN ABOUT */
.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
    url("images/about/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.about-card {
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.social-icon {
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-section {
    height: 30vh;
  }
}

.team-member img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* HALAMAN LOGIN DAN REGISTER */
.auth-container {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-input {
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
  padding-right: 2.5rem !important;
}
.form-input:focus {
  border-color: #4a5568;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.eye-open,
.eye-closed {
  transition: opacity 0.2s ease-in-out;
}

/* HALAMAN KERANJANG */
.cart-item {
  transition: all 0.3s ease;
}
.quantity-btn {
  background-color: #f3f4f6;
  padding: 0.25rem 0.75rem;
}
.remove-btn:hover svg {
  fill: #ef4444;
}

/* HALAMAN PRODUK DETAIL */
.size-btn.active {
  background: #000;
  color: white;
  border-color: #000;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.cart-added {
  animation: cartPulse 0.5s ease;
}

.thumbnail.active {
  border-color: #000;
  opacity: 1;
}

.thumbnail:not(.active) {
  opacity: 0.7;
}

button,
input,
.thumbnail {
  transition: all 0.2s ease;
}
