@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-name {
    font-weight: bold;
    color: #333;
}

.product-price {
    color: #4caf50;
    font-weight: bold;
}

.product-bonus {
    color: #e91e63;
    font-weight: bold;
}

.buy-button {
    background-color: #ffcc00;
    border: none;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 5px;
    color: #333;
    cursor: pointer;
    width: 100%;
}

.buy-button:hover {
    background-color: #ffa000;
    color: white;
}

.out-of-stock {
    color: #e53935;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .tab-content {
        padding: 15px;
    }

    .product-table th, .product-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .buy-button {
        padding: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .tab-button {
        font-size: 0.9rem;
    }
    .product-table th, .product-table td {
        font-size: 0.8rem;
    }
    .buy-button {
        font-size: 0.9rem;
    }
}
  .price-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 6px; 
    font-size: 0.85rem; 
    font-weight: 600;   
    color: #333;
}

.price-filter label {
    font-weight: 600; 
    font-size: 0.8rem; 
}

.price-filter select {
    padding: 6px 8px; 
    font-size: 0.8rem; 
    border: 1.5px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #f8f9fa;
}

.price-filter select:hover,
.price-filter select:focus {
    border-color: #FC2203;
}

    .product-list-item {
        background-color: #ffffff;
    }
    
    .product-image-container {
        width: 100px;
        height: 100px;
        overflow: hidden;
        border-radius: 8px;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-name {
        font-weight: bold;
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        font-weight: bold;
        color: #28a745;
        font-size: 1.1rem;
    }

@media (max-width: 1024px) { 
    .product-list-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        background-color: #fff;
        border-radius: 8px;
        margin-bottom: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .product-image-container {
        width: 100%;
        max-width: 120px; 
        height: 120px; 
        margin: 0 auto 8px!important;
        border-radius: 6px;
        overflow: hidden;
        transition: transform 0.2s ease;
        display: flex;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-name {
        font-size: 1rem;
        color: #333;
        font-weight: bold;
        margin: 6px 0;
    }

    .product-description {
        font-size: 0.9rem;
        margin: 4px 0;
    }

    .product-price {
        font-size: 1.1rem;
        font-weight: bold;
        color: #28a745;
        margin: 8px 0;
    }

    .product-actions {
        display: flex;
        gap: 4px;
        justify-content: center;
        width: 100%;
        margin-top: 6px;
        position: relative;
        z-index: 2;
    }

    .product-actions .btn {
        flex: 1;
        padding: 6px 8px;
        border-radius: 12px;
        font-weight: bold;
        font-size: 0.8rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .product-actions .btn-primary:hover {
        background-color: #004080;
        color: #fff;
    }

    .product-actions .btn-success:hover {
        background-color: #1c7c37;
        color: #fff;
    }
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.quantity-control button:first-child {
    background: transparent; 
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    border: none;
}
.quantity-control input {
    text-align: center;
    font-size: 16px;
    border: none;
    width: 50px;
    height: 37px;
}

.quantity-control button:last-child {
    background: transparent; 
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    border: none;
}
@media (max-width: 1024px) {
    .quantity-control button,
    .quantity-control input {
        height: 40px;
        font-size: 18px;
        padding: 0 12px;
    }
}

  .form-control-plaintext {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .payment-methods-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-method-card {
  flex: 1 1 30%;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  position: relative;
}

.payment-method-card:hover {
  border-color: #ff6600;
  background-color: #fff3e0; 
}

.payment-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: all;
}

.payment-method-card input[type="radio"]:checked + .payment-method-icon,
.payment-method-card input[type="radio"]:checked ~ .payment-method-info {
  color: #ff6600;
}

.payment-method-card input[type="radio"]:checked {
  outline: none;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-icon {
  color: #ff6600;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-info .payment-method-name {
  font-weight: 700;
  color: #ff6600;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-icon,
.payment-method-card input[type="radio"]:checked ~ .payment-method-info {
  filter: none;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-icon {
  color: #ff6600;
}

.payment-method-card.active {
  border-color: #ff6600;
}

.payment-method-icon {
  font-size: 1.8rem;
  color: #6c757d;
  width: 36px;
  text-align: center;
}

.payment-method-info {
  display: flex;
  flex-direction: column;
}

.payment-method-name {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.payment-method-desc {
  font-size: 0.8rem;
  color: #6c757d;
}

.payment-method-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.payment-method-card.disabled .payment-method-icon,
.payment-method-card.disabled .payment-method-name,
.payment-method-card.disabled .payment-method-desc {
  color: #aaa !important;
}

  .compact-qty input {
    max-width: 60px;
  }

  .compact-qty .btn {
    padding: 0.375rem 0.75rem;
  }

  #customFieldsContainer input:focus,
  #customFieldsContainer select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    outline: none;
  }
  
@media (max-width: 1024px) { 
    .product-list-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .product-image-container {
        margin-bottom: 15px !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .product-details {
        text-align: center !important;
        width: 100% !important;
        word-wrap: break-word;  
        overflow-wrap: break-word;  
        hyphens: auto;            
    }

    .product-actions {
        justify-content: center !important;
        width: 100% !important;
    }

    .product-details p {
        white-space: normal !important; 
        word-break: break-word !important; 
        overflow-wrap: anywhere !important; 
        line-height: 1.4 !important; 
    }

    .product-details h5,
    .product-details .product-price {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.is-invalid {
            border-color: #dc3545;
        }
    .swal2-popup {
        width: auto !important;
        padding: 20px;
        background-color: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
        font-size: 14px;
        position: fixed;
        top: 20px; 
        right: 20px; 
        z-index: 9999;
        max-width: 350px; 
        display: flex;
        align-items: center; 
        justify-content: center;
        text-align: center; 
        flex-direction: column; 
    }

    .swal2-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 13px; 
        color: #333;
        margin-bottom: 5px;
    }

    .swal2-html-container {
        font-family: 'Arial', sans-serif;
        font-size: 13px !important;
        color: #555;
        margin-bottom: 10px !important;
    }

    .swal2-icon {
        font-size: 13px !important; 
        margin-bottom: 10px;
        margin-right: 0; 
    }

    .swal2-success {
        color: #28a745;
    }

    .swal2-error {
        color: #dc3545;
    }

    .swal2-confirm {
        background-color: #28a745 !important;
        color: #fff !important;
        border-radius: 8px !important;
        font-weight: bold;
    }

    .swal2-cancel {
        background-color: #dc3545 !important;
        color: #fff !important;
        border-radius: 8px !important;
        font-weight: bold;
    }
    #addToCartProductPrice {
        display: block; 
    }
    #productPrice{
        display: block; 
    }

    @media (max-width: 768px) {
        .breadcrumb {
            flex-direction: column;
            align-items: flex-start;
        }

        .breadcrumb-item {
            margin-bottom: 5px;
        }

        .breadcrumb-item.d-none.d-md-block {
            display: block;
            margin-top: 10px;
        }

        .breadcrumb-item.active span {
            font-size: 12px;
            padding: 4px 8px;
        }
    }
    @media (max-width: 576px) {
  #purchaseModalCard .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #purchaseModalCard .col-md-4,
  #purchaseModalCard .col-md-7 {
    width: 100%;
    padding: 0 !important;
  }

  #productName {
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  #productPrice {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .d-flex.align-items-center.gap-2.my-3 {
    justify-content: center;
  }

}
.custom-green {
  color: #15af15;
  display: inline-block; 
  padding: 1px 4px;
  border: 1px solid #15af15; 
  border-radius: 6px; 
  font-weight: 600; 
  user-select: none;
  box-shadow: 0 2px 6px rgba(21, 175, 21, 0.3);
}
.custom-bg-orange {
  background-color: #ff6600;
  color: #ffffff; 
  border-radius: 4px;
  display: inline-block;
  padding: 4px 6px; 
}

.original-price {
  color: #ff0000;
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid #ff0000;
  border-radius: 6px;
  font-weight: 600;
  user-select: none;
  text-decoration: line-through;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
}