/* =============================================================
   Too Good To Go – Product Card Styles
   Matches the site's red/dark theme (--primary: #e63946 style)
   ============================================================= */

/* ── Heading with logo ─────────────────────────────────────── */
.tgtg-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
}

.tgtg-logo-badge {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Card wrapper ──────────────────────────────────────────── */
.tgtg-card-wrapper {
    width: 100%;
}

.tgtg-card {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #fff8f0 0%, #fff4eb 100%);
    border: 2px solid #ff6b35;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    max-width: 720px;
}

.tgtg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25);
}

/* ── Card body (left) ──────────────────────────────────────── */
.tgtg-card-body {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Top row: badge + time ─────────────────────────────────── */
.tgtg-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tgtg-badge-label {
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tgtg-time-badge {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tgtg-time-badge i {
    color: #ff6b35;
}

/* ── Product name ─────────────────────────────────────────── */
.tgtg-product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ── Description ─────────────────────────────────────────── */
.tgtg-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ── Price row ────────────────────────────────────────────── */
.tgtg-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tgtg-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff6b35;
}

.tgtg-slots {
    font-size: 13px;
    font-weight: 600;
    color: #28a745;
    background: #e8f7ed;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tgtg-slots.tgtg-urgent {
    color: #c0392b;
    background: #fdecea;
    animation: tgtg-pulse 1.4s infinite;
}

@keyframes tgtg-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Action row: qty + add-btn ────────────────────────────── */
.tgtg-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Qty control */
.tgtg-qty-control {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ff6b35;
    border-radius: 30px;
    overflow: hidden;
}

.tgtg-qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff6b35;
    font-size: 14px;
    transition: background 0.15s;
}

.tgtg-qty-btn:hover {
    background: #fff3ed;
}

.tgtg-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

/* Add button */
.tgtg-add-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.tgtg-add-btn:hover {
    opacity: 0.92;
    transform: scale(1.03);
}

.tgtg-add-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Decorative right panel ───────────────────────────────── */
.tgtg-card-visual {
    width: 120px;
    background: linear-gradient(160deg, #ff6b35 0%, #e63946 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.tgtg-bag-icon {
    font-size: 2.8rem;
    color: rgba(255,255,255,0.85);
    line-height: 1;
}

.tgtg-eco-badge {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
    .tgtg-card {
        flex-direction: column;
    }

    .tgtg-card-visual {
        width: 100%;
        flex-direction: row;
        padding: 14px 20px;
        height: 70px;
    }

    .tgtg-bag-icon {
        font-size: 2rem;
    }

    .tgtg-card-body {
        padding: 16px;
    }

    .tgtg-add-btn {
        width: 100%;
        justify-content: center;
    }

    .tgtg-action-row {
        flex-direction: column;
        align-items: flex-start;
    }
}