/* Main Content Styles */
.product-detail-container {
  max-width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding-top: 20px;
}

/* Left Column - Product Info */
.product-info {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-header {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.product-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-logo svg {
  width: 60px;
  height: 60px;
  fill: white;
}

.product-title-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
}

/* Product Rating Stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.product-rating .stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-rating .stars i {
  font-size: 16px;
  color: #fbbf24; /* Yellow color */
}

.product-rating .stars i.fa-regular {
  color: #d1d5db; /* Gray color for empty stars */
}

.product-rating .rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #4b5563;
}

.product-meta a {
  color: #007bf3;
  text-decoration: none;
}

.product-meta a:hover {
  text-decoration: underline;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 35px;
}

.feature-item {
  text-align: center;
  padding: 20px 10px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bf3;
  font-size: 24px;
}

.feature-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 12px;
  color: #6b7280;
}

/* Description Section */
.product-description {
  margin-bottom: 30px;
}

.product-description h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1f2937;
}

.product-description p {
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 15px;
}

/* Dashboard Preview */
.dashboard-preview h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
}

.dashboard-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-image img {
  width: 100%;
  display: block;
}

.dashboard-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

/* Right Sidebar - Pricing */
.pricing-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1f2937;
}

/* Package Tabs */
.package-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.package-tab {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.package-tab:hover {
  border-color: #007bf3;
  color: #007bf3;
}

.package-tab.active {
  background: #007bf3;
  color: white;
  border-color: #007bf3;
}

/* Quantity Buttons */
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-btn-proxy {
  padding: 10px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn-proxy:hover {
  border-color: #007bf3;
  color: #007bf3;
}

.quantity-btn-proxy.active {
  background: #eff6ff;
  border-color: #007bf3;
  color: #007bf3;
}

/* Duration Buttons */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.duration-btn {
  padding: 10px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-btn:hover {
  border-color: #007bf3;
  color: #007bf3;
}

.duration-btn.active {
  background: #eff6ff;
  border-color: #007bf3;
  color: #007bf3;
}

/* Price Display */
.price-display {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.price-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 5px;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #ea4242;
}

.price-unit {
  font-size: 14px;
  color: #6b7280;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-primary-proxy,
.btn-secondary-proxy {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-proxy {
  background: #007bf3;
  color: white;
}

.btn-primary-proxy:hover {
  background: #1d4ed8;
}

.btn-secondary-proxy {
  background: white;
  color: #007bf3;
  border: 2px solid #007bf3;
}

.btn-secondary-proxy:hover {
  background: #eff6ff;
}

/* Related Products */
.related-products {
  margin-top: 30px;
}

.related-products h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1f2937;
}

.related-product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.related-product-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #007bf3;
}

.related-product-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
}

.related-product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-product-info {
  flex: 1;
}

.related-product-name {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 4px;
}

.related-product-type {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.related-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #007bf3;
}

.related-product-stock {
  font-size: 12px;
  color: #6b7280;
}

.related-product-action {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bf3;
  font-size: 18px;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .pricing-sidebar {
    position: static;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .quantity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .duration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons {
    flex-direction: column;
  }
}

/* Slide card proxies bottom */
.detail-proxy-carousel-section {
  max-width: 80%;
  margin: 0 auto;
  padding: 40px 0;
}

.detail-section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1f2937;
}

.detail-carousel-container {
  position: relative;
  padding: 0 60px;
}

.detail-cards-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.detail-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.detail-proxy-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex: 0 0 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  min-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-proxy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detail-proxy-card-header {
  background: linear-gradient(135deg, #007bf3 0%, #0066cc 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 30px 30px;
  position: relative;
}

.detail-proxy-card-logo {
  background-color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-proxy-card-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 50%;
}

.detail-proxy-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-proxy-card-description {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-proxy-card-description strong {
  font-weight: 600;
}

.detail-proxy-card-price {
  background: #007bf3;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.detail-proxy-card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.detail-proxy-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 20px;
}

.detail-proxy-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 0.95rem;
}

.detail-proxy-features li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: #e0f2fe;
  color: #007bf3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 14px;
}

.detail-proxy-btn-buy {
  background: #007bf3;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.detail-proxy-btn-buy:hover {
  background: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.detail-carousel-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.detail-carousel-nav-button:hover {
  background: #007bf3;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.detail-carousel-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f0f0f0;
}

.detail-carousel-nav-button:disabled:hover {
  background: #f0f0f0;
  color: #666;
  transform: translateY(-50%);
}

.detail-carousel-nav-button.detail-prev {
  left: 0;
}

.detail-carousel-nav-button.detail-next {
  right: 0;
}

@media (min-width: 3840px) {
  .detail-proxy-card {
    max-width: 300px;
  }
}

@media (min-width: 2560px) {
  .detail-proxy-card {
    max-width: 300px;
  }
}

@media (max-width: 1024px) {
  .detail-proxy-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .detail-section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .detail-proxy-card {
    flex: 0 0 calc(50% - 15px);
  }

  .detail-cards-wrapper {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .detail-carousel-container {
    padding: 0;
  }

  .detail-carousel-nav-button.detail-prev,
  .detail-carousel-nav-button.detail-next {
    display: none;
  }

  .detail-carousel-nav-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .product-meta span {
    text-align: left;
  }
}
