/* Partner Deals Container */
.partner-deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid Layout */
.partner-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    justify-content: flex-start;
}

/* Deal Card */
.partner-deal-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Deal Header */
.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Deal Type Badge */
.deal-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    position: absolute;
    top: 16px;
    left: 16px;
}

/* Partner Logo */
.partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Deal Content */
.deal-content {
    margin-bottom: 20px;
    padding-top: 20px;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.deal-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.deal-coupon {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    margin-top: 10px;
    font-weight: 700;
}

/* Deal Discount Section */
.deal-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.discount-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.deal-validity {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* Deal Actions */
.deal-actions {
    margin-top: auto;
}

.deal-actions > .claim-deal-btn {
    display: block;
    width: 100%;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.claim-deal-btn:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* No Deals Message */
.no-deals-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.no-deals-message p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* Pagination Styles */
.partner-deals-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pagination-link:hover {
    background: #007cba;
    color: #fff;
    text-decoration: none;
}

.pagination-link.current {
    background: #007cba;
    color: #fff;
    font-weight: 700;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-dots {
    padding: 8px 4px;
    color: #999;
    font-weight: 500;
}

.prev-link,
.next-link {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partner-deals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .partner-deal-card {
        padding: 20px;
        max-width: none;
        margin: 0;
    }
    
    .deal-type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .partner-logo {
        width: 32px;
        height: 32px;
    }
    
    .partner-name {
        font-size: 1.1rem;
    }
    
    .discount-percentage {
        font-size: 1.3rem;
    }
    
    .partner-deals-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Medium screens - 2 cards per row */
@media (min-width: 769px) and (max-width: 1200px) {
    .partner-deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 3 cards per row */
        justify-content: flex-start;
    }
}

/* Large screens - 3+ cards per row */
@media (min-width: 1201px) {
    .partner-deals-grid {
        /* 3 cards per row */
        grid-template-columns: repeat(auto-fit, minmax(320px, 31%));
        justify-content: flex-start;
    }
}

/* ========================================
   PARTNER PRODUCTS STYLES
   ======================================== */

/* Partner Products Container */
.partner-products-container {
    margin-top: 0px !important;
    padding-top: 70px !important;
}

/* Products Grid Layout */
.partner-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

/* Product Card */
.partner-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Graphic Area */
.product-graphic-area {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-featured-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
}

.product-placeholder-icon {
    font-size: 48px;
    color: #6c757d;
    opacity: 0.5;
}

.product-placeholder-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Product Type Badge */
.product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 123, 186, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Text Area */
.product-text-area {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-badge {
    background: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

/* Product Meta */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #999;
}

.product-clicks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-clicks .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.product-date {
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.no-products-message p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* Products Pagination */
/* Pagination Wrapper */
.partner-products-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}

/* When no terms link is present, pagination should be right-aligned */
.partner-products-pagination-wrapper > .partner-products-pagination.flex-right:only-child {
    margin-left: auto;
}

/* Terms & Conditions Link */
.terms-link-container {
    flex: 0 0 auto;
}

.terms-conditions-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.terms-conditions-link:hover {
    color: #005177;
    text-decoration: underline;
}

/* Pagination Container */
.partner-products-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.partner-products-pagination.flex-right {
    justify-content: flex-end;
    margin-left: auto;
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .partner-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-product-card {
        max-width: none;
        margin: 0;
    }
    
    .product-graphic-area {
        height: 160px;
    }
    
    .product-text-area {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .partner-products-pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .terms-link-container {
        width: 100%;
        text-align: center;
    }
    
    .terms-conditions-link {
        font-size: 13px;
    }
    
    .partner-products-pagination.flex-right {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
    
    .partner-products-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Medium screens - 2 cards per row */
@media (min-width: 769px) and (max-width: 1200px) {
    .partner-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Large screens - 3+ cards per row */
@media (min-width: 1201px) {
    .partner-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 31%));
    }
}


