/* #region Quote Cart */
#topbar .quote-cart-link {
    display: inline-block;
    margin-right: 10px;
}

    #topbar .quote-cart-link a {
        color: #555;
        font-weight: bold;
    }

        #topbar .quote-cart-link a:hover {
            color: #0c2e8a;
        }

    #topbar .quote-cart-link i {
        color: #29852c;
        padding: 4px;
    }

.quote-cart-count {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #29852c;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

    .quote-cart-count.empty {
        background: #e9e9e9;
        color: #555;
    }

@media (max-width: 620px) {
    #topbar .quote-cart-link-text {
        display: none;
    }
}

aside .quote-cart-add {
    margin-bottom: 40px;
}

.quote-cart-add .quote-cart-added {
    display: none;
    margin-bottom: 30px;
    color: #29852c;
}

.quote-cart-form .quote-cart-empty,
.quote-cart-form .quote-cart-details {
    display: none;
}

.quote-cart-form .quote-cart-empty {
    padding: 10px 0 20px 0;
    color: #666;
}

    .quote-cart-form .quote-cart-empty .btn-link {
        display: inline-block;
        margin-bottom: 0;
    }

.quote-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    background: #fafafa;
}

    .quote-cart-item .quote-cart-item-img {
        flex: 0 0 56px;
    }

        .quote-cart-item .quote-cart-item-img img {
            width: 56px;
            height: 56px;
            object-fit: cover;
            border-radius: 4px;
        }

    .quote-cart-item .quote-cart-item-content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .quote-cart-item .quote-cart-item-title {
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
    }

        .quote-cart-item .quote-cart-item-title a {
            color: #333;
        }

            .quote-cart-item .quote-cart-item-title a:hover {
                color: #29852c;
            }

    .quote-cart-item .quote-cart-item-latin {
        margin-left: 4px;
        font-size: 12px;
    }

    .quote-cart-item .quote-cart-item-size {
        display: block;
        font-weight: normal;
        font-size: 12px;
        color: #29852c;
    }

    .quote-cart-item .quote-cart-item-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .quote-cart-item .quote-cart-item-remove {
        border: 0;
        background: none;
        color: #999;
        font-size: 18px;
        cursor: pointer;
    }

        .quote-cart-item .quote-cart-item-remove:hover {
            color: #c0392b;
        }

@media (max-width: 576px) {
    .quote-cart-item {
        flex-wrap: wrap;
    }

        .quote-cart-item .quote-cart-item-content {
            flex-basis: calc(100% - 70px);
        }

        .quote-cart-item .quote-cart-item-actions {
            flex: 1 1 100%;
            justify-content: flex-end;
        }
}
/* #endregion */


/* #region Catalog Search */
/* NOTE: The spacing follows the theme's section rhythm (main > section has 50px bottom padding, .section-header 30px bottom margin). */
.catalog-search {
    margin-top: 0;
    margin-bottom: 50px;
    padding-top: 0;
    padding-bottom: 0;
}

/* The page has no text, so the search bar follows the title directly (.section-header keeps its 30px). */
main > section.entry-section-compact {
    padding-bottom: 0;
}

/* The categories tiles at the end of the product page touch the footer without the theme's section padding. */
main > section.catalog-preview-section:last-child {
    padding-bottom: 0;
}

.catalog-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
}

.catalog-search-input {
    position: relative;
    flex: 1 1 320px;
}

    .catalog-search-input i {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #999;
    }

    .catalog-search-input input {
        padding: 10px 14px 10px 38px;
        border-radius: 4px;
        background: #fafafa;
        box-shadow: none;
    }

        .catalog-search-input input:focus {
            border-color: #29852c;
            box-shadow: none;
            background: #fff;
        }

.catalog-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-filter {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    background: #fff;
    font-size: 14px;
    transition: 0.3s;
}

    .catalog-filter:hover {
        border-color: #29852c;
        color: #29852c;
        text-decoration: none;
    }

    .catalog-filter.active {
        background: #29852c;
        border-color: #29852c;
        color: #fff;
    }
/* #endregion */


/* #region Catalog Item Preview (additions to the original .catalog-list) */
.catalog-card-latin,
.quote-cart-item-latin {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid #cfe3cf;
    border-radius: 3px;
    background: #f1f8f1;
    color: #29852c;
    font-size: 13px;
    font-style: italic;
    font-weight: normal;
    vertical-align: middle;
}

.catalog-list .catalog-card-latin {
    margin-bottom: 10px;
}

.catalog-card-latin i,
.quote-cart-item-latin i,
.quote-cart-item-size i {
    margin-right: 3px;
    font-style: normal;
}

.catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

    .catalog-card-actions .catalog-card-size {
        width: auto;
        max-width: 100%;
        font-size: 14px;
    }

