/**
 * @file
 * CSS for styling product variations with plain CSS (no Tailwind).
 */

/* Main product container */
.variation-product {
  /* background-color: #fff; */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 1.5rem;
}

.variation-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Distinct title styling */
.variation-product h1 {
  background-color: #2563eb; /* Blue 600 equivalent */
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 1rem;
  text-align: center;
  border-bottom: 3px solid #1d4ed8; /* Blue 700 border */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Main content area */
.variation-product .product-wrapper-2 {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Content row layout - puts image, description, price on same line */
.variation-product .content-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0rem;
}

/* Mobile responsive layout - stack vertically */
@media (max-width: 768px) {
  .variation-product .content-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Variation images container - now takes up 1/3 width and centers content vertically */
.variation-product .variation-images {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive images */
@media (max-width: 768px) {
  .variation-product .variation-images {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }

  .variation-product .variation-images img {
    max-width: 80% !important;
    margin: 0 auto;
  }
}

/* Individual variation container */
.variation-product .variation-images > div {
  width: 100%;
  text-align: center;
}

/* Hide non-active variations */
.variation-product .variation-images > div.tw-hidden {
  display: none;
}

/* Product image styling */
.variation-product .variation-images img {
  max-width: 250px!important;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Middle content area with description, price, and form - now takes 2/3 width */
.variation-product .middle-content {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
}

/* Mobile responsive content */
@media (max-width: 768px) {
  .variation-product .middle-content {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
  }

  /* Center align price on mobile */
  .variation-product .price-wrapper {
    text-align: center;
    padding-right: 0;
  }
}

/* Product body text - ensure it's fully visible */
.variation-product .product-body {
  /* color: #374151; Gray 700 equivalent */
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  white-space: normal;
  overflow: visible;
  width: 100%;
}

/* Price wrapper styling - ensure it's before add-to-cart, align to right side */
.variation-product .price-wrapper {
  margin-bottom: 0.5rem;
  text-align: right;
  order: 1;
  width: 100%;
  padding-right: 10px;
}

/* Product variations form - ensure it's after price */
.variation-product .product-variations {
  order: 2;
}

/* Price styling - below description and above add to cart - simplified */
.variation-product .variation-price {
  font-weight: bold;
  font-size: 1.25rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* List price styling with strikethrough */
.variation-product .variation-price .list-price {
  /* color: #6b7280; Gray 500 equivalent */
  text-decoration: line-through;
  font-size: 1rem;
  margin-right: 0.5rem;
  font-weight: 500;
  display: inline-block;
}

/* Current price styling - make it stand out but smaller */
.variation-product .variation-price .current-price {
  color: #dc2626; /* Red 600 equivalent */
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-block;
}

/* Make sure hidden variations are actually hidden */
.variation-product .variation-price.tw-hidden,
.variation-product .tw-hidden {
  display: none !important;
}
.commerce-order-item-add-to-cart-form{
background-color:unset;
}
/* Product variations selector/* Product variations form styling and spacing */
.variation-product .product-variations {
  /* background-color: #f9fafb; Gray 50 equivalent */
  padding: 0.5rem;
  border-radius: 0.375rem;
  width: 100%;
}

/* Keep the asterisk and label on the same row */
.variation-product label.tw-required {
  white-space: nowrap;
}

/* Fix the alignment of label text and asterisk */
.variation-product label.tw-required span.tw-text-red-500 {
  display: inline;
  vertical-align: baseline;
  padding-right: 35px;
}

/* Form elements styling */
.variation-product form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Form label styling */
.variation-product label {
  font-weight: 500;
  /* color: #374151; Gray 700 equivalent */
  margin-right: 0.5rem;
}

.variation-product label .required {
  color: #ef4444; /* Red 500 equivalent */
}

/* Select dropdown styling */
.variation-product select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* Gray 300 equivalent */
  border-radius: 6px;
  /* background-color: #fff; */
  /* color: #1f2937; Gray 800 equivalent */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.variation-product select:focus {
  border-color: #3b82f6; /* Blue 500 equivalent */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); /* Blue ring */
  outline: none;
}

/* Add to cart button */
.variation-product .form-actions input[type="submit"] {
  background-color: #2563eb; /* Blue 600 equivalent */
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.variation-product .form-actions input[type="submit"]:hover {
  background-color: #1d4ed8; /* Blue 700 equivalent */
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .variation-product .product-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .variation-product .variation-images {
    flex: 0 0 40%;
    margin-right: 2rem;
  }

  .variation-product .product-body {
    flex: 1;
  }

  .variation-product .product-variations {
    flex-basis: 100%;
  }
}
