/* Dedicated list view layout for product overview pages */

.products-display {
    margin-bottom: 40px;
}

.products-display__pane {
    min-width: 0;
}

.products-display[data-current-view="grid"] .products-display__pane--list,
.products-display[data-current-view="list"] .products-display__pane--grid {
    display: none;
}

.product-list-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.product-list-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 156px) minmax(0, 1fr) minmax(220px, 252px);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 241, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 10px 24px rgba(15, 23, 42, 0.06);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
    overflow: hidden;
}

.product-list-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(254, 175, 57, 0) 0%, rgba(254, 175, 57, 0.18) 50%, rgba(254, 175, 57, 0) 100%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.product-list-item:hover {
    transform: translateY(-4px);
    border-color: rgba(254, 175, 57, 0.36);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 18px 38px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(254, 175, 57, 0.14);
}

.product-list-item:hover::after {
    opacity: 1;
}

.product-list-item__image-column {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.product-list-item__image-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 14px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(254, 175, 57, 0.18), transparent 52%),
        linear-gradient(180deg, rgba(250, 248, 243, 1) 0%, rgba(244, 239, 230, 1) 100%);
}

.product-list-item__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-list-item__image {
    width: 100%;
    max-width: 132px;
    height: auto;
    max-height: 132px;
    object-fit: contain;
    transition: transform 220ms ease;
}

.product-list-item:hover .product-list-item__image {
    transform: scale(1.045);
}

.product-list-item__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-list-item__badge--sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.18);
}

.product-list-item__badge--ghost {
    top: 42px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
}

.product-list-item__content,
.product-list-item__aside {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.product-list-item__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.product-list-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-list-item__brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7b8392;
}

.product-list-item__favorite .btn-favorite {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.product-list-item__favorite--overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    pointer-events: auto;
}

.product-list-item__title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
    color: #18202c;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-list-item__title a {
    color: inherit;
    text-decoration: none;
}

.product-list-item__title a:hover {
    color: #d28314;
}

.product-list-item__meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-list-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-list-item__short-info,
.product-list-item__description,
.product-list-item__variant-hint,
.product-list-item__vat,
.product-list-item__meta-note {
    margin: 0;
    color: #5b6371;
}

.product-list-item__short-info {
    font-size: 0.88rem;
    font-weight: 600;
}

.product-list-item__description {
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.product-list-item__variant-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(254, 175, 57, 0.12);
    color: #9a630d;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-property-badges--list {
    margin: 0;
}

.product-variant-property-hint--list {
    margin: 0;
}

.product-list-item__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-left: 18px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.product-list-item__price-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-list-item__price-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-list-item__price-original {
    color: #9097a2;
    font-size: 0.88rem;
    text-decoration: line-through;
}

.product-list-item__price {
    color: #15803d;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.product-list-item__price--sale {
    color: #dc2626;
}

.product-list-item__vat,
.product-list-item__meta-note {
    font-size: 0.79rem;
    line-height: 1.5;
}

.product-list-item__purchase-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-list-item__actions {
    display: flex;
    gap: 10px;
}

.product-list-item__cta {
    min-width: 0;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 700;
}

.product-list-item .qty-selector-mock {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.product-list-item .qty-btn {
    width: 56px;
    height: 100%;
    border: none;
    background: #F9FAFB;
    color: #4B5563;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-item .qty-input {
    width: 124px;
    height: 100%;
    border: none;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    background: white;
}

.product-list-item .qty-btn,
.product-list-item .qty-input,
.product-list-item__cta,
.product-list-item__favorite .btn-favorite {
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.product-list-item .qty-btn:hover,
.product-list-item__favorite .btn-favorite:hover,
.product-list-item__cta:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-favorite.is-active,
.product-list-item__favorite .btn-favorite.is-active {
    background: transparent;
    border-color: rgba(254, 175, 57, 0.3);
}

.btn-favorite.is-bouncing {
    animation: product-favorite-pop 240ms ease;
}

.rating-stars__label {
    margin-left: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
}

@keyframes product-favorite-pop {
    0% { transform: scale(0.92); }
    55% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 1199px) {
    .product-list-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .product-list-item {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .product-list-item__aside {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .product-list-item__purchase-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-list-item .qty-selector-mock {
        max-width: 170px;
    }
}

@media (max-width: 767px) {
    .product-list-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-list-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .product-list-item__image-shell {
        min-height: 132px;
        padding: 10px;
    }

    .product-list-item__image {
        max-width: 96px;
        max-height: 96px;
    }

    .product-list-item__head {
        gap: 8px;
    }

    .product-list-item__brand {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .product-list-item__favorite .btn-favorite {
        width: 34px;
        height: 34px;
    }

    .product-list-item__title {
        font-size: 0.94rem;
        -webkit-line-clamp: 3;
    }

    .product-list-item__meta-row {
        gap: 8px;
    }

    .product-list-item__stock {
        font-size: 0.8rem;
    }

    .product-list-item__short-info,
    .product-list-item__description,
    .product-list-item__variant-hint {
        display: none;
    }

    .product-variant-property-hint--list {
        display: none;
    }

    .product-list-item__aside {
        gap: 10px;
        padding-top: 10px;
    }

    .product-list-item__price {
        font-size: 1.18rem;
    }

    .product-list-item__vat,
    .product-list-item__meta-note {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .product-list-item__purchase-panel,
    .product-list-item__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .product-list-item .qty-selector-mock {
        max-width: none;
        width: 100%;
    }

    .product-list-item__cta,
    .product-list-item .qty-btn,
    .product-list-item .qty-input {
        min-height: 42px;
    }
}

@media (max-width: 479px) {
    .product-list-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-list-item {
        padding: 10px;
    }

    .product-list-item__image-shell {
        min-height: 118px;
    }

    .product-list-item__title {
        font-size: 0.88rem;
    }
}