/* Simple elegant stylesheet for GAMOYA template - FIXED PRODUCT DETAIL */
:root{
  --bg:#CDEBED;
  --text:#0a0a0a;
  --muted:#666;
  --accent:#d8c6b6; 
  --max-width: 95vw;
}

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

html {
  font-size: 16px;
}

body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; 
  color: var(--text); 
  background: var(--bg); 
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.container{
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 5%;
  width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header{
  position: sticky; 
  top: 0; 
  background: rgba(174,198,207,1); 
  backdrop-filter: blur(6px); 
  z-index: 1000; 
  border-bottom: 1px solid rgba(0,0,0,0.04);
  width: 100%;
}

.header-inner{
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 12px 0;
  width: 100%;
}

.logo img{
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  padding: 8px 16px;
  position: relative;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav a[href="index.html"],
.nav a[href="shop.html"], 
.nav a[href="about.html"],
.nav a[href="contact.html"] {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== BANNER SLIDER - CLICKABLE FIX ===== */
.banner-slider {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  margin-bottom: 30px;
  background: #AEC6CF;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* Link yang menutupi seluruh slide */
.slide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slide img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.slide-link:hover img {
  transform: scale(1.02);
}

.slide-content {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}

/* Sembunyikan tombol di banner slider */
.slide-content .btn {
  display: none;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* ARROW STYLES - NO BACKGROUND */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.slider-arrow:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.2);
  color: rgba(255,255,255,0.8);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* ===== SINGLE BANNER SECTION - DIPERBAIKI ===== */
.single-banner {
  padding: 20px 0;
  margin: 20px 0;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #AEC6CF 0%, #CDEBED 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-text h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.banner-text p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--muted);
}

.single-banner .btn {
  padding: 8px 20px;
  font-size: 14px;
}

/* ===== BUTTON STYLES ===== */
.btn{
  display: inline-block;
  padding: 12px 30px;
  background: var(--text);
  color: #CDEBED;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--text);
  font-size: 16px;
  min-width: 120px;
  text-align: center;
}

.btn:hover{
  background: transparent;
  color: var(--text);
  transform: translateY(-2px);
}

.btn-outline{
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--text);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  background: transparent;
  font-size: 13px;
}

.btn-outline:hover{
  background: var(--text);
  color: #CDEBED;
  transform: translateY(-1px);
}

/* ===== FILTER BUTTONS ===== */
.filter-menu{
  margin-bottom: 30px;
  text-align: center;
}

.filter-btn{
  padding: 8px 16px;
  margin: 0 5px 8px;
  border: 2px solid var(--text);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 13px;
}

.filter-btn:hover,
.filter-btn.active{
  background: var(--text);
  color: #CDEBED;
  transform: translateY(-2px);
}

/* ===== FEATURED PRODUCTS ===== */
.featured{
  padding: 40px 0;
}

.featured h2{
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 300;
  color: var(--text);
}

.grid{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  width: 100%;
}

.card{
  background: #AEC6CF;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card img{
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  background: white;
  padding: 8px;
}

.card:hover img{
  transform: scale(1.03);
}

.card h3{
  margin: 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price{
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
  margin: 8px 0;
}

/* ===== PRODUCT DETAIL - FIXED FOR MOBILE & DESKTOP ===== */
.product-detail {
  width: 100%;
  min-height: 100vh;
}

.product-detail-inner {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%;
  align-items: flex-start;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.main-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #AEC6CF;
  border-radius: 12px;
  padding: 20px;
  min-height: 400px;
  max-height: 600px;
}

.main-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  width: 100%;
  justify-content: center;
}

.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border-color: var(--text);
  transform: scale(1.05);
}

.product-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
}

.product-info .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin: 0;
}

.product-info #product-description {
  line-height: 1.6;
  font-size: 16px;
  color: var(--muted);
}

/* ===== QUANTITY SELECTION ===== */
.quantity-selection {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.quantity-selection h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--text);
  color: #CDEBED;
}

