:root{
  --accent : #a72a23;
}

/* General Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.col-md-6 {
  flex: 1;
  min-width: 300px;
}

/* Headings */
.row h2 {
  color: var(--text-secondary);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Product Images */
.product-images {
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.img-fluid {
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

.thumbnail-images {
  gap: 10px;
  margin-top: 16px;
}

.thumbnail-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-images img:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Rating */
.rating-container i {
  font-size: 20px;
  color: var(--accent);
  margin-right: 2px;
}

.rating-container span {
  font-size: 16px;
  color: var(--text-primary);
  margin-left: 8px;
}

/* Pricing */
.price-container {
  margin-bottom: 16px;
}

.discounted-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 12px;
}

.original-price {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--text-secondary);
}

/* Description */
.product-description {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Quantity */
.quantity-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

#quantity {
  width: 50px !important;
  padding: 6px 10px;
  border: 1px solid var(--text-secondary);
  border-radius: 6px;
}

/* Buttons */
button {
  transition: background 0.3s ease, color 0.3s ease;
}

#addToCart {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 12px;
}

#addToCart:hover {
  background-color: var(--text-secondary);
}

#buyNow {
  background-color: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--text-secondary);
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

#buyNow:hover {
  background-color: var(--text-secondary);
  color: var(--bg-primary);
}

/* Tab Content */
.tab-content h3 {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tab-content p,
.tab-content li {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

.tab-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Reviews */
.review {
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.review h5 {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.review p {
  color: var(--text-primary);
  font-style: italic;
}

/* Review Form */
.leave-review h5 {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.leave-review input,
.leave-review textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--text-secondary);
  border-radius: 6px;
  margin-bottom: 10px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.leave-review textarea {
  min-height: 100px;
  resize: vertical;
}

.leave-review button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
}

.leave-review button:hover {
  background-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .product-images,
  .product-description,
  .tab-content {
    padding: 12px;
  }

  .img-fluid {
    max-width: 100%;
  }
}

/* Faqs */
/* FAQ Section */
#faqs {
  margin-top: 40px;
  padding: 20px;
  /* background-color: var(--bg-secondary); */
  border-radius: 8px;
}

/* FAQ Header */
#faqs h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

/* FAQ Question Styling */
.faq {
  margin-bottom: 15px;
}

.faq-question {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f1f1f1;
}

/* FAQ Answer Styling */
.faq-answer {
  padding: 12px 20px;
  font-size: 1rem;
  color: #555;
  background-color: #fafafa;
  border-left: 3px solid var(--accent);
  display: none; /* Hidden by default */
  border-radius: 5px;
  margin-top: 5px;
}

/* Add a smooth transition effect to the answer's display */
.faq-answer {
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* Make it responsive */
@media (max-width: 768px) {
  #faqs {
    padding: 15px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 10px;
  }

  .faq-answer {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

.btn-primary{
  position: relative;
  overflow: hidden;
}


.btn-primary::after {
  animation-duration: 1s;
  animation-name: changebg;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  content: "";
  background-color: rgba(255, 255, 255, 0.3) !important;
  position: absolute;
  width: 75%;
  height: 160%;
  left: -70%;
  top: -26%;
  -webkit-transition: 0.5slinear;
  -moz-transition: 0.5s linear;
  -ms-transition: 0.5s linear;
  -o-transition: 0.5s linear;
  transition: 0.5slinear;
  -moz-transform: rotate(60deg);
  -webkit-transform: rotate(60deg);
  -o-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}


@keyframes glow {
  0%, 100% {
    box-shadow: 0px 0px 10px rgba(40, 167, 69, 0.6);
  }
}

@keyframes changebg {
  from {
    left: -70%
  }

  to {
    left: 100%
  }
}
