/* =============================================================================
   DEVA SINGLE PRODUCT PAGE STYLES
   ============================================================================= */

/* Single Product Page Container */
.deva-single-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Breadcrumbs */
.deva-breadcrumbs {
  margin-bottom: 30px;
  font-size: 0.864rem; /* Increased by 20% from 0.72rem */
  color: #666;
}

.deva-breadcrumbs a {
  color: #48733d;
  text-decoration: none;
}

.deva-breadcrumbs a:hover {
  text-decoration: underline;
}

.deva-breadcrumbs .separator {
  margin: 0 8px;
  color: #999;
}

/* Product Main Section */
.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Product Image/Slider */
.product-image-section {
  position: relative;
}

.product-image-slider {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-image-slider img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: #48733d;
}

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

/* Product Info Section */
.product-info-section {
  padding: 0;
}

.product-brand {
  color: #666;
  font-size: 0.64rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-brand a {
  color: #48733d;
  text-decoration: none;
}

.product-brand a:hover {
  text-decoration: underline;
}

.product-name {
  color: #304624;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-attribute-label {
  color: #333;
  font-size: 0.72rem;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Attribute Selection */
.attribute-selection {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.attribute-option {
  padding: 8px 12px;
  background: white;
  border: 2px solid #48733d;
  border-radius: 8px;
  color: #48733d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.64rem;
  user-select: none;
  position: relative;
  min-width: 40px;
  text-align: center;
}

.attribute-option:hover {
  background: #f8f9fa;
  border-color: #3d6234;
  color: #3d6234;
  transform: translateY(-1px);
}

.attribute-option.active {
  background: #48733d;
  color: white;
  box-shadow: 0 2px 8px rgba(72, 115, 61, 0.3);
}

/* Focus states for accessibility */
.attribute-option:focus {
  outline: 2px solid #48733d;
  outline-offset: 2px;
}

/* Attribute Selection Enhancement */
.attribute-selection {
  gap: 8px;
}

/* Make attribute options more responsive on smaller screens */
@media (max-width: 480px) {
  .attribute-option {
    padding: 6px 10px;
    font-size: 0.6rem;
    min-width: 35px;
  }
  
  .attribute-selection {
    gap: 6px;
  }
}

/* Animation for selection feedback */
.attribute-option.selecting {
  transform: scale(0.95);
}

.attribute-option.selected-feedback {
  animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Selection Summary Display */
.selection-summary {
  margin: 15px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #666;
  display: none;
  transition: all 0.3s ease;
}

.selection-summary strong {
  color: #48733d;
  font-weight: 600;
}

/* Legacy Size Selection - for backward compatibility */
.product-size-label {
  color: #333;
  font-size: 0.72rem;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Size Selection */
.size-selection {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.size-option {
  padding: 8px 12px;
  background: white;
  border: 1px solid #48733d;
  border-radius: 8px;
  color: #48733d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.64rem;
}

.size-option:hover,
.size-option.active {
  background: #48733d;
  color: white;
}

/* Price Section */
.price-section {
  margin-bottom: 20px;
}

.price-current {
  color: #304624;
  font-size: 1.36rem;
  font-weight: 700;
  margin-right: 15px;
}

.price-original {
  color: #999;
  font-size: 0.8rem;
  text-decoration: line-through;
}

.price-discount {
  color: #e74c3c;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 10px;
}

/* Review Score */
.review-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 0.96rem; /* Increased by 20% from 0.8rem */
}

.review-stars {
  display: flex;
  gap: 2px;
}

/* Override reviews.css margin-bottom for single product */
.deva-single-product .review-stars {
  margin-bottom: 0 !important;
}

.review-stars .star {
  color: #ffd700;
  font-size: 0.82em;
}

.review-count {
  color: #666;
  font-size: 0.82em;
}

.review-count a {
  color: #48733d;
  text-decoration: none;
}

.review-count a:hover {
  text-decoration: underline;
}

/* Description */
.product-description {
  margin-bottom: 25px;
}

.product-description p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.96rem; /* Increased by 20% from 0.8rem */
}

.description-content {
  position: relative;
  overflow: hidden;
}

.description-content.collapsed {
  max-height: 120px;
}

.description-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, white);
}

.read-more-btn {
  background: none !important;
  border: none;
  color: #48733d !important;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.72rem;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.read-more-btn:hover {
  color: #3d6234;
}

.read-more-btn::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.read-more-btn.expanded::after {
  transform: rotate(180deg);
}

/* Benefits Section */
.product-benefits {
  margin-bottom: 25px;
}

.benefits-title {
  color: #304624;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  color: #333;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48733d;
  font-weight: 700;
}

.benefits-content {
  position: relative;
  overflow: hidden;
}

.benefits-content.collapsed {
  max-height: 120px;
}

.benefits-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, white);
}

/* Read More Button for Benefits */
.product-benefits .read-more-btn {
  background: none;
  border: none;
  color: #48733d;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.72rem;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-benefits .read-more-btn:hover {
  color: #3d6234;
}

