/* ============================
   Crackers Product Table Styles
   ============================ */

.crackers-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}

.crackers-table th,
.crackers-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.crackers-table thead {
    background: #f8f8f8;
}
.crackers-table th {
    font-weight: bold;
}
/* ===== Logo Size ===== */
.logo-cell {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* Price Styling */
.actual-price {
    color: #777;
    text-decoration: line-through;
}
.discount-price {
    color: #d32f2f;
    font-weight: bold;
}

/* Quantity Input */
.qty-input {
    width: 70px;
    padding: 5px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Amount Column */
.amount {
    font-weight: bold;
    color: #2e7d32;
    font-size: 14px;
}

/* ============================
   Mobile Responsive (Fixed Fit)
   ============================ */
@media (max-width: 600px) {
    .crackers-table {
        font-size: 9px;   /* smaller text */
        table-layout: fixed;  /* force equal fit */
    }

    .crackers-table th,
    .crackers-table td {
        padding: 3px;
        font-size: 9px;
        word-wrap: break-word;
    }

    .qty-input {
        width: 28px;  /* very small box */
        font-size: 9px;
        padding: 1px;
    }

    .amount {
        font-size: 10px;
    }
    .logo-cell {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
  }

    /* Fix Column Widths (fits 100% screen) */
    .crackers-table th:nth-child(1),
    .crackers-table td:nth-child(1) {
        width: 8%;   /* S.No */
    }
    .crackers-table th:nth-child(2),
    .crackers-table td:nth-child(2) {
        width: 25%;  /* Product Name */
    }
    .crackers-table th:nth-child(3),
    .crackers-table td:nth-child(3) {
        width: 14%;  /* Price */
    }
    .crackers-table th:nth-child(4),
    .crackers-table td:nth-child(4) {
        width: 14%;  /* Discount */
    }
    .crackers-table th:nth-child(5),
    .crackers-table td:nth-child(5) {
        width: 12%;  /* Qty */
    }
    .crackers-table th:nth-child(6),
    .crackers-table td:nth-child(6) {
        width: 15%;  /* Amount */
    }
}
