/* DS RECO — "Kupowane razem" (panel po dodaniu do koszyka + blok w koszyku) */

.ds-reco-panel {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998; /* pod DSBC slide-out (9999), nad trescia */
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5ded4;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(60, 42, 20, .18);
    padding: 14px 14px 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}
.ds-reco-panel.is-open { opacity: 1; transform: translateY(0); }

.ds-reco-panel-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 26px 10px 0;
    color: #3c2a14;
}
.ds-reco-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #9b8a72;
    padding: 4px;
}
.ds-reco-close:hover { color: #3c2a14; }

.ds-reco-panel .ds-reco-grid { display: flex; flex-direction: column; gap: 10px; }

.ds-reco-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
        "img name name"
        "img price add";
    gap: 2px 10px;
    align-items: center;
}
.ds-reco-img { grid-area: img; }
.ds-reco-img img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.ds-reco-name {
    grid-area: name;
    font-size: 13px;
    line-height: 1.25;
    color: #3c2a14;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-reco-name:hover { text-decoration: underline; }
.ds-reco-price { grid-area: price; font-size: 13px; font-weight: 600; }
.ds-reco-price del { opacity: .55; font-weight: 400; }
.ds-reco-card .ds-reco-add {
    grid-area: add;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    line-height: 1.2;
    white-space: nowrap;
    background: #3c2a14;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background .15s ease;
}
.ds-reco-card .ds-reco-add:hover { background: #5a4020; text-decoration: none; }

/* Blok na stronie koszyka */
.ds-reco-cart { margin: 28px 0 8px; }
.ds-reco-cart .ds-reco-title { font-size: 18px; margin: 0 0 14px; }
.ds-reco-cart .ds-reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.ds-reco-cart .ds-reco-card {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
        "img name"
        "img price"
        "img add";
    border: 1px solid #eee6da;
    border-radius: 10px;
    padding: 10px;
}
.ds-reco-cart .ds-reco-img img { width: 72px; height: 72px; }

@media (max-width: 600px) {
    .ds-reco-panel { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 10px 12px; }
    .ds-reco-panel .ds-reco-grid { gap: 8px; }
    .ds-reco-panel .ds-reco-card { grid-template-columns: 44px 1fr auto; gap: 2px 8px; }
    .ds-reco-panel .ds-reco-img img { width: 44px; height: 44px; }
    .ds-reco-panel .ds-reco-name { font-size: 12px; }
    .ds-reco-panel .ds-reco-panel-title { font-size: 13px; margin-bottom: 8px; }
    .ds-reco-panel .ds-reco-card .ds-reco-add { font-size: 11px; padding: 6px 9px; }
}
