/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.fish-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns like the image */
    gap: 15px;
}

.fish-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    font-family: sans-serif;
}

.fish-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fish-info h3 {
    font-size: 14px;
    color: #333;
    height: 40px; /* Keeps titles aligned */
    margin: 10px 0;
}

.fish-pricing {
    font-size: 14px;
    font-weight: bold;
}

.old-price {
    color: #d9534f;
    text-decoration: line-through;
    margin-right: 5px;
}

.new-price {
    color: #0a4f7f; /* Green color from your image */
}

.unit {
    color: #28a745;
    font-weight: normal;
}

.fish-grid-wrapper {
	text-align: center;
}

.fish-grid-wrapper button.fish-load-more {
    margin: 20px 0;
    background: #0A4F7F;
    color: #fff;
}

.fish-grid-wrapper button.fish-load-more:hover {
	background: #000;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .fish-grid-container { grid-template-columns: repeat(1, 1fr); }
}

/* 1. The Grid Container */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    padding: 10px 0 !important;
}

.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }

/* 2. Individual Card Styling */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin: 0 !important;
    width: auto !important;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 3. Image Styling */
.woocommerce ul.products li.product img {
    margin-bottom: 15px !important;
    border-radius: 4px;
}

/* 4. Title Styling */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    color: #444 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 5px 0 10px 0 !important;
    line-height: 1.4 !important;
    min-height: 40px; /* Aligns pricing even if titles vary in length */
}

/* 5. Pricing & Unit Styling (The "Green" look) */
.fish-pricing-row {
    font-size: 14px;
    font-family: sans-serif;
}

.old-price {
    color: #e53935; /* Reddish */
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.new-price {
    color: #0a4f7f; /* Deep Green */
    font-weight: 700;
}

.unit {
    color: #0a4f7f;
    font-weight: 400;
}

/* 6. Responsive Fixes */
@media (max-width: 1024px) {
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* custom checkout style */
/* Checkout Grid */
.image-checkout-flex {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
  margin-top: 20px;
}

.image-checkout-form-col,
.image-order-summary-col {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

/* Form Inputs */
.required-input-image,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.form-group-image {
	margin-bottom: 20px;
}

.required-input-image:focus,
textarea:focus {
  border-color: #4CAF50;
}

/* Order Summary */
.product-line-image {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.product-line-image img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
}

/* Shipping */
.shipping-radio-image {
  display: block;
  margin: 8px 0;
}

/* Total */
.total-row,
.subtotal-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 600;
}

/* Button */
.place-order-btn-image {
  background: #0a4f7f;
  color: #fff;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}
.place-order-btn-image:hover {
	background: #000;
	color: #fff;
}

/* Warning */
.cod-warning-image {
  background: #fff3cd;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #ffeeba;
}

/* Responsive */
@media (max-width: 768px) {
  .image-checkout-flex {
    grid-template-columns: 1fr;
  }
}

