* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 448px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Carousel Section */
.carousel-section {
  position: relative;
  background-color: white;
}

.action-buttons {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.action-btn {
  background-color: white;
  border: none;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn svg {
  color: #374151;
}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(31, 41, 55, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: rgba(31, 41, 55, 0.7);
}

.nav-btn-left {
  left: 8px;
}

.nav-btn-right {
  right: 8px;
}

.image-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
}

.thumbnail {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: #06b6d4;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots-indicator {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}

.dot {
  height: 6px;
  border-radius: 9999px;
  background-color: #d1d5db;
  transition: all 0.3s;
}

.dot.active {
  width: 24px;
  background-color: #06b6d4;
}

.dot:not(.active) {
  width: 6px;
}

/* Price Section */
.price-section {
  background: linear-gradient(to right, #f97316, #ea580c);
  padding: 16px;
}

.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.flash-sale {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 14px;
}

.countdown-timer {
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.price-content {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.original-price {
  color: white;
  text-decoration: line-through;
  font-size: 18px;
}

.current-price {
  color: white;
  font-size: 36px;
  font-weight: 700;
}

.savings-text {
  color: white;
  font-size: 14px;
}

/* Coupon Section */
.coupon-section {
  background: linear-gradient(to right, #fffbeb, #ffedd5);
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s;
}

.coupon-section:hover {
  background: linear-gradient(to right, #fef3c7, #fed7aa);
}

.coupon-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-text {
  display: flex;
  flex-direction: column;
}

.coupon-title {
  font-weight: 600;
  font-size: 14px;
}

.coupon-subtitle {
  font-size: 12px;
  color: #4b5563;
}

/* Product Info */
.product-info {
  background-color: white;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-value {
  font-weight: 600;
}

.rating-count {
  color: #6b7280;
}

.sold-count {
  color: #6b7280;
}

/* Shipping Section */
.shipping-section {
  background-color: white;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.shipping-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.shipping-item:last-child {
  margin-bottom: 0;
}

.shipping-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.shipping-text {
  flex: 1;
}

.shipping-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.free-shipping {
  font-weight: 600;
  color: #16a34a;
}

.original-shipping {
  font-size: 12px;
  color: #6b7280;
  text-decoration: line-through;
}

.return-title {
  font-weight: 600;
  color: #2563eb;
}

.shipping-subtitle {
  font-size: 14px;
  color: #4b5563;
}

/* Tabs Navigation */
.tabs-navigation {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-btn:hover:not(.active) {
  color: #374151;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Reviews Section */
.reviews-section {
  background-color: white;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.reviews-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.rating-summary-content {
  text-align: center;
}

.rating-number {
  font-size: 30px;
  font-weight: 700;
}

.rating-stars {
  display: flex;
  gap: 2px;
  margin: 4px 0;
}

.rating-max {
  font-size: 12px;
  color: #6b7280;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:not(.active) {
  background-color: #f3f4f6;
  color: #374151;
}

.filter-pill:not(.active):hover {
  background-color: #e5e7eb;
}

.filter-pill.active {
  background-color: #2563eb;
  color: white;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.review-card:first-child {
  border-top: none;
  padding-top: 0;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-weight: 600;
  font-size: 16px;
}

.review-content {
  flex: 1;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.review-username {
  font-weight: 600;
  font-size: 14px;
}

.review-time {
  font-size: 12px;
  color: #6b7280;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
}

.review-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.review-verified svg {
  width: 14px;
  height: 14px;
}

.review-verified span {
  font-size: 12px;
  color: #16a34a;
  font-weight: 500;
}

.review-comment {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

/* Description Section */
.description-section {
  background-color: white;
  padding: 24px 16px;
}

.description-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.description-content {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.description-content p {
  margin-bottom: 12px;
}

.specs-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.specs-list {
  list-style-position: inside;
  margin-left: 8px;
}

.specs-list li {
  margin-bottom: 4px;
}

/* Store Info */
.store-info {
  background-color: white;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.store-name {
  font-size: 18px;
  font-weight: 600;
}

.store-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #16a34a;
}

.store-btn {
  width: 100%;
  padding: 8px;
  border: 2px solid #2563eb;
  color: #2563eb;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.store-btn:hover {
  background-color: #eff6ff;
}

/* Bottom Action Bar */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.bottom-action-bar > div,
.bottom-action-bar {
  max-width: 448px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-bar-btn:hover {
  background-color: #f9fafb;
}

.action-bar-btn svg {
  color: #374151;
  margin-bottom: 2px;
}

.action-bar-btn span {
  font-size: 12px;
  color: #374151;
}

.view-reviews-btn {
  flex: 1;
  padding: 10px;
  background-color: white;
  border: 1px solid #d1d5db;
  color: #1f2937;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.view-reviews-btn:hover {
  background-color: #f9fafb;
}

.buy-now-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(to right, #ec4899, #db2777);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.buy-now-btn:hover {
  background: linear-gradient(to right, #db2777, #be185d);
}

/* Scrollbar styling */
.thumbnails::-webkit-scrollbar,
.filter-pills::-webkit-scrollbar {
  height: 4px;
}

.thumbnails::-webkit-scrollbar-track,
.filter-pills::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.thumbnails::-webkit-scrollbar-thumb,
.filter-pills::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.thumbnails::-webkit-scrollbar-thumb:hover,
.filter-pills::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 448px) {
  .container {
    max-width: 100%;
  }
}
