/*
 * Last update: 2025-08-30 00:00 UTC
 * Author: GaryH
 * Related: tpl_product_info_display.php, templatecss.css
 * Summary: Modern, professional product page layout and components
 */

/* Container spacing */
.centerColumn#productGeneral {
    padding: 20px 0;
}

/* Product header */
.product_head {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin: 10px 0 20px 0;
    color: #212529;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Product title styling */
.product-overview-title {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    letter-spacing: -0.5px !important;
}

#productName {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    letter-spacing: -0.5px !important;
}

/* Two-column layout spacing */
.productinfo-container {
    gap: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Responsive container for mobile */
@media screen and (max-width: 768px) {
    .productinfo-container {
        flex-direction: column !important;
        gap: 15px !important;
    }
}

.productinfo-leftwrapper {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.productinfo-rightwrapper {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

/* Price block */
.product_price {
    margin: 10px 0 16px 0;
}
.productprice-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0c7db1;
}

/* Add to cart CTA buttons (replacing image buttons visually) */
.asrm-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0 20px 0;
}

/* Product listing specific button styles */
#indexProductList .asrm-cta-group {
    margin: 8px 0;
    gap: 8px;
}
#indexProductList .asrm-cta-group .asrm-btn {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
    padding: 12px 16px;
    white-space: normal; /* Allow text wrapping in product listings */
    text-align: center;
    line-height: 1.2;
}
.asrm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: normal; /* Changed from nowrap to normal */
    min-height: 48px; /* Ensure consistent button height */
}
.asrm-btn span {
    white-space: normal !important; /* Changed from nowrap to normal */
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}
.asrm-btn.primary { background: #28a745; color: #fff; border-color: #1e7e34; } /* Changed to green for download button */
.asrm-btn.secondary { background: #007bff; color: #fff; border-color: #0056b3; } /* Changed to blue for USB button */
.asrm-btn:hover { filter: brightness(0.97); }

/* Enhanced Product Details List */
#productDetailsList {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#productDetailsList li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    min-height: 50px;
    transition: all 0.3s ease;
}

#productDetailsList li:last-child {
    border-bottom: none;
}

#productDetailsList li:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(4px);
}

/* Product Detail Items */
.product-detail-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    gap: 15px;
}

.product-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.product-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.product-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Specific styling for different detail types */
.product-detail-item.model .product-detail-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.product-detail-item.manufacturer .product-detail-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.product-detail-item.weight .product-detail-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.product-detail-item.quantity .product-detail-icon {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

/* Legacy support - enhance existing structure */
#productDetailsList li:not(.enhanced) {
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    background: rgba(255,255,255,0.1);
}

#productDetailsList li:not(.enhanced):before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Enhanced product details container */
.product_quantity {
    margin-bottom: 25px;
}

.enhanced-details {
    position: relative;
}

.enhanced-details:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    border-radius: 1px;
}

/* Animation for enhanced details */
.enhanced-details li.enhanced {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.enhanced-details li.enhanced:nth-child(1) { animation-delay: 0.1s; }
.enhanced-details li.enhanced:nth-child(2) { animation-delay: 0.2s; }
.enhanced-details li.enhanced:nth-child(3) { animation-delay: 0.3s; }
.enhanced-details li.enhanced:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects for icons */
.product-detail-icon {
    transition: all 0.3s ease;
}

.product-detail-item:hover .product-detail-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(0,123,255,0.4);
}

.product-detail-item.model:hover .product-detail-icon {
    box-shadow: 0 4px 16px rgba(40,167,69,0.4);
}

.product-detail-item.manufacturer:hover .product-detail-icon {
    box-shadow: 0 4px 16px rgba(23,162,184,0.4);
}

.product-detail-item.weight:hover .product-detail-icon {
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
}

