/* Productdetails pages-Product-details-12 */

/* ✅ Thumbnail Images */
.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumbnail-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid rgb(207, 207, 207);
  transition: var(--transition);
  background-color: #ffffff;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  border: 2px solid var(--color-pink);
  transform: scale(1.05);
}

.thumbnail-img:focus {
  outline: 2px solid var(--color-pink);
  outline-offset: 2px;
}

/* Main Container */
.container-details-12 {
  padding: 2%;
  background-color: #ffffff;
  border-radius: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

/* Product Layout */
.container-details-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 1rem;
}

.container-details-1-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.container-details-1-1-1 {
  max-height: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.container-details-img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: auto;
  border: 1px solid var(--color-border);
  padding: 8px;
  transition: var(--transition);
}

/* Product Info */
.container-details-1-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  width: 100%;
}

.container-details-1-2 a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container-details-1-2 a:hover {
  text-decoration: none;
  color: var(--color-pink);
}

/* Product Name */
.container-details-1-2 h2 {
  font-weight: 600;
  word-break: break-word;
  color: var(--color-header);
  padding-top: 0.5rem;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Product Description */
.container-details-1-2 p {
  font-weight: 500;
  font-size: var(--font-md);
  white-space: normal;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  text-align: justify;
  line-height: 1.6;
  color: var(--color-text);
  letter-spacing: 0.03rem;
  margin-bottom: 0.5rem;
}

/* Button Styles */
.container-details-1-2 button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 10px;
  white-space: nowrap;
  user-select: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-md);
  font-weight: 600;
  transition: var(--transition);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container-details-1-2 button:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.container-details-1-2 button:active {
  transform: translateY(0);
}

/* Print Button Specific Styles */
.print-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  margin-left: 12px;
  transition: all 0.3s ease;
}

.print-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* Specifications Section */
.container-details-2 {
  width: 100%;
  letter-spacing: 0.02rem;
  overflow: hidden;
  margin-top: 20px;
}

.container-details-2-1 h2 {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--color-orange);
  color: #ffffff;
}

/* Enhanced Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: var(--font-sm);
  text-align: left;
  background: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

tr {
  font-weight: 400;
  color: #000000;
  line-height: 0.9375;
  font-size: 0.82rem;
}

/* Table Header */
thead {
  background-color: var(--color-pink);
  color: white;
}

thead th {
  padding: 16px 15px;
  font-weight: 500;
  text-align: left;
  font-size: var(--font-md);
}

/* Table Body */
tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:last-child {
  border-bottom: none;
}

/* Table Cells border-right: 2px solid var(--color-border); */
.td-1 {
  width: 30%;
  padding: 14px 15px;
  font-weight: 600;
  color: var(--color-header);
}

.td-2 {
  width: 70%;
  padding: 14px 15px;
  font-weight: 600;
  word-break: break-word;
  color: #000000;
  line-height: 1.5;
}

/* No Specifications Message */
.no-specs {
  text-align: center;
  color: var(--color-text-light);
  font-style: italic;
  padding: 2rem !important;
}

/* Responsive Design */
@media (min-width: 768px) {
  .container-details-1 {
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
  }

  .container-details-1-1 {
    width: 30%;
    min-width: 250px;
  }

  .container-details-1-2 {
    flex: 1;
    padding: 0 8px;
  }

  .container-details-1-2 h1 {
    font-size: 1.6rem;
    padding-top: 0;
  }

  .product-subtitle {
    font-size: 1.6rem !important;
    text-align: left !important;
    color: var(--color-header) !important;
  }

  .container-details-img {
    height: 300px;
    max-width: 100%;
  }

  .thumbnail-img {
    width: 75px;
    height: 75px;
  }

  /* Button group for desktop */
  .container-details-1-2 > div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .container-details-12 {
    padding: 24px;
    gap: 24px;
  }

  .container-details-1 {
    gap: 32px;
  }

  .container-details-1-1 {
    width: 28%;
    min-width: 280px;
  }

  .container-details-1-2 {
    padding: 0 16px;
  }

  .container-details-1-2 h1 {
    font-size: 1.8rem;
  }

  .container-details-img {
    height: 350px;
  }

  .thumbnail-img {
    width: 80px;
    height: 80px;
  }

  table {
    font-size: var(--font-md);
  }

  .td-1,
  .td-2 {
    padding: 16px 0 10px 20px;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .container-details-12 {
    border: 2px solid #000;
  }

  .thumbnail-img {
    border: 2px solid #000;
  }

  .container-details-img {
    border: 2px solid #000;
  }

  table {
    border: 2px solid #000;
  }

  .td-1 {
    border-right: 2px solid #000;
    background: #333;
    color: #fff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .thumbnail-img,
  .container-details-img,
  .container-details-1-2 button,
  tbody tr {
    transition: none;
  }

  .thumbnail-img:hover {
    transform: none;
  }

  .container-details-1-2 button:hover {
    transform: none;
  }
}

/* Mobile — stack table rows into single column */
@media (max-width: 456px) {
  thead {
    display: none;
  }

  table {
    border-radius: 8px;
    overflow: hidden;
  }

  tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
  }

  .td-1,
  .td-2 {
    display: block;
    width: 100% !important;
    padding: 6px 12px;
  }

  .td-1 {
    background: #f7f7f7;
    font-weight: 700;
    border-bottom: 1px solid #e0e0e0;
  }

  .td-2 {
    margin-bottom: 4px;
    line-height: 1.5;
  }
}

/* Print Styles */

/*___________pl____________*/

/* Normalize <a> to behave like button */
a.quick-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  /* remove underline */
  font: inherit;

  appearance: none;
  -webkit-appearance: none;
}

.product-slider {
  margin-top: 30px;
}

.tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.tabs li {
  margin-right: 20px;
  padding-bottom: 5px;
  cursor: pointer;
  font-weight: 500;
  color: #0056b3;
  font-size: 16px;
}

.tabs .active {
  color: #000;
  border-bottom: 2px solid #000;
  font-weight: bold;
}

.slider-container {
  position: relative;
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

/* Add fade-in animation */
.slider-wrapper.fade {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.slider-wrapper.loaded {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #afafaf;
  border-radius: 50%;
  font-size: 18px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slider-btn.prev {
  left: -10px;
}

.slider-btn.next {
  right: -10px;
}

.pl-buttons {
  display: flex;
  gap: 8px;
}

.latest-product-card {
  flex: 0 0 clamp(220px, 30vw, 300px);
  /* ✅ Responsive width */
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

.pl1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.pl2 {
  width: 100px;
  height: 100px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl2 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pl3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.latest-product-card small {
  font-size: 12px;
  font-weight: 500;
  color: #000000;
}

.latest-product-card h4 {
  margin: 5px 0;
  font-size: 15px;
  color: #0056b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-product-card p {
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-view {
  margin-top: 20px;
  flex: 1;
  /* 🔑 makes widths equal */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px 2px;
  line-height: 1;
  box-sizing: border-box;
  font: inherit;
  text-align: center;
  text-decoration: none;
  border: 1px solid #0056b3;
  background: transparent;
  color: #0056b3;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.quick-view:hover {
  background: #0056b3;
  color: #fff;
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
  .latest-product-card {
    flex: 0 0 80%;
  }

  .product-subtitle {
    display: none;
  }

  .tabs li {
    font-size: 14px;
    margin-right: 15px;
  }

  .slider-btn {
    display: none;
    /* Hide arrows on small screens */
  }

  .pl1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pl2 {
    width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 10px;
  }

  .pl3 {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
}