.product-benefits .read-more-btn::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.product-benefits .read-more-btn.expanded::after {
  transform: rotate(180deg);
}

/* Key Benefits List */
.product-key-benefits {
  margin-bottom: 25px;
}

.key-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-checkmark {
  color: #48733d;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-text {
  color: #333;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Benefits Description Section */
.product-benefits-description {
  margin-bottom: 25px;
}

.benefits-description-content {
  position: relative;
  overflow: hidden;
}

.benefits-description-content.collapsed {
  max-height: 120px;
}

.benefits-description-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, white);
}

.benefits-description-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.96rem;
}

.benefits-description-content ul,
.benefits-description-content ol {
  padding: 20px;
  list-style-type: disc;
}

.benefits-description-content li {
  color: #333;
  margin-bottom: 8px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.benefits-description-content strong {
  color: #304624;
  font-weight: 700;
}

.benefits-description-content a {
  color: #48733d;
  text-decoration: none;
}

.benefits-description-content a:hover {
  text-decoration: underline;
}

/* Payment Options */
.payment-options {
  margin-bottom: 30px;
}

.payment-options-title {
  color: #333;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-method {
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.56rem;
  color: #333;
}

/* Quantity and Add to Cart */
.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  gap: 15px;
}

.quantity-btn {
  background: #48733d;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #3d6234;
}

.quantity-input {
  width: 60px !important;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: white;
  border-radius: 8px !important;
}

.add-to-cart-btn,
.buy-now-btn {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #48733d;
}

.add-to-cart-btn {
  background: white !important;
  color: #48733d !important;
}

.add-to-cart-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.buy-now-btn {
  background: #48733d;
  color: white;
}

.buy-now-btn:hover {
  background: #3d6234;
  transform: translateY(-2px);
}

/* Button States for Add to Cart and Buy Now */
.add-to-cart-btn:disabled,
.buy-now-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.add-to-cart-btn.loading,
.buy-now-btn.loading {
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn.loading::after,
.buy-now-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Product Navigation */
.product-navigation {
  margin-bottom: 60px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 30px;
}

.nav-button {
  padding: 15px 30px;
  background: none;
  border: none;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover,
.nav-button.active {
  color: #48733d;
  border-bottom-color: #48733d;
  text-decoration: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-buttons {
    flex-wrap: wrap;
    gap: 5px;
  }

  .nav-button {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: 1;
    min-width: calc(50% - 5px);
    text-align: center;
  }

  .product-section {
    padding: 30px 0;
    scroll-margin-top: 60px;
  }
}

/* Product Sections */
.product-sections {
  margin-bottom: 60px;
}

.product-section {
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
  scroll-margin-top: 80px; /* Offset for fixed headers or navigation */
  display: flex;
  flex-direction: column;
}

.product-section:last-child {
  border-bottom: none;
}

.product-section h3 {
  color: #304624;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.product-section p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1rem; /* Reduced by 20% from 0.8rem */
}

.product-section > h2,
.product-section > p {
  text-align: center;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Ingredients Grid */
.ingredients-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.ingredient-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.ingredient-image {
  flex-shrink: 0;
  width: 50%;
  max-width: 260px;
  height: auto;
  max-height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.ingredient-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ingredient-content h4 {
  color: #1d6042;
  font-size: 1em;
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.ingredient-content p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* How to Use Steps */
.how-to-use-steps {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #48733d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 5px;
}

.step-content {
  flex: 1;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Odd steps: image, Step (x), text */
/* Even steps: Step (x), text, image */
.step-item.step-odd .step-content,
.step-item.step-even .step-content {
  flex-direction: column;
}

.step-image {
  flex-shrink: 0;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-text {
  flex: 1;
}

.step-text h4 {
  color: #48733D;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1em;
}

.step-text p {
  color: #333;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9em;
}

#questions-section p {
  text-align: left;
}
/* Responsive Design */
@media (max-width: 768px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-name {
    font-size: 1.36rem;
  }

  .price-current {
    font-size: 1.04rem;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-navigation {
    flex-wrap: wrap;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
  }

  .ingredient-item {
    flex-direction: column;
    text-align: center;
  }

  .ingredient-image {
    align-self: center;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .step-content {
    flex-direction: column !important;
    align-items: center;
  }

  .step-text {
    text-align: center;
  }

  .step-image {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .deva-single-product {
    padding: 15px;
  }

  .product-name {
    font-size: 1.04rem;
  }

  .size-selection {
    justify-content: center;
  }

  .attribute-selection {
    justify-content: center;
  }

  .payment-methods {
    justify-content: center;
  }
}

/* =============================================================================
   DEVA SUCCESS MESSAGE STYLES
   ============================================================================= */

.deva-success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

/* Mobile responsiveness for success message */
@media (max-width: 480px) {
  .deva-success-message {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
    font-size: 12px;
    padding: 10px 15px;
  }
  
  .deva-success-message.show {
    transform: translateY(0);
  }
}
