:root {
    --bf-bg: #09090c;
    --bf-card-bg: #13131a;
    --bf-card-border: rgba(255, 255, 255, 0.08);
    --bf-red: #ff2a5f;
    --bf-red-glow: rgba(255, 42, 95, 0.45);
    --bf-gold: #ffb800;
    --bf-text: #f3f4f6;
    --bf-muted: #9ca3af;
}

/* ریست کامل برای تمام‌صفحه شدن ۱۰۰٪ و حذف حاشیه‌های قالب وردپرس */
html, body.mugdost-bf-fullscreen {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--bf-bg) !important;
    color: var(--bf-text) !important;
    overflow-x: hidden !important;
}

.bf-landing-wrapper {
    background-color: var(--bf-bg);
    color: var(--bf-text);
    min-height: 100vh;
    width: 100%;
    font-family: inherit;
    display: flex;
    flex-direction: column;
}

.bf-container {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- هدر اختصاصی شیشه‌ای بلک فرایدی --- */
.bf-custom-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(9, 9, 12, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 0;
}

.bf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bf-brand-logo img {
    height: 46px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bf-brand-logo:hover img {
    transform: scale(1.05);
}

.bf-header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.bf-header-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.bf-header-nav a:hover,
.bf-header-nav a.bf-active-link {
    color: var(--bf-gold);
}

.bf-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.bf-cart-btn:hover {
    background: var(--bf-red);
    border-color: var(--bf-red);
    box-shadow: 0 4px 15px var(--bf-red-glow);
}

.bf-cart-count {
    background: var(--bf-gold);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 50px;
    line-height: 1;
}

/* --- بخش هدر قهرمان (Hero) و تایمر --- */
.bf-hero {
    position: relative;
    padding: 65px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--bf-card-border);
    margin-bottom: 50px;
    overflow: hidden;
}

.bf-hero-glow {
    position: absolute;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.22) 0%, rgba(255, 184, 0, 0.06) 45%, transparent 70%);
    top: -320px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* واترمارک محو لوگو در پس‌زمینه */
.bf-hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    width: 520px;
    max-width: 90vw;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
}

.bf-hero-content {
    position: relative;
    z-index: 2;
}

.bf-hero-logo-top {
    margin-bottom: 18px;
}

.bf-hero-logo-top img {
    height: 68px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.15));
}

.bf-badge-top {
    display: inline-block;
    background: rgba(255, 42, 95, 0.14);
    color: var(--bf-red);
    border: 1px solid rgba(255, 42, 95, 0.4);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
    box-shadow: 0 0 25px rgba(255, 42, 95, 0.25);
}

.bf-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.3;
}

.bf-gold-text {
    background: linear-gradient(135deg, #ffe066 0%, #ffb800 50%, #ff7b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bf-subtitle {
    color: var(--bf-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

/* تایمر معکوس */
.bf-countdown {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 32px;
    border-radius: 22px;
    backdrop-filter: blur(12px);
    direction: ltr;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bf-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}

.bf-time-box span {
    font-size: 30px;
    font-weight: 900;
    color: var(--bf-gold);
    line-height: 1.1;
}

.bf-time-box small {
    font-size: 11px;
    color: var(--bf-muted);
    margin-top: 5px;
}

.bf-time-sep {
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 14px;
}

/* --- گرید محصولات --- */
.bf-products-section {
    flex-grow: 1;
    padding-bottom: 80px;
}

.bf-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

@media (max-width: 1100px) {
    .bf-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bf-header-nav { display: none; }
    .bf-products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .bf-countdown { padding: 12px 18px; gap: 8px; }
    .bf-time-box { min-width: 42px; }
    .bf-time-box span { font-size: 22px; }
}
@media (max-width: 430px) {
    .bf-products-grid { grid-template-columns: 1fr; }
}

/* --- کارت محصول (UI/UX حرفه‌ای) --- */
.bf-product-card {
    background: var(--bf-card-bg);
    border: 1px solid var(--bf-card-border);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bf-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 95, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 42, 95, 0.18);
}

/* --- لیبل تخفیف خفن --- */
.bf-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background: linear-gradient(135deg, #ff1e56 0%, #ff5e00 100%);
    color: #fff;
    padding: 7px 13px;
    border-radius: 14px 4px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--bf-red-glow);
    animation: bfPulse 2.2s infinite;
    line-height: 1;
}

.bf-disc-num {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.bf-disc-txt {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: 0.95;
    margin-top: 3px;
}

@keyframes bfPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 30, 86, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 30, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 30, 86, 0); }
}

