/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #ffffff;
}

/* Page Container */
.page-container {
  min-height: 100vh;
  background-color: #ffffff;
}

/* Main Container */
.main-container {
  width: 100%;
  margin: 0;
  background-color: #ffffff;
  box-shadow: none;
  min-height: 100vh;
}

/* Desktop shadow only */
@media (min-width: 1024px) {
  .main-container {
    box-shadow: none;
  }
}

/* Mobile/Tablet Header - Hidden on desktop */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.mobile-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a1c2e;
  flex: 1;
  padding-right: 16px;
  line-height: 1.25;
}

.mobile-buy-button {
  background-color: #333;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.mobile-buy-button:hover {
  background-color: #444;
}

@media (min-width: 640px) {
  .mobile-header {
    padding: 16px 32px;
  }
  
  .mobile-title {
    font-size: 20px;
  }
}

/* Hide mobile header on desktop screens >1320px */
@media (min-width: 1320px) {
  .mobile-header {
    display: none;
  }
}

/* Product Layout - Main flex container */
.product-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 16px 100px 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .product-layout {
    padding: 20px 32px 100px 32px;
  }
}

/* Desktop layout: side-by-side at >1320px */
@media (min-width: 1320px) {
  .product-layout {
    flex-direction: row;
    gap: 32px;
    padding: 20px 73px 100px 76px;
  }
}

/* Product Images Section */
.product-images {
  flex: 1;
}

@media (min-width: 1320px) {
  .product-images {
    max-width: 837px;
  }
}

.image-container {
  margin-bottom: 8px;
}

.first-image {
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .first-image {
    margin-bottom: 64px;
  }
}

