/* Deals Tab Styles */
.bt-section-subtitle {
    color: #666;
    font-size: 16px;
    margin: 2px 0 0 0;
}

.bt-deals-grid {
    margin-bottom: 40px;
}

.bt-deal-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bt-deal-badge {
    position: absolute;
    background: linear-gradient(to right, rgb(40, 116, 240), rgb(255, 105, 180)) !important;
    color: white;
    padding: 4px 4px;
    border-radius: 0px 0px 5px 0px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
}

.bt-deal-image {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: var(--bt-light);
}

.bt-deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bt-expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.bt-expired-label {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Status Flyer for Verify Label */
.bt-status-flyer {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, green, #059669);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.65rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bt-status-flyer.bt-expired {
    background: linear-gradient(135deg, var(--bt-error), #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.bt-status-flyer .bt-status-content {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bt-status-flyer i {
    font-size: 0.75rem;
}

.bt-product-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--bt-accent);
    color: white;
    padding: 4px 8px;
    border-radius: var(--bt-radius);
    font-weight: 600;
    font-size: 0.7rem;
    box-shadow: var(--bt-shadow);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bt-deal-brand-logo {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: var(--bt-shadow);
}

.bt-deal-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bt-deal-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bt-deal-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-deal-title a {
    color: var(--bt-dark);
    text-decoration: none;
}

.bt-deal-title a:hover {
    color: var(--g-color);
}

.bt-deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bt-deal-store {
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.bt-deal-store:hover {
    color: var(--g-color);
}

.bt-deal-category {
    color: #888;
    font-size: 11px;
}

.bt-category-link-small {
    color: #888;
    text-decoration: none;
}

.bt-category-link-small:hover {
    color: var(--g-color);
}

.bt-deal-time {
    color: #888;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.bt-deal-time i {
    font-size: 12px;
    opacity: 0.7;
}

.bt-deal-pricing {
    margin-bottom: 8px;
}

.bt-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bt-deal-discount {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* Mobile responsive discount tag */
@media (max-width: 480px) {
    .bt-deal-discount {
        font-size: 8px;
        padding: 1px 3px;
        letter-spacing: 0.3px;
    }
}

.bt-discount-low {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
}

.bt-discount-medium {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.bt-discount-high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.bt-deal-sale-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bt-success);
}

.bt-deal-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.bt-coupon-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bt-light);
    border-radius: 6px;
    margin-bottom: 16px;
    font-family: monospace;
    font-size: 14px;
}

.bt-coupon-label {
    color: #666;
    font-weight: 500;
}

.bt-coupon-value {
    flex: 1;
    font-weight: 600;
    color: var(--g-color);
}

.bt-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--bt-transition);
}

.bt-copy-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

.bt-deal-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bt-deal-actions .bt-btn {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 10px 16px;
}

.bt-btn-primary {
    background: var(--g-color);
}

.bt-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.bt-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.bt-empty-state h3 {
    margin: 0 0 8px 0;
    color: var(--bt-secondary);
}

/* Deals Filters */
.bt-deals-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bt-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.bt-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.bt-filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.bt-filter-group input,
.bt-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.bt-filter-group input:focus,
.bt-filter-group select:focus {
    outline: none;
    border-color: var(--g-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.bt-filter-group button {
    margin-top: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bt-deals-grid {
        gap: 16px;
    }

    .bt-deal-image {
        height: 150px;
    }

    .bt-deal-content {
        padding: 12px;
    }

    .bt-deal-title {
        font-size: 14px;
    }

    .bt-deal-actions .bt-btn {
        font-size: 11px;
        padding: 8px 12px;
    }

    .bt-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bt-filter-group {
        min-width: auto;
        width: 100%;
    }

    .bt-filter-group button {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bt-section-header {
        margin-bottom: 24px;
    }

    .bt-section-title {
        font-size: 20px;
    }

    .bt-section-subtitle {
        font-size: 14px;
    }
}

/* Price Info Tooltip - Shared between single and archive pages */
.bt-price-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #64748b;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: help;
    font-size: 12px;
    font-weight: bold;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.bt-price-info-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.bt-price-info-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.bt-price-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    padding: 0.25rem;
    min-width: 280px;
    max-width: 350px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin: 0;
}

.bt-price-info-wrapper:hover .bt-price-tooltip {
    opacity: 1;
    visibility: visible;
}

.bt-tooltip-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.bt-tooltip-content {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.bt-tooltip-content p {
    margin: 0 0 0.25rem 0;
}

.bt-tooltip-content p:last-child {
    margin-bottom: 0;
}

/* Arrow pointer for tooltip */
.bt-price-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e2e8f0;
}

.bt-price-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ffffff;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .bt-price-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        margin: 0;
        z-index: 1001;
    }

    .bt-price-info-wrapper:hover .bt-price-tooltip {
        opacity: 1;
        visibility: visible;
    }
}
.bt-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--bt-secondary);
}

.bt-grid {
    display: grid;
    gap: 1.25rem;
}

.bt-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
}

.bt-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
}

.bt-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1200px) {
    .bt-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bt-grid {
        gap: 0.9375rem;
    }
    
    .bt-grid-2, .bt-grid-3, .bt-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bt-grid {
        gap: 0.75rem;
    }
    
    .bt-grid-2, .bt-grid-4 {
        grid-template-columns: 1fr;
    }
}

.bt-card {
    background: white;
    border-radius: var(--bt-radius);
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    transition: var(--bt-transition);
}

.bt-card:hover {
    border-color: var(--bt-primary);
    transform: translateY(-0.125rem);
}

.bt-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--g-color);
    color: white;
    text-decoration: none;
    border-radius: var(--bt-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--bt-transition);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
}

.bt-btn:hover {
    background: #e55a2b;
    transform: translateY(-0.0625rem);
}

.bt-btn-secondary {
    background: var(--bt-secondary);
}

.bt-btn-secondary:hover {
    background: #34495e;
}

.bt-load-more {
    text-align: center;
    margin: 1.875rem 0;
}

.bt-cta-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bt-cta-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.bt-cta-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.bt-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bt-cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--bt-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--bt-transition);
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-icon {
    font-size: 1.25rem;
}

@media (max-width: 768px) {

    
    .bt-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .bt-cta-text h3 {
        font-size: 2rem;
    }
    
    .bt-cta-text p {
        font-size: 1rem;
    }
    
    .bt-cta-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .bt-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
 
    .bt-cta-text h3 {
        font-size: 1.75rem;
    }
    
    .bt-cta-features {
        gap: 1rem;
    }
    
    .bt-cta-buttons {
        flex-direction: column;
    }
    
    .bt-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
