/* Campaign Tabs */
.campaign-tabs .nav-pills {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.campaign-tabs .nav-link {
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
}

.campaign-tabs .nav-link.active {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.campaign-tabs .nav-link:hover:not(.active) {
    background: #e9ecef;
    border-color: #dee2e6;
}


/* Campaign Timer */
.campaign-timer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px;
    color: white;
    max-width: 400px;
    margin-top: 15px;
}

.timer-header {
    margin-bottom: 10px;
    font-size: 16px;
}

.timer-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-item {
    text-align: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 0 5px;
    min-width: 60px;
}

.timer-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.timer-label {
    font-size: 12px;
    opacity: 0.9;
}

.timer-separator {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin: 0 5px;
}

/* Product Card with Timer */
.product-card-with-timer {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card-with-timer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

/* Product Header Box */
.product-header-box {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.product-name-container {
    margin-bottom: 8px;
}

.product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #3498db;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-with-timer:hover .product-main-image {
    transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.discount-percent {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-with-timer:hover .product-quick-actions {
    opacity: 1;
}

.quick-action-btn {
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: white;
    border-radius: 50%;
    margin-bottom: 8px;
    color: #666;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Product Details */
.product-details-box {
    padding: 15px;
}

/* Rating */
.product-rating {
    font-size: 12px;
    margin-bottom: 10px;
}

.rating-count {
    color: #6c757d;
    font-size: 11px;
}

/* Price */
.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 14px;
    color: #6c757d;
}

.savings-info {
    font-size: 12px;
    margin-top: 5px;
}

.savings-text {
    color: #28a745;
    font-weight: 500;
}

/* Add to Cart Button */
.btn-custom {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Buy Now Button */
.btn-buy-now {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-buy-now:hover {
    background: linear-gradient(45deg, #dd2476, #ff512f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 36, 118, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 180px;
    }

    .product-main-image {
        max-height: 140px;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        height: 150px;
        padding: 15px;
    }

    .product-main-image {
        max-height: 120px;
    }

    .product-details-box {
        padding: 10px;
    }

    /* Add to Cart Button */
    .btn-custom {
        font-size: 6px;
    }
    
    /* Buy Now Button */
    .btn-buy-now {
        font-size: 6px;
    }
}