.wpct-modules {
--wpct-blue: #2b8fe0;
--wpct-blue-dark: #1a4d80;
--wpct-ink: #12294a;
--wpct-text: #1a2a45;
--wpct-muted: #64748b;
--wpct-line: #e6edf6;
--wpct-bg: #f4f8fd;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--wpct-text);
box-sizing: border-box;
}
.wpct-modules *, .wpct-modules *::before, .wpct-modules *::after { box-sizing: inherit; }

.wpct-modules-search {
position: relative;
max-width: 620px;
margin: 0 auto 26px;
}
.wpct-modules-search svg {
position: absolute;
left: auto !important;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
fill: var(--wpct-muted);
}

.wpct-modules-search{
    position:relative;
    width:100%;
}

/* INPUT */

.wpct-modules-search-input{
    width:100%;
    height:56px;
    padding:0 58px 0 22px;
    border:2px solid #cfd6df;
    border-radius:999px !important;
    background:#fff;
    font-size:15px;
    transition:.35s ease;
    outline:none;
}

/* ICON */

.wpct-search-icon{
    position:absolute;
    top:50%;
    right:20px;
    width:22px;
    height:22px;
    transform:translateY(-50%);
    stroke:#6b7280;
    stroke-width:2.2;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
    pointer-events:none;
    transition:
        opacity .3s,
        transform .35s,
        right .35s;
}

/* FOCUS */

.wpct-modules-search:focus-within .wpct-modules-search-input{
    border-color:#1a4d80;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 6px #1a4d80,
        0 12px 30px rgba(26,77,128,.15);
}

/* Hide icon */

.wpct-modules-search:focus-within .wpct-search-icon{
    opacity:0;
    right:-12px;
    transform:translateY(-50%) scale(.5) rotate(20deg);
}

/* .wpct-modules-search-input {
width: 100%;
padding: 14px 18px 14px 46px;
border: 1px solid var(--wpct-line);
border-radius: 12px;
font-size: 15px;
background: #fff;
outline: none;
transition: border-color .2s ease, box-shadow .2s ease;
}
.wpct-modules-search-input:focus {
border-color: var(--wpct-blue);
box-shadow: 0 0 0 3px rgba(43, 143, 224, .15);
} */

.wpct-modules-layout {
display: grid;
grid-template-columns: 230px 1fr;
gap: 26px;
align-items: start;
}

.wpct-modules-sidebar {
position: sticky;
top: 102px;
display: flex;
flex-direction: column;
gap: 6px;
padding: 16px;
background: #fff;
border: 1px solid var(--wpct-line);
border-radius: 16px;
box-shadow: 0 2px 6px rgba(5, 35, 85, 0.08),
    0 10px 24px rgba(5, 35, 85, 0.12);
}
.wpct-modules-cat-title {
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--wpct-muted);
padding: 4px 10px 8px;
}
.wpct-modules-filter {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 11px 14px;
border: none;
border-radius: 10px;
background: transparent;
color: var(--wpct-text);
font-size: 14px;
font-weight: 600;
cursor: pointer;
text-align: left;
transition: background .18s ease, color .18s ease;
}
.wpct-modules-filter:hover { background: var(--wpct-bg); color: var(--wpct-blue);}
.wpct-modules-filter.is-active { background: var(--wpct-blue); color: #fff; }
.wpct-modules-count {
min-width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 6px;
border-radius: 999px;
background: rgba(43, 143, 224, .14);
color: var(--wpct-blue);
font-size: 12px;
font-weight: 700;
}
.wpct-modules-filter.is-active .wpct-modules-count { background: rgba(255, 255, 255, .25); color: #fff; }

.wpct-modules-topbar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.wpct-modules-showing { font-size: 14px; font-weight: 600; color: var(--wpct-muted); }

.wpct-modules-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
gap: 20px;
}
.wpct-modules-card {
display: flex;
flex-direction: column;
background: #fff;
border: 1px solid var(--wpct-line);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(5, 35, 85, 0.08),
    0 10px 24px rgba(5, 35, 85, 0.12);
transition: transform .25s ease, box-shadow .25s ease;
}
.wpct-modules-card:hover {
transform: translateY(-6px);
box-shadow:
        0 4px 10px rgba(5, 35, 85, 0.10),
        0 16px 36px rgba(5, 35, 85, 0.16);
}
.wpct-modules-thumb {
position: relative;
max-height: 170px;
aspect-ratio: 16/9;
background: var(--wpct-bg);
overflow: hidden;
}
.wpct-modules-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform .4s ease;
}
.wpct-modules-card:hover .wpct-modules-thumb img { transform: scale(1.06); }
.wpct-modules-noimg {
display: block;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #e7f0fb, #f4f8fd);
}
.wpct-modules-badge {
position: absolute;
top: 10px;
right: 10px;
padding: 4px 10px;
border-radius: 999px;
z-index: 2;
background: var(--wpct-blue);
border: 1.5px solid #fff;
color: #fff;
font-size: 11px;
font-weight: 700;
letter-spacing: .3px;
box-shadow: 0 2px 6px rgba(5, 35, 85, .25);
}

.wpct-modules-body {
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px 18px 20px;
flex: 1 1 auto;
}
.wpct-modules-price {
align-self: flex-start;
padding: 4px 12px;
border-radius: 999px;
background: rgba(43, 143, 224, .12);
color: var(--wpct-blue);
font-size: 13px;
font-weight: 700;
}
.wpct-modules-title {
margin: 0;
font-size: 17px;
font-weight: 700;
line-height: 1.3;
color: var(--wpct-text);
}
.wpct-modules-desc p {
margin: 0;
font-size: 13.5px;
line-height: 1.6;
color: var(--wpct-muted);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.wpct-modules-desc.is-open p {
-webkit-line-clamp: unset;
overflow: visible;
}
.wpct-modules-more {
margin-top: 4px;
padding: 0;
border: none;
background: none !important;
color: var(--wpct-blue) !important;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.wpct-modules-more:hover { text-decoration: underline; }

.wpct-modules-actions {
display: flex;
gap: 10px;
margin-top: auto;
padding-top: 6px;
}
.wpct-modules-btn {
flex: 1 1 0;
text-align: center;
text-decoration: none;
padding: 10px 12px;
border-radius: 10px;
font-size: 13.5px;
font-weight: 600;
transition: background .2s ease, color .2s ease;
}
.wpct-modules-btn-details {
background: var(--wpct-blue);
color: #fff !important;
}
.wpct-modules-btn-details:hover { background: var(--wpct-blue-dark); color: #fff; }
.wpct-modules-btn-buy {
background: #fff;
border: 1px solid var(--wpct-line);
color: var(--wpct-blue) !important;
}
.wpct-modules-btn-buy:hover { background: var(--wpct-blue); color: #fff !important; border-color: var(--wpct-blue); }

.wpct-modules-empty {
padding: 40px 16px;
text-align: center;
color: var(--wpct-muted);
font-style: italic;
}

@media (max-width: 782px) {
.wpct-modules-layout { grid-template-columns: 1fr; }
.wpct-modules-sidebar { position: static; }
}