.product-detail-item.quantity:hover .product-detail-icon {
    box-shadow: 0 4px 16px rgba(111,66,193,0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #productDetailsList {
        margin: 0 0 15px 0;
    }
    
    .product-detail-item {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .product-detail-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .product-detail-label {
        font-size: 11px;
    }
    
    .product-detail-value {
        font-size: 14px;
    }
    
    /* Reduce animations on mobile for performance */
    .enhanced-details li.enhanced {
        animation: none;
    }
    
    .product-detail-item:hover .product-detail-icon {
        transform: scale(1.05);
    }
}

/* Tabs */
.product_info_tab { margin-top: 24px; }
.product_info_tab .tabs { display: flex; gap: 8px; margin: 0 0 12px 0; }
.product_info_tab .tabs li a {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}
.product_info_tab .tabs li.selected a,
.product_info_tab .tabs li a:hover { background: #e9f5fb; border-color: #b6e0ef; color: #0c7db1; }
.product_info_tab .tabcontent { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 16px; }

/* Desktop adjustments - ensure buttons have enough space */
@media (min-width: 768px) {
  .asrm-btn {
    min-width: 180px; /* Increased from 160px to accommodate longer Spanish text */
    padding: 16px 24px;
  }
  .asrm-btn span {
    white-space: normal !important; /* Changed from nowrap to normal to allow text wrapping */
    text-align: center;
    line-height: 1.2;
  }
}

/* Spanish language specific adjustments for longer button text */
html[lang="es"] .asrm-btn,
html[lang="es-ES"] .asrm-btn,
body[lang="es"] .asrm-btn,
body[lang="es-ES"] .asrm-btn {
  min-width: 200px; /* Extra width for Spanish text */
  padding: 16px 20px;
}

@media (min-width: 768px) {
  html[lang="es"] .asrm-btn,
  html[lang="es-ES"] .asrm-btn,
  body[lang="es"] .asrm-btn,
  body[lang="es-ES"] .asrm-btn {
    min-width: 220px; /* Even more width on desktop for Spanish */
    padding: 16px 28px;
  }
  
  /* Ensure Spanish version also respects desktop width constraints */
  html[lang="es"] .responsive-product-listing,
  html[lang="es-ES"] .responsive-product-listing,
  body[lang="es"] .responsive-product-listing,
  body[lang="es-ES"] .responsive-product-listing {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
  
  /* Spanish-specific container constraints */
  html[lang="es"] .centerColumn,
  html[lang="es"] .center-column,
  html[lang="es"] #centercontent-wrapper,
  html[lang="es-ES"] .centerColumn,
  html[lang="es-ES"] .center-column,
  html[lang="es-ES"] #centercontent-wrapper,
  body[lang="es"] .centerColumn,
  body[lang="es"] .center-column,
  body[lang="es"] #centercontent-wrapper,
  body[lang="es-ES"] .centerColumn,
  body[lang="es-ES"] .center-column,
  body[lang="es-ES"] #centercontent-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
}

/* Responsive Product Listing Styles */
.responsive-product-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Desktop layout constraints - ensure proper width on desktop */
@media (min-width: 768px) {
  .responsive-product-listing {
    max-width: 1200px; /* Constrain maximum width on desktop */
    margin: 0 auto; /* Center the listing */
    padding: 0 20px; /* Add some padding on sides */
  }
  
  /* Ensure the center column doesn't exceed reasonable width */
  .centerColumn,
  .center-column,
  #centercontent-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
  
  /* Container width constraints for desktop */
  .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
}

.responsive-product-card {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

/* Override any existing dark backgrounds with maximum specificity */
.responsive-product-card.productListing-even,
.responsive-product-card.productListing-odd,
.responsive-product-card.content_box,
.responsive-product-card.product-card,
.responsive-product-card.product-card-mobile,
.product-card.responsive-product-card,
.content_box.responsive-product-card {
  background-color: #ffffff !important;
  color: #333333 !important;
}

/* Force white background on product details section */
.responsive-product-card .product-details,
.product-details {
  background-color: transparent !important;
  color: #333333 !important;
}

/* Ensure all child elements inherit proper colors */
.responsive-product-card .product-details *,
.responsive-product-card .product-info *,
.responsive-product-card .product-actions * {
  background-color: transparent !important;
}

.responsive-product-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-image-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f8f9fa;
}

/* Desktop view improvements */
@media (min-width: 768px) {
  .product-image-container {
    width: 156px; /* Increased by 30%: 120px * 1.3 = 156px */
    height: 156px;
  }
  
  .product-actions {
    justify-content: flex-end; /* Align buttons to the right on desktop */
  }
  
  /* Additional desktop layout constraints for product listings */
  .responsive-product-card {
    max-width: 100%; /* Ensure cards don't exceed container width */
  }
  
  /* Ensure proper spacing and alignment for desktop */
  .product-details {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
  }
  
  /* Individual product page image sizing for desktop */
  .product_image,
  .centeredContent {
    width: 100%;
    max-width: 400px; /* Increased from default to make images more prominent */
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  
  .product_image img,
  .centeredContent img,
  #productGeneral img[alt*="Service"],
  #productGeneral img[alt*="Manual"],
  #productGeneral img[alt*="Repair"] {
    width: 100% !important;
    height: auto !important;
    max-width: 400px !important;
    max-height: 400px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  }
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Styling for placeholder images when original fails to load */
.product-image-container img[src*="data:image/svg+xml"] {
  opacity: 0.7;
  background-color: #f5f5f5;
}

/* Product name link styling (moved from inline styles) */
.product-name-link {
  color: #000040 !important;
  font-size: 13pt !important;
  text-decoration: none;
}

.product-name-link:hover {
  text-decoration: underline;
}

/* Product base price styling (moved from inline styles) */
.productBasePrice {
  font-size: 18pt !important;
  font-weight: bold !important;
  color: #B00000 !important;
}

/* Empty category state styling */
.empty-category-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 20px;
  text-align: center;
}

.empty-category-content {
  max-width: 500px;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.empty-category-content h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 16px;
  font-weight: 600;
}

.empty-category-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.empty-category-actions {
  margin-top: 24px;
}

.empty-category-actions .asrm-btn {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.empty-category-actions .asrm-btn.primary {
  background-color: #007bff;
  color: white;
  border: none;
}

.empty-category-actions .asrm-btn.primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Footer full width fix - break out of container constraints */
.footer-wrapper,
.footer-modern,
footer {
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure footer content has proper padding */
.footer-wrapper > *,
.footer-modern > * {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-info {
  flex: 1;
}

.product-info .product_name {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.product-info .product_name a {
  color: #000040 !important;
  text-decoration: none;
}

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

.product-info .product-price {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #e91e63 !important; /* Changed to a more vibrant pink/red color */
}

.product-info .product-description {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666 !important;
}

/* Ensure all text in product cards is readable */
.responsive-product-card * {
  color: inherit;
}

.responsive-product-card .product-info * {
  color: #333333 !important;
}

.responsive-product-card .product-info .product_name a {
  color: #000040 !important;
}

.responsive-product-card .product-info .product-price {
  color: #e91e63 !important; /* Vibrant pink/red for better visibility */
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-actions .asrm-btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.product-actions .asrm-btn:first-child {
  background-color: #007bff;
  color: white;
}

.product-actions .asrm-btn:first-child:hover {
  background-color: #0056b3;
}

.product-actions .asrm-btn:last-child {
  background-color: #28a745;
  color: white;
}

.product-actions .asrm-btn:last-child:hover {
  background-color: #1e7e34;
}

/* Override white background for buttons in responsive product cards */
.responsive-product-card .product-actions .asrm-btn:first-child {
  background-color: #007bff !important;
  color: white !important;
}

.responsive-product-card .product-actions .asrm-btn:first-child:hover {
  background-color: #0056b3 !important;
}

.responsive-product-card .product-actions .asrm-btn:last-child {
  background-color: #28a745 !important;
  color: white !important;
}

.responsive-product-card .product-actions .asrm-btn:last-child:hover {
  background-color: #1e7e34 !important;
}

/* Mobile adjustments - optimize for full screen utilization */
@media (max-width: 767px) {
  .responsive-product-listing {
    padding: 0 1vw;
  }
  
  .responsive-product-card {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  /* Hide product images on mobile to save space */
  .product-image-container {
    display: none !important;
  }
  
  .product-details {
    gap: 8px;
  }
  
  .product-info .product_name {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .product-info .product-price {
    font-size: 20px;
    text-align: center;
    margin: 12px 0;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .product-actions .asrm-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  /* COMPREHENSIVE LAYOUT FIX - Ensure all containers use consistent full width and padding */
  
  /* Fix Bootstrap grid system causing left column space reservation */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  /* Hide left and right columns completely on mobile */
  .left-column,
  .right-column,
  .col-md-3.left-column,
  .col-md-3.right-column {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Force center column to use full width regardless of Bootstrap classes */
  .center-column,
  .col-md-12.center-column,
  .col-md-9.center-column,
  .col-md-6.center-column,
  .centerColumn,
  #productGeneral,
  .centerColumn#productGeneral {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    transform: translateX(-3.890625px) !important; /* Counteract the offset */
  }
  
  /* Reset all major containers to use full viewport width with consistent positioning */
  html, body,
  .container, #container,
  .main-content-wrapper, #main-content-wrapper,
  .centercontent-wrapper, #centercontent-wrapper,
  .centerContent-wrapper,
  .wrapper, #wrapper,
  .page-wrapper, #page-wrapper,
  .content-wrapper, #content-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
  }
  
  /* Ensure all content containers have consistent padding */
  .centerColumn, #centerColumn,
  .centerColumn#productGeneral,
  .col-md-12.center-column,
  .center-column,
  .productinfo-container,
  .row.productinfo-container,
  .product_info,
  .product_info_tab,
  .centercontent-wrapper,
  #centercontent-wrapper,
  .centerContent-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 1vw !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Specific fix for centercontent-wrapper with higher specificity */
  .centerColumn #centercontent-wrapper,
  div#centercontent-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 1vw !important;
    padding-right: 1vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Specific fix for product_info divs with higher specificity */
  .centerColumn .product_info,
  .centerColumn .product_info_tab,
  div.product_info,
  div.product_info_tab {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 20px 1vw !important;
    margin: 15px 0 35px 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(-7.78125px) !important; /* Counteract the offset */
  }
  
  /* Additional fix for product_info_tab transform */
  .centerColumn .product_info_tab,
  div.product_info_tab {
    transform: translateX(-14.4375px) !important; /* Counteract the larger offset: -11.109375 - 3.328125 */
  }
  
  /* Footer consistent padding */
  .footer-wrapper,
  .footer-modern,
  footer,
  #footer {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 20px 1vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Fix body and html for full viewport width */
  html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Ensure body uses full viewport width with higher specificity */
  body.mobile-optimized,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Fix main container layout for full screen width */
  .main-content-wrapper,
  #main-content-wrapper,
  .centercontent-wrapper,
  #centercontent-wrapper,
  .centerContent-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Container adjustments for mobile */
  .centerColumn#productGeneral,
  .col-md-12.center-column,
  .center-column { 
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 10px 1vw !important;
    margin: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important; 
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .productinfo-leftwrapper, .productinfo-rightwrapper { 
    padding: 12px; 
    margin: 0 0 16px 0;
    border-radius: 12px;
    box-sizing: border-box;
  }
  
  /* Fix title truncation - allow full width and proper wrapping */
  .product_head,
  #productGeneral h2 { 
    font-size: 18px !important; 
    margin: 8px 0 16px 0 !important;
    padding: 0 1vw !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  
  /* Ensure all content respects mobile padding but allow full width */
  #productGeneral > *,
  #productGeneral ul,
  #productGeneral .product_price,
  #productGeneral .asrm-cta-group,
  #productGeneral .productprice-amount {
    padding-left: 1vw !important;
    padding-right: 1vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Override for elements that should be full width */
  .product_image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Fix price display - ensure full visibility */
  .productprice-amount,
  .product_price {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-align: right !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #dc2626 !important;
    margin: 15px 0 !important;
  }
  
  /* Fix button layout - ensure single column on mobile */
  .asrm-cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    margin: 16px 0 !important;
  }
  
  .asrm-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Fix product image container padding */
  .centeredContent {
    padding: 0 1vw !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix product_info div to use full width with proper positioning */
  .product_info,
  .product_info_tab {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 20px 1vw !important;
    margin: 15px 0 35px 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important; /* Reset any transforms */
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Force all tab-related elements to proper positioning with maximum specificity */
  .centerColumn .product_info_tab,
  .col-md-12 .product_info_tab,
  div.product_info_tab,
  .product_info_tab {
    transform: translateX(3.328125px) !important; /* Counteract the negative offset */
  }
  
  .product_info_tab .tabs,
  .product_info_tab .tabcontents,
  .product_info_tab .tabcontent,
  .tabcontents,
  .tabcontent,
  #description {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important; /* Reset any transforms */
  }
  
  /* Ensure tab content has proper padding */
  .product_info_tab .tabcontent,
  .tabcontent,
  #description {
    padding: 20px 0 !important;
    margin: 0 !important;
  }
  
  /* Add wow fadeInUp animation to product_info_tab */
  .product_info_tab.wow.fadeInUp {
    animation-duration: 0.8s !important;
    animation-fill-mode: both !important;
    animation-name: fadeInUp !important;
  }
  
  /* Define fadeInUp animation keyframes */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 40px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  /* Fix all container divs for full width */
  .container,
  #container,
  .main-container,
  #main-container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Ensure all wrapper divs use full width */
  .wrapper,
  #wrapper,
  .page-wrapper,
  #page-wrapper,
  .content-wrapper,
  #content-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* Force body to use full viewport width with maximum specificity */
  html body,
  html body.mobile,
  html body[class*="mobile"],
  html body[id*="mobile"] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Fix tab content and related elements */
  .product_info_tab .tabs,
  .product_info_tab .tabcontents,
  .product_info_tab .tabcontent,
  .tabcontents,
  .tabcontent,
  #description {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .product_info_tab .tabcontent,
  .tabcontent,
  #description {
    padding: 20px 1vw !important;
    margin: 0 !important;
  }
  
  /* Add padding and styling to product intro section */
  #productIntro,
  .productIntro,
  div#productIntro {
    padding: 16px 1vw !important;
    margin: 0 0 20px 0 !important;
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    border-left: 4px solid #007bff !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
  }
  
  /* Ensure tabs use full width */
  .product_info_tab .tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 1vw !important;
    margin: 0 !important;
  }
  
  .product_info_tab .tabs li {
    flex: 1 !important;
    min-width: 120px !important;
  }
  
  .product_info_tab .tabs li a {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 8px !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile layout: stack vertically, full width */
  .productinfo-container,
  .row.productinfo-container { 
    width: 100vw !important;
    max-width: 100vw !important;
    flex-direction: column;
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  .productinfo-leftwrapper, 
  .productinfo-rightwrapper,
  .col-md-5.col-sm-5,
  .col-md-7.col-sm-7.productinfo-rightwrapper.col-xs-12 { 
    width: 100vw !important;
    max-width: 100vw !important;
    flex: none !important;
    padding: 12px 1vw !important;
    margin: 0 0 16px 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Product images: 95% width, 1:1 aspect ratio, rounded corners */
  .product_image,
  .centeredContent {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .product_image img,
  .listingProductImage,
  .productimage-large img,
  .centeredContent img,
  #productGeneral img[alt*="Service"],
  #productGeneral img[alt*="Manual"],
  #productGeneral img[alt*="Repair"] {
    width: 95vw !important;
    height: 95vw !important;
    max-width: 95vw !important;
    max-height: 95vw !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  }
  
  /* Additional product images in mobile */
  #productAdditionalImages img {
    width: 18vw !important;
    height: 18vw !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 4px !important;
  }
  
  /* Buttons: full width on mobile */
  .asrm-cta-group {
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
  }
  .asrm-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  /* Tabs: full width, larger touch targets */
  .product_info_tab .tabs {
    flex-wrap: wrap;
    gap: 6px;
  }
  .product_info_tab .tabs li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
  }
  .product_info_tab .tabcontent {
    padding: 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Ensure product dialog/Colorbox and tab content are fully visible on mobile */
@media (max-width: 767px) {
  /* Do not clip tab contents on small screens */
  .product_info_tab .tabcontents,
  .product_info_tab .tabcontent { overflow: visible !important; max-height: none !important; }

  /* Colorbox/mobile dialog sizing - full screen utilization */
  #cboxOverlay { position: fixed !important; width: 100vw !important; height: 100vh !important; }
  #colorbox, #cboxWrapper { 
    left: 1vw !important; 
    right: 1vw !important; 
    width: 98vw !important; 
    max-width: 98vw !important;
    top: 5vh !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  #cboxContent { 
    box-sizing: border-box !important; 
    width: 100% !important;
    border-radius: 16px !important;
  }
  #cboxLoadedContent { 
    max-height: calc(90vh - 60px) !important; 
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
  }
  
  /* Image in dialog: maintain 1:1 aspect ratio with rounded corners */
  #cboxLoadedContent img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    object-fit: contain !important;
  }
}

/* Category Description Layout Styles */
#indexProductListCatDescription {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#indexProductListCatDescription .categoryImg {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-right: 20px;
}

#indexProductListCatDescription .categoryImg img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-description {
  display: flex;
  align-items: flex-start;
  padding-left: 20px;
}

.category-desc-content {
  width: 100%;
}

.category-desc-content p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.category-desc-toggle {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

.category-desc-toggle:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.category-desc-toggle .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.category-desc-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.category-desc-full {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Mobile responsive styles for category description */
@media (max-width: 768px) {
  #indexProductListCatDescription {
    padding: 15px;
  }
  
  #indexProductListCatDescription .categoryImg {
    padding-right: 0;
    padding-bottom: 15px;
    justify-content: center;
  }
  
  .category-description {
    padding-left: 0;
  }
  
  .category-desc-content p {
    font-size: 14px;
  }
  
  .category-desc-toggle {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  #indexProductListCatDescription .row {
    flex-direction: column;
  }
  
  #indexProductListCatDescription .categoryImg,
  .category-description {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
  margin: 20px 0;
  padding: 0;
}

.breadcrumb {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0;
  list-style: none;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb .current {
  color: #6c757d;
  font-weight: 500;
}

/* Mobile responsive breadcrumbs */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 10px 15px;
    font-size: 13px;
    word-break: break-word;
  }
  
  .breadcrumb-nav {
    margin: 15px 0;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .breadcrumb-nav {
    margin: 10px 0;
  }
}

/* Shopping Cart Button Styles */
.cart-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cart-checkout-group {
  display: flex;
  gap: 15px;
}

/* ASRM Button Base Styles */
.asrm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  white-space: nowrap;
}

.asrm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.asrm-btn:active {
  transform: translateY(0);
}

/* Button Variants */
.asrm-btn.primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.asrm-btn.primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  color: white;
}

.asrm-btn.secondary {
  background: linear-gradient(135deg, #6c757d, #545b62);
  color: white;
}

.asrm-btn.secondary:hover {
  background: linear-gradient(135deg, #545b62, #3d4142);
  color: white;
}

.asrm-btn.danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.asrm-btn.danger:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  color: white;
}

/* Button Sizes */
.asrm-btn.small {
  padding: 8px 12px;
  font-size: 14px;
  gap: 6px;
}

.asrm-btn.large {
  padding: 16px 28px;
  font-size: 18px;
  gap: 10px;
}

/* Checkout Button Special Styling */
.checkout-btn {
  font-size: 18px;
  padding: 16px 32px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.checkout-btn:hover {
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Cart Table Button Styles */
.update-btn, .delete-btn {
  min-width: 40px;
  justify-content: center;
}

.update-btn:hover {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #dc3545, #bd2130);
}

/* Mobile Responsive Cart Buttons */
@media (max-width: 768px) {
  .cart-buttons-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .cart-button-group,
  .cart-checkout-group {
    justify-content: center;
    width: 100%;
  }
  
  .asrm-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
  
  .checkout-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
}

@media (max-width: 576px) {
  .cart-button-group {
    flex-direction: column;
  }
  
  .asrm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Contact Us Page Optimization */
#contactUsDefault {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact Hero Section */
.contact-hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-hero .subtitle {
  font-size: 20px;
  color: #6c757d;
  margin: 0;
  font-weight: 300;
}

/* Contact Grid Layout */
.contact-wrapper {
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Contact Form Styling */
.contact-main.card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

#contactUsForm {
  border: none;
  padding: 0;
  margin: 0;
}

#contactUsForm legend {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 24px;
  padding: 0;
  border: none;
  width: auto;
}

/* Form Groups and Fields */
.form-group {
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group label.inputLabel {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Help Text */
.help-text {
  font-size: 14px;
  color: #6c757d;
  margin-top: 6px;
  font-style: italic;
}

/* Required Symbol */
.alert {
  color: #dc3545;
  font-weight: bold;
  margin-left: 4px;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.radio-group label:hover {
  background-color: #f8f9fa;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
}

/* Consent Checkbox */
.form-group.consent {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.form-group.consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.form-group.consent input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 2px;
}

/* Contact Actions */
.contact-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.contact-button-group {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.submit-btn {
  min-width: 160px;
}

/* Success Message */
.mainContent.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #c3e6cb;
  margin-bottom: 24px;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(21,87,36,0.1);
}

.contact-success-actions {
  text-align: center;
  margin-top: 24px;
}

/* Sidebar Styling */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-sidebar .card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.contact-sidebar .card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007bff;
}

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

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: #2c3e50;
  font-weight: 600;
}

.contact-list a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Map Card */
.map-card iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-hero h1 {
    font-size: 36px;
  }
  
  .contact-hero .subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #contactUsDefault {
    padding: 0 16px;
  }
  
  .contact-hero {
    padding: 40px 20px;
    margin-bottom: 32px;
  }
  
  .contact-hero h1 {
    font-size: 32px;
  }
  
  .contact-main.card {
    padding: 24px;
  }
  
  .field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-button-group {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  
  .asrm-btn {
    justify-content: center;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 28px;
  }
  
  .contact-hero .subtitle {
    font-size: 16px;
  }
  
  .contact-main.card {
    padding: 20px;
  }
  
     #contactUsForm legend {
     font-size: 24px;
   }
 }

/* ========================================
   CREATE ACCOUNT PAGE OPTIMIZATION
   ======================================== */

/* Reset template styles with high specificity */
body #createAcctDefault * {
  box-sizing: border-box;
}

/* Override all template form styles */
body #createAcctDefault fieldset,
body #createAcctDefault .content,
body #createAcctDefault .split-login,
body #createAcctDefault .create-account-page {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Main Container - Higher specificity to override template styles */
body #createAcctDefault {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  background: transparent !important;
}

/* Override template container styles */
body #createAcctDefault .create-account-page {
  margin-top: 0 !important;
  background: transparent !important;
}

body #createAcctDefault .create-account-page .content {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Enhanced Page Header */
body #createAcctDefault .page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  text-align: center !important;
  padding: 60px 40px !important;
  border-radius: 20px !important;
  margin: 30px 0 40px 0 !important;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
}

#createAcctDefault .page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

#createAcctDefault .page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

#createAcctDefault .page-header h1 i {
  margin-right: 16px;
  font-size: 0.9em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#createAcctDefault .page-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 300;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Login Prompt Enhancement */
#createAcctDefault .login-prompt {
  margin-bottom: 40px;
}

#createAcctDefault .login-prompt .alert {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 2px solid #2196f3;
  color: #0d47a1;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
  transition: all 0.3s ease;
}

