* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f1f5f9;
  color: #334155;
  line-height: 1.6;
  padding: 0;
}

.site-header {
  background: #000000;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .hinner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
}

.site-header .logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.site-header nav a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  margin: 20px 0;
  font-size: 14px;
  color: #6c757d;
}

.breadcrumb span {
  margin: 0 8px;
  color: #dee2e6;
}

.product-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 30px;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.product-image-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.main-image img:hover {
  transform: scale(1.05);
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.3s;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover, .thumbnail.active {
  border-color: #fdcd00;
  transform: scale(1.05);
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 32px;
  font-weight: 800;
  color: #000;
  background: none;
  /* show solid color for price */
}

/* Subscription buttons on product page */
.subscription-options {
  display: flex;
  gap: 10px;
  margin: 12px 0 6px 0;
  flex-wrap: wrap;
}
.subscription-btn {
  padding: 8px 14px;
  border: 2px solid #e9ecef;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.18s;
}
.subscription-btn.active, .subscription-btn:hover {
  background: #fdcd00;
  color: #000;
  border-color: #fdcd00;
}

.product-old-price {
  font-size: 18px;
  color: #6c757d;
  text-decoration: line-through;
  margin-left: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffc107;
  font-size: 20px;
}

.rating-count {
  color: #6c757d;
  font-size: 14px;
}

.product-description {
  color: #495057;
  line-height: 1.8;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #fdcd00;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 15px;
}

.feature-item i {
  color: #fdcd00;
  width: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.quantity-label {
  font-weight: 600;
  color: #1a1a1a;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #fdcd00;
  color: #fff;
}

.quantity-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 18px;
  font-weight: 600;
  background: transparent;
}

.add-to-cart {
  width: 100%;
  padding: 15px 30px;
  background: #fdcd00;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.reviews-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: #fdcd00;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.overall-rating {
  text-align: center;
  background: #fdcd00;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  min-width: 150px;
}

.rating-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.rating-stars {
  color: #ffc107;
  font-size: 24px;
  margin: 10px 0;
}

.total-reviews {
  font-size: 14px;
  opacity: 0.9;
}

.review-progress {
  flex: 1;
  min-width: 250px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.progress-label {
  font-weight: 600;
  min-width: 60px;
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #fdcd00;
  border-radius: 6px;
  transition: width 0.3s;
}

.progress-count {
  font-weight: 600;
  color: #6c757d;
  min-width: 40px;
}

.add-review-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #fdcd00;
  box-shadow: 0 0 0 3px rgba(253, 205, 0, 0.12);
}

.stars-input {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.star-input {
  font-size: 28px;
  color: #dee2e6;
  cursor: pointer;
  transition: all 0.2s;
}

.star-input:hover {
  transform: scale(1.1);
}

.star-input.active {
  color: #ffc107;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  padding: 12px 30px;
  background: #fdcd00;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #fdcd00;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.review-author {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.review-date {
  color: #6c757d;
  font-size: 14px;
}

.review-stars {
  color: #ffc107;
  font-size: 18px;
}

.review-text {
  color: #495057;
  line-height: 1.8;
}

.similar-products {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  padding: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  border: 2px solid #e9ecef;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #fdcd00;
}

.product-card-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fdcd00;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.product-card-info {
  padding: 15px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 20px;
  font-weight: 800;
  color: #fdcd00;
  background: none;
  /* show solid color for card price */
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #ffc107;
  font-size: 14px;
}

.msg {
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  font-weight: 600;
}

.msg.success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.msg.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-header .hinner {
    padding: 0 15px;
  }
  
  .site-header .logo span {
    font-size: 20px;
  }
  
  .site-header nav a {
    display: none;
  }
  
  .container {
    padding: 15px;
  }
  
  .product-container {
    padding: 20px;
    border-radius: 12px;
  }
  
  .product-main {
    gap: 20px;
  }
  
  .main-image {
    height: 300px;
  }
  
  .product-title {
    font-size: 22px;
  }
  
  .product-price {
    font-size: 26px;
  }
  
  .product-description {
    padding: 15px;
    font-size: 14px;
  }
  
  .reviews-section, .similar-products {
    padding: 20px;
    border-radius: 12px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .review-summary {
    flex-direction: column;
    gap: 20px;
  }
  
  .overall-rating {
    width: 100%;
    min-width: auto;
  }
  
  .progress-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card {
    border-radius: 10px;
  }
  
  .product-card-image {
    height: 150px;
  }
  
  .product-card-info {
    padding: 12px;
  }
  
  .product-card-title {
    font-size: 14px;
  }
  
  .product-card-price {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .site-header .logo img {
    width: 35px;
    height: 35px;
  }
  
  .site-header .logo span {
    font-size: 18px;
  }
  
  .product-title {
    font-size: 20px;
  }
  
  .product-price {
    font-size: 24px;
  }
  
  .main-image {
    height: 250px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quantity-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .quantity-btn {
    flex: 1;
    height: 45px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Global bottom panel */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.98);
  color: #e6eef6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
  z-index: 120;
  padding: 6px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 100%;
}

.bottom-panel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 8px 6px;
  transition: all 0.2s ease;
  flex: 1;
  text-decoration: none;
  color: inherit;
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.bottom-panel-item:hover {
  color: #fdcd00;
  transform: scale(1.04);
}

.bottom-panel-item i {
  font-size: 1.4rem;
  transition: all 0.2s ease;
}

.bottom-panel-item span {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

.bottom-panel-item.highlight {
  color: #fdcd00;
}

.bottom-panel-item.highlight i {
  font-size: 1.6rem;
}

@media (max-width: 600px) {
  .bottom-panel-item span {
    font-size: 0.7rem;
    max-width: 60px;
  }

  .bottom-panel-item i {
    font-size: 1.2rem;
  }
}
