.product-grid-dense {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.product-card-small {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.product-card-small:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f3f4f6;
    animation: skeleton-pulse 2s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% { background-color: #f3f4f6; }
    50% { background-color: #e5e7eb; }
    100% { background-color: #f3f4f6; }
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.card-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

.card-stock {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.stock-in { background: #dcfce7; color: #166534; }
.stock-low { background: #fef9c3; color: #854d0e; }
.stock-out { background: #fee2e2; color: #991b1b; }

/* Price display helpers */
.price-unit {
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 4px;
}

.cart-price-cell .price-val {
    font-weight: 800;
}

/* Horizontal Strip */
.horizontal-strip {
    margin: 30px 0;
}

.strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.strip-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.category-separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 25px 0 10px;
    border-left: 5px solid var(--tech-blue);
}

.category-separator span {
    font-weight: 800;
    font-size: 16px;
    color: #1f2937;
}

.category-separator small {
    background: var(--tech-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.strip-header a:hover {
    color: var(--tech-blue-dark);
}

.strip-scroll {
    display: flex;
    gap: 15px;
    overflow-x: hidden; /* Hide scrollbar for auto-scroll */
    padding-bottom: 10px;
    position: relative;
}

.strip-track {
    display: flex;
    gap: 15px;
    animation: scroll-left 40s linear infinite;
}

.strip-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.product-card-mini {
    min-width: 140px;
    width: 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.product-card-mini .card-img {
    height: 100px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.product-card-mini .card-info {
    padding: 8px;
}

.product-card-mini .card-title {
    font-size: 12px;
    height: 32px;
}

.product-card-mini .card-price {
    font-size: 14px;
}