#createAcctDefault .login-prompt .alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

#createAcctDefault .login-prompt .alert i {
  font-size: 20px;
  color: #1976d2;
}

#createAcctDefault .login-prompt .alert a {
  color: #0d47a1;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

#createAcctDefault .login-prompt .alert a:hover {
  border-bottom-color: #0d47a1;
}

/* Enhanced Form Container */
body #createAcctDefault .create-account-container {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  margin-bottom: 40px !important;
  border: none !important;
}

/* Form Header */
#createAcctDefault .form-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px 40px;
  border-bottom: 1px solid #e9ecef;
}

#createAcctDefault .form-header .alert {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #ffc107;
  color: #856404;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

#createAcctDefault .form-header .alert i {
  font-size: 18px;
  color: #f39c12;
}

/* Enhanced Form Sections */
body #createAcctDefault .form-section {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: white !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  box-shadow: none !important;
}

#createAcctDefault .form-section:hover {
  background: #fafbfc;
}

body #createAcctDefault .section-header {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
  color: white !important;
  padding: 20px 40px !important;
  margin: 0 !important;
  border: none !important;
  position: relative !important;
  overflow: hidden !important;
}

#createAcctDefault .section-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
  transform: skewX(-15deg);
}

#createAcctDefault .section-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

#createAcctDefault .section-header h3 i {
  font-size: 1.2em;
  padding: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Content */
