/* ==========================================
   PRODUCT DETAIL PAGE
   Single product view, related products
========================================== */

/* === LEGACY PRODUCT DETAIL === */
.product-card-detail {
  width: 95%;
  max-width: 1400px;
  margin: 120px auto 40px;
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
  min-height: 700px;
}

.product-info-left {
  width: 50%;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.product-info-left img {
  width: 80%;
  max-height: 600px;
  object-fit: contain;
}

.product-info-box {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
}

.product-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #333;
  margin-top: 80px;
}

#productPrice {
  font-size: 40px;
  font-weight: bold;
  color: #b8860b;
  text-align: center;
  margin: 30px 0;
}

/* Product Meta Info (Brand & Category) */
.product-meta-info {
  text-align: center;
  margin: 20px 0;
}

.product-brand,
.product-category {
  font-size: 18px;
  color: #555;
  margin: px 0;
  font-weight: 400;
}

.product-brand strong,
.product-category strong {
  color: #b8860b;
  font-weight: 600;
}

.product-brand span,
.product-category span {
  color: #333;
  font-weight: 500;
}

.product-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #555;
  border-top: 2px solid #ccc;
  padding-top: 20px;
  width: 100%;
  margin-top: auto;
}

.product-features p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.join-button-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(90deg, #ffc800, #b38600, #ffd84d, #b38600, #ffc800);
  background-size: 300% 300%;
  animation: joinGlow 4s linear infinite;
  color: #1a1a1a;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 200, 0,0.6);
  transition: all 0.3s;
  z-index: 10;
}

@keyframes joinGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.join-button-top-right:hover {
  transform: scale(1.05);
}

.back-button {
  position: fixed;
  top: 150px;
  left: 80px;
  background-color: #ffc800;
  color: #1a1a1a;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 1000;
}

.back-button:hover {
  background-color: #ffc800;
  transform: scale(1.05);
}

/* === RELATED PRODUCTS === */
.related-products-section {
  max-width: 1400px;
  margin: 60px auto;
  padding: 20px;
}

.related-products-section h2 {
  font-size: 42px;
  font-weight: 800;
  color: #b8860b;
  margin-bottom: 40px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.related-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
}

.related-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  z-index: 2;
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #ffc800;
}

.related-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  height: 250px;
  object-fit: cover;
  background: #f8f9fa;
}

.related-card h3 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #333;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin: 16px 16px 8px;
  line-height: 1.4;
}

.related-card p {
  font-size: 20px;
  font-weight: bold;
  color: #b8860b;
  margin-top: 5px;
  font-size: 20px;
  font-weight: 800;
  color: #b8860b;
  margin: 0 16px 16px;
}

/* ===================================================================
   MODERN PRODUCT DETAIL PAGE - REDESIGN
   =================================================================== */

/* Back Navigation */
.product-back-nav {
  max-width: 1400px;
  margin: 0 auto 5px;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.back-link:hover {
  color: #b8860b;
  background-color: #f8f8f8;
  transform: translateX(-4px);
}

.back-link svg {
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-2px);
}

/* Product Detail Container */
.product-detail-container {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Product Image Section */
.product-image-section {
  position: relative;
}

.product-image-wrapper {
  position: sticky;
  top: 140px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-main-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.product-main-image:hover {
  transform: scale(1.05);
}

/* Product Info Section */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-brand-badge,
.product-category-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f3f5;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-brand-badge {
  background: linear-gradient(135deg, #ffc800 0%, #ffd84d 100%);
  color: #1a1a1a;
}

.breadcrumb-separator {
  color: #adb5bd;
  font-weight: 300;
}

/* Title */
.product-detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #212529;
  line-height: 1.2;
  margin: 0;
}

/* Price Section */
.product-price-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 2px solid #f1f3f5;
  border-bottom: 2px solid #f1f3f5;
}

.product-detail-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #b8860b;
  line-height: 1;
}

