/* ================================================================
   Cr8v Stacks — Templates plugin styles
   Scoped with .cr8vt- prefix throughout.
   Matches the site-wide soft black / white / blue identity.
   ================================================================ */

/* Reset within plugin scope */
.cr8vt-wrap *,
.cr8vt-wrap *::before,
.cr8vt-wrap *::after { box-sizing: border-box; }

/* Force custom Outfit typography and override theme/Elementor hijacking */
body.single-cr8vt_template,
body.archive-post-type-cr8vt_template,
body.post-type-archive-cr8vt_template,
body.single-cr8vt_plugin,
body.archive-post-type-cr8vt_plugin,
body.post-type-archive-cr8vt_plugin,
.cr8vt-page,
.cr8vt-wrap,
.cr8vt-announce {
    font-family: 'Outfit', sans-serif !important;
}

body.single-cr8vt_template h1, body.single-cr8vt_template h2, body.single-cr8vt_template h3, body.single-cr8vt_template h4, body.single-cr8vt_template h5, body.single-cr8vt_template h6,
body.archive-post-type-cr8vt_template h1, body.archive-post-type-cr8vt_template h2, body.archive-post-type-cr8vt_template h3,
body.post-type-archive-cr8vt_template h1, body.post-type-archive-cr8vt_template h2, body.post-type-archive-cr8vt_template h3,
body.single-cr8vt_plugin h1, body.single-cr8vt_plugin h2, body.single-cr8vt_plugin h3, body.single-cr8vt_plugin h4,
body.archive-post-type-cr8vt_plugin h1, body.archive-post-type-cr8vt_plugin h2, body.archive-post-type-cr8vt_plugin h3,
body.post-type-archive-cr8vt_plugin h1, body.post-type-archive-cr8vt_plugin h2, body.post-type-archive-cr8vt_plugin h3,
.cr8vt-page h1, .cr8vt-page h2, .cr8vt-page h3, .cr8vt-page h4 {
    font-family: 'Outfit', sans-serif !important;
}

body.single-cr8vt_template p, body.single-cr8vt_template li, body.single-cr8vt_template a, body.single-cr8vt_template span,
body.archive-post-type-cr8vt_template p, body.archive-post-type-cr8vt_template li, body.archive-post-type-cr8vt_template a, body.archive-post-type-cr8vt_template span,
body.post-type-archive-cr8vt_template p, body.post-type-archive-cr8vt_template li, body.post-type-archive-cr8vt_template a, body.post-type-archive-cr8vt_template span,
body.single-cr8vt_plugin p, body.single-cr8vt_plugin li, body.single-cr8vt_plugin a, body.single-cr8vt_plugin span,
body.archive-post-type-cr8vt_plugin p, body.archive-post-type-cr8vt_plugin li, body.archive-post-type-cr8vt_plugin a, body.archive-post-type-cr8vt_plugin span,
body.post-type-archive-cr8vt_plugin p, body.post-type-archive-cr8vt_plugin li, body.post-type-archive-cr8vt_plugin a, body.post-type-archive-cr8vt_plugin span,
.cr8vt-page p, .cr8vt-page li, .cr8vt-page a, .cr8vt-page span {
    font-family: 'Outfit', sans-serif !important;
}


/* ----------------------------------------------------------------
   Page shell — overrides theme container where needed
   ---------------------------------------------------------------- */
.cr8vt-page {
    background: #fff;
    color: #15171A;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 60vh;
}
.cr8vt-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}
.cr8vt-page h1,
.cr8vt-page h2,
.cr8vt-page h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: 'Outfit', sans-serif;
}
.cr8vt-page p { margin: 0; }
.cr8vt-page a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------------
   Announce bar
   ---------------------------------------------------------------- */
.cr8vt-announce {
    background: #15171A;
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 9px 28px;
}
.cr8vt-announce a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}
.cr8vt-announce a:hover { border-color: #fff; }

/* ----------------------------------------------------------------
   Archive: title row
   ---------------------------------------------------------------- */
.cr8vt-archive-head {
    padding: 44px 0 28px;
    border-bottom: 1.5px solid #15171A;
}
.cr8vt-archive-head h1 { font-size: 36px; }
.cr8vt-archive-head p {
    margin-top: 10px;
    color: #5B6472;
    font-size: 15px;
    line-height: 1.55;
    max-width: 560px;
}

/* ----------------------------------------------------------------
   Archive: two-column layout
   ---------------------------------------------------------------- */
.cr8vt-archive-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 40px;
    padding: 32px 0 80px;
}

/* ----------------------------------------------------------------
   Sidebar
   ---------------------------------------------------------------- */
.cr8vt-sidebar { align-self: start; }

