/* Product Default Layout Styles - Based on Product Popup */
.product-default-layout {
  margin: 0;
  width: 100% !important;
  max-width: none !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Smooth Scroll Effects */
.product-default-layout,
.product-default-description,
.description-content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  --scroller-background: transparent;
  --scroller-color-lightness: 80%;
  --scroller-hover-factor: 0.8;
}

/* Scroll-based Animations */
.product-default-layout {
  animation: fadeInUp 0.6s ease-out;
}

/* Ensure the main container is properly sized */
.woo-product.single-product.product-default-layout {
  width: 100% !important;
  max-width: none !important;
  padding-bottom: 2rem;
}

.product-default-layout .product-columns {
  display: flex !important;
  gap: 80px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.product-default-layout .product-column-left {
  flex: 1 !important;
  width: auto;
}

.product-default-layout .product-column-right {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}

/* Product Image Slider */
.product-default-layout .woo-product-image-slider {
  position: relative;
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
}

.product-default-layout .product_images {
  position: relative;
  height: auto;
  overflow: hidden;
}

.product-default-layout .image-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

.product-default-layout .image-wrap:first-child {
  opacity: 1;
}

.product-default-layout .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

/* Thumbnail Gallery */
.product-default-layout .product-thumbnails-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0 3.5px;
  justify-content: center;
}

.product-default-layout .thumbnail-item {
  width: 64px;
  height: 64px;
  border: 2px solid #e1e1d7;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-default-layout .thumbnail-item.active {
  border-color: #b88917;
}

.product-default-layout .thumbnail-item:hover {
  border-color: #b88917;
  transform: scale(1.05);
}

.product-default-layout .thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details Styling */
.product-default-layout .woo-product-details {
  padding: 0;
}

.product-default-layout .woo-product-details-inner {
  background: #fff;
  border-radius: 0px;
  padding: 0;
}

.product-default-layout .product-info-wrap {
  padding: 0;
}

/* Product Title */
.product-default-layout h1.product_title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: #010101;
  margin: 0 0 16px 0;
  letter-spacing: -0.6px;
}

/* Member Banner */
.product-default-layout .member-banner {
  background: #f2f6ef;
  border: 1px solid #f3ddbf;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-default-layout .member-banner .star-icon {
  width: 20px;
  height: 20px;
  color: #85a866;
}

.product-default-layout .member-banner .member-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #85a866;
  line-height: 24px;
  letter-spacing: -0.2px;
}

/* Price Styling */
.product-default-layout .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.product-default-layout .price del {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #babab2;
  text-decoration: line-through;
}

.product-default-layout .price ins,
.product-info-wrap > .price > .woocommerce-Price-amount.amount,
.woocommerce-variation-price > .price > .woocommerce-Price-amount.amount {
  font-family: "PP Neue Machina", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #010101;
  text-decoration: none;
}

.woocommerce-variation-price {
  padding: 8px 0;
  border-top: 1px solid #e1e1d7;
}

/* Color Options */
.product-default-layout .color-options {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.product-default-layout .color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-default-layout .color-option:hover {
  transform: scale(1.1);
}

.product-default-layout .color-option.active {
  border-color: #010101;
}

/* Quantity Selector */
.product-default-layout .quantity-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #4e4e43;
  margin-bottom: 8px;
  display: block;
}

.product-default-layout .quantity-selector {
  display: flex;
  align-items: center;
  background: #f7f7f1;
  border: 1px solid #010101;
  border-radius: 8px;
  width: 114px;
  height: 40px;
  overflow: hidden;
}

.product-default-layout .quantity-btn {
  width: 32px;
  height: 100%;
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #010101;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.product-default-layout .quantity-btn:hover {
  background: #e8e8e8;
}

.product-default-layout .quantity-input {
  flex: 1;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #010101;
  border: none;
  background: none;
  outline: none;
}

/* Action Buttons */
.product-default-layout .action-buttons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.product-default-layout .btn-primary {
  background: #a9594a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-default-layout .btn-primary:hover {
  background: #8f4a3d;
  transform: translateY(-1px);
}

.product-default-layout .btn-secondary {
  background: #f7eeed;
  color: #a9594a;
  border: 1px solid #a9594a;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-default-layout .btn-secondary:hover {
  background: #a9594a;
  color: #ffffff;
}

/* Responsive Design */
/* Tablet Landscape */
@media screen and (max-width: 1024px) {
  .product-default-layout .product-columns {
    gap: 40px;
  }

  .product-default-layout .product-column-left {
    flex: 0 0 350px !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
  }

  .product-default-layout .product_images {
    height: 300px;
  }
}