/* --- بخش تصویر محصول --- */
.bf-card-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a23;
}

.bf-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.bf-card-img-wrap .bf-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.bf-product-card:hover .bf-card-img-wrap img:first-child {
    transform: scale(1.07);
}

.bf-product-card:hover .bf-card-img-wrap .bf-hover-img {
    opacity: 1;
    transform: scale(1.07);
}

/* --- بدنه کارت --- */
.bf-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bf-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bf-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.bf-card-title a:hover {
    color: var(--bf-gold);
}

/* نوار وضعیت موجودی */
.bf-stock-bar-wrap {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 10px;
}

.bf-stock-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--bf-muted);
    margin-bottom: 6px;
}

.bf-stock-left {
    color: var(--bf-gold);
    font-weight: bold;
}

.bf-progress {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.bf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bf-gold), var(--bf-red));
    border-radius: 10px;
}

/* --- فوتر کارت (قیمت و دکمه خرید) --- */
.bf-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bf-price-box {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 900;
    color: var(--bf-gold);
}

.bf-price-box del {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 2px;
}

.bf-price-box ins {
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.bf-price-box .woocommerce-Price-currencySymbol {
    font-size: 11px;
    font-weight: normal;
    color: var(--bf-muted);
    margin-right: 3px;
}

/* دکمه خرید */
.bf-add-to-cart-btn {
    background: linear-gradient(135deg, #ff1e56 0%, #d40c3d 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(255, 30, 86, 0.35);
}

.bf-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%) !important;
    color: #000 !important;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.45);
    transform: scale(1.04);
}

.bf-out-of-stock {
    background: rgba(255, 255, 255, 0.07);
    color: var(--bf-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
}

.bf-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bf-card-bg);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--bf-muted);
}

/* --- فوتر اختصاصی بلک فرایدی --- */
.bf-custom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
    text-align: center;
    background: #060608;
    color: var(--bf-muted);
    font-size: 13px;
}

.bf-footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.85;
}

.bf-back-home {
    display: inline-block;
    margin-top: 10px;
    color: var(--bf-gold);
    text-decoration: none;
    font-weight: 700;
}
/* =========================================
   استایل ویترین بلک فرایدی در صفحه اصلی (شورت‌کد)
   ========================================= */
.bf-home-showcase {
    background: #0b0b0f;
    border-radius: 28px;
    padding: 40px 32px;
    margin: 40px auto;
    max-width: 1340px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 42, 95, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.bf-home-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.2) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    pointer-events: none;
}

.bf-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 22px;
}

.bf-home-title-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bf-home-logo {
    height: 58px;
    width: auto;
}

.bf-home-heading {
    color: #fff !important;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    margin: 4px 0 0 !important;
}

.bf-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffb800 0%, #ff7b00 100%);
    color: #000 !important;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
}

.bf-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.55);
}

/* =========================================
   بنر شناور بلک فرایدی در کل سایت
   ========================================= */
.bf-floating-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background: linear-gradient(135deg, #111118 0%, #1d1d28 100%);
    border: 1px solid rgba(255, 42, 95, 0.5);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 42, 95, 0.25);
    transition: all 0.3s ease;
}

.bf-floating-cta:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--bf-gold);
}

.bf-floating-cta img {
    height: 36px;
    width: auto;
}

.bf-float-text {
    display: flex;
    flex-direction: column;
}

.bf-float-text strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.bf-float-text span {
    color: var(--bf-gold);
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.bf-float-pulse {
    width: 10px;
    height: 10px;
    background: #ff2a5f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.7);
    animation: bfPulse 1.8s infinite;
}

@media (max-width: 768px) {
    .bf-home-showcase {
        padding: 24px 16px;
        margin: 20px 12px;
        border-radius: 20px;
    }
    .bf-floating-cta {
        bottom: 15px;
        left: 15px;
        padding: 8px 14px;
    }
    .bf-floating-cta img {
        height: 28px;
    }
    .bf-float-text strong {
        font-size: 11px;
    }
}

/* استایل اختصاصی دکمه ورود / ثبت‌نام و حساب کاربری در هدر */
.bf-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.bf-user-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 184, 0, 0.1) !important;
    border: 1px solid rgba(255, 184, 0, 0.45) !important;
    color: #fff !important;
    padding: 9px 16px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
}

.bf-user-btn svg {
    color: var(--bf-gold) !important;
    flex-shrink: 0;
}

.bf-user-btn:hover {
    background: var(--bf-gold) !important;
    border-color: var(--bf-gold) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35) !important;
}

.bf-user-btn:hover svg {
    color: #000 !important;
}