/* =============================================================
   Cenfiliate Theme – Compiled CSS (pre-build fallback)
   Run: npm run dev --theme=cenfiliate  to regenerate
   ============================================================= */

/* ── Layout utils ─────────────────────────────────────────── */
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.min-vh-hero { min-height: 75vh; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.cf-header {
    background: var(--cf-header-bg, #fff);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .25s ease;
}
.cf-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.cf-header .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--cf-primary, #206bc4);
    text-decoration: none;
}
.cf-header .nav-link {
    font-weight: 500;
    color: var(--cf-header-text, #232e3c);
    padding: .5rem .9rem;
    border-radius: .375rem;
    transition: color .2s, background .2s;
}
.cf-header .nav-link:hover,
.cf-header .nav-link.active {
    color: var(--cf-primary, #206bc4);
    background: rgba(32,107,196,.06);
}
.cf-cart-btn {
    background: none;
    border: none;
    color: var(--cf-header-text, #232e3c);
    padding: .4rem .5rem;
    cursor: pointer;
    transition: color .2s;
}
.cf-cart-btn:hover { color: var(--cf-primary, #206bc4); }
.cf-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: .65rem;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1024;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.body-overlay.opened,
.body-overlay.active { opacity: 1; visibility: visible; cursor: pointer; }

/* ── Mini cart sidebar ─────────────────────────────────────── */
.cartmini__area {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 1050;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.cartmini__area.cartmini-opened { right: 0; }
.cartmini__wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.cartmini__top-wrapper {
    flex: 1;
    overflow-y: auto;
}
.cartmini__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}
.cartmini__top .cartmini__top-title h4 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.cartmini__close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: .25rem .5rem;
    color: #555;
    transition: color .2s;
}
.cartmini__close-btn:hover { color: #000; }

/* ── Hero ─────────────────────────────────────────────────── */
.cf-hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f4fd 50%, #f8f9fa 100%);
}
.cf-hero-placeholder {
    background: linear-gradient(135deg, var(--cf-primary, #206bc4) 0%, var(--cf-secondary, #1a5276) 100%);
    height: 420px;
    border-radius: 1.25rem;
}
.cf-hero-img { max-height: 480px; object-fit: cover; }

/* ── Stats ────────────────────────────────────────────────── */
.cf-stat-value { font-size: 2.25rem !important; }

/* ── Steps ────────────────────────────────────────────────── */
.cf-step-card {
    border-radius: .75rem;
    transition: transform .25s, box-shadow .25s;
}
.cf-step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1) !important; }
.cf-step-number { width: 40px; height: 40px; font-size: 1rem; font-weight: 700; }

/* ── Feature cards ────────────────────────────────────────── */
.cf-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(32,107,196,.08);
    border-radius: .5rem;
    flex-shrink: 0;
}
.cf-feature-card {
    transition: box-shadow .2s, transform .2s;
    background: #fff;
    border-radius: .75rem;
}
.cf-feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09) !important; }

/* ── CTA ──────────────────────────────────────────────────── */
.cf-cta {
    background: linear-gradient(135deg, var(--cf-primary, #206bc4) 0%, var(--cf-secondary, #1a5276) 100%);
}

/* ── Product cards ────────────────────────────────────────── */
.cf-product-card {
    border-radius: .75rem;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}
.cf-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12) !important; }
.cf-product-card:hover .cf-wishlist-btn { opacity: 1; transform: scale(1); }
.cf-wishlist-btn {
    opacity: 0;
    transform: scale(.8);
    transition: opacity .2s, transform .2s;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 1;
}
.cf-wishlist-btn:hover { color: #e03131 !important; }
.cf-product-card .card-img-top { transition: transform .3s ease; }
.cf-product-card:hover .card-img-top { transform: scale(1.04); }

/* ── Filter sidebar ───────────────────────────────────────── */
.cf-filter-sidebar {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .75rem;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

/* ── Mini cart offcanvas ──────────────────────────────────── */
.cf-offcanvas-cart { width: 380px; }
.cf-offcanvas-cart .cf-mini-cart-item img { border-radius: .5rem; object-fit: cover; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.cf-breadcrumb-wrap {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ── Footer ───────────────────────────────────────────────── */
.cf-footer {
    background: var(--cf-footer-bg, #1a2232);
    color: var(--cf-footer-text, #a8b1c0);
}
.cf-footer a {
    color: var(--cf-footer-link, #c9d1db);
    text-decoration: none;
    transition: color .2s;
}
.cf-footer a:hover { color: var(--cf-footer-link-hover, #206bc4); }
.cf-footer h5, .cf-footer h6, .cf-footer .cf-footer-title { color: var(--cf-footer-title, #fff); }
.cf-footer-bottom { border-color: rgba(255,255,255,.08) !important; }

/* ── Language switcher ────────────────────────────────────── */
.cf-lang-switcher .btn { font-size: .8rem; }

/* ── 404 ──────────────────────────────────────────────────── */
.cf-404-code { opacity: .12; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
    .cf-hero-title { font-size: 2rem !important; }
    .cf-offcanvas-cart { width: 100% !important; }
}