#createAcctDefault .form-content {
  padding: 40px;
}

/* Enhanced Form Controls */
#createAcctDefault .form-group {
  margin-bottom: 28px;
  position: relative;
}

#createAcctDefault .form-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 15px;
  position: relative;
}

#createAcctDefault .form-control {
  width: 100% !important;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #2c3e50;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#createAcctDefault .form-control:focus {
  border-color: #6c5ce7;
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
  transform: translateY(-2px);
  background: #fafbfc;
}

#createAcctDefault .form-control:hover {
  border-color: #ced4da;
  background: #fafbfc;
}

#createAcctDefault .form-control::placeholder {
  color: #6c757d;
  opacity: 0.8;
}

/* Enhanced Form Rows */
#createAcctDefault .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

#createAcctDefault .form-row .form-group {
  margin-bottom: 28px;
}

/* Required Field Styling */
#createAcctDefault .required {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 4px;
  font-size: 16px;
}

/* Help Text */
#createAcctDefault .help-text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
  line-height: 1.4;
}

/* Enhanced Radio and Checkbox Groups */
#createAcctDefault .radio-group,
#createAcctDefault .checkbox-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

#createAcctDefault .radio-label,
#createAcctDefault .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#createAcctDefault .radio-label::before,
#createAcctDefault .checkbox-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
  transition: left 0.5s ease;
}

