* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid red; */
}


body {
  font-family: Arial, sans-serif;
  /* background-image: url("../photo/bglucretia.png"); */
  /* opacity:0.2; */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  background-color: black;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Overlay gelap opsional */
  z-index: -1;
}

/* Navigation */
nav {
  background-color: #000000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-block;      /* biar perspective bekerja */
  perspective: 800px;         /* jarak kamera -> ubah sesuai kebutuhan */
  -webkit-perspective: 800px;
}

.logo img {
  max-width: 50px;
  display: block;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;         /* menyembunyikan sisi belakang saat terbalik */
  -webkit-backface-visibility: hidden;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #c6c3c3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* jarak garis ke teks */
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Logo */
.logo-bawah {
  text-align: center;
  padding: 40px 0;
  font-size: 36px;
  font-weight: bold;
}

.logo-bawah h1 {
    font-family: "Italianno", cursive;
}

.logo-bawah img {
    max-width:150px;
}

/* Container */
/* .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 30px;
        } */

.container {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr minmax(200px, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  height: 100vh; /* setinggi layar penuh */
  overflow: hidden;
}

/* Left Section - Product Info */
.product-info {
  padding: 20px;
  background-color: #000; /* opsional, biar tidak transparan */
  overflow-y: auto; /* scroll sendiri jika konten panjang */
  position: sticky;
  top: 0;
  height: 100vh;
}

.product-info h1 {
  font-size: 24px;
  margin-bottom: 10px;
  /* position: fixed; */
}


.price {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffffff;
}

.description {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.product-details h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.product-details ul {
  list-style: none;
  padding-left: 0;
}

.product-details li {
  font-size: 13px;
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.product-details li:before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Sizing Table */
.sizing {
  margin-top: 30px;
}

.sizing h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #fff;
}

.size-table th,
.size-table td {
  border: 1px solid #fff;
  padding: 8px;
  text-align: center;
  font-size: 13px;
}

.size-table th {
  background: rgba(255, 255, 255, 0.1);
}

/* Center Section - Product Images */
.product-images {
  overflow-y: scroll; /* hanya tengah yang scroll utama */
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.product-images::-webkit-scrollbar {
  width: 0px;
}

.product-images img {
  width: 100%;
  height:auto;
  display: block;
  background: #f5f5f5;
}

.product-img {
  /* min-height: 400px; */
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right Section - Actions */
.product-actions {
  padding: 20px;
  background-color: #000; /* opsional */
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}

.select-picture {
  margin-bottom: 20px;
}

.select-picture h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.thumbnail {
  aspect-ratio: 1;
  background: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-btn {
  width: 100%;
  padding: 15px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 30px;
}

.shop-btn a {
  text-decoration: none;
  color:black;
}

.shop-btn:hover {
  background: #f0f0f0;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 24px;
}

.social-icons a {
  color: #fff;
  text-decoration: none;
}

/* Footer Social */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  font-size: 32px;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .product-info,
  .product-actions {
    max-width: 600px;
    margin: 0 auto;
    height: auto;
    position: static;
    overflow-y: visible;
  }

  .product-info {
    order: 2;
  }

  .product-actions {
    order: 3;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 20px;
  }

  .logo {
    font-size: 28px;
    padding: 30px 0;
  }

  .container {
    padding: 15px;
  }

  .product-info h1 {
    font-size: 20px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  
}

@media (max-width: 480px) {
  nav ul {
    gap: 15px;
  }

  nav {
    max-height:60px;
  }

  nav a {
    font-size: 12px;
  }

  .logo {
    font-size: 24px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-images {
    display:none;
  }
  .social-icons {
    display: none;
  }
}