:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
}

.item-section {
  width: 85%;
}

.product-page {
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
}

.product-images {
  flex: 1 1 50%;
  min-width: 300px;
  padding: 20px;
}

.main-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  object-fit: contain;

}

.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .item-dtls {
    margin: auto 5px;
  }
}

/* Condition */

/* Info Box */
.info-box {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;

  .title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  i {
    font-size: 1.4rem;
  }

  h4 {
    margin: 0;
    font-size: .9rem;
  }
}

.highlight {
  font-weight: 700;
  /*  color: #2563eb; */
}

.info-box-urgent {
  background-color: #ffefef;

  h4,
  i {
    color: #eb2525;
  }
}

.info-box-update {
  background-color: #ecfdf5;

  h4,
  i {
    color: #166534;
  }
}

.info-box-reminder {
  background-color: #fffbeb;

  h4,
  i {
    color: #92400e;
  }
}

.info-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.info-title-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.info-list {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: #374151;
}

.info-list li {
  margin-bottom: 0.25rem;
}

/* Condition */

.decimal {
  font-size: 8pt;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
  text-decoration: none;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: .5;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  flex: 1;
  min-width: 200px;
}

.btn-primary:active {
  transform: scale(.95);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  flex: 1;
  min-width: 200px;
}

.btn-secondary:hover {
  background: #eff6ff;
}

.wishlist {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist:hover {
  color: red;
  border-color: red;
}

/* Delivery Info Section */
.delivery-info {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.delivery-row {
  cursor: pointer;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.delivery-row:hover {
  background-color: #f1f5f9;
}

.delivery-row h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.delivery-row div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-row::after {
  content: '+';
  font-size: 1.5rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.faq-item.active .delivery-row::after {
  transform: rotate(45deg);
  color: #3b82f6;
}

.faq-item p {
  max-height: 0;
  padding: 0 20px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.faq-item.active p {
  max-height: 200px;
  padding: 0 20px 20px;
}

.delivery-icon {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* Animation for smoother expansion */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active p {
  animation: fadeIn 0.3s ease forwards;
}

/* Delivery Info */

.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ************* Additional Notes Section ******************* */

.details h4 {
  margin-top: 0;
  color: var(--primary-color);
}

.details ul,
.details ol {
  padding-left: 40px;
  margin: 10px 0 0;
}

.details ul {
  list-style: disc;
}

.details li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: .8rem;
}

/* ************* Additional Notes Section ******************* */
/* ************* Specifications Section ******************* */

.flex.border-b {
  button {
    padding: 10px 22px;
    
    &.opened {
      background-color: var(--gray-light);
      color: var(--primary-color);
      border-top-right-radius: 5px;
      border-top-left-radius: 5px;
    }
  }
}

.specs-row {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: .875rem;

  .spec-label {
    color: gray;
    font-weight: bold;
    text-transform: uppercase;
    font-size: .75rem;
  }

  .spec-value {
    font-size: .85rem;
  }
}

/* ************* Specifications Section ******************* */

.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.item-tab-content {
  display: none;

  h2 {
    font-size: .95rem;
  }
}

.item-tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

.info-box,
.price-options,
.color-options,
.action-buttons,
.quantity-options {
  margin: 20px 0;
}

.option-title {
  color: gray;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 5px;
  display: block;
}

.option-sub-title {
  margin-top: 5px;
  font-size: .8rem;

  span {
    color: #1e293b;
    font-weight: 600;
  }
}

.colors {
  display: flex;
  gap: 10px;
  margin-left: 5px;
}

.color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color.selected {
  /* 
  border-color: var(--primary-color); */
  box-shadow: 0 0 0 3px white, 0 0 0 5px darkgray;
}

.similar-product:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  transition: transform 0.3s ease;
}

/* Quantity */
.quantity-selector {
  display: flex;
  align-items: center;
}

.item-quantity-btn {
  width: 40px;
  height: 40px;
  background: var(--gray-light);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--gray-light);
  font-size: 16px;
}

/* Quantity */

/* ******************* Review Form******************** */
/* Form container */
.form-container {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(.5px);
  -webkit-backdrop-filter: blur(.5px);
  z-index: 100;
  overflow: hidden;
  scroll-behavior: none;

  form {
    background-color: var(--white);
    max-width: 450px;
    min-width: 400px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;

    .r-form-content {
      padding: 20px;
    }
  }
}

.form-container p {
  font-weight: 400;
}

.form-container label {
  font-size: 11pt;
}

/* Form inputs */
.form-input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 11px;
}

/* Rating stars */
.rating-stars {
  margin-bottom: 10px;
  text-align: center;
}

.star {
  font-size: 30px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
}

.star:hover,
.star.active,
.star.active~.star {
  color: #f1c40f;
}

.button {
  text-align: center;
}

/* Submit button */
.button input[type="submit"] {
  width: 100%;
  height: 40px;
  border: 1px solid;
  background: orange;
  border-radius: 5px;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;

}


/* Size Option Stying Start */
.size-options {
  margin: 1.5rem 0;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.size-option {
  position: relative;
}

.size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.size-option label {
  display: block;
  min-width: 50px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  color: #374151;
}

.size-option input[type="radio"]:checked+label {
  border-color: #4f46e5;
  background-color: #f5f3ff;
  color: #4f46e5;
}

.size-option input[type="radio"]:disabled+label {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-option .price-indicator {
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 0.25rem;
}

.size-option input[type="radio"]:checked+label .price-indicator {
  color: #4f46e5;
}

.size-guide-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: auto;
  width: fit-content;
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 5px;
  margin-top: 0.75rem;
  margin-right: 0;
  font-size: 0.75rem;
  color: #4f46e5;
  text-decoration: none;
  cursor: pointer;

  i {
    font-size: 1rem;
  }
}

.size-guide-link:hover {}

.size-guide-link:active {
  transform: scale(.95);
}

.out-of-stock {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
}

/* Size Option Stying End*/