/*
Theme Name: Card And Conquer
Theme URI: http://www.cardandconquer.com/
Template: Card And Conquer
Author: R.J. van der Meer
Author URI: http://www.cardandconquer.com
Description: Card And Conquer
Version: 1.0.1
Updated: 2026-02-25 13:46:53

*/
/* =================================================
   WRAPPER & CATEGORY STRUCTUUR
================================================= */

.ccpc-wrapper{
  max-width:1200px;
  margin:0 auto;
  padding:40px 20px;
}

.ccpc-title{
  font-size:42px;
  font-weight:700;
  margin-bottom:20px;
  letter-spacing:-0.5px;
}

.ccpc-image{
  margin-bottom:25px;
  text-align:center;
}

.ccpc-image img{
  max-height:260px;
  width:auto;
}

.ccpc-desc{
  font-size:17px;
  line-height:1.7;
  max-width:850px;
  margin:0 auto 40px auto;
  color:#444;
}

/* =================================================
   CATEGORY PRODUCT LOOP FIX
================================================= */

.ccpc-products ul.products{
  margin-top:10px;
}

.ccpc-products li.product{
  border-radius:12px;
  padding:12px;
  transition:.2s ease;
}

.ccpc-products li.product:hover{
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* =================================================
   CATEGORY OVERVIEW
================================================= */

.ccpc-cat-overview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:18px;
  margin:30px 0;
}

.ccpc-cat-card{
  background:#fff;
  border-radius:14px;
  padding:18px;
  text-align:center;
  transition:.2s ease;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.ccpc-cat-card:hover{
  box-shadow:0 12px 25px rgba(0,0,0,.12);
}

.ccpc-cat-image img{
  max-height:70px;
  width:auto;
}

.ccpc-cat-name{
  margin-top:10px;
  font-weight:600;
  font-size:14px;
}

/* =================================================
   LOGO GRID
================================================= */

.ccpc-logo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:30px;
  align-items:center;
}

.ccpc-logo-item{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:#fff;
  border-radius:14px;
  transition:.2s ease;
}

.ccpc-logo-item:hover{
  box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.ccpc-logo-item img{
  max-height:90px;
  width:auto;
}

/* =================================================
   FRONT PAGE PRODUCT GRID
================================================= */

.ccpc-frontpage-products{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:28px;
  margin-top:30px;
}

.ccpc-product-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:14px;
  padding:22px;
  border:1px solid #f0f0f0;
  position:relative;
  transition:.2s ease;
}

.ccpc-product-card:hover{
  box-shadow:0 14px 30px rgba(0,0,0,.08);
}

/* Image */
.ccpc-product-image{
  text-align:center;
  margin-bottom:15px;
}

.ccpc-product-image img{
  width:100%;
  height:220px;
  object-fit:contain;
}

/* Title */
.ccpc-product-title{
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  margin-bottom:8px;
  min-height:44px;
}

.ccpc-product-title a{
  color:#111;
  text-decoration:none;
}

.ccpc-product-title a:hover{
  opacity:.8;
}

/* Price */
.ccpc-product-price{
  font-size:15px;
  font-weight:600;
  margin-bottom:16px;
}

/* =================================================
   CLEAN BUTTON SYSTEM (NO JUMP / NO BLUE / UNIFORM)
================================================= */

.ccpc-product-buttons{
    margin-top:auto;
    display:flex;
    gap:10px;
}


/* FORCE CART ICON PERFECT CENTER */

.ccpc-frontpage-products .ccpc-cart-icon{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:40px;
    min-width:40px;
    height:40px;
    padding:0 !important;
    line-height:1 !important;
    border-radius:8px;
    border:1px solid #e2e2e2;
    background:#f7f7f7;
    font-size:18px;
    box-sizing:border-box;
}

/* Kill Woo button styling */
.ccpc-frontpage-products .ccpc-cart-icon.button{
    display:flex !important;
    padding:0 !important;
}

/* Remove theme arrow again just to be safe */
.ccpc-frontpage-products .ccpc-cart-icon::after{
    content:none !important;
    display:none !important;
}


