/**
 * Custom Food Store Product Layout
 * This CSS creates a layout with image on left, title on top right,
 * description below title, and price at bottom right
 */

/* Reset any existing styles that might interfere */
.wfs-food-item-container {
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  border: none !important;
  width: 100% !important;
  display: block !important;
}

.wfs-food-item-container:after,
.wfs-food-item-container:before {
  display: none !important;
}

/* Main container layout */
.wfs-product-layout {
  display: flex !important;
  width: 100% !important;
  align-items: stretch !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #f9fafb !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  min-height: 100px !important;
}

.wfs-product-layout:hover {
  transform: translateY(-2px) !important;
}

/* Make the entire product clickable */
.wfs-product-link {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  width: 100% !important;
}

/* Image column */
.wfs-product-image-col {
  flex: 0 0 auto !important;
  width: 120px !important;
  position: relative !important;
  min-height: 120px !important;
}

.wfs-product-image-col .wfs-food-item-image-container {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.wfs-product-image-col img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Content column */
.wfs-product-content-col {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 15px !important;
  min-width: 0 !important; /* Ensures the column takes up all available space */
  width: 100% !important; /* Forces the column to take full width */
}

.wfs-food-item-summery {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Product header (title and description) */
.wfs-product-header {
  margin-bottom: 10px !important;
  width: 100% !important; /* Ensure the header takes full width */
}

.wfs-product-header h3 {
  margin: 0 0 5px 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  width: 100% !important;
}

.wfs-product-header .wfs-food-item-description {
  font-size: 14px !important;
  color: #666 !important;
  margin-top: 5px !important;
  display: block !important;
  width: 100% !important;
}

/* Product footer (price) */
.wfs-product-footer {
  margin-top: auto !important;
  text-align: right !important;
  width: 100% !important;
}

.wfs-product-footer .wfs-food-item-price {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* Hide the add button on mobile/tablet as requested */
@media (max-width: 767px) {
  .button-add-to-cart.wfs-product-modal {
    display: none !important;
  }
  
  /* Make the image slightly smaller on mobile */
  .wfs-product-image-col {
    width: 100px !important;
  }
}

/* Fix for column layout in Food Store */
.fs-col-lg-12, .fs-col-md-12, .fs-col-sm-12, .fs-col-xs-12 {
  width: 100% !important;
  padding: 0 !important;
  margin-bottom: 5px !important;
}

/* Fix for Food Store row */
.fs-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Additional fixes for container width */
.wfs-food-items-container {
  width: 100% !important;
}

/* Force full width for all parent containers */
.wfs-food-item-container,
.wfs-product-link,
.wfs-product-layout,
.wfs-product-content-col,
.wfs-food-item-summery,
.wfs-product-header,
.wfs-product-footer {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Ensure the food item container has proper spacing */
.wfs-food-item-container {
  margin-bottom: 5px !important;
  padding: 0 !important;
  border: none !important;
  width: 100% !important;
}

/* Remove any after/before pseudo elements that might interfere */
.wfs-food-item-container:after,
.wfs-food-item-container:before {
  display: none !important;
}
