/* Vendor & Product Medals Header - Zhaket Demo */

/* Mobile Product Title */
.slide-title-mobile {
    margin-bottom: 1rem !important;
}

.slide-title-mobile h1 {
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Common styles for both desktop and mobile */
.vendor-product-header,
.vendor-product-header-mobile {
    margin-bottom: 1rem !important;
}

.vendor-product-header .vendor-avatar-link img,
.vendor-product-header-mobile .vendor-avatar-link img {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.vendor-product-header .vendor-avatar-link:hover img,
.vendor-product-header-mobile .vendor-avatar-link:hover img {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.vendor-product-header .vendor-name,
.vendor-product-header-mobile .vendor-name {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.vendor-product-header .vendor-name:hover,
.vendor-product-header-mobile .vendor-name:hover {
    color: #FEA000 !important;
}

/* Verified Badge - SVG Background */
.vendor-product-header .vendor-name.verified,
.vendor-product-header-mobile .vendor-name.verified {
    padding-left: 25px;
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left center;
    background-image: url(../img/medals/zhaket-verified.svg);
}

/* Product Medals Inline */
.product-medals-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-medals-inline .mlm-product-medal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.product-medals-inline .medal {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.product-medals-inline .medal:hover {
    transform: scale(1.15);
}

/* Mobile Vendor Header (Above Images) */
.vendor-product-header-mobile {
    padding: 0 15px;
}

/* کاهش فاصله بالای صفحه محصول */
.app-product-slide.app-header-intro {
    padding-top: 140px !important; /* دسکتاپ: از 225px به 140px */
    padding-bottom: 20px !important;
}

/* موبایل */
@media (max-width: 991px) {
    .app-product-slide.app-header-intro {
        padding-top: 100px !important; /* موبایل: از 175px به 100px */
        padding-bottom: 15px !important;
    }
}

/* Product Meta در اسلایدر موبایل */
.app-product-slide .product-meta-widget {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-product-slide .product-meta-widget .text-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
}

.app-product-slide .product-meta-widget .col-auto {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.app-product-slide .product-meta-widget span {
    font-size: 13px !important;
}

/* استایل دکمه پیش‌نمایش در اسلایدر - Override primary-zhaket.css */
.app-product-slide .slide-links .btn-demo,
.app-product-slide-widget .slide-links .btn-demo,
.app-product-slide .btn-demo {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #7f8c8d !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin-top: 0px !important;
}

/* Force override with higher specificity */
body .app-product-slide .slide-links .btn-demo {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #7f8c8d !important;
    margin-top: 0px !important;
}

/* Override any gradient or orange background */
.app-product-slide .btn-demo,
.app-product-slide .btn-demo.btn-primary,
.app-product-slide .btn-demo.btn-secondary,
.app-product-slide .btn-demo.btn-warning {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #e0e0e0 !important;
    color: #7f8c8d !important;
}

.app-product-slide .slide-links .btn-demo:hover,
.app-product-slide-widget .slide-links .btn-demo:hover,
.app-product-slide .slide-links .btn-demo:focus,
.app-product-slide-widget .slide-links .btn-demo:focus,
body .app-product-slide .slide-links .btn-demo:hover,
body .app-product-slide .slide-links .btn-demo:focus {
    background: #7f8c8d !important;
    background-color: #7f8c8d !important;
    background-image: none !important;
    border-color: #7f8c8d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

.app-product-slide .btn-demo:focus {
    background: #7f8c8d !important;
    background-color: #7f8c8d !important;
    border-color: #7f8c8d !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.25) !important;
}

.app-product-slide .btn-demo:active {
    background: #6c7b7d !important;
    background-color: #6c7b7d !important;
    border-color: #6c7b7d !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* استایل دکمه سبد خرید در اسلایدر - Override primary-zhaket.css */
.app-product-slide .slide-links .btn-buy {
    background: #ff8c00 !important;
    background-color: #ff8c00 !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

.app-product-slide .slide-links .btn-buy:hover,
.app-product-slide .slide-links .btn-buy:focus {
    background: #cc7000 !important;
    background-color: #cc7000 !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Force override with higher specificity */
body .app-product-slide .slide-links .btn-buy {
    background: #ff8c00 !important;
    background-color: #ff8c00 !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body .app-product-slide .slide-links .btn-buy:hover,
body .app-product-slide .slide-links .btn-buy:focus {
    background: #cc7000 !important;
    background-color: #cc7000 !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Ultimate override - highest specificity */
html body .app-product-slide .slide-links .btn-buy,
html body .app-product-slide .slide-links .btn-buy.btn,
html body .app-product-slide .slide-links .btn-buy.btn-block {
    background: #ff8c00 !important;
    background-color: #ff8c00 !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

html body .app-product-slide .slide-links .btn-buy:hover,
html body .app-product-slide .slide-links .btn-buy:focus,
html body .app-product-slide .slide-links .btn-buy.btn:hover,
html body .app-product-slide .slide-links .btn-buy.btn:focus {
    background: #cc7000 !important;
    background-color: #cc7000 !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* حذف آیکون تکراری - فقط آیکون HTML استفاده می‌شود */

/* Ultimate override - inline style override */
html body .app-product-slide .slide-links .btn-buy[style*="background"] {
    background: #ff8c00 !important;
    background-color: #ff8c00 !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* استایل هاور برای دکمه سبد خرید با inline style */
.app-product-slide .btn-buy[style*="background"]:hover {
    background: #cc7000 !important;
    background-color: #cc7000 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

.vendor-product-header-mobile .vendor-avatar-link {
    display: inline-block;
}

.vendor-product-header-mobile .vendor-name {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-medals-mobile {
    gap: 6px;
}

.product-medals-mobile .medal {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .vendor-product-header .row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .vendor-info-col {
        margin-bottom: 10px;
    }
    
    .product-medals-col {
        width: 100%;
    }
    
    .product-medals-inline {
        justify-content: flex-start !important;
    }
}

