/* admin/styles.css */

/* --- 1. PRODUCT DECK (The 3 Horizontal Cards) --- */
.product-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.product-card-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.product-card-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    position: relative;
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.card-image-container img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    height: 2.8em; /* Limit to 2 lines */
    overflow: hidden;
}

.card-price-row {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.price-sale { color: #dc2626; font-weight: 700; }
.price-old { text-decoration: line-through; color: #94a3b8; font-size: 0.9em; margin-left: 8px; }
.price-normal { color: #0f172a; font-weight: 700; }

.card-specs-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.card-reasoning {
    font-size: 0.9rem;
    color: #334155;
    background: #fffbeb; /* Light yellow note */
    border: 1px solid #fcd34d;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.card-btn {
    display: block;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #1d4ed8;
}

/* --- 2. ACTION BUTTONS INSIDE CHAT (The Flash Button) --- */
.chat-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    text-decoration: none; /* Just in case */
}

.chat-action-btn:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat-action-btn:active {
    transform: translateY(0);
}