/* Shop Details Page Styles */

/* Image Gallery Styles */
.product-details-thumb-wrap {
  position: relative;
}

.product-details-thumb {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}

.product-details-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
}

.product-details-slider-dot .custom-button {
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.product-details-slider-dot .custom-button img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-details-slider-dot .swiper-slide-thumb-active .custom-button {
  border-color: #ff5e14;
}

.product-details-slider-dot .custom-button:hover {
  border-color: #ff5e14;
  opacity: 0.8;
}

/* Image Description Styles */
.product-image-description {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.image-description-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.image-description-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #444;
}

.image-description-content p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #666;
}

.image-description-content strong {
  color: #333;
  font-weight: 600;
}

.image-description-content a {
  color: #50266b;
  text-decoration: none;
  transition: all 0.3s ease;
}

.image-description-content a:hover {
  color: #ff5e14;
  text-decoration: underline;
}

.image-description-content a:visited {
  color: #50266b;
}

/* Action Buttons Styles */
.product-action-buttons {
  padding: 0;
}

.product-action-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.product-action-buttons-wrapper .rs-btn {
  flex: 0 0 auto;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.product-action-buttons-wrapper .rs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.3);
}

/* Product Description Content Styles */
.product-information-content {
  padding: 30px 0;
}

.product-description-content {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.product-description-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 30px;
  color: #333;
  border-bottom: 3px solid #84569f;
  padding-bottom: 10px;
}

.product-description-content h2:first-child {
  margin-top: 0;
}

.product-description-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
  color: #444;
}

.product-description-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #666;
  font-size: 15px;
}

.product-description-content a {
  color: #50266b;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-description-content a:hover {
  color: #ff5e14;
  text-decoration: underline;
}

.product-description-content a:visited {
  color: #50266b;
}

.product-description-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 30px 0;
}

.product-description-content ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.product-description-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #666;
}

.product-description-content ul li p {
  margin-bottom: 0;
}

.product-description-content ul li strong {
  color: #333;
  font-weight: 600;
}

/* Table Styles */
.product-description-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.product-description-content table.table-bordered {
  border: 1px solid #dee2e6;
}

.product-description-content table th,
.product-description-content table td {
  padding: 15px;
  text-align: left;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

.product-description-content table thead th,
.product-description-content table th {
  background-color: #50266b;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.product-description-content table th p,
.product-description-content table thead th p {
  color: #fff !important;
  margin-bottom: 0;
}

.product-description-content table tbody tr {
  transition: background-color 0.3s ease;
}

.product-description-content table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}

.product-description-content table tbody tr:hover {
  background-color: #fff5f0;
}

.product-description-content table td {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  min-height: 50px;
}

.product-description-content table td p {
  margin-bottom: 0;
}

/* Color Swatch Styles */
.color-swatch {
  display: block !important;
  width: 100%;
  height: 100%;
  min-width: 30px;
  min-height: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.color-swatch:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .product-image-description {
    margin-bottom: 20px;
  }

  .product-action-buttons-wrapper {
    justify-content: center;
  }

  .product-description-content table {
    font-size: 13px;
  }

  .product-description-content table th,
  .product-description-content table td {
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .image-description-content h2 {
    font-size: 20px;
  }

  .image-description-content h3 {
    font-size: 18px;
  }

  .product-description-content h2 {
    font-size: 24px;
  }

  .product-description-content h3 {
    font-size: 20px;
  }

  .product-action-buttons-wrapper .rs-btn {
    flex: 1 1 100%;
    text-align: center;
  }

  /* Responsive table - card layout for mobile */
  .product-description-content table {
    display: block;
    width: 100% !important;
    border: none;
    box-shadow: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }

  .product-description-content table thead {
    display: none;
  }

  .product-description-content table tbody {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .product-description-content table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
  }

  .product-description-content table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fff;
  }

  .product-description-content table tbody tr:hover {
    background-color: #fafafa;
  }

  .product-description-content table td {
    display: flex;
    flex-direction: column;
    padding: 10px !important;
    border: none !important;
    background-color: #f9f9f9;
    border-radius: 4px;
    min-height: 50px;
    justify-content: center;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 12px;
  }

  .product-description-content table td:last-child {
    border-bottom: none !important;
  }

  .product-description-content table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #50266b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    width: 100%;
  }

  /* Color swatches in mobile - don't override background color */
  .product-description-content table td[style*="background-color"] {
    background-color: inherit !important;
    min-height: 70px;
    padding: 8px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .product-description-content table td[style*="background-color"]::before {
    display: none;
  }

  .product-description-content table td > .color-swatch {
    display: block !important;
    width: 90px !important;
    height: 50px !important;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }

  .product-description-content table .color-swatch {
    display: block !important;
    width: 90px !important;
    height: 50px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .product-details-thumb img {
    max-height: 350px;
  }

  .product-details-slider-dot .custom-button img {
    height: 60px;
  }

  .image-description-content h2 {
    font-size: 18px;
  }

  .product-description-content h2 {
    font-size: 20px;
  }

  .product-description-content h3 {
    font-size: 18px;
  }

  .product-description-content table tbody tr {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .product-description-content table td {
    padding: 10px !important;
    font-size: 11px;
    min-height: auto;
  }

  .product-description-content table td::before {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .product-description-content table td[style*="background-color"] {
    min-height: 60px;
    padding: 8px !important;
  }

  .product-description-content table td > .color-swatch {
    width: 80px !important;
    height: 40px !important;
  }

  .product-description-content table .color-swatch {
    width: 80px !important;
    height: 40px !important;
  }

  .product-description-content {
    padding: 15px;
  }
}
