/* quote/components/product-feed/product-feed-view.css */
/* VERSION 10.1 - Instagram-like media height, title above description, smaller description font. */

:root {
    --pf-bg: #ffffff;
    --pf-border: #f0f2f5; /* Lighter border color */
    --pf-text-primary: #3d0649; /* Dark purple for titles */
    --pf-text-secondary: #4a174b; /* Lighter purple for meta text */
    --pf-text-tertiary: #9ca3af;
    --pf-hover-bg: #f9fafb;
    --pf-icon-color: #3d0649; /* Dark purple for icons */
    --pf-icon-hover-color: #ffc107; /* Accent yellow for icon hover */

    /* New: Instagram-like thumbnail sizing */
    --pf-thumb-size: 84px;
    --pf-thumb-radius: 10px;
}

.product-feed-view {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.product-list {
    display: flex;
    flex-direction: column;
}

.product-list-item {
    display: flex;
    align-items: flex-start; /* allow content to grow and keep thumb aligned like IG */
    justify-content: space-between;
    gap: 14px;
    padding: 14px 8px;
    text-decoration: none;
    border-bottom: 1px solid var(--pf-border);
    transition: background-color 0.2s ease;
}

.product-list-item:last-child {
    border-bottom: none;
}

.product-list-item:hover {
    background-color: transparent;
}

.product-list-item:hover .list-item-title {
    opacity: 0.85;
}

.list-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px; /* tighter */
    overflow: hidden;
    flex-grow: 1;
    min-width: 0; /* important for ellipsis/wrapping */
}

.list-item-timestamp {
    font-size: 0.7rem; /* 11.2px */
    font-weight: 500;
    color: var(--pf-text-secondary);
    opacity: 0.8;
    margin-bottom: 2px;
}

/* Title above description (enforced visually by spacing) */
.list-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--pf-text-primary);
    margin: 0;              /* remove big bottom margin so description can sit right below */
    line-height: 1.35;
    transition: opacity 0.2s ease;

    /* optional: keep feed tight like IG */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* This is your “product description” style (smaller font + closer to title) */
.post-product-name {
    font-weight: 400 !important;
    color: #ddbb8b !important;
    font-size: 11px;        /* reduced (was 13px) */
    line-height: 1.3;
    padding-left: 2px !important;
    padding-bottom: 6px !important; /* reduced */
    margin-top: 2px;        /* sits under title like IG */
}

/* Meta row */
.list-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    color: var(--pf-text-secondary);
}

.list-item-meta .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.list-item-meta .stat-item:hover {
    color: var(--pf-icon-hover-color);
}

.list-item-meta .stat-item:hover svg {
    stroke: var(--pf-icon-hover-color);
}

.list-item-meta .stat-item svg {
    stroke: var(--pf-icon-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
    position: relative;
    top: -1px;
}

/* Instagram-like consistent media height/shape */
.list-item-thumbnail {
    flex-shrink: 0;
    width: var(--pf-thumb-size);
    height: var(--pf-thumb-size); /* fixed square like IG */
    background-color: #f0f0f0;
    border-radius: var(--pf-thumb-radius);
    overflow: hidden;
    border: solid 1px #32073505;
}

.list-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IG style */
}

.product-feed-empty {
    padding: 32px 8px;
    font-size: 0.9rem;
    color: var(--pf-text-tertiary);
    text-align: center;
}