/* =============================================
   ALIJA ECOMMERCE FUNNEL — PERSUASION & CONFIDENCE
   Goal: Maximum clarity, Reduced hesitation, High Trust.
   ============================================= */

:root {
    --funnel-blue: #1a3a5f;      /* Trust & Professionalism */
    --funnel-orange: #ff6b35;    /* Action & Urgency */
    --funnel-light-blue: #f0f4f8; /* Background zones */
    --funnel-green: #27ae60;     /* Confidence & Stock */
    --funnel-text: #2d3436;
    --funnel-muted: #636e72;
}

/* === GLOBAL TRUST REFINEMENTS === */
.funnel-active {
    color: var(--funnel-text);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* === THE PERSUASIVE HERO === */
.hero-funnel {
    background: linear-gradient(135deg, var(--funnel-blue) 0%, #0d1b2a 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-funnel__content { max-width: 650px; z-index: 2; position: relative; }
.hero-funnel__headline {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero-funnel__subline {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}
.hero-funnel__outcome-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}
.hero-funnel__tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* === BUTTON HIERARCHY === */
.btn-funnel {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary-funnel {
    background: var(--funnel-orange) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary-funnel:hover {
    background: #e55a2b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff !important;
}
.btn-secondary-funnel {
    background: #fff !important;
    color: var(--funnel-blue) !important;
    border: 2px solid var(--funnel-blue) !important;
}
.btn-secondary-funnel:hover {
    background: var(--funnel-light-blue);
    color: var(--funnel-blue);
}

/* === PROBLEM-SOLUTION SECTION === */
.problem-solution { padding: 80px 0; background: var(--funnel-light-blue); }
.problem-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #ff4757; /* Problem Red */
    height: 100%;
}
.solution-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--funnel-green); /* Solution Green */
    height: 100%;
}
.ps-icon { font-size: 24px; margin-bottom: 15px; }

/* === CONVERSION PRODUCT CARD === */
.product-card-funnel {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
}
.product-card-funnel:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-card-funnel__image { position: relative; height: 280px; background: #f9f9f9; padding: 20px; }
.product-card-funnel__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card-funnel__best-for {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--funnel-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.product-card-funnel__factory-label {
    position: absolute;
    bottom: 12px; right: 12px;
    background: var(--funnel-green);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.product-card-funnel__content { padding: 20px; flex: 1; }
.product-card-funnel__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--funnel-text); }
.product-card-funnel__specs { display: flex; gap: 10px; margin-bottom: 15px; }
.product-card-funnel__spec { font-size: 12px; color: var(--funnel-muted); background: #f1f1f1; padding: 2px 8px; border-radius: 4px; }
.product-card-funnel__price-box { margin-bottom: 20px; }
.product-card-funnel__price { font-size: 24px; font-weight: 800; color: var(--funnel-text); }
.product-card-funnel__price-label { font-size: 12px; color: var(--funnel-muted); display: block; }
.product-card-funnel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* === TRUST BADGES === */
.trust-badges-strip { border-top: 1px solid #eee; padding: 30px 0; background: #fff; }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge__icon { font-size: 20px; color: var(--funnel-blue); }
.trust-badge__text { font-size: 13px; font-weight: 600; line-height: 1.2; }

/* === WHY THIS PRODUCT SECTION (PDP) === */
.why-this-product {
    background: #fafafa;
    border: 2px solid var(--funnel-blue);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}
.why-this-product h4 { color: var(--funnel-blue); font-weight: 800; margin-bottom: 15px; }

/* === CHECKOUT TRUST === */
.checkout-trust-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
}
.checkout-trust-item { text-align: center; flex: 1; border-right: 1px solid #eee; }
.checkout-trust-item:last-child { border-right: none; }
.checkout-trust-item i { font-size: 24px; color: var(--funnel-green); margin-bottom: 8px; }

/* === STICKY MOBILE BUY BAR === */
.sticky-buy-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
}
@media (max-width: 991px) {
    .sticky-buy-bar { display: flex; }
    body { padding-bottom: 80px; }
}

/* === URGENCY & VALUE LABELS === */
.funnel-urgency {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--funnel-orange);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.funnel-value-anchor {
    background: rgba(var(--funnel-orange-rgb), 0.1);
    color: var(--funnel-orange);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
}

/* === FILTER CHIPS === */
.funnel-filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}
.funnel-chip {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}
.funnel-chip.active, .funnel-chip:hover {
    background: var(--funnel-blue);
    color: #fff;
    border-color: var(--funnel-blue);
}

/* === OUT OF STOCK STATE === */
.out-of-stock-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #555;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    z-index: 10;
}
.card-out-of-stock { opacity: 0.8; }

/* === USAGE GALLERY === */
.usage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.usage-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
    border: 1px solid #eee;
}
.usage-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* === REVENUE & DEMAND INDICATORS === */
.demand-indicator {
    font-size: 12px;
    font-weight: 600;
    color: var(--funnel-blue);
    background: #f0f7ff;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.demand-indicator i { color: #3498db; }

.confidence-booster {
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.confidence-booster__count { font-size: 20px; font-weight: 800; color: #d35400; }
.confidence-booster__text { font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.2; color: #84817a; }

/* === MOST RECOMMENDED BADGE === */
.most-recommended-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--funnel-blue);
    color: #fff;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom-left-radius: 12px;
    z-index: 10;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
}

/* === UPSELL SECTION === */
.upsell-section {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}
.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.upsell-item {
    border: 1px solid #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}
.upsell-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.upsell-item img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; }
.upsell-item__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; height: 40px; overflow: hidden; }
.upsell-item__price { font-size: 16px; font-weight: 800; color: var(--funnel-orange); }

/* Hide redundant theme buttons if they appear in filters */
.tpproduct-details__cart .tp-btn, 
.tpproduct-details__cart .tp-btn-2 {
    display: none !important;
}

/* === DOMINANT CTA HIERARCHY === */
.btn-primary-funnel {
    background: var(--funnel-orange) !important;
    color: #fff !important;
    font-size: 15px;
    padding: 16px 40px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    width: 100%;
    justify-content: center;
    border: none !important;
}
.btn-secondary-funnel {
    background: transparent !important;
    color: var(--funnel-blue) !important;
    border: 1px solid #ddd !important;
    font-size: 13px;
    padding: 10px 20px;
    width: 100%;
    justify-content: center;
}

/* === QUANTITY SELECTOR POLISH === */
.tpproduct-details__quantity {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden;
}
.tpproduct-details__quantity span {
    color: var(--funnel-blue) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
}
.tpproduct-details__quantity input {
    font-weight: 800 !important;
    color: var(--funnel-blue) !important;
}

/* === WHY CHOOSE US SECTION === */
.why-choose-us {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.feature-box {
    text-align: center;
    padding: 20px;
}
.feature-box i {
    font-size: 32px;
    color: var(--funnel-orange);
    margin-bottom: 15px;
}
.feature-box h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--funnel-blue); }
.feature-box p { font-size: 14px; color: var(--funnel-muted); }

/* === SHOP BY USE CASE === */
.use-case-section { padding: 40px 0; background: var(--funnel-light-blue); }
.use-case-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.use-case-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.use-case-icon {
    width: 60px; height: 60px;
    background: var(--funnel-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}


/* === PREMIUM HEADER OVERHAUL === */
.mainmenuarea {
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}
.mainmenu__search-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 0 20px !important;
    transition: all 0.3s;
}
.mainmenu__search-bar:focus-within {
    border-color: var(--funnel-orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}
.mainmenu__search-bar input {
    background: transparent !important;
    font-size: 14px !important;
    color: var(--funnel-blue) !important;
    height: 45px !important;
}
.mainmenu__search-icon { color: var(--funnel-blue) !important; }

.main-menu ul li a {
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--funnel-blue) !important;
}
.main-menu ul li a:hover { color: var(--funnel-orange) !important; }

/* Hide the distracting vertical categories sidebar on homepage if it exists */
.col-xl-2.d-none.d-xl-block:has(.tpsidebar-categories),
.col-xl-2.d-none.d-xl-block:has(.categories-dropdown),
.tpsidebar-categories {
    display: none !important;
}

/* Force the slider/content to take more space if sidebar is hidden in grid */
.col-xl-7.col-lg-9.align-items-center {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* TOP BAR REFINEMENT */
.header-top-area {
    background: var(--funnel-blue) !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.header-top-area a { color: #fff !important; font-weight: 700; }

/* --- EMERGENCY UI FIX --- */
/* Kill the ghost categories menu overlaying the hero */
.col-xl-3.col-lg-3.d-none.d-xl-block,
.tpsidebar-categories,
.tp-category-menu,
.category-menu-dropdown,
.tp-menu-toggle {
    display: none !important;
}

/* Fix search bar overflow and size */
.mainmenu__search {
    max-width: 500px;
    margin-left: auto;
}
.mainmenu__search-bar {
    height: 40px !important;
}

/* Ensure the hero doesn't have weird top padding if header is sticky */
.hero-funnel-premium {
    margin-top: 0 !important;
}

/* Force Categories Menu to be closed by default */
.category-menu {
    display: none !important;
}

/* Allow it to be toggled via JS (which uses inline display: block) */
/* slideToggle works by adding style="display: block" which overrides !important if we are not careful */
/* Actually, slideToggle won't override !important. I need to use a more specific selector or remove !important */

.category-menu.category-menu-off {
    display: none;
}

/* Specific override for Ninico's homepage force-open */
.mainmenuarea .category-menu {
    display: none !important;
}

/* Re-enable display when the user clicks (JS adds style="display: block") */
/* We need to allow the inline style to win */
.category-menu[style*="display: block"] {
    display: block !important;
}
