:root {
    --wio-blue: #1a2b4c;
    --wio-accent: #3498db;
    --wio-bg: #ffffff;
}

/* ===============================
   DIRECTORY CONTAINER
================================ */
.wio-directory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    background: var(--wio-bg);
}

.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.post-type-archive-product .site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ===============================
   SEARCH
================================ */
.wio-search-wrapper {
    position: relative;
    margin-bottom: 40px;
}
.wio-search-wrapper input {
    width: 100% !important;
    padding: 18px 25px 18px 55px !important;
    border-radius: 8px !important;
    border: 2px solid var(--wio-blue) !important;
    font-size: 18px;
}
.wio-search-wrapper .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* ===============================
   FILTER TABS
================================ */
.wio-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}
.wio-cat-filter {
    background: #fff;
    border: 1.5px solid var(--wio-blue);
    color: var(--wio-blue);
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--wio-blue);
    cursor: pointer;
    font-weight: 700;
    transition: .2s;
}
.wio-cat-filter.active,
.wio-cat-filter:hover {
    background: var(--wio-blue);
    color: #fff;
    box-shadow: none;
    transform: translate(2px,2px);
}

/* ===============================
   GRID
================================ */
.wio-grid {
    min-height: 400px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

/* ===============================
   TOOL CARD
================================ */
.wio-tool-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    transition: .3s;
}
.wio-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.wio-image-box img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

.wio-content {
    padding: 25px;
}
.wio-cat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--wio-accent);
    text-transform: uppercase;
}
.wio-content h3 {
    margin: 8px 0 20px;
    font-size: 19px;
    color: var(--wio-blue);
    height: 50px;
    overflow: hidden;
}

/* Button */
.wio-btn {
    display: block;
    padding: 12px;
    background: var(--wio-blue);
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* ===============================
   LOAD MORE
================================ */
.wio-load-more-container {
    text-align: center;
    margin-top: 50px;
}
.wio-main-btn {
    padding: 15px 40px;
    background: #1a2b4c;
    border: 2px solid var(--wio-blue);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}
.wio-main-btn:hover {
    background: var(--wio-blue);
    color: #fff;
}

/* ===============================
   SINGLE TOOL PAGE
================================ */
.single-product .site-main,
.single-product .content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.wio-tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: Inter, sans-serif;
}

/* Header */
.tool-header h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}
.tool-short-desc {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Hero Image */
.tool-hero-image img {
    width: 100%;
    border-radius: 20px;
    margin: 25px 0;
}

/* Meta */
.tool-meta-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 35px;
    align-items: center;
}
.category-label {
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.btn-visit {
    background: #4f46e5;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
}

/* ===============================
   VIDEO (FIXED)
================================ */
.wio-video-wrapper {
    margin: 35px 0;
}
.wio-video-wrapper iframe,
.wio-video-wrapper video {
    width: 100%;
    border-radius: 16px;
}

/* ===============================
   INFO CARD (SUPPORT LINKS FIXED)
================================ */
.info-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 16px;
    margin: 40px 0;
}
.page-links-box {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.page-link-item {
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.page-link-item:hover {
    background: #4f46e5;
    color: #fff;
}

/* ===============================
   SECTIONS SPACING (FIX)
================================ */
.wio-section {
    margin: 55px 0;
}
.wio-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ===============================
   MINI TOOLS
================================ */
.wio-mini-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 25px;
}

/* ===============================
   POPULAR CATEGORIES
================================ */
.wio-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 18px;
}
.wio-category-card {
    background: #06417d;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    color: white;
}
.wio-category-card:hover {
    background: #4f46e5;
    color: #fff;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 992px) {
    .wio-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
    .wio-grid { grid-template-columns: 1fr; }
    .tool-meta-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .wio-tool-page {
        padding: 0 8px;
    }
}

/* ===============================
   CLEANUP
================================ */
.single-product .woocommerce-notices-wrapper,
.single-product .woocommerce-breadcrumb {
    display: none !important;
}