.product-price-label {
  font-size: 14px;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price-label::before {
  content: "✓";
  font-weight: bold;
}

/* Purchase Count */
.product-purchase-count {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.product-purchase-count svg {
  stroke: #6c757d;
  flex-shrink: 0;
}

.product-purchase-count span {
  color: #495057;
}

/* Features Grid */
.product-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 10px 0;
}

.feature-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: white;
  border-color: #ffc800;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 4px 0;
}

.feature-content p {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* CTA Section */
.product-cta-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.product-buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ffc800 0%, #ffd84d 100%);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 200, 0, 0.3);
  border: none;
  cursor: pointer;
}

.product-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 200, 0, 0.4);
  background: linear-gradient(135deg, #ffd84d 0%, #ffc800 100%);
}

.product-buy-button:active {
  transform: translateY(0);
}

.product-register-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: white;
  color: #b8860b;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #ffc800;
  transition: all 0.3s ease;
}

.product-register-button:hover {
  background: #ffc800;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 200, 0, 0.2);
}

/* Info Banner */
.product-info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  border-left: 4px solid #22c55e;
  margin-top: 10px;
}

.product-info-banner svg {
  flex-shrink: 0;
  color: #22c55e;
}

.product-info-banner p {
  margin: 0;
  font-size: 14px;
  color: #1b5e20;
  line-height: 1.5;
}

.product-info-banner strong {
  color: #1b5e20;
  font-weight: 700;
}

/* Related Products - Modern */
.related-products-modern {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.related-products-header {
  text-align: center;
  margin-bottom: 50px;
}

.related-products-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #212529;
  margin: 0 0 12px 0;
}

.related-products-header p {
  font-size: 16px;
  color: #6c757d;
  margin: 0;
}

.related-products-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===================================================================
   SIGNUP BANNER SECTION
   =================================================================== */

.signup-banner-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffc800 0%, #ffd84d 100%);
  position: relative;
  overflow: hidden;
}

.signup-banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.signup-banner-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.signup-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.signup-banner-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.signup-banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: #1a1a1a;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.signup-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.signup-banner-subtitle {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.8);
  margin: 0;
  font-weight: 500;
  max-width: 600px;
}

.signup-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin: 20px 0;
}

.signup-benefit-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 28px 20px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.signup-benefit-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(0, 0, 0, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.signup-benefit-icon {
  font-size: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.signup-benefit-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.signup-benefit-text p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.signup-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 48px;
  background: white;
  color: #b8860b;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
}

.signup-banner-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #f8f9fa;
}

.signup-banner-cta:active {
  transform: translateY(-2px) scale(1);
}

.signup-banner-cta svg {
  transition: transform 0.3s ease;
}

.signup-banner-cta:hover svg {
  transform: translateX(4px);
}

.signup-banner-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.signup-banner-trust span {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.signup-banner-trust span:not(:first-child):not(:last-child):nth-child(odd) {
  opacity: 0.6;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .signup-banner-section {
    padding: 60px 20px;
  }

  .signup-banner-title {
    font-size: 40px;
  }

  .signup-banner-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .signup-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
  }

  .signup-benefit-item {
    padding: 24px 16px;
  }

  .signup-benefit-icon {
    font-size: 42px;
  }

  .signup-benefit-text h3 {
    font-size: 17px;
  }

  .signup-benefit-text p {
    font-size: 13px;
  }

  .signup-banner-cta {
    padding: 20px 44px;
    font-size: 19px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .signup-banner-section {
    padding: 20px 16px;
  }

  .signup-banner-badge {
    font-size: 9px;
    padding: 4px 12px;
    margin-bottom: 8px;
  }

  .signup-banner-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .signup-banner-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .signup-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
  }

  .signup-benefit-item {
    padding: 12px 8px;
  }

  .signup-benefit-icon {
    font-size: 28px;
  }

  .signup-benefit-text h3 {
    font-size: 13px;
  }

  .signup-benefit-text p {
    font-size: 10px;
  }

  .signup-banner-cta {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }

  .signup-banner-trust {
    gap: 8px;
    margin-top: 8px;
  }

  .signup-banner-trust span {
    font-size: 10px;
  }
}
