/* ========================================
   Cross-sell Accessory Cards
   Reusable component for basket & product pages
   ======================================== */

.cross-sell-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.cross-sell-product-section {
    border-top: none;
}

.cross-sell-title {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cross-sell-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual accessory card */
.accessory-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    width: calc(50% - 0.5rem);
    min-width: 0;
    max-height: 110px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.accessory-card:hover {
    border-color: #f87b1e;
}

.accessory-card-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.accessory-card-image {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.accessory-card-image img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
}

.accessory-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.accessory-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.accessory-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f87b1e;
}

.accessory-card-add {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    background: #f87b1e;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.accessory-card-add:hover {
    background: #e06a0c;
}

.accessory-card-add:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive: stack to single column on narrow screens */
@media (max-width: 1024px) {
    .cross-sell-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .accessory-card {
        width: 100%;
    }
}
