.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-button.products {
    background-color: #ff9800; 
}
.tab-button.description {
    background-color: #8bc34a;
}
.tab-button.terms {
    background-color: #03a9f4; 
}

.tab-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.tab-button.active {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.tab-content {
    display: none;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table th, .product-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
}

.product-table th {
    background-color: #f1f1f1;
}

.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: 8px;
        font-size: 1rem;
        font-weight: bold;
        color: #333;
    }

    .price-filter label {
        font-weight: bold;
    }

    .price-filter select {
        padding: 8px 10px;
        font-size: 0.9rem;
        border: 2px 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: #fff;
    }
    
    .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;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        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;
        border-radius: 6px;
        overflow: hidden;
        transition: transform 0.2s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .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;
    }

    .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;
    }
}

 .filter-section {
        background-color: white !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    }
    @media (max-width: 767.98px) {
        .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;
        }

        .quantity-control {
            justify-content: center !important;
            margin-bottom: 10px !important;
            margin-right: 0 !important; 
            width: 100%; 
            display: flex !important; 
        }

        .quantity-control label {
            margin-right: 0 !important;
        }

        .product-actions {
            justify-content: center !important;
            width: 100% !important;
        }

        .product-details h5,
        .product-details p,
        .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; 
    }


.product-list-item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


    @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: 2px solid #15af15; 
  border-radius: 6px; 
  font-weight: 600; 
  user-select: none; 
}
.custom-bg-orange {
  background-color: #fb7a0c;
  color: #ffffff; 
  border-radius: 4px;
  display: inline-block;
  padding: 4px 6px; 
}

.original-price {
  color: #ff0000;
  display: inline-block;
  padding: 1px 4px;
  border: 2px solid #ff0000;
  border-radius: 6px;
  font-weight: 600;
  user-select: none;
  text-decoration: line-through;
}

.filter-section {
        background-color: white !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    }
    @media (max-width: 767.98px) {
        .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;
        }

        .quantity-control {
            justify-content: center !important;
            margin-bottom: 10px !important;
            margin-right: 0 !important; 
            width: 100%; 
            display: flex !important; 
        }

        .quantity-control label {
            margin-right: 0 !important;
        }

        .product-actions {
            justify-content: center !important;
            width: 100% !important;
        }

        .product-details h5,
        .product-details p,
        .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; 
    }


.product-list-item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


    @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: 2px solid #15af15; 
  border-radius: 6px; 
  font-weight: 600; 
  user-select: none; 
}
.custom-bg-orange {
  background-color: #fb7a0c;
  color: #ffffff; 
  border-radius: 4px;
  display: inline-block;
  padding: 4px 6px; 
}

.original-price {
  color: #ff0000;
  display: inline-block;
  padding: 1px 4px;
  border: 2px solid #ff0000;
  border-radius: 6px;
  font-weight: 600;
  user-select: none;
  text-decoration: line-through;
}
.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: #fb7a0c;
  background-color: #e6f4ff; 
}

.payment-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-card input[type="radio"]:checked + .payment-method-icon,
.payment-method-card input[type="radio"]:checked ~ .payment-method-info {
  color: #fb7a0c;
}

.payment-method-card input[type="radio"]:checked {
  outline: none;
  border-color: #fb7a0c;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-icon {
  color: #fb7a0c;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-info .payment-method-name {
  font-weight: 700;
  color: #fb7a0c;
}

.payment-method-card input[type="radio"]:checked ~ .payment-method-icon,
.payment-method-card input[type="radio"]:checked ~ .payment-method-info {
  filter: none;
}

.payment-method-icon {
  font-size: 1.8rem;
  color: #6c757d;
  width: 36px;
  text-align: center;
  transition: color 0.25s ease;
}

.payment-method-info {
  display: flex;
  flex-direction: column;
  transition: color 0.25s ease;
}

.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;
  }