.catalog-empty {
    padding: 40px 20px;
    text-align: center;
}

    .catalog-empty .btn-link {
        display: inline-block;
        margin-bottom: 0;
    }
/* #endregion */


/* #region Quote Cart Stepper & Buttons */
.quote-cart-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

    .quote-cart-stepper button {
        width: 32px;
        border: 0;
        background: #f5f5f5;
        color: #555;
        font-size: 16px;
        cursor: pointer;
    }

        .quote-cart-stepper button:hover {
            background: #29852c;
            color: #fff;
        }

    .quote-cart-stepper input,
    .form .quote-cart-stepper input {
        width: 56px;
        padding: 6px 2px;
        border: 0;
        text-align: center;
        font-weight: 600;
        -moz-appearance: textfield;
    }

        .quote-cart-stepper input::-webkit-outer-spin-button,
        .quote-cart-stepper input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.quote-cart-add .quote-cart-stepper {
    width: 100%;
    height: 100%;
}

    .quote-cart-add .quote-cart-stepper input {
        flex: 1 1 auto;
        width: 0;
        min-width: 40px;
    }

.catalog-card-actions .quote-cart-stepper {
    width: auto;
    height: auto;
}

    .catalog-card-actions .quote-cart-stepper input {
        flex: 0 0 56px;
    }

.quote-cart-add-button {
    border: 0;
    border-radius: 4px;
    padding: 9px 18px;
    background: #29852c;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

    .quote-cart-add-button:hover {
        background: #0c2e8a;
    }
/* #endregion */


/* #region Quote Cart Drawer */
body.quote-cart-drawer-open {
    overflow: hidden;
}

.quote-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    visibility: hidden;
}

    .quote-cart-drawer.open {
        visibility: visible;
    }

.quote-cart-drawer-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
}

.quote-cart-drawer.open .quote-cart-drawer-overlay {
    opacity: 1;
}

.quote-cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    /* NOTE: The theme adds padding to every <aside>. */
    padding: 0;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s;
    outline: none;
}

.quote-cart-drawer.open .quote-cart-drawer-panel {
    transform: translateX(0);
}

.quote-cart-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 22px;
    background: #29852c;
    color: #fff;
}

    .quote-cart-drawer-header h2 {
        margin: 0;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
    }

    .quote-cart-drawer-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        opacity: 0.9;
    }

.quote-cart-drawer-close {
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.quote-cart-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 22px;
}
/* #endregion */


/* #region Quote Cart Form */
.quote-cart-form .quote-cart-section {
    margin-bottom: 25px;
}

    .quote-cart-form .quote-cart-section + .quote-cart-section {
        padding-top: 20px;
        border-top: 1px solid #e9e9e9;
    }

.quote-cart-form .quote-cart-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .quote-cart-form .quote-cart-section-header h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #333;
    }

.quote-cart-form .quote-cart-clear {
    display: none;
    border: 0;
    background: none;
    color: #c0392b;
    font-size: 13px;
    cursor: pointer;
}

    .quote-cart-form .quote-cart-clear:hover {
        text-decoration: underline;
    }

.quote-cart-form .quote-cart-loading {
    display: none;
    padding: 20px;
    text-align: center;
    color: #29852c;
    font-size: 24px;
}

.quote-cart-form label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

    .quote-cart-form label.required::after {
        content: " *";
        color: #c0392b;
    }

.quote-cart-form .form-check-label {
    font-weight: normal;
}

.quote-cart-form .quote-cart-submit {
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
}

.quote-cart-page .quote-cart-form {
    max-width: 900px;
}
/* #endregion */


/* #region Catalog Specifications */
.catalog-specifications {
    margin-top: 30px;
}

    .catalog-specifications h3 {
        font-size: 20px;
        color: #29852c;
        margin-bottom: 12px;
    }

    .catalog-specifications th[scope="row"] {
        width: 40%;
        font-weight: 600;
        color: #555;
    }

    .catalog-specifications thead th {
        border-top: 0;
        color: #555;
        font-size: 14px;
        white-space: nowrap;
    }

    .catalog-specifications h3 i,
    .catalog-specifications th i {
        color: #29852c;
    }

    .catalog-specifications th i {
        margin-right: 4px;
    }

    .catalog-specifications .availability-instock {
        color: #29852c;
        font-weight: 600;
    }

    .catalog-specifications .availability-limitedstock {
        color: #e67e22;
        font-weight: 600;
    }

    .catalog-specifications .availability-onrequest {
        color: #0c2e8a;
    }

    .catalog-specifications .availability-outofstock {
        color: #999;
    }

    .catalog-specifications .catalog-care {
        white-space: pre-line;
    }
/* #endregion */