.cr8vt-search-box { position: relative; margin-bottom: 28px; }
.cr8vt-search-box input {
    width: 100%;
    border: 1.5px solid #15171A;
    padding: 11px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    background: #fff;
    color: #15171A;
    appearance: none;
    border-radius: 0;
}
.cr8vt-search-box input:focus { outline: none; border-color: #2F5FE0; }
.cr8vt-search-box input::placeholder { color: #9aa0ab; }

.cr8vt-sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5B6472;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'Outfit', sans-serif;
}
.cr8vt-cat-list { list-style: none; margin: 0; padding: 0; }
.cr8vt-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    cursor: pointer;
    font-size: 14px;
    color: #5B6472;
    user-select: none;
    transition: color .2s ease;
}
.cr8vt-cat-row:hover { color: #15171A; }
.cr8vt-cat-left { display: flex; align-items: center; gap: 10px; }
.cr8vt-cat-box {
    width: 16px; height: 16px;
    border: 1.5px solid #9aa0ab;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s ease, background-color .2s ease;
}
.cr8vt-cat-row.active { color: #15171A; font-weight: 600; }
.cr8vt-cat-row.active .cr8vt-cat-box {
    border-color: #2F5FE0;
    background: #2F5FE0;
}
.cr8vt-cat-row.active .cr8vt-cat-box::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cr8vt-cat-count { font-size: 12px; color: #9aa0ab; }

/* ----------------------------------------------------------------
   Card grid
   ---------------------------------------------------------------- */
.cr8vt-result-count { font-size: 13px; color: #5B6472; margin-bottom: 18px; }

.cr8vt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.cr8vt-card {
    border: 1.5px solid #15171A;
    display: flex;
    flex-direction: column;
    background: #fff;
    cursor: pointer;
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cr8vt-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #15171A;
}
.cr8vt-card a { cursor: pointer; }

.cr8vt-card-thumb {
    aspect-ratio: 4/3;
    border-bottom: 1.5px solid #15171A;
    overflow: hidden;
    display: block;
}
.cr8vt-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.cr8vt-card:hover .cr8vt-card-thumb img {
    transform: scale(1.03);
}
/* placeholder if no featured image */
.cr8vt-card-thumb-placeholder {
    width: 100%; height: 100%;
    background: #F4F6F9;
    display: flex; align-items: center; justify-content: center;
    color: #9aa0ab; font-size: 13px;
}

.cr8vt-card-body {
    padding: 16px 18px 18px;
    display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.cr8vt-card-body h3 { font-size: 16px; transition: color .2s ease; }
.cr8vt-card:hover .cr8vt-card-body h3 { color: #2F5FE0; }

.cr8vt-card-foot {
    display: flex; align-items: center; gap: 10px; margin-top: auto;
}
.cr8vt-tag-free {
    background: #2F5FE0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 14px 5px 9px;
    clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
    flex-shrink: 0;
}
.cr8vt-card-dl-icon {
    width: 16px; height: 16px; color: #5B6472; flex-shrink: 0;
    transition: transform .2s ease, color .2s ease;
}
.cr8vt-card:hover .cr8vt-card-dl-icon {
    transform: translateY(2px);
    color: #2F5FE0;
}
.cr8vt-see-details {
    font-size: 13px; font-weight: 600; margin-left: auto;
    border-bottom: 1.5px solid #15171A;
    transition: color .2s ease, border-color .2s ease;
}
.cr8vt-card:hover .cr8vt-see-details { color: #2F5FE0; border-color: #2F5FE0; }

/* ----------------------------------------------------------------
   Single template page
   ---------------------------------------------------------------- */
.cr8vt-single-page { padding-bottom: 80px; }

.cr8vt-breadcrumb {
    display: inline-block;
    margin: 28px 0 0;
    font-size: 13px;
    color: #5B6472;
    font-weight: 600;
}
.cr8vt-breadcrumb:hover { color: #15171A; }

.cr8vt-hero {
    margin-top: 22px;
    border: 1.5px solid #15171A;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.cr8vt-hero img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.cr8vt-hero-placeholder {
    width: 100%; height: 100%;
    background: #F4F6F9;
    display: flex; align-items: center; justify-content: center;
    color: #9aa0ab; font-size: 14px;
}

.cr8vt-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    margin-top: 36px;
}
.cr8vt-detail-main h1 { font-size: 32px; }

.cr8vt-meta-row {
    display: flex; align-items: center; gap: 16px;
    margin-top: 18px; flex-wrap: wrap;
}
.cr8vt-divider {
    width: 1.5px; height: 18px; background: #E3E6EC; flex-shrink: 0;
}
.cr8vt-meta-link {
    font-size: 13.5px; font-weight: 600;
    border-bottom: 1.5px solid #15171A;
}
.cr8vt-meta-link:hover { color: #2F5FE0; border-color: #2F5FE0; }

.cr8vt-detail-desc {
    margin-top: 26px;
    font-size: 15px; line-height: 1.7;
    color: #5B6472; max-width: 600px;
}

.cr8vt-detail-block { margin-top: 38px; }
.cr8vt-detail-block h2 { font-size: 18px; margin-bottom: 14px; }

.cr8vt-preview-link {
    font-size: 14.5px;
}
.cr8vt-preview-link a {
    font-weight: 600;
    border-bottom: 1.5px solid #2F5FE0;
    color: #2F5FE0;
}
.cr8vt-preview-link a:hover { opacity: 0.8; }

.cr8vt-feature-list {
    margin: 0; padding: 0 0 0 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.cr8vt-feature-list li {
    font-size: 14.5px; line-height: 1.6; color: #5B6472;
}

.cr8vt-install-text {
    font-size: 14.5px; line-height: 1.75;
    color: #5B6472; max-width: 600px;
}
.cr8vt-install-text + .cr8vt-install-text { margin-top: 14px; }
.cr8vt-install-text strong { color: #15171A; font-weight: 600; }
.cr8vt-install-text a { font-weight: 600; border-bottom: 1.5px solid #15171A; color: #15171A; }

/* ----------------------------------------------------------------
   Buy box / side info panel
   ---------------------------------------------------------------- */
.cr8vt-buybox { align-self: start; }

.cr8vt-btn-download {
    display: block; width: 100%; text-align: center;
    background: #15171A !important; color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 15px; font-weight: 600; padding: 16px;
    border: 1.5px solid #15171A !important;
    cursor: pointer; transition: background .15s, border-color .15s;
    text-decoration: none !important;
}
.cr8vt-btn-download:hover { background: #2F5FE0 !important; border-color: #2F5FE0 !important; color: #fff !important; }

.cr8vt-info-box {
    border: 1.5px solid #15171A;
    margin-top: 14px;
}
.cr8vt-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 16px; font-size: 13.5px;
}
.cr8vt-info-row + .cr8vt-info-row { border-top: 1.5px solid #E3E6EC; }
.cr8vt-info-row .k { color: #5B6472; }
.cr8vt-info-row .v { font-weight: 600; }

/* ----------------------------------------------------------------
   Related templates
   ---------------------------------------------------------------- */
.cr8vt-related {
    border-top: 1.5px solid #15171A;
    margin-top: 60px; padding-top: 40px;
}
.cr8vt-related-head {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 22px;
}
.cr8vt-related-head h2 { font-size: 22px; }
.cr8vt-related-head a {
    font-size: 13.5px; font-weight: 600;
    border-bottom: 1.5px solid #15171A;
}
.cr8vt-related-head a:hover { color: #2F5FE0; border-color: #2F5FE0; }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.cr8vt-pagination {
    display: flex;
    gap: 8px;
    margin-top: 48px;
    align-items: center;
}
.cr8vt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1.5px solid #15171A;
    background: #fff;
    color: #15171A;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.cr8vt-pagination a.page-numbers:hover {
    background: #15171A;
    color: #fff;
}
.cr8vt-pagination .page-numbers.current {
    background: #2F5FE0;
    border-color: #2F5FE0;
    color: #fff;
}
.cr8vt-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
    .cr8vt-archive-layout { grid-template-columns: 1fr; gap: 28px; }
    .cr8vt-grid { grid-template-columns: repeat(2, 1fr); }
    .cr8vt-detail-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    .cr8vt-grid { grid-template-columns: 1fr; }
    .cr8vt-archive-head h1 { font-size: 28px; }
    .cr8vt-detail-main h1 { font-size: 26px; }
    .cr8vt-wrap { padding: 0 18px; }
}

.cr8vt-card-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5B6472;
    transition: color .2s ease;
    text-decoration: none !important;
}
.cr8vt-card-dl:hover {
    color: #2F5FE0;
}

/* ----------------------------------------------------------------
   Announce bar custom wrap
   ---------------------------------------------------------------- */
.cr8vt-announce-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 28px;
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
}
.cr8vt-announce a {
    color: #fff;
    border-bottom: 1.5px solid rgba(255,255,255,0.5);
}
.cr8vt-announce a:hover {
    border-color: #fff;
}

/* ----------------------------------------------------------------
   Site Header
   ---------------------------------------------------------------- */
.cr8vt-site-header {
    border-bottom: 1.5px solid #15171A;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.cr8vt-site-header .cr8vt-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.cr8vt-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cr8vt-brand-name {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
    color: #15171A;
}
.cr8vt-brand-tag {
    font-size: 14px;
    color: #5B6472;
    font-family: 'Outfit', sans-serif;
}
.cr8vt-header-link {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1.5px solid transparent;
    color: #15171A;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}
.cr8vt-header-link:hover {
    border-color: #15171A;
}

/* ----------------------------------------------------------------
   Site Footer
   ---------------------------------------------------------------- */
.cr8vt-site-footer {
    border-top: 1.5px solid #15171A;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.cr8vt-site-footer span {
    font-size: 13px;
    color: #5B6472;
    font-family: 'Outfit', sans-serif;
}

