/* Menu Grid Layout */
.ordro-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
  justify-content: center;
  padding: 16px;
}

/* Product Card - Use relative positioning */
.ordro-menu-item {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 12px 16px 40px 16px; /* Extra bottom padding for button */
  position: relative;
  border: 1px solid #eee;
}

/* Product Image - Absolute positioning at top */
.ordro-menu-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  position: absolute; /* Absolute positioning */
  left: 16px; /* Match left padding */
  top: 12px; /* Match top padding */
}

/* Text Content - Add left margin for image */
.ordro-menu-content {
  flex: 1;
  display: block;
  margin-left: 116px; /* Image width (100px) + right margin (16px) */
  min-height: 100px;
}

.ordro-menu-content h3 {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.ordro-menu-content p {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.3;
}

.ordro-menu-price {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin-top: 4px;
  display: block;
}

/* Add to Cart Button */
.ordro-add-to-cart {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: #eee;
  color: #000;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ordro-add-to-cart::before {
  content: "+";
  font-size: 16px;
  font-weight: bold;
}

.ordro-add-to-cart:hover {
  background: #333;
  color: #fff;
}

/* Filter Buttons */
.ordro-filter {
  text-align: center;
  margin-bottom: 20px;
}

.ordro-filter button {
  margin: 0 6px;
  padding: 8px 14px;
  border: none;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.ordro-filter button.active,
.ordro-filter button:hover {
  background-color: #000;
  color: #fff;
}

/* Floating Cart Icon */
.ordro-cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  font-size: 16px;
}

.woocommerce-cart-count {
  font-weight: bold;
  margin-left: 6px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .ordro-menu {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  
  .ordro-menu-item {
    padding: 10px 12px 36px 12px; /* Adjusted bottom padding for mobile */
  }
  
  .ordro-menu-item img {
    width: 70px !important;
    height: 70px !important;
    left: 12px; /* Match mobile left padding */
    top: 10px; /* Match mobile top padding */
  }
  
  .ordro-menu-content {
    margin-left: 82px; /* Image width (70px) + right margin (12px) */
    min-height: 70px;
  }
  
  .ordro-menu-content h3 {
    font-size: 15px;
    margin-bottom: 3px;
  }
  
  .ordro-menu-content p {
    font-size: 13px;
    margin: 2px 0;
    line-height: 1.2;
  }
  
  .ordro-menu-price {
    font-size: 14px;
    margin-top: 3px;
  }
  
  .ordro-add-to-cart {
    bottom: 10px;
    right: 12px;
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .ordro-add-to-cart::before {
    font-size: 13px;
  }
  
  /* Adjust floating cart icon for mobile */
  .ordro-cart-icon {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* Filter buttons */
  .ordro-filter {
    margin-bottom: 16px;
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .ordro-filter button {
    margin: 0 4px;
    padding: 8px 12px;
    font-size: 13px;
  }
}