* {
    border-radius: 0 !important;
}

.select2-selection{
    height: 36px!important;
    padding-top: 5px;
}

nav.navbar {
    border-radius: 0 !important;
}

.modal-full-width {
    margin: 0 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.form-control-same{
    height: 37px!important;
}

.badge{
    max-height: 30px!important;
}

/*button on article page*/
button.btn.btn-primary.btn-lg.btn-block {
    height: 52.56px;
    width: 100%;
}

.tag-article-search {
    cursor: pointer;
}

/* Product Actions Card Styling */
.product-actions-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.product-actions-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-display.text-muted {
    opacity: 0.7;
}

.price-display .text-primary {
    color: #0d6efd !important;
}

/* Stock badge styling */
.stock-info .badge {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Form styling */
.add-to-cart-section input[type="number"] {
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.add-to-cart-section input[type="number"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button styling */
.compare-section .btn-outline-secondary {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.compare-section .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Compact Product Item Styling */
.product-info-compact h5 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.product-info-compact .small {
    font-size: 0.75rem;
    line-height: 1.3;
}

.criteria-inline {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.criteria-inline small {
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Product image styling - full size images */
.product-actions-card .product-image {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.price-info {
    display: block;
    margin-top: 0.5rem;
}

.price-info .row {
    margin: 0 -0.5rem;
}

.price-info .row > [class*="col-"] {
    padding: 0 0.5rem;
}

.price-info .net-price,
.price-info .gross-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.price-info .net-price {
    margin-bottom: 0;
}

.price-info .fw-bold {
    font-size: 1.1rem;
    line-height: 1.2;
}

.price-info small {
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.remaining-criteria{
    display: flex;
}

/* General product image styling for images outside actions card */
img[alt="Product image"] {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

/* Brand logo styling - full size */
.img-thumbnail {
    border: 1px solid #dee2e6;
    padding: 0.25rem;
    background: white;
}

/* Responsive adjustments for new compact design */
@media (max-width: 768px) {
    .product-info-compact h5 {
        font-size: 1rem;
    }

    .product-info-compact .small {
        font-size: 0.7rem;
    }

    .criteria-inline small {
        font-size: 0.65rem;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 22%;
    }

    .col-lg-9 {
        flex: 0 0 auto;
        width: 78%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 22%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 78%;
    }

    /* Product image adjustments for tablets */
    .product-actions-card .product-image {
        max-height: 150px;
    }

    img[alt="Product image"] {
        max-height: 120px;
    }
}

@media (max-width: 576px) {
    .list-group-item {
        padding: 0.5rem;
    }

    .product-actions-card {
        padding: 1rem;
    }

    .product-info-compact h5 {
        font-size: 0.9rem;
    }

    .price-display {
        font-size: 0.9rem;
    }

    /* Stack layout on very small screens */
    .col-lg-3,
    .col-lg-9 {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Smaller images on mobile */
    .product-actions-card .product-image {
        max-height: 120px;
    }

    img[alt="Product image"] {
        max-height: 100px;
    }

    .img-thumbnail {
        max-height: 60px;
        max-width: 80px;
    }
}



.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.5rem;
    }

    table.responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
    }
}

.autocomplete-results {
    position: absolute;
    border: 1px solid #ced4da;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}
.autocomplete-item:hover {
    background-color: #e9ecef;
}