/* Emergency UI Overrides - JDSHOP 2026 */
.marketplace-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,1) !important; /* Strong shadow for depth */
}

.btn-affiliate {
    width: 100% !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 0.95rem !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
    z-index: 10 !important;
}

.btn-affiliate i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0 !important; /* Fixed: touching text exactly */
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

/* Hover States - Lift & Scale */
.btn-affiliate:hover {
    transform: translateY(-7px) scale(1.03) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
    color: #ffffff !important;
}

.btn-affiliate:hover i {
    transform: scale(1.3) rotate(-5deg) !important;
}

/* Shine Sweep Animation */
.btn-affiliate::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transition: all 0.7s !important;
    z-index: 1 !important;
}

.btn-affiliate:hover::after {
    left: 150% !important;
}

/* Brand Colors (Keeping Original Logic) */
.btn-lazada { background: linear-gradient(135deg, #00008b, #0000ff) !important; }
.btn-shopee { background: linear-gradient(135deg, #ee4d2d, #ff7337) !important; }
.btn-tiktok { background: #000000 !important; border: 1px solid rgba(255,255,255,0.3) !important; }
.btn-line   { background: linear-gradient(135deg, #06c755, #05e662) !important; }

/* Share Box 2026 Fix */
.share-box-bottom {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
}

/* Premium Payment Buttons 2026 */
.btn-payment-premium {
    display: flex !important;
    align-items: center;
    padding: 0.8rem 1rem !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-payment-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.btn-payment-premium:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%) !important;
}

.btn-payment-premium:hover::before { opacity: 1; }

.btn-promptpay-premium:hover {
    border-color: rgba(13, 110, 253, 0.5) !important;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25), inset 0 0 20px rgba(13, 110, 253, 0.1);
}

.btn-promptpay-premium .method-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.btn-usdt-premium:hover {
    border-color: rgba(255, 193, 7, 0.5) !important;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.25), inset 0 0 20px rgba(255, 193, 7, 0.1);
}

.btn-usdt-premium .method-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.btn-payment-premium .method-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-payment-premium:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.btn-payment-premium .method-icon i { width: 28px; height: 28px; }

.btn-payment-premium .method-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.btn-payment-premium .method-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.btn-payment-premium .method-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.btn-payment-premium > i:last-child {
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.3);
}

.btn-payment-premium:hover > i:last-child {
    transform: translateX(5px);
    color: #ffffff;
}

/* Hide Scrollbar for Thumbnails */
.thumb-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.thumb-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Product Description Headers */
.product-description h1, .product-description h2, .product-description h3, 
.product-description h4, .product-description h5, .product-description h6 {
    color: var(--accent) !important;
    font-weight: 700;
}

/* Responsive Related Products */
@media (max-width: 768px) {
    .related-products-section h3 { font-size: 1.25rem; }
    .product-card .card-title { font-size: 0.85rem !important; }
    .product-card .card-body { padding: 0.75rem !important; }
    .btn-buy-sm { width: 28px; height: 28px; }
}
.btn-payment-premium .method-name { font-size: 1rem !important; margin-bottom: 0px !important; }
.btn-payment-premium .method-desc { font-size: 0.75rem !important; }
.payment-card-compact { padding: 1.2rem !important; }

/* T-Guard Package Grid */
.tguard-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}
.tguard-package-item {
    cursor: pointer;
    display: block;
    margin: 0;
}
.tguard-package-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tguard-package-item:hover .tguard-package-content {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}
.tguard-package-item input[type="radio"]:checked + .tguard-package-content {
    background: rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.3), inset 0 0 10px rgba(13, 110, 253, 0.1);
    transform: translateY(-3px) scale(1.02);
}
.pkg-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}
.pkg-price {
    color: #0d6efd;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}
.tguard-package-item input[type="radio"]:checked + .tguard-package-content .pkg-name {
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