#createAcctDefault .radio-label:hover::before,
#createAcctDefault .checkbox-label:hover::before {
  left: 100%;
}

#createAcctDefault .radio-label:hover,
#createAcctDefault .checkbox-label:hover {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  border-color: #6c5ce7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

#createAcctDefault .radio-label i,
#createAcctDefault .checkbox-label i {
  font-size: 18px;
  color: #6c5ce7;
  transition: color 0.3s ease;
}

#createAcctDefault .radio-label:hover i,
#createAcctDefault .checkbox-label:hover i {
  color: white;
}

/* Selected State */
#createAcctDefault input[type="radio"]:checked + .radio-label,
#createAcctDefault input[type="checkbox"]:checked + .checkbox-label {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  border-color: #00b894;
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.4);
}

#createAcctDefault input[type="radio"]:checked + .radio-label i,
#createAcctDefault input[type="checkbox"]:checked + .checkbox-label i {
  color: white;
}

/* Privacy Section Enhancement */
#createAcctDefault .privacy-section .privacy-info {
  background: linear-gradient(135deg, #dff0d8, #d4edda);
  border: 2px solid #28a745;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #155724;
}

/* reCAPTCHA Section */
#createAcctDefault .recaptcha-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px;
  text-align: center;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

/* Enhanced Submit Section */
#createAcctDefault .submit-section {
  background: linear-gradient(135deg, #2d3436, #636e72);
  color: white;
  text-align: center;
  padding: 40px;
  margin: 0;
}

