/**
 * @version     1.0.1
 * @package     com_alfa
 * @copyright   2024 Easylogic CO LP
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Agamemnon Fakas <info@easylogic.gr>
 */

.item-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* PRODUCT AMOUNT */

.add-to-cart-wrapper {
    display: flex;
    gap: 8px;
}

.item-quantity-controls-wrapper {
    display: flex;
    margin: 4px 0;
}

.item-quantity {
    width: 50px;
    text-align: center;
    border: 1px solid lightgray;
    appearance: textfield;
}

.item-quantity::-webkit-outer-spin-button,
.item-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-quantity-controls{
    border: none;
    width: 30px;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ADD TO CART BUTTON */

.add-to-cart-btn {
    border: none;
    padding: 10px;
    background-color: #333;
    color: white;
}

/* PRODUCT IMAGES SECTION */
.main-images {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.main-images .item-image {
    display: flex;
    align-items: center;

    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.main-images .item-image img {
    display: block;
    width: 100%;
    height: auto;
}

.thumbnail-images {
    gap: 6px;
}

.thumbnail-images .item-image{
    height: 85px;
    width: 85px;
}

.thumbnail-images .active {
    border: 2px solid blue;
}

/* Price Breakdown*/

.price-breakdown-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.price-breakdown-toggle::-webkit-details-marker {
    display: none;
}

.price-breakdown-toggle::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.2s;
}

.price-breakdown[open] .price-breakdown-toggle::before {
    transform: rotate(90deg);
}

.price-breakdown-content {
    padding: 0.5rem;
}

.price-breakdown-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-step {
    display: flex;
}

.breakdown-description {
    display: flex;
    flex: 1;
}

.breakdown-amount {
    white-space: nowrap;
    display: flex;
    gap: 0.25rem;
}

/* Highlight different operations */
.breakdown-step[data-operation="subtract"] .breakdown-amount {
    color: #388e3c;
}

/* MANUFACTURERS CATEGORIES */
.item-list-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.item-list-entry {
    border: 1px solid lightgrey;
    border-radius: 6px;
    padding: 1.25rem;
    background-color: #fff;
    overflow-x: auto;
    scrollbar-width: thin;
}

.item-list-entry a {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none !important;
    color: inherit;
}

.item-list-entry-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.item-list-entry-image {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.item-list-entry-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* MANUFACTURERS CATEGORIES END */

/* PAYMENT METHOD */
.item-payment-method-inner {
    display: flex;
    flex-direction: column;
}
/* PAYMENT METHOD END */