/*
 Theme Name:   BuyDekhke Child
 Template:     rehub-theme
 Description:  Child theme for buydekhke.com — nav cleanup, dead-widget fixes, SEO & Product schema support.
 Version:      2.2.0
 Author:       BuyDekhke
*/

@import url("../rehub-theme/style.css");

/* ---- Hide broken/disabled login link ---- */
.header-login-disabled {
    display: none !important;
}

/* ---- Normalize category menu text ---- */
.menu-item a {
    text-transform: none;
}

/* ---- Hide zero-value counters on deal cards ---- */
.deal-meta .vote-count[data-count="0"],
.deal-meta .comment-count[data-count="0"] {
    display: none;
}

/* ---- Affiliate disclosure banner (re-enable if you add it back) ---- */
.affiliate-disclosure {
    background: #fff8e1;
    border: 1px solid #f0d878;
    padding: 10px 16px;
    font-size: 13px;
    color: #665200;
    border-radius: 4px;
    margin: 12px 0;
}

/* ---- Price display normalization ---- */
.price-old {
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
}
.price-new {
    font-weight: 700;
    color: #d32f2f;
}

/* ---- Buy-now redirect screen ----
   Full-screen white page with a soft blue glow: logo, "Redirecting you securely…", store name, loading bar.
   Normally the store opens in a NEW tab (see js/redirect.js, which draws the same screen there);
   this in-page version is only used if the browser blocks the new tab or BD_REDIRECT_NEW_TAB is false. */
#bd-redirect-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: radial-gradient(60% 55% at 50% 50%, rgba(47,111,228,.11) 0, rgba(47,111,228,.045) 45%, rgba(255,255,255,0) 74%), #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
#bd-redirect-overlay.is-open { opacity: 1; pointer-events: auto; }
#bd-redirect-overlay.is-leaving { opacity: 0; transition: opacity .2s ease; }
#bd-redirect-overlay .bd-box {
    width: min(94vw, 540px);
    padding: 24px;
    text-align: center;
    font-family: inherit;
    transform: translateY(10px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
#bd-redirect-overlay.is-open .bd-box { transform: none; opacity: 1; }
#bd-redirect-overlay .bd-logo { margin: 0 0 26px; }
#bd-redirect-overlay .bd-logo img { display: block; margin: 0 auto; max-width: 220px; max-height: 46px; width: auto; height: auto; }
#bd-redirect-overlay .bd-wordmark { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #17203a; }
#bd-redirect-overlay .bd-wordmark b { color: #2f6fe4; font-weight: 800; }
#bd-redirect-overlay .bd-title {
    font-size: clamp(22px, 4.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.2;
    color: #17203a;
    margin-bottom: 8px;
}
#bd-redirect-overlay .bd-sub { font-size: 15px; color: #6b7390; }
#bd-redirect-overlay .bd-sub b { color: #17203a; font-weight: 700; }
#bd-redirect-overlay .bd-bar {
    width: min(100%, 380px);
    height: 6px;
    margin: 26px auto 0;
    background: #e8ecf8;
    border-radius: 999px;
    overflow: hidden;
}
#bd-redirect-overlay .bd-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f6fe4, #6ea0ff 55%, #2f6fe4);
    background-size: 200% 100%;
    animation: bd-shimmer 1.1s linear infinite;
    /* width is driven by JS (transition set inline) so it stays in sync with the redirect delay */
}
@keyframes bd-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    #bd-redirect-overlay, #bd-redirect-overlay .bd-box { transition: none; }
    #bd-redirect-overlay .bd-bar-fill { animation: none; }
}

/* ---- Category buyer's guide block ---- */
.bd-category-intro {
    background: #f9f9f9;
    border-left: 3px solid #d32f2f;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
.bd-category-faq {
    margin: 30px 0 10px;
}
.bd-category-faq h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.bd-category-faq details {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.bd-category-faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}
.bd-category-faq p {
    margin: 8px 0 0;
    color: #555;
}