#createAcctDefault .submit-section .form-content {
  padding: 0;
}

/* Enhanced Submit Button */
#createAcctDefault .buttonRow {
  margin: 0;
  padding: 0;
}

#createAcctDefault .buttonRow input[type="image"],
#createAcctDefault .buttonRow input[type="submit"],
#createAcctDefault .buttonRow button {
  background: linear-gradient(135deg, #00b894, #00cec9) !important;
  color: white !important;
  border: none !important;
  padding: 18px 40px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 200px !important;
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

#createAcctDefault .buttonRow input[type="image"]:hover,
#createAcctDefault .buttonRow input[type="submit"]:hover,
#createAcctDefault .buttonRow button:hover {
  background: linear-gradient(135deg, #00a085, #00b7b7) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0, 184, 148, 0.4) !important;
}

#createAcctDefault .buttonRow input[type="image"]:active,
#createAcctDefault .buttonRow input[type="submit"]:active,
#createAcctDefault .buttonRow button:active {
  transform: translateY(-1px) !important;
}

/* Section-Specific Color Themes */
#createAcctDefault .personal-section .section-header {
  background: linear-gradient(135deg, #e17055, #fd79a8);
}

#createAcctDefault .contact-section .section-header {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
}

#createAcctDefault .dob-section .section-header {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

