/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  padding: 6rem 0 1rem;
  margin-bottom: 2rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-orange);
}

.breadcrumb-nav i {
  color: #999;
  font-size: 0.7rem;
}

.breadcrumb-nav span {
  color: #666;
}

/* Product Detail */
.product-detail {
  padding: 2rem 0;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Product Images */
.product-images {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
}

.main-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.main-image::after {
  content: "🔍";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.main-image:hover::after {
  opacity: 1;
}

.image-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.main-image:hover .image-zoom {
  opacity: 1;
}

.image-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnail {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: var(--primary-orange);
}

.thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: center;
  background: white;
}

.thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Info */
.product-info {
  padding: 1rem 0;
}

.product-header {
  margin-bottom: 2rem;
}

.product-brand {
  display: inline-block;
  background: var(--gradient-mixed);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.product-brand.brand-brateck {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c1a 100%);
}

.product-brand.brand-pixelscreen {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2b5cb8 100%);
}

.product-brand.brand-epson {
  background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
}

.product-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #ffd700;
}

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

.product-description {
  margin-bottom: 2rem;
}

.product-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.features-list {
  display: grid;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 122, 0, 0.05);
  transform: translateX(5px);
}

.feature-item i {
  color: var(--primary-orange);
  font-size: 1.1rem;
  min-width: 20px;
}

.feature-item span {
  font-weight: 500;
  color: #333;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  flex: 1;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.product-share span {
  font-weight: 600;
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
}

/* WhatsApp Button Styling */
.whatsapp-btn {
  background: #25d366 !important;
  border-color: #25d366 !important;
}

.whatsapp-btn:hover {
  background: #1da851 !important;
  border-color: #1da851 !important;
  transform: translateY(-2px);
}

.whatsapp-btn:before {
  content: "📱";
  margin-right: 8px;
  font-size: 16px;
}

/* Product Specifications */
.product-specifications {
  padding: 4rem 0;
  background: #f8f9fa;
}

.product-specifications h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

.specifications-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.spec-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  width: 30%;
}

.spec-table td {
  color: #555;
}

.spec-table tr:hover {
  background: rgba(255, 122, 0, 0.02);
}

/* Product Gallery */
.product-gallery {
  padding: 4rem 0;
}

.product-gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

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

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  background: white;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--primary-orange);
}

.lightbox-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 -50px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
  background: rgba(255, 122, 0, 0.8);
  transform: scale(1.1);
}

