/* * File: modules/categories/cat-rows.css 
 * Version: 1.2.0 (Fixed Pills & Grid)
 */

/* --- 1. Category Navigation (The Pills) --- */
.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 40px 5% 10px;
    flex-wrap: wrap;
    background: var(--bg-color);
}

.cat-pill {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--light-gray);
    border-radius: 50px; /* Full Pill Shape */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.cat-pill:hover {
    border-color: var(--accent-red);
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

/* --- 2. Category Rows --- */
.category-row { 
    padding: 60px 5%; 
    border-bottom: 1px solid var(--light-gray);
    background: var(--bg-color);
}

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

.row-header h2 { 
    font-size: 1.8rem; 
    text-transform: uppercase; 
    font-weight: 900; 
    border-left: 5px solid var(--accent-red); 
    padding-left: 15px; 
    line-height: 1;
}

.view-more { 
    color: var(--text-color);
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
    letter-spacing: 1px;
    position: relative;
    padding-right: 20px; /* Space for arrow */
    transition: 0.3s;
    text-decoration: none;
}

/* The Arrow */
.view-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.view-more:hover { 
    color: var(--accent-red);
}

/* Arrow moves right on hover */
.view-more:hover::after {
    transform: translateX(5px);
    color: var(--accent-red);
}

/* --- 3. The Product Grid (Strict Sizing) --- */
.product-grid {
    display: grid;
    /* This forces columns to be approx 250px. 
       If only 1 item exists, it stays 250px, it won't stretch. */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: #fff;
    transition: var(--transition);
    cursor: pointer;
}

.product-image {
    position: relative;
    width: 100%;
    /* Enforce Portrait Ratio 3:4 */
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    overflow: hidden;
    border-radius: 6px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; 
    left: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* Hover Logic */
.img-hover { opacity: 0; }

.product-card:hover .img-main { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; transform: scale(1.05); }

/* Info Text */
.product-info { 
    padding: 15px 0; 
    text-align: left; 
}

.product-info h3 { 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--text-color);
}

.price { 
    color: var(--accent-red); 
    font-weight: 800; 
    font-size: 1.1rem;
}