#createAcctDefault .login-section .section-header {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

#createAcctDefault .preferences-section .section-header {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

#createAcctDefault .referral-section .section-header {
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

#createAcctDefault .company-section .section-header {
  background: linear-gradient(135deg, #636e72, #2d3436);
}

/* Enhanced Select Styling */
#createAcctDefault select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236c5ce7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: 48px;
  appearance: none;
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
  #createAcctDefault {
    padding: 0 16px;
  }
  
  #createAcctDefault .page-header {
    padding: 40px 30px;
    margin: 20px 0 30px 0;
  }
  
  #createAcctDefault .page-header h1 {
    font-size: 2.8rem;
  }
  
  #createAcctDefault .form-content {
    padding: 30px;
  }
  
  #createAcctDefault .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  #createAcctDefault .page-header {
    padding: 30px 20px;
    border-radius: 16px;
  }
  
  #createAcctDefault .page-header h1 {
    font-size: 2.4rem;
  }
  
  #createAcctDefault .page-subtitle {
    font-size: 1.1rem;
  }
  
  #createAcctDefault .form-content {
    padding: 24px;
  }
  
  #createAcctDefault .section-header {
    padding: 16px 24px;
  }
  
  #createAcctDefault .section-header h3 {
    font-size: 1.2rem;
  }
  
  #createAcctDefault .radio-group,
  #createAcctDefault .checkbox-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  #createAcctDefault .radio-label,
  #createAcctDefault .checkbox-label {
    justify-content: flex-start;
    min-width: auto;
  }
}

