/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base font settings */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure all elements inherit the base font */
* {
  font-family: inherit;
}

/* Dark Theme Text Colors */
.product-container,
.product-details,
.product-title,
.product-subtitle,
.product-description,
.product-price,
.product-features,
.product-meta,
.shipping-notice,
.option-label,
.breadcrumb {
  color: #ffffff !important;
}

/* Ensure all text elements are white */
.product-container p,
.product-container span,
.product-container div,
.product-container h1,
.product-container h2,
.product-container h3,
.product-container label,
.product-container li {
  color: #ffffff !important;
}

/* Price and discount colors */
.product-price {
  color: #ffffff !important;
}

.original-price {
  color: #fda4af !important;
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #7f1d1d !important;
}

/* Consistent font weights */
h1, h2, h3, h4, h5, h6, .product-title, .option-label, .button {
  font-family: inherit;
  color: #ffffff !important;
}

/* Input and button consistency */
input, button, select, textarea {
  font-family: inherit;
}

/* Input fields for dark background */
.quantity-input {
  background-color: rgba(225, 29, 72, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid #be123c !important;
}

.quantity-input:focus {
  outline: none;
  border-color: #fda4af !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

/* Material Icons */
.material-symbols-outlined {
  font-size: 24px;
  color: inherit;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #fbbf24;
  color: #7f1d1d;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 20px;
  color: #fda4af !important;
  font-size: 14px;
}

.breadcrumb a {
  color: #fda4af !important;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffffff !important;
}

.breadcrumb span {
  margin: 0 8px;
  color: #fda4af !important;
}

/* Product Container */
.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 30px 20px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: transparent;
}

/* Product Gallery */
.product-gallery {
  flex: 1 1 45%;
  max-width: 600px;
  display: flex;
  gap: 15px;
}

.thumbnail-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  background-color: rgba(225, 29, 72, 0.1);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #fda4af;
  transform: scale(1.05);
}

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

.main-image {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(225, 29, 72, 0.05);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

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

.share-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #be123c;
}

.share-button:hover {
  background: #ffffff;
  transform: scale(1.1);
}

/* Product Details */
.product-details {
  flex: 1 1 45%;
  max-width: 550px;
}

.product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.badge.bestseller {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #7f1d1d !important;
}

.badge .material-symbols-outlined {
  font-size: 16px;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff !important;
  line-height: 1.2;
}

.product-subtitle {
  color: #fda4af !important;
  font-size: 18px;
  margin-bottom: 15px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  color: #fbbf24;
}

.stars .material-symbols-outlined {
  font-size: 20px;
}

.rating-count {
  color: #fda4af !important;
  text-decoration: none;
  font-size: 14px;
}

.rating-count:hover {
  color: #ffffff !important;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff !important;
}

.product-price #amount {
  display: inline;
  color: #ffffff !important;
}

.product-description {
  color: #fce7f3 !important;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fce7f3 !important;
  font-size: 14px;
}

.product-features .material-symbols-outlined {
  color: #10b981;
  font-size: 20px;
}

/* Product Options */
.product-options {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-label .material-symbols-outlined {
  font-size: 20px;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-option {
  padding: 10px 20px;
  border: 2px solid #be123c;
  background-color: rgba(225, 29, 72, 0.1);
  color: #ffffff !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.size-option:hover {
  background-color: rgba(225, 29, 72, 0.2);
  transform: translateY(-2px);
}

.size-option.selected {
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #ffffff !important;
  border-color: transparent;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(225, 29, 72, 0.1);
  border: 2px solid #be123c;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #ffffff;
}

.quantity-btn:hover {
  background-color: rgba(225, 29, 72, 0.2);
}

.quantity-btn .material-symbols-outlined {
  font-size: 20px;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  color: #ffffff !important;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.button {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button .material-symbols-outlined {
  font-size: 20px;
}

.button-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #7f1d1d !important;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.button-secondary {
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #ffffff !important;
}

.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(190, 18, 60, 0.3);
}

.button-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #be123c;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #ffffff;
}

.button-icon:hover {
  background: rgba(225, 29, 72, 0.2);
  transform: scale(1.1);
}

.button-icon .material-symbols-outlined {
  font-size: 24px;
}

/* Shipping Notice */
.shipping-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: rgba(225, 29, 72, 0.1);
  border: 1px solid #be123c;
  border-radius: 8px;
  margin-bottom: 25px;
}

.shipping-notice .material-symbols-outlined {
  color: #10b981;
  font-size: 24px;
}

.shipping-notice p {
  margin: 0;
  color: #fce7f3 !important;
  font-size: 14px;
}

.shipping-notice strong {
  color: #ffffff !important;
}

/* Product Meta */
.product-meta {
  padding-top: 20px;
  border-top: 1px solid rgba(225, 29, 72, 0.2);
}

.product-meta p {
  color: #fda4af !important;
  font-size: 13px;
  margin-bottom: 8px;
}

.product-meta span {
  font-weight: 600;
  color: #ffffff !important;
}

/* Category Tags */
.category-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.category-tag {
  padding: 5px 12px;
  background-color: rgba(225, 29, 72, 0.1);
  color: #fda4af !important;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.category-tag:hover {
  background-color: rgba(225, 29, 72, 0.2);
  color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-container {
    gap: 30px;
  }
  
  .product-gallery,
  .product-details {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .product-gallery {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .product-title {
    font-size: 24px;
  }
  
  .product-price {
    font-size: 22px;
  }
  
  .product-options {
    flex-direction: column;
    gap: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
  }
  
  .thumbnail-container {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  
  .thumbnail {
    min-width: 60px;
    width: 60px;
    height: 60px;
  }
}