/* ================================
   FILTER BAR
   ================================ */

.ccpc-filter-bar{
display:grid;
grid-template-columns:2fr 1fr 1fr 1fr;
gap:12px;
margin-bottom:20px;
position:relative;
z-index:20;
}

.ccpc-filter-bar input,
.ccpc-filter-bar select{
width:100%;
padding:10px;
border:1px solid #ddd;
border-radius:6px;
background:#fff;
font-size:14px;
}

/* Responsive filters */

@media (max-width:768px){
.ccpc-filter-bar{
grid-template-columns:1fr 1fr;
}
}

@media (max-width:480px){
.ccpc-filter-bar{
grid-template-columns:1fr;
}
}


/* ================================
   PRODUCT GRID
   ================================ */
.ccpc-frontpage-products{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:20px;
position:relative;
z-index:1;
}

/* Responsive grid */

@media (max-width:1100px){
.ccpc-frontpage-products{
grid-template-columns:repeat(3,minmax(0,1fr));
}
}

@media (max-width:750px){
.ccpc-frontpage-products{
grid-template-columns:repeat(2,minmax(0,1fr));
}
}

@media (max-width:480px){
.ccpc-frontpage-products{
grid-template-columns:1fr;
}
}


/* ================================
   PRODUCT CARD
   ================================ */

.ccpc-product-card{
position:relative;
background:white;
border:1px solid #eee;
padding:15px;
border-radius:8px;
text-align:center;
transition:0.2s;
box-sizing:border-box;
display:flex;
flex-direction:column;
justify-content:space-between;
height:100%;
}

.ccpc-product-card:hover{
box-shadow:0 4px 14px rgba(0,0,0,0.1);
}


/* ================================
   PRODUCT IMAGE
   ================================ */

.ccpc-product-image img{
max-width:100%;
height:auto;
display:block;
margin:auto;
}


/* ================================
   BRAND LOGO
   ================================ */

.ccpc-brand-logo{
margin-bottom:8px;
}

.ccpc-brand-logo img{
max-height:24px;
width:auto;
margin:auto;
}


/* ================================
   TITLE + PRICE
   ================================ */

.ccpc-product-title{
min-height:42px;
display:block;
font-size:14px;
}

.ccpc-product-card .price{
margin-top:8px;
font-weight:600;
}


/* ================================
   META ROW (PRICE + CART)
   ================================ */

.ccpc-product-meta{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:10px;
}


/* ================================
   CART BUTTON
   ================================ */

.ccpc-addcart{
display:flex;
align-items:center;
justify-content:center;
width:34px;
height:34px;
border-radius:6px;
background:#111;
color:white;
text-decoration:none;
font-size:16px;
transition:0.2s;
}

.ccpc-addcart:hover{
background:#333;
}


/* ================================
   STOCK + BADGES
   ================================ */

.ccpc-product-card .stock{
font-size:13px;
margin-top:5px;
opacity:0.8;
}

.ccpc-outofstock{
background:#d63638;
color:white;
padding:6px 10px;
font-size:13px;
font-weight:600;
display:inline-block;
margin-top:8px;
border-radius:4px;
}

.ccpc-badge-out{
position:absolute;
top:10px;
right:10px;
background:#d63638;
color:white;
font-size:11px;
font-weight:600;
padding:4px 7px;
border-radius:3px;
z-index:5;
}


/* ================================
   TOAST
   ================================ */

.woocommerce-message{
display:none !important;
}

.ccpc-toast{
position:fixed;
bottom:30px;
right:30px;
background:#111;
color:white;
padding:14px 18px;
border-radius:6px;
font-size:14px;
opacity:0;
transform:translateY(20px);
transition:all .3s ease;
z-index:9999;
}

.ccpc-toast.show{
opacity:1;
transform:translateY(0);
}


/* ================================
   CART ICON
   ================================ */

.cc-cart-link{
position:relative;
display:inline-flex;
align-items:center;
text-decoration:none;
}

.cc-cart-icon{
font-size:22px;
}

.cc-cart-count{
position:absolute;
top:-6px;
right:-8px;
background:#d63638;
color:white;
font-size:11px;
font-weight:600;
padding:2px 6px;
border-radius:20px;
min-width:18px;
text-align:center;
}


/* ================================
   TAG PAGE LAYOUT
   ================================ */

.ccpc-tag-wrapper{
width:100%;
max-width:1180px;
margin:0 auto;
}

.ccpc-tag-wrapper .ccpc-tag-header{
display:grid;
grid-template-columns:minmax(280px,420px) minmax(0,1fr);
gap:32px;
align-items:start;
margin-bottom:40px;
}

.ccpc-tag-wrapper .ccpc-tag-image img{
display:block;
width:100%;
height:auto;
border-radius:8px;
}

.ccpc-tag-wrapper .ccpc-tag-text{
min-width:0;
max-width:760px;
}

.ccpc-tag-wrapper .ccpc-tag-text h1{
font-size:28px;
margin-bottom:12px;
}

.ccpc-tag-wrapper .ccpc-tag-text h2{
font-size:20px;
margin-top:20px;
margin-bottom:10px;
}

.ccpc-tag-wrapper .ccpc-tag-products{
margin-top:20px;
margin-bottom:20px;
}

@media (max-width:768px){
.ccpc-tag-wrapper .ccpc-tag-header{
grid-template-columns:1fr;
gap:20px;
}

.ccpc-tag-wrapper .ccpc-tag-text{
max-width:100%;
}
}


.ccpc-pagination-inner{
display:flex;
justify-content:flex-start;
align-items:center;
gap:8px;
margin-top:30px;
}


.ccpc-pagination-inner .page-numbers{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:36px;
height:36px;
padding:0 10px;
border-radius:6px;
border:1px solid #ddd;
background:#fff;
color:#111;
text-decoration:none;
font-size:14px;
transition:0.2s;
}

.ccpc-pagination-inner .page-numbers:hover{
background:#111;
color:#fff;
border-color:#111;
}

.ccpc-pagination-inner .current{
background:#111;
color:#fff;
border-color:#111;
font-weight:600;
}

.ccpc-pagination-inner .next,
.ccpc-pagination-inner .prev{
font-weight:600;
}