/* CCP Final Fixed styles */

/* Reset container */
.ccpff-wrapper { width: 100%; box-sizing: border-box; }

/* Categories row - desktop top */
.ccpff-cats-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 6px;
    align-items: center;
}

/* Category button */
.ccpff-cat {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    min-width: 84px;
}

.ccpff-cat-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid #ddd; display: inline-block; }
.ccpff-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccpff-cat-name { font-size: 13px; font-weight: 600; color: #222; text-align: center; }

.ccpff-cat:hover .ccpff-cat-img { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.ccpff-cat.active .ccpff-cat-img { border-color: #dc290c; box-shadow: 0 6px 18px rgba(247,98,0,0.12); }

/* main area - desktop shows categories row top and products below */
.ccpff-main { display: block; margin-top: 8px; }

/* left column (mobile) categories list */
.ccpff-cats-col { display: none; }

/* product grid */
.ccpff-product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
}

/* product card */
.ccpff-product { border: 1px solid #eee; border-radius: 10px; padding: 10px; background:#fff; text-align: center; position: relative; overflow: visible; }
.ccpff-image-wrap { position: relative; }
.ccpff-image-wrap img { width: 100%; height: auto; border-radius: 8px; display: block; }
.ccpff-wish { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.95); border-radius: 50%; width: 36px; height: 36px; display:flex; align-items:center; justify-content:center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border:none; cursor:pointer; }
.ccpff-wish .tinvwl_btn_text, .ccpff-wish .ti-wishlist-text { display:none !important; }
.ccpff-wish i, .ccpff-wish span { color: #dc290c; font-size: 18px; }

.ccpff-title h3 { font-size: 14px; margin: 8px 0 6px; }
.ccpff-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.ccpff-price { color: #dc290c; font-weight:700; font-size:14px;display:none;}
.ccpff-add .button, .ccpff-add a.button { padding:6px 10px; font-size:13px; border-radius:6px; }

/* Mobile layout: categories vertical left, products right */
@media (max-width: 768px) {
    .ccpff-cats-row { display:none; } /* hide top row on mobile */
    .ccpff-main { display:flex; gap:12px; }
    .ccpff-cats-col { display:flex; flex-direction:column; gap:12px; width:100px; flex:0 0 100px; overflow-y:auto; padding:8px 0; }
    .ccpff-cat-col { background:transparent; border:none; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; padding:6px; }
    .ccpff-cat-col img { width:64px; height:64px; border-radius:50%; border:2px solid #ddd; object-fit:cover; }
    .ccpff-cat-col.active img { border-color:#dc290c; box-shadow:0 6px 18px rgba(247,98,0,0.12); }

    .ccpff-products-wrap { flex:1; }
    .ccpff-product-grid { grid-template-columns: repeat(2, 1fr); }
}