/* Itemsatis modern package/filter patch */
.product-filter-toggle{width:100%;display:flex;align-items:center;gap:9px;border:1px solid #e6e9ee;background:#fff;color:#252b33;border-radius:12px;padding:12px 14px;font-weight:700;box-shadow:0 5px 16px rgba(20,28,40,.06)}
.product-filter-toggle i:first-child{color:#ff6500}.filter-section{border:1px solid #e7e9ee!important;border-radius:14px!important;padding:15px!important;box-shadow:0 6px 18px rgba(20,28,40,.06)!important}.filter-section h5{font-size:16px;font-weight:800}.filter-section h6{font-size:12px;font-weight:700;color:#596171}.filter-section .form-control,.filter-section .form-select{border-radius:10px;border-color:#e2e6eb;min-height:42px;font-size:13px}.filter-section button[type=submit]{border-radius:10px!important;padding:10px 12px!important;font-weight:800!important;background:#ff6500!important;border-color:#ff6500!important}
.product-list-item.product-card{position:relative;border:1px solid #e7e9ee!important;border-radius:15px!important;padding:14px!important;box-shadow:0 6px 18px rgba(20,28,40,.055)!important;gap:12px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}.product-list-item.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(20,28,40,.09)!important}.product-list-item .product-image-container{width:112px;height:112px;flex:0 0 112px;border-radius:12px;background:#f2f4f7}.product-list-item .product-name.custom-bg-orange{background:transparent!important;padding:0!important}.product-list-item .product-name a{color:#222a33!important;font-size:15px;line-height:1.35}.product-list-item .product-description{color:#747d88;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-list-item .custom-green,.product-list-item .original-price{border:0!important;padding:0!important;border-radius:0!important}.product-list-item .product-price{margin-top:7px!important;font-size:17px}.product-bonus-pill{display:inline-flex;align-items:center;gap:5px;margin-top:5px;background:#fff8e8;border:1px solid #ffe0a3;color:#8a6200;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700}.product-bonus-pill i{color:#f5a400}.product-list-item .quantity-control{background:#f6f7f9;border:1px solid #e6e9ee;border-radius:10px;padding:5px;align-self:center}.product-list-item .quantity-btn{width:30px;height:30px;border:0!important;border-radius:8px!important;background:#fff!important;color:#333!important;font-weight:800}.product-list-item .quantity-input{width:38px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-weight:800}.product-actions{display:flex;flex-direction:column;gap:7px;min-width:150px;align-self:center}.product-actions .btn{margin:0!important;border-radius:10px!important;padding:9px 11px!important;font-size:11px!important;font-weight:800!important;display:flex;align-items:center;justify-content:center;gap:6px}.product-buy-btn{background:#ff6500!important;border-color:#ff6500!important;color:#fff!important}.product-cart-btn{background:#eef6ff!important;border:1px solid #cfe3ff!important;color:#0d6efd!important;display:flex!important}.product-cart-btn:hover{background:#e1efff!important;color:#095ec8!important}
@media(max-width:767.98px){.container.mt-4>.row{row-gap:12px}.product-list-item.product-card{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;align-items:start!important;text-align:left!important;padding:11px!important;gap:10px!important}.product-list-item .product-image-container{width:84px!important;height:84px!important;min-width:84px!important;margin:0!important;grid-column:1;grid-row:1}.product-list-item .product-details{grid-column:2;grid-row:1;align-items:flex-start!important;text-align:left!important;width:auto!important;min-width:0}.product-list-item .product-name a{font-size:13px!important}.product-list-item .product-description{font-size:10.5px!important;margin-top:3px!important}.product-list-item .product-price{font-size:14px!important;margin:4px 0!important}.product-bonus-pill{font-size:9px;padding:3px 7px}.product-list-item .quantity-control{grid-column:1/3;grid-row:2;width:100%!important;margin:0!important;justify-content:center!important}.product-actions{grid-column:1/3;grid-row:3;display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;min-width:0!important;margin:0!important}.product-actions .btn{font-size:10.5px!important;padding:9px 7px!important}.collapse#filterCollapse{margin-bottom:12px}.filter-section{padding:12px!important}.breadcrumb{font-size:11px!important}.swal2-popup{right:10px!important;left:10px!important;max-width:none!important}}


/* V4.6 product interaction polish */
.product-image-link{display:block;border-radius:10px;overflow:hidden}.product-image-link img{transition:transform .2s ease}.product-image-link:hover img{transform:scale(1.025)}
.product-buy-btn:disabled,.product-cart-btn:disabled,.quantity-btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.18)}
@media(max-width:767px){.product-list-item .product-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}.product-list-item .product-actions .btn{width:100%!important;margin:0!important;white-space:nowrap;font-size:11px!important;padding:9px 7px!important}}
