/* MRP Display Improvements - Match Fan Website Style */

/* Product Detail Page MRP Styling */
.product-content .mrp-wrapper .mrp-box {
  float: left;
  margin-bottom: 20px;
}

.product-content .mrp-wrapper .mrp-box h5 {
  margin: 5px 0;
  font-size: 16px;
  color: #666;
  font-weight: normal;
}

.product-content .product-price h5 {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin: 5px 0;
  line-height: 1.4;
}

/* Fan Website Layout for Product Teasers */
.product-main.fan-layout {
  text-align: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  background: #fff;
  margin-bottom: 20px;
}

.product-main.fan-layout .product-title {
  margin-bottom: 15px;
}

.product-main.fan-layout .product-title h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.product-main.fan-layout .product-title h3 a {
  text-decoration: none;
  color: #333;
}

.product-main.fan-layout .product-image {
  margin: 15px 0;
  text-align: center;
}

.product-main.fan-layout .product-image img {
  max-width: 100%;
  height: auto;
}

.product-main.fan-layout .product-options {
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-main.fan-layout .bullet-color-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-main.fan-layout .compare-box {
  font-size: 12px;
}

.product-main.fan-layout .product-pricing {
  margin: 15px 0;
  text-align: center;
}

.product-main.fan-layout .net-quantity {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.product-main.fan-layout .mrp-price {
  font-size: 14px;
  color: #333;
  font-weight: bold;
  line-height: 1.3;
}

.product-main.fan-layout .product-description {
  margin: 10px 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.product-main.fan-layout .capacity-info {
  margin: 8px 0;
  font-size: 12px;
  color: #666;
}

.product-main.fan-layout .read-more {
  margin-top: 10px;
}

.product-main.fan-layout .read-more a {
  font-size: 12px;
  color: #e74c3c;
  text-decoration: none;
}

/* Category/Views MRP Styling */
.views-row .price {
  font-size: 14px;
  color: #333;
  font-weight: bold;
  margin: 10px 0;
  line-height: 1.3;
  text-align: center;
}

/* Clean spacing for NET QUANTITY and MRP */
.mrp-box h5:first-child {
  margin-bottom: 8px;
}

.mrp-box .product-price {
  margin-top: 0;
}
/* Product
 Grid Alignment Fixes */

/* Convert category view to flexbox grid for proper alignment */
.cat-wrapper .view-content {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
}

/* Ensure product boxes have consistent sizing and alignment */
.cat-wrapper .view-content .product-box,
.cat-wrapper .view-content .views-row,
.cat-wrapper .view-content article {
  flex: 0 0 calc(25% - 15px);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  margin: 0 !important;
  float: none !important;
}

/* Make product-main containers fill available space */
.product-main.fan-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Ensure product images have consistent height */
.product-main.fan-layout .product-image {
  flex: 0 0 auto;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main.fan-layout .product-image img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
}

/* Make content areas flexible to fill space */
.product-main.fan-layout .product-description {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 60px;
}

/* Keep footer elements at bottom */
.product-main.fan-layout .read-more {
  flex: 0 0 auto;
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .cat-wrapper .view-content .product-box,
  .cat-wrapper .view-content .views-row,
  .cat-wrapper .view-content article {
    flex: 0 0 calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .cat-wrapper .view-content .product-box,
  .cat-wrapper .view-content .views-row,
  .cat-wrapper .view-content article {
    flex: 0 0 calc(50% - 10px);
  }
  
  .cat-wrapper .view-content {
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .cat-wrapper .view-content .product-box,
  .cat-wrapper .view-content .views-row,
  .cat-wrapper .view-content article {
    flex: 0 0 100%;
  }
  
  .cat-wrapper .view-content {
    gap: 10px;
    padding: 10px;
  }
}

/* Override any conflicting float styles */
.cat-wrapper .view-content .product-box:nth-child(4n) {
  margin-right: 0 !important;
}

/* Ensure clearfix doesn't interfere with flexbox */
.cat-wrapper .view-content:before,
.cat-wrapper .view-content:after {
  display: none !important;
}/*
 Additional fixes for specific view templates */

/* Ensure all product containers have consistent styling */
.views-view-unformatted .views-row {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.views-view-unformatted .views-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Fix for any nested product containers */
.cat-produt-main-wrap,
.product-item-taxonomy {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure text content doesn't break layout */
.product-main.fan-layout .product-title h3,
.product-main.fan-layout .product-description,
.product-main.fan-layout .capacity-info {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix for compare checkboxes alignment */
.product-main.fan-layout .compare-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Ensure pricing section stays consistent */
.product-main.fan-layout .product-pricing {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: auto;
}

/* Fix for color options alignment */
.product-main.fan-layout .product-options {
  min-height: 30px;
  align-items: center;
}

.product-main.fan-layout .bullet-color-list li {
  margin-right: 4px;
}