@media (max-width: 576px) {
  #createAcctDefault {
    padding: 0 12px;
  }
  
  #createAcctDefault .page-header {
    padding: 24px 16px;
    margin: 16px 0 24px 0;
  }
  
  #createAcctDefault .page-header h1 {
    font-size: 2rem;
  }
  
  #createAcctDefault .form-content {
    padding: 20px;
  }
  
  #createAcctDefault .form-control {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  #createAcctDefault .submit-section {
    padding: 30px 20px;
  }
  
  #createAcctDefault .buttonRow input[type="image"],
  #createAcctDefault .buttonRow input[type="submit"],
  #createAcctDefault .buttonRow button {
    padding: 16px 32px !important;
    font-size: 16px !important;
    min-width: 180px !important;
  }
}

/* Animation Enhancements */
#createAcctDefault .form-section {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

#createAcctDefault .form-section:nth-child(1) { animation-delay: 0.1s; }
#createAcctDefault .form-section:nth-child(2) { animation-delay: 0.2s; }
#createAcctDefault .form-section:nth-child(3) { animation-delay: 0.3s; }
#createAcctDefault .form-section:nth-child(4) { animation-delay: 0.4s; }
#createAcctDefault .form-section:nth-child(5) { animation-delay: 0.5s; }
#createAcctDefault .form-section:nth-child(6) { animation-delay: 0.6s; }
#createAcctDefault .form-section:nth-child(7) { animation-delay: 0.7s; }
#createAcctDefault .form-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus and Accessibility Enhancements */
#createAcctDefault .form-control:focus,
#createAcctDefault .radio-label:focus-within,
#createAcctDefault .checkbox-label:focus-within {
  outline: 3px solid rgba(108, 92, 231, 0.3);
  outline-offset: 2px;
}

/* Error and Success States */
#createAcctDefault .form-group.has-error .form-control {
  border-color: #e74c3c;
  background: #fdf2f2;
}

#createAcctDefault .form-group.has-error .help-text {
  color: #e74c3c;
  font-weight: 500;
}

#createAcctDefault .form-group.has-success .form-control {
  border-color: #00b894;
  background: #f0fff4;
}

/* Loading States */
#createAcctDefault .form-control:disabled {
  background: #f8f9fa;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Message Stack Styling */
#createAcctDefault .messageStackError,
#createAcctDefault .messageStackWarning,
#createAcctDefault .messageStackSuccess {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
}

#createAcctDefault .messageStackError {
  background: linear-gradient(135deg, #fdf2f2, #fce4ec);
  color: #c62828;
  border: 2px solid #e74c3c;
}

#createAcctDefault .messageStackWarning {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  color: #f57f17;
  border: 2px solid #ffc107;
}

#createAcctDefault .messageStackSuccess {
  background: linear-gradient(135deg, #f0fff4, #e8f5e8);
  color: #2e7d32;
  border: 2px solid #4caf50;
}

/* Product Rating Section */
.product-rating-section {
    margin: 16px 0 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border: 1px solid #ffd700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.product-rating-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffb300, #ffd700);
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.star-rating .stars {
    color: #ffd700;
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow: 0 3px 6px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0,0,0,0.1);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    font-weight: bold;
    position: relative;
}

.star-rating .stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    pointer-events: none;
}

.star-rating .rating-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.customer-count {
    margin-top: 6px;
}

.customer-count .customer-text {
    font-size: 14px;
    color: #2e7d32;
    font-weight: 600;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.customer-count .customer-text::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    margin-right: 6px;
}

/* Responsive adjustments for rating section */
@media (max-width: 768px) {
    .product-rating-section {
        margin: 10px 0 12px 0;
        padding: 10px 0;
    }
    
    .star-rating .stars {
        font-size: 16px;
    }
    
    .star-rating .rating-text {
        font-size: 13px;
    }
    
    .customer-count .customer-text {
        font-size: 12px;
    }
}

