:root {
    --pcc-primary: #c5a059;
    /* Default gold */
    --pcc-text-dark: #1a1a1a;
    --pcc-text-light: #ffffff;
    --pcc-bg-light: #f9f9f7;
    --pcc-transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcc-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Category Card Styles */
.pcc-card {
    position: relative;
    background: #ffffff;
    /* Default white background */
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    overflow: hidden;
    border-radius: 0;
    /* Keep square as requested */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--pcc-transition);
    cursor: pointer;
    z-index: 1;
    border: none;
    box-sizing: border-box;
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* High performance stabilization */
}

.pcc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
    transform: scale(1.1);
    transition: var(--pcc-transition);
    z-index: 1;
    /* Move above white background */
}

.pcc-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pcc-overlay, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: var(--pcc-transition);
    z-index: 2;
    /* Move above image */
}

/* Category Icons */
.pcc-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    transition: var(--pcc-transition);
}

.pcc-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--pcc-transition);
}

.pcc-icon i {
    font-size: var(--pcc-icon-size);
    color: var(--pcc-icon);
    transition: var(--pcc-transition);
}

.pcc-count {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--pcc-icon);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    transition: var(--pcc-transition);
    position: relative;
    z-index: 5;
}

.pcc-title {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pcc-text);
    margin: 0;
    transition: var(--pcc-transition);
    position: relative;
    z-index: 5;
}

.pcc-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pcc-btn-bg);
    color: #fff !important;
    padding: 12px 35px;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--pcc-transition);
    opacity: 1;
    /* Button is ready but out of view */
    border-radius: 0;
    white-space: nowrap;
    z-index: 5;
}

/* Hover Effects */
.pcc-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.pcc-card:hover::before {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.pcc-card:hover::after {
    opacity: 1;
}

/* Hide Icon and Title on Hover */
.pcc-card:hover .pcc-icon,
.pcc-card:hover .pcc-title {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Move Count to Top on Hover */
.pcc-card:hover .pcc-count {
    color: var(--pcc-count-hover, #fff);
    transform: translateY(-130px);
    margin-bottom: 0;
}

.pcc-card:hover .pcc-btn {
    bottom: 40px;
}

/* Wrapper for hover expansion allowance */
.pcc-carousel .swiper-slide {
    padding: 40px 0;
    /* Create space for the expansion */
}


/* Grid Layout - Changed to Flex for perfect centering */
.pcc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.pcc-grid .pcc-card {
    width: 100%;
    /* Default mobile fallback */
    flex-shrink: 0;
}

/* Responsive Grid Columns (calculated for centering) */
@media (min-width: 1024px) {
    .pcc-grid.cols-4 .pcc-card {
        width: calc(25% - 22.5px);
    }

    .pcc-grid.cols-3 .pcc-card {
        width: calc(33.333% - 20px);
    }

    .pcc-grid.cols-2 .pcc-card {
        width: calc(50% - 15px);
    }

    .pcc-grid.cols-1 .pcc-card {
        width: 100%;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .pcc-grid-tablet-3 .pcc-card {
        width: calc(33.333% - 20px) !important;
    }

    .pcc-grid-tablet-2 .pcc-card {
        width: calc(50% - 15px) !important;
    }

    .pcc-grid-tablet-1 .pcc-card {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .pcc-grid-mobile-2 .pcc-card {
        width: calc(50% - 15px) !important;
    }

    .pcc-grid-mobile-1 .pcc-card {
        width: 100% !important;
    }
}

/* Swiper overrides */
.pcc-carousel .swiper-pagination {
    bottom: 0 !important;
}

.pcc-carousel .swiper-pagination-bullet-active {
    background: var(--pcc-primary);
    width: 20px;
    border-radius: 4px;
}