/* Basis knopstijl voor beide */
.ccpc-view-product{
    width:40px;
    min-width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    border:1px solid #fff;
    background:#f7f7f7;
    font-size:18px;
    line-height:1;
    padding:0;
    text-align:center;
}
 .woocommerce a.button{border-color:#093!important}

.ccpc-cart-icon span{
    display:block;
    line-height:1;
}

/* Bekijk product */
.ccpc-view-product{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 16px;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
}

/* Cart */
.ccpc-cart-icon{
    width:40px;
    min-width:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}

/* Hover */
.ccpc-view-product:hover,
.ccpc-cart-icon:hover{
    background:#111;
    color:#fff;
    border-color:#111;
}

/* Woo states */
.ccpc-cart-icon.loading{
    opacity:.6;
}

.ccpc-cart-icon.added{
    background:#1e8e3e;
    border-color:#1e8e3e;
    color:#fff;
}

/* HARD remove theme arrow */
.ccpc-frontpage-products a.button::after,
.ccpc-frontpage-products .button::after,
.ccpc-frontpage-products .add_to_cart_button::after{
    content:none !important;
    display:none !important;
}

/* HARD remove focus outlines */
.ccpc-frontpage-products a,
.ccpc-frontpage-products .button{
    outline:none !important;
    box-shadow:none !important;
}

/* =================================================
   HARD REMOVE FOCUS OUTLINES (THEME + BROWSER)
================================================= */

.ccpc-frontpage-products a,
.ccpc-frontpage-products a.button,
.ccpc-frontpage-products .button,
.ccpc-frontpage-products .add_to_cart_button{
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}

.ccpc-frontpage-products a:focus,
.ccpc-frontpage-products a:focus-visible,
.ccpc-frontpage-products a:active,
.ccpc-frontpage-products a.button:focus,
.ccpc-frontpage-products a.button:focus-visible,
.ccpc-frontpage-products .button:focus,
.ccpc-frontpage-products .button:focus-visible,
.ccpc-frontpage-products .add_to_cart_button:focus,
.ccpc-frontpage-products .add_to_cart_button:focus-visible,
.ccpc-frontpage-products .add_to_cart_button:active{
  outline:none !important;
  box-shadow:none !important;
}

/* =================================================
   OUT OF STOCK BADGE
================================================= */

.ccpc-out-of-stock{
  position:absolute;
  top:18px;
  right:18px;
  background:#c00000;
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:6px 10px;
  border-radius:6px;
}

/* =================================================
   TOAST
================================================= */

.ccpc-toast{
  position:fixed;
  bottom:40px;
  right:40px;
  background:#111;
  color:#fff;
  padding:14px 20px;
  border-radius:8px;
  font-size:14px;
  opacity:0;
  transform:translateY(20px);
  transition:.25s ease;
  z-index:9999;
}

.ccpc-toast.show{
  opacity:1;
  transform:translateY(0);
}

/* =================================================
   RESPONSIVE
================================================= */

@media(max-width:768px){
  .ccpc-wrapper{
    padding:25px 16px;
  }

  .ccpc-title{
    font-size:28px;
  }

  .ccpc-image img{
    max-height:140px;
  }

  .ccpc-desc{
    font-size:15px;
    line-height:1.6;
    margin-bottom:25px;
  }

  .ccpc-cat-overview{
    grid-template-columns:repeat(2,1fr);
  }

  .ccpc-logo-grid{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }

  .ccpc-logo-item img{
    max-height:60px;
  }

  .ccpc-frontpage-products{
    gap:20px;
  }

  .ccpc-product-card{
    padding:18px;
  }

  .ccpc-product-image img{
    height:190px;
  }
}

/* REMOVE THEME ARROW ICON */

.ccpc-frontpage-products a.button::after,
.ccpc-frontpage-products .button::after,
.ccpc-frontpage-products .add_to_cart_button::after,
.ccpc-frontpage-products .ccpc-view-product::after,
.ccpc-frontpage-products .ccpc-cart-icon::after {
    content: none !important;
    display: none !important;
}


/* =========================================
   C&C 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:-10px;
    min-width:18px;
    height:18px;
    padding:0 6px;
    border-radius:50px;
    background:#e00000;
    color:#fff;
    font-size:11px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}


/* =========================================
   Logo bovein
========================================= */


.ccpc-product-card {
    position: relative;
}

.ccpc-brand-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
}

.ccpc-brand-logo img {
    max-height: 28px;
    width: auto;
    display: block;
}