/* Page Background & Font */
body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
}
/* CATEGORY FILTER WRAPPER */
.category-filter-wrapper {
  background: #06231D;
  padding: 10px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left align items */
  gap: 8px;
  margin-bottom: 10px;
  position: sticky;
  top: 129px; /* below header */
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  flex-wrap: wrap; /* allow items to wrap if needed */
}

/* Label */
.category-filter-wrapper label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Select Dropdown */
.category-filter-wrapper select {
  flex: 1;
  max-width: 180px;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  outline: none;
}

/* Mobile: Keep label + select in one line */
@media (max-width: 767px) {
  .category-filter-wrapper {
    flex-direction: row; /* force same line */
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
  }

  .category-filter-wrapper label {
    font-size: 0.85rem;
    flex: none; /* keep label width auto */
  }

  .category-filter-wrapper select {
    flex: 1;
    max-width: calc(100% - 80px); /* leave space for label */
    font-size: 0.85rem;
  }
}

/* Hover/Focus effect for select */
.category-filter-wrapper select:hover,
.category-filter-wrapper select:focus {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Reduce gap between category and products & center grid */
.product-container {
    margin-top: 15px; /* smaller gap below sticky category */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 280px)); /* auto-fit to center */
    justify-content: center;
    gap: 15px;
    padding: 10px 15px 80px;
}

/* Only this card: 2 per row on mobile */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PRODUCT CARD */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 10px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* PRODUCT IMAGE */
.product-img {
    width: 100%;       /* full width */
    height: auto;      /* auto height to keep aspect ratio */
    object-fit: contain; /* show full image without cropping */
    border-radius: 6px;
    margin-bottom: 8px;
}

/* PRODUCT NAME */
.product-name {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 5px;
    color: #333;
}

/* PRICE STYLES */
.price-tags {
    margin-bottom: 8px;
}

.price-old {
    text-decoration: line-through;
    color: #e74c3c;
    margin-right: 5px;
    font-size: 0.8rem;
}

.price-new {
    color: #28a745;
    font-weight: bold;
    font-size: 0.95rem;
}

/* QUANTITY BUTTONS */
.quantity-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.quantity-wrapper button {
    border: none;
    background: #ff9933;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.quantity-wrapper input {
    width: 36px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* FIXED BOTTOM BAR */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
}

.btn-clear {
    background: #ccc;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #333;
    font-size: 0.85rem;
}

.btn-checkout {
    background: #28a745;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
}


