/* ===== Site Body Background Color ===== */
body {
    background-color: #ffffff !important;  /* Apna color yahan daalein */
}

/* Agar Customizer se color lena hai to yeh use karein */
body.custom-background {
    background-color: var(--wp--preset--color--background, #ffffff) !important;
}




@keyframes ptt-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============ TOOLS SECTION ============ */
.ptt-section { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ptt-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ptt-tabs { display: flex; gap: 8px; }
.ptt-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 100px; border: 1.5px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.ptt-tab:hover, .ptt-tab.active { background: #f3f0ff; border-color: #7c3aed; color: #7c3aed; }
.ptt-browse-all { font-size: 14px; font-weight: 700; color: #111827; text-decoration: none; }
.ptt-browse-all:hover { color: #7c3aed; }
.ptt-body { display: flex; gap: 24px; align-items: flex-start; }
.ptt-sidebar { width: 220px; flex-shrink: 0; max-height: 520px; overflow-y: auto; position: relative; background: #fff; border: 1.5px solid #ede9fe; border-radius: 12px; padding: 0 14px 14px; box-shadow: 0 2px 12px rgba(124,58,237,0.07); scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.ptt-sidebar::-webkit-scrollbar { width: 4px; }
.ptt-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.ptt-sidebar-title { position: sticky; top: 0; z-index: 10; background: #fff; font-size: 15px; font-weight: 700; color: #111827; padding: 14px 0 12px; margin: 0 0 4px; border-bottom: 1.5px solid #ede9fe; box-shadow: 0 4px 10px -2px rgba(124,58,237,0.06); }
.ptt-cat-list { list-style: none; margin: 0; padding: 0; }
.ptt-cat-list li { border-bottom: 1px solid #f3f0ff; }
.ptt-cat-list li:last-child { border-bottom: none; }
.ptt-cat-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 8px; border-radius: 7px; background: none; border: none; color: #374151; font-size: 13px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.ptt-cat-btn:hover, .ptt-cat-btn.active { background: #f3f0ff; color: #7c3aed; }
.ptt-cat-name { display: flex; align-items: center; gap: 8px; }
.ptt-cat-name svg, .ptt-cat-name i { color: #7c3aed; flex-shrink: 0; font-size: 13px; width: 16px; }
.ptt-cat-count { font-size: 12px; color: #9ca3af; font-weight: 500; }
.ptt-listings { flex: 1; min-width: 0; }
.ptt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ptt-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.ptt-card:hover { border-color: #c4b5fd; box-shadow: 0 4px 20px rgba(124,58,237,0.09); }
.ptt-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex: 1; }
.ptt-card-logo { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.ptt-card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptt-initial { font-size: 22px; font-weight: 800; color: #7c3aed; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ptt-card-info { flex: 1; min-width: 0; }
.ptt-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.ptt-name { font-size: 14px; font-weight: 700; color: #111827; }
.ptt-badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.ptt-verified { border: 1px solid #d1d5db; color: #6b7280; background: #fff; }
.ptt-featured { background: #7c3aed; color: #fff; }
.ptt-desc { font-size: 12.5px; color: #6b7280; margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptt-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f3f4f6; margin-top: auto; }
.ptt-pricing { font-size: 12px; color: #9ca3af; }
.ptt-view { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #7c3aed; text-decoration: none; }
.ptt-view:hover { color: #6d28d9; text-decoration: underline; }

/* ============ HEADER ============ */
.ptt-header-group { display: flex; align-items: center; gap: 20px; flex: 1; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ptt-header-search { flex: 1; max-width: 400px; }
.ptt-search-form { display: flex; align-items: center; gap: 10px; background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 100px; padding: 0 18px; height: 42px; transition: border-color .2s, box-shadow .2s; }
.ptt-search-form:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); background: #fff; }
.ptt-search-icon { flex-shrink: 0; }
.ptt-search-input { flex: 1; border: none !important; background: transparent !important; outline: none !important; box-shadow: none !important; font-size: 14px !important; color: #374151 !important; padding: 0 !important; margin: 0 !important; height: auto !important; min-height: unset !important; }
.ptt-search-input::placeholder { color: #9ca3af; }
.ptt-header-nav { flex-shrink: 0; }
.ptt-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ptt-nav-list li a { display: inline-block; padding: 7px 13px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #374151 !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.ptt-nav-list li a:hover { background: #f3f4f6; color: #111827 !important; }
.ptt-nav-list li.current-menu-item > a { color: #7c3aed !important; background: #f3f0ff; }
.ptt-header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ptt-cta-add { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 9px; background: #7c3aed; color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 2px 10px rgba(124,58,237,0.3); }
.ptt-cta-add:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.4); color: #fff !important; text-decoration: none !important; }
.ptt-cta-account { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; background: #fff; border: 1.5px solid #e5e7eb; color: #374151 !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap; transition: border-color .2s, color .2s, transform .2s; }
.ptt-cta-account:hover { border-color: #7c3aed; color: #7c3aed !important; transform: translateY(-1px); text-decoration: none !important; }
.ptt-hamburger { display: none; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; margin-left: auto; flex-shrink: 0; }
.ptt-hamburger:hover { background: #f3f4f6; }
.ptt-mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9998; backdrop-filter: blur(3px); }
.ptt-mob-overlay.is-open { display: block; }
.ptt-mob-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100dvh; background: #fff; z-index: 9999; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(0.4,0,0.2,1); box-shadow: -6px 0 40px rgba(0,0,0,0.12); }
.ptt-mob-drawer.is-open { transform: translateX(0); }
.ptt-mob-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.ptt-mob-logo-link { text-decoration: none !important; }
.ptt-mob-site-name { font-size: 17px; font-weight: 700; color: #0f172a; }
.ptt-mob-close { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ptt-mob-close:hover { background: #f3f4f6; }
.ptt-mob-search { padding: 14px 20px; flex-shrink: 0; }
.ptt-mob-search .ptt-search-form { width: 100%; }
.ptt-mob-nav { flex: 1; overflow-y: auto; padding: 4px 14px; }
.ptt-mob-nav-list { list-style: none; margin: 0; padding: 0; }
.ptt-mob-nav-list li a { display: block; padding: 13px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #374151 !important; text-decoration: none !important; transition: background .15s, color .15s; }
.ptt-mob-nav-list li a:hover, .ptt-mob-nav-list li.current-menu-item > a { background: #f3f0ff; color: #7c3aed !important; }
.ptt-mob-divider { height: 1px; background: #e5e7eb; margin: 0 22px; flex-shrink: 0; }
.ptt-mob-btns { padding: 18px 22px 36px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.ptt-cta-block { display: flex !important; justify-content: center; width: 100%; padding: 13px 20px !important; border-radius: 10px !important; font-size: 15px !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) { .ptt-header-search { max-width: 280px; } .ptt-nav-list li a { padding: 7px 10px; font-size: 13.5px; } }
@media (max-width: 1024px) { .ptt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .ptt-header-search { max-width: 200px; } }
@media (max-width: 768px) {
    .ptt-header-nav, .ptt-header-ctas, .ptt-header-search { display: none !important; }
    .ptt-hamburger { display: flex !important; }
    .ptt-body { flex-direction: column; }
    .ptt-sidebar { width: 100%; max-height: 200px; padding-right: 0; }
    .ptt-cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}
@media (max-width: 480px) { .ptt-grid { grid-template-columns: 1fr; } .ptt-tab { padding: 7px 13px; font-size: 12.5px; } }

/* Reset button below category list */
.ptt-cat-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 9px 8px;
    background: none;
    border: none;
    border-top: 1px solid #ede9fe;
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color .15s;
}

.ptt-cat-reset:hover {
    color: #7c3aed;
}




/* ============ ARCHIVE / LISTINGS PAGE ============ */
.ptt-archive {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.ptt-archive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.ptt-archive-count { font-size: 14px; color: #6b7280; }
.ptt-archive-count strong { color: #111827; }

.ptt-archive-sort { display: flex; align-items: center; gap: 8px; }
.ptt-archive-sort label { font-size: 13px; color: #6b7280; font-weight: 500; }

.ptt-sort-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13.5px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.ptt-sort-select:focus { border-color: #7c3aed; }

.ptt-archive-body { display: flex; gap: 28px; align-items: flex-start; }

/* Sidebar */
.ptt-archive-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid #ede9fe;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 14px rgba(124,58,237,0.07);
    position: sticky;
    top: 90px;
}

.ptt-filter-block { margin-bottom: 24px; }
.ptt-filter-block:last-of-type { margin-bottom: 16px; }

.ptt-filter-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7c3aed;
    margin: 0 0 12px;
}

.ptt-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    padding: 0 12px;
    height: 38px;
}
.ptt-filter-search:focus-within { border-color: #7c3aed; }
.ptt-filter-search input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    padding: 0 !important;
    height: auto !important;
}

.ptt-filter-cat-list { list-style: none; margin: 0; padding: 0; }
.ptt-filter-cat-list li { margin-bottom: 4px; }

.ptt-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 6px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s;
}
.ptt-filter-checkbox:hover { background: #f9fafb; }
.ptt-filter-checkbox input { display: none; }

.ptt-checkbox-box {
    width: 17px;
    height: 17px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s, background .15s;
}
.ptt-filter-checkbox input:checked + .ptt-checkbox-box {
    background: #7c3aed;
    border-color: #7c3aed;
}
.ptt-filter-checkbox input:checked + .ptt-checkbox-box::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ptt-checkbox-label { flex: 1; font-size: 13.5px; color: #374151; }
.ptt-filter-checkbox input:checked ~ .ptt-checkbox-label { color: #7c3aed; font-weight: 600; }
.ptt-checkbox-count { font-size: 12px; color: #9ca3af; }

.ptt-filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    background: #f3f0ff;
    border: none;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ptt-filter-reset:hover { background: #ede9fe; }

/* Main grid */
.ptt-archive-main { flex: 1; min-width: 0; }

.ptt-grid-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Pagination */
.ptt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.ptt-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.ptt-page-btn:hover:not(:disabled) { border-color: #7c3aed; color: #7c3aed; }
.ptt-page-btn.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.ptt-page-btn:disabled { opacity: .4; cursor: not-allowed; }

.ptt-page-dots { color: #9ca3af; font-size: 13px; padding: 0 4px; }

/* Responsive */
@media (max-width: 1024px) {
    .ptt-grid-archive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ptt-archive-body { flex-direction: column; }
    .ptt-archive-sidebar { width: 100%; position: static; }
}
@media (max-width: 480px) {
    .ptt-grid-archive { grid-template-columns: 1fr; }
    .ptt-archive-topbar { flex-direction: column; align-items: flex-start; }
}











