/**
 * Wholesale BD — Featured Categories CSS
 *
 * Moved out of an inline <style> block that was echoed into the HTML on
 * every homepage load. Now external + cacheable, enqueued conditionally
 * (homepage only) via pluspoint_homepage_assets() in functions.php.
 */


:root {
    --pc-pink:   #FA5053;
    --pc-dark:   #111111;
    --pc-text:   #555555;
    --pc-bg:     #ffffff;
    --pc-font:   'Anek Bangla', sans-serif;
}

.premium-cats-wrapper {
    background-color: var(--pc-bg);
    padding: 60px 0 70px 0; 
    overflow: hidden;
    font-family: var(--pc-font);
}

.pc-container {
    width: 100%;
    max-width: 1320px; 
    margin: 0 auto;
    padding: 0 15px;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.pc-title-box { text-align: left; }

.pc-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--pc-dark);
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.pc-title em { font-style: normal; color: var(--pc-pink); }

.pc-subtitle {
    font-size: 17px;
    color: var(--pc-text);
    margin: 0;
    font-weight: 500;
}

.pc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pc-pink);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 6px 15px rgba(250, 80, 83,0.25);
    transition: all 0.3s ease;
}

.pc-view-all:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(250, 80, 83,0.4);
    background: var(--pc-dark);
}

.pc-view-all svg {
    width: 18px; height: 18px;
    animation: arrowFloat 1.5s infinite ease-in-out;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.pc-scroll-wrapper {
    position: relative; 
    width: 100%;
}

.pc-items-row {
    display: flex;
    gap: 28px; 
}

.pc-item {
    flex: 1;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.pc-img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.pc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.pc-img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.02);
    transition: background 0.4s ease;
    z-index: 1;
}

.pc-item-title {
    font-size: 20px; 
    font-weight: 700;
    color: var(--pc-dark);
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pc-item:hover .pc-img-box img { transform: scale(1.08); }
    .pc-item:hover .pc-img-box::after { background: rgba(0,0,0,0); }
    .pc-item:hover .pc-img-box { box-shadow: 0 15px 35px rgba(250, 80, 83,0.15); border-color: rgba(250, 80, 83,0.2); }
    .pc-item:hover .pc-item-title { color: var(--pc-pink); }
}

.mobile-floating-swipe { display: none; }

@media (max-width: 991px) {
    .premium-cats-wrapper { padding: 45px 0; }
    .pc-title { font-size: 32px; }
    .pc-items-row {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 20px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .pc-item { flex: 0 0 calc(33.333% - 16px); } 
    .pc-items-row::-webkit-scrollbar { height: 5px; }
    .pc-items-row::-webkit-scrollbar-thumb { background-color: rgba(250, 80, 83, 0.2); border-radius: 10px; }
}

@media (max-width: 768px) {
    .premium-cats-wrapper { padding: 35px 0 45px 0; }
    
    .pc-header { 
        flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 15px;
    }
    .pc-title { font-size: 28px; margin-bottom: 4px; }
    .pc-subtitle { font-size: 15px; }
    
    .pc-view-all { display: none !important; }

    .mobile-floating-swipe {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 40%; 
        right: 15px;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
        transition: opacity 0.4s ease;
    }

    .swipe-circle-3d {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(240, 245, 255, 0.2) 70%, rgba(220, 230, 255, 0.4) 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--pc-pink); 
        border: 1.5px solid rgba(255, 255, 255, 0.6);
        box-shadow: 
            0 10px 20px rgba(0, 0, 0, 0.08),        
            inset 0 -4px 6px rgba(0, 0, 0, 0.04),    
            inset 0 4px 8px rgba(255, 255, 255, 0.7); 
        display: flex;
        align-items: center;
        justify-content: center;
        animation: swipeRightAnim 1.5s infinite ease-in-out;
    }

    .swipe-circle-3d svg {
        width: 24px; height: 24px;
        filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
    }

    @keyframes swipeRightAnim {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(6px); }
    }

    .pc-items-row {
        gap: 15px; 
        overflow-x: auto;
        overflow-y: hidden; 
        padding-bottom: 20px;
        padding-left: 15px; padding-right: 15px;
        margin-left: -15px; margin-right: -15px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; 
        touch-action: pan-x pan-y;
    }
    .pc-items-row::-webkit-scrollbar { display: none; }
    
    .pc-item {
        flex: 0 0 155px; 
        scroll-snap-align: start;
    }

    .pc-img-box { border-radius: 14px; margin-bottom: 15px; }
    .pc-item-title { font-size: 16px; } 
}

@media (max-width: 420px) {
    .pc-item { flex: 0 0 140px; }
}
