/* ── Collection / Promotion card in product details ─── */
.pdcl-wrap {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}

/* ── Main card ─────────────────────────────────────── */
.pdcl-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #8a2be2 40%, #ffffff 70%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.18);
    position: relative;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.pdcl-card:hover {
    transform: scale(1.01);
}

/* ── Header row ────────────────────────────────────── */
.pdcl-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    z-index: 2;
}

.pdcl-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.pdcl-promo-badge {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdcl-col-name {
    color: #8a2be2;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pdcl-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(128, 128, 128, 0.224);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}  

.pdcl-fav-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.262);
}

.pdcl-fav-btn svg {
    transition: transform 0.25s ease;
}

.pdcl-fav-btn:active svg {
    transform: scale(0.75);
}

.pdcl-fav-btn.pdcl-fav-active {
    background: rgba(220, 38, 38, 0.12);
}

.pdcl-fav-btn.pdcl-fav-active:hover {
    background: rgba(220, 38, 38, 0.22);
}

/* ── Products grid row ─────────────────────────────── */
.pdcl-products-row {
    width: 100%;
    height: 50%;
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    z-index: 2;
    flex: 1;
    min-height: 0;
}

.pdcl-products-row > * {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

/* ── Bottom float (pricing) ────────────────────────── */
.pdcl-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(180deg, #8a2be2 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 6px 10px;
    box-sizing: border-box;
    z-index: 2;
}

.pdcl-delivery-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    color: #16a34a;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #16a34a;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    box-sizing: border-box;
}

.pdcl-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.pdcl-price--selling {
    color: blueviolet;
    text-decoration: line-through;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 6px;
    border-radius: 6px;
}

.pdcl-price--base {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
}

.pdcl-price--base-through {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: line-through;
}

.pdcl-price--promo {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 700;
}

.pdcl-price--set {
    color: #414141b3;
    font-size: 0.72rem;
    font-weight: 400;
}

/* ── Right float (variant badges) ──────────────────── */
.pdcl-variants-col {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 3;
}

.pdcl-variant-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.pdcl-variant-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: blueviolet;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid blueviolet;
}

/* ── Responsive product count ──────────────────────── */
.pdcl-products-row > :nth-child(n+6) {
    display: none;
}

@media (max-width: 768px) {
    .pdcl-products-row > :nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pdcl-products-row > :nth-child(n+4) {
        display: none;
    }
}

/* ── Promotion card variant ────────────────────────── */
.pdcl-card--promo {
    background: linear-gradient(180deg, #ffffff 0%, #ef4444 40%, #ffffff 70%, #f97316 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
}

.pdcl-card--promo .pdcl-col-name {
    color: #dc2626;
}

.pdcl-card--promo .pdcl-bottom {
    background: linear-gradient(180deg, #ef4444 0%, #ffffff 50%, #ef4444 140%);
}

.pdcl-promo-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 1;
    border-radius: 12px;
    pointer-events: none;
}

.pdcl-promo-slogan {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
