/* Alottech Product Recommendations — clean retail shelf */

.product-info.col-fit,
.entry-summary {
    min-width: 0 !important;
    max-width: 100% !important;
}

.alottech-rec-section {
    --alottech-rec-accent: #e11d35;
    --alottech-rec-accent-dark: #be1230;
    --alottech-rec-ink: #17191f;
    --alottech-rec-muted: #69707d;
    --alottech-rec-line: #e8e9ed;
    --alottech-rec-soft: #f7f7f8;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 28px 0 20px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid var(--alottech-rec-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 32px rgba(24, 28, 38, 0.06) !important;
    color: var(--alottech-rec-ink) !important;
}

.alottech-rec-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 20px 14px !important;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%) !important;
    border-bottom: 1px solid var(--alottech-rec-line) !important;
    color: var(--alottech-rec-ink) !important;
}

.alottech-rec-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 12px !important;
    color: var(--alottech-rec-accent) !important;
    background: #fff0f2 !important;
}

.alottech-rec-icon-svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
}

.alottech-rec-heading {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.alottech-rec-kicker {
    color: var(--alottech-rec-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

.alottech-rec-title {
    color: var(--alottech-rec-ink) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.alottech-rec-products-wrapper {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 6px !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #cfd2d8 transparent;
    -webkit-overflow-scrolling: touch;
}

.alottech-rec-products-wrapper::-webkit-scrollbar {
    height: 5px;
}

.alottech-rec-products-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.alottech-rec-products-wrapper::-webkit-scrollbar-thumb {
    background: #cfd2d8;
    border-radius: 999px;
}

.alottech-rec-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: max-content !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 20px 16px !important;
}

.alottech-rec-product-card {
    display: flex !important;
    flex: 0 0 176px !important;
    width: 176px !important;
    min-width: 176px !important;
    flex-direction: column !important;
    scroll-snap-align: start;
    overflow: hidden !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid var(--alottech-rec-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(24, 28, 38, 0.035) !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.alottech-rec-product-card:hover {
    transform: translateY(-3px) !important;
    border-color: #d6d8de !important;
    box-shadow: 0 12px 24px rgba(24, 28, 38, 0.10) !important;
}

.alottech-rec-product-link {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

.alottech-rec-product-link:focus-visible,
.alottech-rec-add-to-cart:focus-visible {
    outline: 3px solid rgba(225, 29, 53, .28) !important;
    outline-offset: -3px !important;
}

.alottech-rec-product-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: var(--alottech-rec-soft) !important;
}

.alottech-rec-product-image::after {
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    content: '';
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .025));
}

.alottech-rec-product-image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    transition: transform .35s ease !important;
}

.alottech-rec-product-card:hover .alottech-rec-product-image img {
    transform: scale(1.035) !important;
}

.alottech-rec-product-info {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 12px 10px !important;
}

.alottech-rec-product-name {
    display: -webkit-box !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #2a2e36 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.58 !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.alottech-rec-product-price {
    display: flex !important;
    min-height: 48px !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    color: var(--alottech-rec-accent) !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
}

.alottech-rec-product-price .woocommerce-Price-amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.alottech-rec-product-price del {
    order: -1;
    color: #a1a5ae !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

.alottech-rec-product-price del .woocommerce-Price-amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.alottech-rec-product-price ins {
    color: var(--alottech-rec-accent) !important;
    text-decoration: none !important;
}

.alottech-rec-product-actions {
    margin-top: auto !important;
    padding: 0 12px 12px !important;
}

.alottech-rec-section .alottech-rec-add-to-cart {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    float: none !important;
    border: 1px solid var(--alottech-rec-accent) !important;
    border-radius: 10px !important;
    appearance: none !important;
    background: var(--alottech-rec-accent) !important;
    box-shadow: 0 4px 10px rgba(225, 29, 53, .16) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.alottech-rec-button-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
}

.alottech-rec-section .alottech-rec-add-to-cart:hover {
    border-color: var(--alottech-rec-accent-dark) !important;
    background: var(--alottech-rec-accent-dark) !important;
    box-shadow: 0 6px 14px rgba(190, 18, 48, .22) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.alottech-rec-section .alottech-rec-add-to-cart:active {
    transform: translateY(1px) !important;
}

.alottech-rec-section .alottech-rec-add-to-cart.added {
    border-color: #15803d !important;
    background: #15803d !important;
    box-shadow: 0 4px 10px rgba(21, 128, 61, .18) !important;
}

.alottech-rec-section .alottech-rec-add-to-cart.loading {
    border-color: var(--alottech-rec-accent-dark) !important;
    background: var(--alottech-rec-accent-dark) !important;
    color: transparent !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

@media (max-width: 600px) {
    .alottech-rec-section {
        margin: 20px 0 16px !important;
        border-radius: 14px !important;
    }

    .alottech-rec-header {
        gap: 10px !important;
        padding: 14px !important;
    }

    .alottech-rec-icon {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
        border-radius: 10px !important;
    }

    .alottech-rec-kicker {
        font-size: 10px !important;
    }

    .alottech-rec-title {
        font-size: 15px !important;
    }

    .alottech-rec-products {
        gap: 10px !important;
        padding: 14px !important;
    }

    .alottech-rec-product-card {
        flex: 0 0 156px !important;
        width: 156px !important;
        min-width: 156px !important;
        border-radius: 12px !important;
    }

    .alottech-rec-product-info {
        padding: 10px 10px 8px !important;
    }

    .alottech-rec-product-name {
        min-height: 58px !important;
        max-height: 58px !important;
        font-size: 12px !important;
        line-height: 1.58 !important;
        -webkit-line-clamp: 3 !important;
    }

    .alottech-rec-product-price {
        min-height: 44px !important;
        font-size: 21px !important;
    }

    .alottech-rec-product-actions {
        padding: 0 10px 10px !important;
    }

    .alottech-rec-section .alottech-rec-add-to-cart {
        min-height: 40px !important;
        padding: 8px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alottech-rec-product-card,
    .alottech-rec-product-image img,
    .alottech-rec-add-to-cart {
        transition: none !important;
    }

    .alottech-rec-product-card:hover,
    .alottech-rec-product-card:hover .alottech-rec-product-image img,
    .alottech-rec-add-to-cart:active {
        transform: none !important;
    }
}