.quantity-display {
  font-size: 22px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

/* ===== ORDER BUTTONS ===== */
.product-actions {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.product-actions h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.order-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
  min-height: 55px;
}

.order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.instagram-btn:hover {
  opacity: 0.9;
}

.shopee-btn {
  background-color: #EE4D2D;
  color: white;
}

.shopee-btn:hover {
  background-color: #d44326;
}

.order-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== PRODUCT DETAILS ===== */
.product-details {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.product-details h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list strong {
  color: var(--text);
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.related-products h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 300;
  color: var(--text);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview{
  padding: 50px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}

.about-inner{
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2{
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-inner p{
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 25px;
}

.link{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--text);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.link:hover{
  color: var(--muted);
  border-bottom-color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer{
  border-top: 1px solid rgba(0,0,0,0.04);
  padding: 25px 0;
  margin-top: 50px;
  background: rgba(174,198,207,0.5);
  width: 100%;
}

.site-footer .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.site-footer p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer .social a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 14px;
}

.site-footer .social a:hover{
  color: var(--text);
}

/* ===== UTILITY STYLES ===== */
.breadcrumb {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.back-button-container {
  margin-bottom: 15px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 2px solid var(--text);
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-back:hover {
  background: var(--text);
  color: #CDEBED;
  transform: translateY(-2px);
}

.btn-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-back:hover svg {
  transform: translateX(-3px);
}

/* ===== ANIMATIONS ===== */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: all 800ms cubic-bezier(.2,.9,.3,1);
}

.reveal.visible{
  opacity: 1;
  transform: none;
}

/* ===== HIDE UNNECESSARY ELEMENTS ===== */
.hamburger,
.nav-overlay,
.size-selection,
.size-options,
.size-btn {
  display: none !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .nav {
    gap: 5px;
  }
  
  .nav a {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .logo img {
    height: 32px;
  }
  
  .banner-slider {
    height: 40vh;
    min-height: 250px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
  
  .slider-arrow.prev {
    left: 15px;
  }
  
  .slider-arrow.next {
    right: 15px;
  }
  
  /* Single Banner Mobile - DIKECILKAN */
  .single-banner {
    padding: 15px 0;
    margin: 15px 0;
  }
  
  .banner-text h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .banner-text p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .single-banner .btn {
    padding: 6px 15px;
    font-size: 12px;
    min-width: 80px;
  }
  
  /* Featured Products Mobile - DIPERBAIKI */
  .featured {
    padding: 30px 0;
  }
  
  .featured h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .card {
    padding: 12px;
  }
  
  .card img {
    height: 160px;
    padding: 6px;
  }
  
  .card h3 {
    font-size: 14px;
    margin: 6px 0;
    min-height: 35px;
  }
  
  .price {
    font-size: 16px;
    margin: 6px 0;
  }
  
  .btn-outline {
    padding: 5px 12px;
    font-size: 11px;
    margin-top: 6px;
  }
  
  /* Product Detail Mobile Fix */
  .product-detail-inner {
    flex-direction: column;
    gap: 20px;
  }
  
  .product-gallery,
  .product-info {
    min-width: 100%;
    width: 100%;
  }
  
  .main-image {
    min-height: 280px;
    padding: 15px;
    max-height: 350px;
  }
  
  .main-image img {
    max-height: 320px;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .product-info h1 {
    font-size: 1.5rem;
  }
  
  .product-info .price {
    font-size: 1.8rem;
  }
  
  .order-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 45px;
  }
  
  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .quantity-display {
    font-size: 18px;
  }
  
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-inner {
    flex-direction: column;
    gap: 15px;
  }
  
  .about-inner h2 {
    font-size: 1.4rem;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 11px;
    margin: 0 2px 5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .nav a {
    padding: 4px 6px;
    font-size: 9px;
  }
  
  .logo img {
    height: 26px;
  }
  
  .banner-slider {
    height: 35vh;
    min-height: 200px;
  }
  
  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
  }
  
  .slider-arrow.prev {
    left: 8px;
  }
  
  .slider-arrow.next {
    right: 8px;
  }
  
  /* Single Banner Mobile Kecil - LEBIH KECIL LAGI */
  .single-banner {
    padding: 12px 0;
    margin: 12px 0;
  }
  
  .banner-text h2 {
    font-size: 1.1rem;
  }
  
  .banner-text p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  
  .single-banner .btn {
    padding: 5px 12px;
    font-size: 11px;
    min-width: 70px;
  }
  
  /* Featured Products Mobile Kecil */
  .featured {
    padding: 25px 0;
  }
  
  .featured h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .card {
    padding: 10px;
  }
  
  .card img {
    height: 150px;
    padding: 5px;
  }
  
  .card h3 {
    font-size: 13px;
    margin: 5px 0;
    min-height: 32px;
  }
  
  .price {
    font-size: 15px;
    margin: 5px 0;
  }
  
  .btn-outline {
    padding: 4px 10px;
    font-size: 10px;
    margin-top: 5px;
  }
  
  /* Product Detail Mobile Kecil */
  .main-image {
    min-height: 250px;
    max-height: 320px;
  }
  
  .main-image img {
    max-height: 280px;
  }
  
  .thumbnail {
    width: 45px;
    height: 45px;
  }
  
  .product-info h1 {
    font-size: 1.3rem;
  }
  
  .product-info .price {
    font-size: 1.6rem;
  }
  
  .order-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 42px;
  }
  
  .order-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .quantity-display {
    font-size: 16px;
  }
  
  .filter-btn {
    padding: 5px 10px;
    font-size: 10px;
    margin: 0 1px 4px;
  }
}

/* Fix untuk layar sangat kecil */
@media (max-width: 360px) {
  .card {
    max-width: 100%;
    padding: 10px;
  }
  
  .card img {
    height: 140px;
  }
  
  .card h3 {
    font-size: 12px;
  }
  
  .single-banner .btn {
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* ===== DESKTOP OPTIMIZATION ===== */
@media (min-width: 1200px) {
  .product-detail-inner {
    gap: 60px;
  }
  
  .main-image {
    min-height: 500px;
    max-height: 700px;
  }
  
  .main-image img {
    max-height: 600px;
  }
  
  .thumbnail {
    width: 80px;
    height: 80px;
  }
}