/* Tablet Portrait */
@media screen and (max-width: 768px) {
  .product-default-layout .product-columns {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .product-default-layout .product-column-left {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
  }

  .product-default-layout .product-column-right {
    flex: none;
    width: 100%;
  }

  .product-default-layout .product_images {
    max-width: 400px;
    margin: 0 auto;
  }

  .product-default-layout .product-thumbnails-gallery {
    justify-content: center;
    max-width: 400px;
    margin: 16px auto 0;
  }

  .product-default-layout .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .product-default-layout .btn-primary,
  .product-default-layout .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  .product-default-layout h1.product_title {
    font-size: 20px;
    line-height: 28px;
    text-align: left;
  }

  .product-default-layout .price {
    justify-content: flex-start;
  }

  .product-default-layout .color-options {
    justify-content: center;
  }

  .product-default-layout .quantity-selector {
    margin: 0 auto;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 640px) {
  .product-default-layout .product-columns {
    gap: 20px;
  }

  .product-default-layout .product_images {
    max-width: 350px;
  }

  .product-default-layout .product-thumbnails-gallery {
    max-width: 350px;
    gap: 6px;
  }

  .product-default-layout .thumbnail-item {
    width: 56px;
    height: 56px;
  }

  .product-default-layout h1.product_title {
    font-size: 19px;
    line-height: 27px;
  }

  .product-default-layout .price ins {
    font-size: 28px;
  }

  .product-default-layout .member-banner {
    padding: 10px 14px;
  }

  .product-default-layout .member-banner .member-text {
    font-size: 15px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
  .product-default-layout {
    padding: 8px;
  }

  .product-default-layout .product-columns {
    gap: 16px;
  }

  .product-default-layout .product_images {
    height: 350px;
    max-width: 100%;
  }

  .product-default-layout .product-thumbnails-gallery {
    max-width: 100%;
    gap: 4px;
    padding: 0 8px;
  }

  .product-default-layout .thumbnail-item {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .product-default-layout h1.product_title {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 12px;
    text-align: left;
  }

  .product-default-layout .price {
    margin-bottom: 12px;
  }

  .product-default-layout .price ins {
    font-size: 24px;
  }

  .product-default-layout .price del {
    font-size: 16px;
  }

  .product-default-layout .member-banner {
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .product-default-layout .member-banner .member-text {
    font-size: 14px;
    line-height: 20px;
  }

  .product-default-layout .color-options {
    gap: 6px;
    margin-bottom: 12px;
  }

  .product-default-layout .color-option {
    width: 28px;
    height: 28px;
  }

  .product-default-layout .quantity-selector {
    width: 100px;
    height: 36px;
  }

  .product-default-layout .quantity-btn {
    width: 28px;
    font-size: 20px;
  }

  .product-default-layout .quantity-input {
    font-size: 20px;
  }

  .product-default-layout .action-buttons {
    gap: 10px;
    margin-top: 12px;
  }

  .product-default-layout .btn-primary,
  .product-default-layout .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .product-default-layout .thumbnail-item {
    min-width: 48px;
    min-height: 48px;
  }

  .product-default-layout .color-option {
    min-width: 36px;
    min-height: 36px;
  }

  .product-default-layout .quantity-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .product-default-layout .btn-primary,
  .product-default-layout .btn-secondary {
    min-height: 48px;
  }
}

/* Animation for image transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-default-layout .image-wrap {
  animation: fadeIn 0.3s ease;
}

/* Product Description Section */
.product-default-description {
  margin-top: 40px;
  border: 1px solid #e1e1d7;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

/* Description Header */
.description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7f7f1;
  border-bottom: 1px solid #e1e1d7;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.description-header:hover {
  background: #f0f0ea;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.description-icon {
  flex-shrink: 0;
}

.description-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-style: normal;
  line-height: 32px;
  letter-spacing: -0.6px;
  color: #010101;
  margin: 0;
}

.chevron-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

/* Description Content */
.description-content {
  padding: 24px 24px 32px 24px;
  display: none;
}

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

.content-section {
  margin-bottom: 24px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: #010101;
  margin: 0 0 8px 0;
}

.section-text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0;
  color: #010101;
  margin: 0;
}

/* Product Specification Items */
.product-spec-item {
  margin-top: 24px;
}

.description-content > p:last-child + .product-spec-item,
.description-content > div:last-child + .product-spec-item {
  margin-top: 24px;
}

.product-spec-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: #010101;
  margin: 0 0 8px 0;
}

.product-spec-value {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0;
  color: #010101;
  margin: 0;
}

/* Responsive adjustments for description */
@media (max-width: 768px) {
  .description-title {
    font-size: 20px;
    line-height: 28px;
  }

  .section-title {
    font-size: 16px;
    line-height: 24px;
  }

  .section-text {
    font-size: 14px;
    line-height: 20px;
  }

  .description-content {
    padding: 20px 16px 24px 16px;
  }

  .description-header {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .description-title {
    font-size: 18px;
    line-height: 24px;
  }

  .section-title {
    font-size: 15px;
    line-height: 22px;
  }

  .section-text {
    font-size: 13px;
    line-height: 18px;
  }

  .description-content {
    padding: 16px 12px 20px 12px;
  }

  .description-header {
    padding: 8px 10px;
  }

  .header-content {
    gap: 8px;
  }
}

/* Product Reviews Section */
.product-default-reviews {
  margin: 40px 0px;
  border: 1px solid #e1e1d7;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

/* Reviews Header */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7f7f1;
  border-bottom: 1px solid #e1e1d7;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reviews-header:hover {
  background: #f0f0ea;
}

.reviews-header .header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-style: normal;
  line-height: 32px;
  letter-spacing: -0.6px;
  color: #010101;
  margin: 0;
}

.reviews-count {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

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

/* Reviews Content */
.reviews-content {
  padding: 24px;
  display: none;
}

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

/* Reviews Header Row (count and filter in same row) */
.reviews-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* Reviews Count Header (inside content) */
.reviews-count-header {
  flex: 1;
}

.reviews-count-header .reviews-count {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #171717;
}

/* Reviews Filter */
.reviews-filter {
  margin-left: auto;
}

.reviews-star-filter {
  padding: 8px 12px;
  padding-right: 2.75rem;
  border: 1px solid #ffffff00;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  background-color: #ffffff;
  background-repeat: no-repeat !important;
  background-position: right 12px center;
  background-size: 14px 12px;
  color: #010101;
  cursor: pointer;
  min-width: 80px;
}

.reviews-star-filter:focus {
  outline: none;
  border-color: 1px solid #ffffff00 !important;
}

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

.review-item {
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0ea;
}

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

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

.review-avatar {
  flex-shrink: 0;
}

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

.review-author-info {
  flex: 1;
  min-width: 0;
}

.review-author-name {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #010101;
  margin-bottom: 4px;
}

.review-date {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.review-rating {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
}

.review-rating .star-rating {
  display: inline-block;
}

/* Override WooCommerce star colors - filled stars in golden/brown */
.review-rating .star-rating span {
  color: #d5b588 !important;
}

.review-rating .star-rating span::before {
  color: #d5b588 !important;
}

/* Empty stars in light gray */
.review-rating .star-rating::before {
  color: #e1e1d7 !important;
}

.review-comment {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #010101;
}

.no-reviews {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

/* View More Button */
.reviews-view-more-wrapper {
  margin-top: 24px;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid #e1e1d7;
}

.reviews-view-more-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #a9594a;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reviews-view-more-btn:hover {
  color: #654321;
  opacity: 0.8;
}

.reviews-view-more-btn:focus {
  outline: none;
}

.reviews-view-more-btn .view-more-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.reviews-view-more-btn:hover .view-more-arrow {
  transform: translateY(2px);
}

/* Hidden Reviews */
.reviews-list-hidden {
  display: none;
}

.reviews-list-hidden .review-item {
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0ea;
}

.reviews-list-hidden .review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
  .reviews-title {
    font-size: 20px;
    line-height: 28px;
  }

  .reviews-content {
    padding: 20px 16px;
  }

  .reviews-header {
    padding: 10px 12px;
  }

  .review-author-name {
    font-size: 15px;
  }

  .review-comment {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 480px) {
  .reviews-title {
    font-size: 18px;
    line-height: 24px;
  }

  .reviews-content {
    padding: 16px 12px;
  }

  .reviews-header {
    padding: 8px 10px;
  }

  .review-avatar img {
    width: 40px;
    height: 40px;
  }

  .review-author-name {
    font-size: 14px;
  }

  .review-date {
    font-size: 12px;
  }

  .review-comment {
    font-size: 13px;
    line-height: 20px;
  }

  .reviews-view-more-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