/* Lightbox Responsive */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
    margin: 0 auto;
  }

  .lightbox-close {
    top: -30px;
    right: 10px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-controls {
    padding: 0 -30px;
  }

  .lightbox-btn {
    padding: 0.8rem;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

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

  .nav-list {
    flex-direction: column !important;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block !important;
  }

  .nav-link:hover {
    color: var(--primary-orange) !important;
    background: rgba(255, 122, 0, 0.05);
    padding-left: 1rem !important;
  }

  .nav-link.active {
    color: var(--primary-orange) !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 576px) {
  .lightbox-content {
    max-width: 98%;
    max-height: 80%;
  }

  .lightbox-close {
    top: -25px;
    right: 5px;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
  }

  .lightbox-btn {
    padding: 0.6rem;
    font-size: 1rem;
  }
}

/* Related Products */
.related-products {
  padding: 4rem 0;
  background: #f8f9fa;
}

.related-products h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

/* Use same grid as products page */
.related-products .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

/* Focus States untuk Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.filter-btn:focus,
.search-input:focus {
  outline: 3px solid rgba(255, 122, 0, 0.3);
  outline-offset: 2px;
}

.thumbnail:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Loading States */
.product-images.loading .main-image img {
  opacity: 0.5;
  filter: blur(2px);
}

.product-info.loading {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-detail-content {
    gap: 3rem;
  }

  .main-image img {
    height: 400px;
  }

  .product-name {
    font-size: 2.2rem;
  }
}

@media (max-width: 1024px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-images {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }

  .main-image img {
    height: 350px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .related-products .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 5rem 0 1rem;
  }

  .breadcrumb-nav {
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.85rem;
  }

  .breadcrumb-nav a,
  .breadcrumb-nav span {
    padding: 0.2rem 0;
  }

  .product-detail {
    padding: 1.5rem 0;
  }

  .main-image img {
    height: 300px;
  }

  .product-name {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .product-description p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .product-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .product-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .share-buttons {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .image-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .thumbnail img {
    height: 70px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .related-products .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-specifications h2,
  .product-gallery h2,
  .related-products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .specifications-content {
    padding: 1.5rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .spec-table th {
    width: 35%;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    padding: 4.5rem 0 0.8rem;
  }

  .breadcrumb-nav {
    font-size: 0.8rem;
    gap: 0.25rem;
  }

  .product-detail {
    padding: 1rem 0;
  }

  .product-name {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .product-brand {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
  }

  .product-rating {
    margin-bottom: 1.5rem;
  }

  .stars {
    font-size: 0.9rem;
  }

  .rating-text {
    font-size: 0.85rem;
  }

  .product-description {
    margin-bottom: 1.5rem;
  }

  .product-description p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .main-image img {
    height: 250px;
  }

  .image-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.8rem;
  }

  .thumbnail img {
    height: 60px;
  }

  .product-features h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .features-list {
    gap: 0.6rem;
  }

  .feature-item {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .btn-large {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  .product-share span {
    font-size: 0.9rem;
  }

  .share-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .specifications-content {
    padding: 1rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .spec-table th {
    width: 40%;
  }

  .product-specifications h2,
  .product-gallery h2,
  .related-products h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 4rem 0 0.5rem;
  }

  .product-name {
    font-size: 1.3rem;
  }

  .main-image img {
    height: 220px;
  }

  .product-specifications h2,
  .product-gallery h2,
  .related-products h2 {
    font-size: 1.6rem;
  }
}

/* Nav toggle styling untuk halaman detail produk */
.nav-toggle span {
  background: #333 !important;
  opacity: 1 !important;
}

.navbar.scrolled .nav-toggle span {
  background: #333 !important;
}

/* Footer Enhancement untuk halaman detail produk */
.footer {
  background: var(--gradient-primary) !important;
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--primary-orange);
  border-radius: 50%;
  opacity: 0.1;
  animation: footerShape1 20s ease-in-out infinite;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--light-orange);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  animation: footerShape2 15s ease-in-out infinite reverse;
}

@keyframes footerShape1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes footerShape2 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateX(20px) rotate(90deg);
  }
}

/* Footer menggunakan styling dari style.css yang asli */
.footer-content {
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer::before {
    width: 400px;
    height: 400px;
    top: -40%;
    right: -15%;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-item {
    padding: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Epson Description Styling */
.epson-description h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  border-left: 4px solid var(--primary-orange);
  padding-left: 1rem;
}

.epson-description h3:first-child {
  margin-top: 0;
}

.epson-description p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.epson-description {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Pixelscreen Description Styling */
.pixelscreen-description h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  border-left: 4px solid var(--primary-orange);
  padding-left: 1rem;
}

.pixelscreen-description h3:first-child {
  margin-top: 0;
}

.pixelscreen-description p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.pixelscreen-description {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Brateck Description Styling */
.brateck-description h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  border-left: 4px solid var(--primary-orange);
  padding-left: 1rem;
}

.brateck-description h3:first-child {
  margin-top: 0;
}

.brateck-description p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.brateck-description {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Contact Buttons Styling */
.product-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 240px;
  flex: 1;
  text-align: center;
}

/* Email Button - Primary Orange Theme */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c1a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c1a 0%, var(--primary-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.3);
}

/* WhatsApp Button - Same Orange Theme as Email Button */
.btn-secondary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c1a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #ff8c1a 0%, var(--primary-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.3);
}

/* Button Icons */
.btn-primary i,
.btn-secondary i {
  font-size: 1.1rem;
}

/* Responsive Button Styling */
@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    font-size: 0.95rem;
    min-width: 100%;
    flex: none;
  }
}

@media (max-width: 480px) {
  .product-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: none;
  }
}
