/* Overall Page Reset */
html,
body {
  margin: 0;
  padding: 0;
  background-color: #0f1524;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

/* Full width container */
.custom-product-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background-color: #0f1524; /* Updated background color */
}

/* Two-column layout with 40/60 split */
.product-left-column {
  width: 40%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #0f1524; /* Updated background color */
}

.product-right-column {
  width: 60%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #0f1524; /* Updated background color */
}

/* Product Header with Banner - Reduced height */
.product-header {
  width: 100%;
  height: 150px; /* Reduced from 200px to 150px */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
}

.product-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Add overlay to ensure text is readable on any banner */
.product-banner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Keep the animated background for products without banner */
.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, #e41e26, #ff3e3e, #ff8c00, #ffd700, #32cd32, #1e90ff, #9932cc, #e41e26);
  background-size: 1400% 1400%;
  animation: rgb-gradient-animation 30s ease infinite;
}

@keyframes rgb-gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Product info section with image and title side by side */
.product-info-section {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.product-image-container {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details-container {
  flex-grow: 1;
  padding-left: 10px;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
}

/* Modified: Features layout to match screenshot exactly */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* First row with two items side by side */
.feature-row {
  display: flex;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #cccccc;
}

.feature-icon {
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.safety-icon {
  color: #4caf50;
}

.delivery-icon {
  color: #ffc107;
}

.region-icon {
  color: #e91e63;
}

/* Product description */
.product-description {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
}

/* Product description wrapper */
.product-description-wrapper {
  width: 100%;
  order: 3;
}

/* Hide mobile description on desktop */
.mobile-description {
  display: none;
}

/* Variations container */
.variations-container-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

/* Variation card - Increased height and added border */
.variation-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  cursor: pointer;
  border: 1px solid #dddddd;
  position: relative;
  height: 70px; /* Increased height */
  display: flex;
  align-items: center;
}

.variation-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.variation-card.selected {
  border: 2px solid #e41e26;
  background-color: #ffffff;
  position: relative;
}

.variation-label {
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.variation-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.variation-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.variation-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Modified: Smaller font size for variation name */
.variation-name {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
}

.variation-price-container {
  display: flex;
  align-items: center;
}

.currency-icon {
  font-size: 14px;
  color: #000000;
  margin-right: 2px;
}

/* Modified: Smaller font size for variation price */
.variation-price {
  font-size: 12px;
  color: #000000;
}

.variation-image {
  width: 30px;
  height: 30px;
}

.variation-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Checkmark for selected variation - Moved to right side */
.variation-checkmark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: #e41e26;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.variation-card.selected .variation-checkmark {
  display: flex;
}

/* Add styles for form validation */
.custom-field-input.error {
  border: 1px solid #ff3b30;
  background-color: rgba(255, 59, 48, 0.05);
}

.error-message {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 5px;
}

/* Improve custom fields section styling */
.custom-fields-section .section-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

/* Make sure custom fields are visible */
.custom-fields-section h2 {
  display: block;
  font-size: 18px;
  margin-bottom: 15px;
  color: #000000;
}

/* Improve custom fields container */
.custom-fields-container {
  display: grid;
  gap: 15px;
}

/* Style for required field indicator */
.custom-field-row .required {
  color: #ff3b30;
  margin-left: 2px;
}

/* Improve input field styling */
.custom-field-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 5px;
  background-color: #ffffff;
  color: #000000;
  transition: border-color 0.3s ease;
}

.custom-field-input:focus {
  border-color: #e41e26;
  outline: none;
  box-shadow: 0 0 0 2px rgba(228, 30, 38, 0.1);
}

/* Textarea styling */
textarea.custom-field-input {
  min-height: 100px;
  resize: vertical;
}

/* Sticky Footer - FIXED: Improved scroll behavior */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid #eeeeee;
  transition: transform 0.3s ease;
}

/* Updated hidden class for proper animation */
.footer-hidden {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.total-container {
  display: flex;
  align-items: center;
}

.total-label {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  margin-right: 5px;
}

.total-price-value {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

.buttons-container {
  display: flex;
  gap: 10px;
}

.add-to-cart-btn {
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #e6352a;
}

.buy-now-btn {
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-now-btn:hover {
  background: #e6352a;
}

/* Footer padding to prevent content from being hidden behind sticky footer */
.footer-padding {
  height: 80px;
}

/* Animation for selection */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 0.5s ease-in-out;
}

/* Custom fields styling */
.custom-fields-section {
  background: transparent;
}

.custom-fields-container {
  display: grid;
  gap: 15px;
}

.custom-field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.custom-field-row label {
  font-weight: 600;
  color: #000000;
}

.custom-field-row .required {
  color: #ff3b30;
}

textarea.custom-field-input {
  min-height: 100px;
  resize: vertical;
}

/* Responsive Styles */
@media (min-width: 992px) {
  .variations-container-new {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .variations-container-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-left-column,
  .product-right-column {
    width: 100%;
    padding: 10px;
    background-color: #0f1524; /* Updated background color */
  }

  .custom-product-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #0f1524; /* Updated background color */
  }

  /* Mobile layout order */
  .custom-product-container {
    display: flex;
    flex-direction: column;
  }

  /* Show mobile description and hide desktop description */
  .product-description-wrapper {
    display: none;
  }

  .mobile-description {
    display: block;
    order: 9999 !important;
    margin-top: 30px;
    width: 100%;
  }

  .product-left-column {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .product-right-column {
    order: 2;
  }

  .product-header {
    order: 1;
  }

  .product-info-section {
    order: 2;
  }

  /* Make product image smaller on mobile */
  .product-image-container {
    width: 100px;
    height: 100px;
  }

  /* Mobile feature items - smaller font and one line */
  .feature-row {
    flex-wrap: nowrap;
    width: 100%;
  }

  .feature-item {
    font-size: 11px;
  }

  .sticky-footer {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .buttons-container {
    width: 100%;
    justify-content: space-between;
  }

  .add-to-cart-btn,
  .buy-now-btn {
    flex: 1;
    text-align: center;
  }

  .footer-padding {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .variations-container-new {
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns for mobile */
  }

  .product-info-section {
    flex-direction: row;
    align-items: center;
  }

  .product-image-container {
    margin: 0;
    width: 90px; /* Even smaller on small mobile */
    height: 90px;
  }

  .product-details-container {
    text-align: left;
  }

  .product-features {
    align-items: flex-start;
  }

  /* Even smaller font for very small screens */
  .feature-item {
    font-size: 10px;
  }
}

/* Custom icons for different variation types */
.diamond-icon {
  color: #00c2ff;
}

.evo-icon {
  color: #ff3b30;
}

.weekly-icon {
  color: #4a90e2;
}

.monthly-icon {
  color: #ffcc00;
}

.pass-icon {
  color: #9932cc;
}

.level-icon {
  color: #e041ff;
}

/* Section styling */
.section {
  margin-bottom: 20px;
}

.section-card {
  padding: 0;
  background: transparent;
}

/* Hide select variation message */
.select-variation-message {
  display: none;
}

/* Force dark background on all elements */
body.woocommerce-page {
  background-color: #0f1524;
  color: #ffffff;
}

/* Ensure all wrappers have dark background */
.woocommerce,
.woocommerce-page,
.woocommerce-content,
.content-area,
.site-main {
  background-color: #0f1524;
}

/* Ensure empty header and footer have dark background */
body.woocommerce-page header,
body.woocommerce-page footer {
  background-color: #0f1524;
}