.image-wrapper {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.third-image-bg {
  background-color: #f7f7f7;
}

@media (min-width: 640px) {
  .image-wrapper {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .image-wrapper {
    height: 628px;
  }
  
  .image-container:nth-child(3) .image-wrapper {
    height: 558px;
  }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details Section */
.product-details {
  width: 100%;
}

@media (min-width: 1320px) {
  .product-details {
    width: 407px;
    flex-shrink: 0;
  }
}

/* Product Title */
.product-title {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #0a1c2e;
  margin: 8px 0;
}

@media (min-width: 640px) {
  .product-title {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .product-title {
    font-size: 26px;
    line-height: 33.8px;
  }
}

/* Rating Link */
.rating-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.rating-link:hover {
  opacity: 0.8;
}

.stars {
  display: flex;
  color: #fbbf24;
  font-size: 22px;
  line-height: 28px;
}

.rating-value,
.review-count {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: #666;
}

.rating-separator {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #666;
}

/* Price Section */
.price-section {
  margin-bottom: 12px;
}

.price-container {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: #333;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .price-container {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .price-container {
    font-size: 26px;
    line-height: 33.8px;
  }
}

.price-options {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.price-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-model {
  font-size: 12px;
  color: #666;
  font-weight: 400;
  margin-top: 4px;
}

.price-divider {
  color: #666;
  font-size: 24px;
  font-weight: 100;
}

/* Free Shipping Badge */
.shipping-badge-container {
  position: relative;
  margin-bottom: 31px;
}

.shipping-badge {
  background-color: #c758c7;
  display: inline-block;
  height: 24px;
  position: relative;
  padding: 0 16px 0 8px; /* room for arrow and left inset */
  white-space: nowrap;
}

.shipping-arrow {
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-left: 6px solid #c758c7;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  z-index: 0;
}

.shipping-text {
  position: absolute;
  left: 8px;
  top: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22.4px;
  color: white;
  z-index: 1;
  white-space: nowrap;
}

/* Product Description */
.product-description {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: #333;
  width: 100%;
  margin-bottom: 24px;
}

/* Ecwid Container */
.ecwid-container {
  margin-bottom: 10px;
}

.ecwid-placeholder {
  font-family: 'Lato', sans-serif;
  padding-top: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.size-selector-placeholder {
  margin-bottom: 20px;
}

.size-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20.8px;
  color: #333;
  margin-bottom: 5px;
}

.size-select {
  width: 100%;
  max-width: 296px;
  height: 40px;
  padding: 0 11px;
  background-color: #fbfbfb;
  border: 1px solid #a8bac7;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #6e6e6e;
  appearance: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08) inset;
}

.buy-button-placeholder {
  width: 100%;
  max-width: 296px;
  height: 50px;
  background-color: #333;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 23.4px;
  border-radius: 3px;
  opacity: 0.5;
  cursor: not-allowed;
  border: none;
}

/* Ecwid Widget Styling */
.ecsp-SingleProduct-v2 {
  font-family: 'Lato', sans-serif !important;
  min-height: 200px;
  transition: height 0.3s ease;
  font-size: 14px !important;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.ecsp-SingleProduct-v2.loaded {
  opacity: 1;
}

/* Override Ecwid styles */
.ecsp-SingleProduct-v2 .ecwid-fieldLabel,
.ecsp-SingleProduct-v2 label {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #333 !important;
  line-height: 20.8px !important;
  margin-bottom: 5px !important;
}

.ecsp-SingleProduct-v2 select,
.ecsp-SingleProduct-v2 .ecwid-productBrowser-details-optionSelectBox {
  font-family: 'Lato', sans-serif !important;
  background-color: #fbfbfb !important;
  border: 1px solid #a8bac7 !important;
  border-radius: 3px !important;
  color: #6e6e6e !important;
  font-size: 16px !important;
  height: 40px !important;
  padding: 0 11px !important;
  width: 100% !important;
  max-width: 296px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08) inset !important;
}

.ecsp-SingleProduct-v2 button,
.ecsp-SingleProduct-v2 .ecwid-btn {
  background-color: #333 !important;
  color: white !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 23.4px !important;
  border-radius: 3px !important;
  height: 50px !important;
  width: 100% !important;
  max-width: 296px !important;
  border: none !important;
  margin-bottom: 35px !important;
  transition: background-color 0.15s ease !important;
  cursor: pointer !important;
}

.ecsp-SingleProduct-v2 button:hover,
.ecsp-SingleProduct-v2 .ecwid-btn:hover {
  background-color: #444 !important;
}

/* Save for Later Label */
.save-later-label {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20.8px;
  color: #333;
  margin-bottom: 10px;
}

/* Favorite Button */
.favorite-button {
  display: flex;
  align-items: center;
  gap: 6.4px;
  width: 137px;
  height: 40px;
  padding: 5px 14px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 39px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.favorite-button:hover {
  background-color: #f9fafb;
}

.heart-icon {
  width: 29px;
  height: 29px;
  color: #333;
  opacity: 0.9;
}

.favorite-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #333;
}

/* Share Section */
.share-label {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20.8px;
  color: #333;
  margin-bottom: 10px;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 60px;
  height: 22px;
  padding: 2.5px 3px;
  background-color: #f2f2f2;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.social-button:hover {
  background-color: #e8e8e8;
}

.social-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facebook-icon {
  background-color: #425497;
  color: white;
}

.facebook-icon svg {
  width: 12px;
  height: 12px;
}

.twitter-icon {
  background-color: black;
  color: white;
}

.twitter-icon svg {
  width: 12px;
  height: 12px;
}

.pinterest-icon {
  background-color: #CC002B;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.social-text {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #333;
}

/* Content Sections */
.content-sections {
  width: 100%;
  margin: 0;
  padding: 0 16px 64px 16px;
}

@media (min-width: 640px) {
  .content-sections {
    padding: 0 32px 64px 32px;
  }
}

@media (min-width: 1024px) {
  .content-sections {
    padding: 0 73px 64px 73px;
  }
}

.section {
  margin-bottom: 64px;
}

.section-title {
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0a1c2e;
  margin-bottom: 32px;
}

.video-title {
  text-align: center;
}

/* Product Specifications */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-card {
  background-color: #f7f7f7;
  padding: 24px;
  border-radius: 8px;
}

.spec-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

/* Available Sizes */
.sizes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .sizes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.size-card {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.size-image-container {
  height: 300px;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.size-image:hover {
  opacity: 0.9;
}

.size-info {
  padding: 24px;
}

.size-name {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.size-description {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

.size-details {
  list-style: none;
  padding: 0;
}

.size-details li {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

/* Features Section */
.features-section {
  margin-top: 32px;
  background-color: #f7f7f7;
  padding: 24px;
  border-radius: 8px;
}

.features-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
}

.feature-image-container {
  margin-bottom: 12px;
}

.feature-image {
  width: 100%;
  height: 128px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.feature-image:hover {
  opacity: 0.9;
}

.feature-name {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.feature-description {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #666;
}

/* Customer Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: white;
  border: 1px solid #e5e5e5;
  padding: 24px;
  border-radius: 8px;
}

.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.review-stars {
  display: flex;
  color: #fbbf24;
  margin-right: 8px;
}

.review-score {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #666;
}

.review-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
}

.review-author {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #666;
}

/* More Reviews */
.more-reviews-container {
  margin-top: 32px;
}

.more-reviews-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f7f7f7;
  border: 1px solid #e5e5e5;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.more-reviews-button:hover {
  background-color: #e8e8e8;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

.more-reviews-content {
  margin-top: 16px;
  padding: 24px;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.more-reviews-content.hidden {
  display: none;
}

.trustindex-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trustindex-widget {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

/* Trustindex generic widget container */
.ti-widget {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

/* Video Section */
.video-container {
  position: relative;
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f7f7f7;
}

.video-wrapper iframe {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.video-description {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #666;
  margin-top: 24px;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
}

/* Shipping & Returns */
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .shipping-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.shipping-section {
  
}

.shipping-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.shipping-list {
  list-style: none;
  padding: 0;
}

.shipping-item {
  display: flex;
  align-items: flex-start;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.checkmark {
  color: #059669;
  margin-right: 8px;
  font-weight: bold;
}

/* FAQ Section */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 24px;
}

.faq-item.last {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.faq-answer {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #666;
}

/* Related Products */
.related-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 672px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .related-products {
    grid-template-columns: 1fr 1fr;
  }
}

.related-product {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.related-product:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.related-image-container {
  height: 192px;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
  margin-left: 20px;
  min-height: 20px;
  min-width: 20px;
  overflow: hidden;
  aspect-ratio: 1.18;
}

.related-image:last-child {
  aspect-ratio: 1;
}

.related-info {
  padding: 16px;
}

.related-name {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.related-price {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-color: white;
  padding: 20px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Transitions */
.rotate-180 {
  transform: rotate(180deg);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Loading and error states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error {
  color: #dc2626;
  border-color: #dc2626;
}

/* Print styles */
@media print {
  .lightbox,
  .social-buttons,
  .more-reviews-button {
    display: none;
  }
}
