/**
 * Cem Porcento Favoritos - Main Styles
 * 
 * @package CemPorcentoFavoritos
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --cpf-primary-color: #ffb400;
    --cpf-secondary-color: #f8f8f8;
    --cpf-text-color: #333333;
    --cpf-text-light: #666666;
    --cpf-border-color: #e1e1e1;
    --cpf-white: #ffffff;
    --cpf-danger: #dc3545;
    --cpf-success: #28a745;
    --cpf-warning: #ffc107;
    --cpf-border-radius: 8px;
    --cpf-transition: all 0.3s ease;
    --cpf-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --cpf-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.cpf-favorites-list,
.cpf-add-to-favorites {
    font-family: inherit;
    box-sizing: border-box;
}

.cpf-favorites-list *,
.cpf-add-to-favorites * {
    box-sizing: border-box;
}

/* ==========================================================================
   Add to Favorites Widget
   ========================================================================== */

.cpf-add-to-favorites {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cpf-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    transition: var(--cpf-transition);
    position: relative;
    overflow: hidden;
}

.cpf-favorite-btn:hover {
    color: #F48120;
    background-color: rgba(255, 180, 0, 0.1);
    transform: scale(1.05);
}

.cpf-favorite-btn.cpf-is-favorite {
    color: #F48120;
}

.cpf-favorite-btn:focus {
    outline: 2px solid #F48120;
    outline-offset: 2px;
}

.cpf-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cpf-favorite-text {
    font-size: 14px;
    color: var(--cpf-text-color);
    font-weight: 500;
}

/* Loading state */
.cpf-favorite-btn.cpf-loading {
    pointer-events: none;
}

.cpf-favorite-btn.cpf-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #F48120;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: cpf-spin 1s linear infinite;
}

@keyframes cpf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Favorites List Widget
   ========================================================================== */

.cpf-favorites-list {
    width: 100%;
    max-width: 100%;
}

/* Search Container */
.cpf-search-container {
    display: flex;
    margin-bottom: 20px;
    max-width: 400px;
}

.cpf-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--cpf-border-color);
    border-right: none;
    border-radius: var(--cpf-border-radius) 0 0 var(--cpf-border-radius);
    font-size: 14px;
    background: var(--cpf-white);
    transition: var(--cpf-transition);
}

.cpf-search-input:focus {
    outline: none;
    border-color: #F48120;
}

.cpf-search-btn {
    padding: 12px 16px;
    border: 2px solid var(--cpf-border-color);
    border-left: none;
    border-radius: 0 var(--cpf-border-radius) var(--cpf-border-radius) 0;
    background: #F48120 !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: var(--cpf-transition);
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-search-btn:hover {
    background: #d96f15 !important;
}

/* Project Controls */
.cpf-project-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Project Grid */
.cpf-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cpf-project-card {
    background: #FFF !important;
    border: 1px solid #F18223 !important;
    border-radius: var(--cpf-border-radius);
    padding: 20px;
    transition: var(--cpf-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cpf-project-card:hover {
    box-shadow: var(--cpf-shadow-hover);
    transform: translateY(-2px);
    border-color: #F18223 !important;
}

.cpf-project-card.cpf-has-products {
    border-left: 4px solid #F48120;
}

.cpf-project-card.cpf-has-products:hover {
    border-left-color: #F48120;
}

.cpf-project-card .cpf-project-header {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}

.cpf-project-card .cpf-project-title {
    font-size: 18px;
    color: var(--cpf-text-color);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cpf-project-card .cpf-project-description {
    font-size: 14px;
    color: var(--cpf-text-light);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.cpf-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--cpf-text-light);
    margin-top: 12px;
}

.cpf-product-count {
    font-weight: 500;
    color: #F18223 !important;
}

.cpf-project-card .cpf-project-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: var(--cpf-transition);
}

.cpf-project-card:hover .cpf-project-actions {
    opacity: 1;
}

.cpf-new-project-btn {
    padding: 10px 20px !important;
    border: 2px solid #F48120 !important;
    border-radius: var(--cpf-border-radius);
    background: #F48120 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--cpf-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-new-project-btn:hover {
    background: #d96f15 !important;
    color: #ffffff !important;
}

/* Project Products Modal */
.cpf-project-products-modal .cpf-modal-content {
    max-width: 800px;
    width: 95%;
}

.cpf-project-products-modal .cpf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    min-height: 200px;
}

.cpf-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--cpf-white);
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
}

.cpf-project-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--cpf-text-color);
    font-weight: 600;
}

.cpf-project-description {
    margin: 0;
    color: var(--cpf-text-light);
    font-size: 14px;
    line-height: 1.5;
}

.cpf-project-actions {
    display: flex;
    gap: 8px;
}

.cpf-edit-project-btn,
.cpf-delete-project-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #F18223 !important;
    border-radius: var(--cpf-border-radius);
    background: #FFF !important;
    color: #F18223 !important;
    cursor: pointer;
    transition: var(--cpf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-edit-project-btn:hover {
    color: #FFF !important;
    background: #F18223 !important;
}

.cpf-delete-project-btn:hover {
    background-color: #F18223 !important;
    color: #FFF !important;
}

/* Products Container */
.cpf-products-container {
    position: relative;
}

/* Products Grid */
.cpf-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cpf-products-list .cpf-product-card {
    margin-bottom: 20px;
}

.cpf-products-list .cpf-product-card:last-child {
    margin-bottom: 0;
}

/* Product Card */
.cpf-product-card {
    background: var(--cpf-white);
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
    padding: 15px;
    transition: var(--cpf-transition);
    position: relative;
    overflow: hidden;
}

.cpf-product-card:hover {
    box-shadow: var(--cpf-shadow-hover) !important;
    transform: translateY(-2px);
}

/* Product Image */
.cpf-product-image {
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--cpf-border-radius);
}

.cpf-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--cpf-transition);
}

.cpf-product-card:hover .cpf-product-image img {
    transform: scale(1.05);
}

.cpf-remove-product {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--cpf-danger);
    cursor: pointer;
    transition: var(--cpf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.cpf-product-card:hover .cpf-remove-product {
    opacity: 1;
}

.cpf-remove-product:hover {
    background: #F48120 !important;
    color: var(--cpf-white);
}

/* Product Info */
.cpf-product-info {
    text-align: center;
}

.cpf-product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.cpf-product-title a {
    color: var(--cpf-text-color);
    text-decoration: none;
    transition: var(--cpf-transition);
}

.cpf-product-title a:hover {
    color: #F48120 !important;
}

.cpf-product-price {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #F48120;
}

.cpf-product-meta {
    font-size: 12px;
    color: var(--cpf-text-light);
    margin-bottom: 12px;
}

/* Add to Cart Button */
.cpf-add-to-cart-btn {
    width: 100%;
    padding: 10px 16px !important;
    border: 2px solid #F48120 !important;
    border-radius: var(--cpf-border-radius);
    background: #F48120 !important;
    color: #ffffff !important;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cpf-transition);
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-add-to-cart-btn:hover {
    background: #d96f15 !important;
    color: #ffffff !important;
}

/* Empty States */
.cpf-no-favorites,
.cpf-no-products,
.cpf-no-login {
    text-align: center;
    padding: 40px 20px;
}

.cpf-empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.cpf-empty-icon {
    font-size: 48px;
    color: var(--cpf-text-light);
    margin-bottom: 16px;
}

.cpf-empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--cpf-text-color);
}

.cpf-empty-state p {
    margin: 0;
    color: var(--cpf-text-light);
    line-height: 1.6;
}

/* Loading States */
.cpf-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--cpf-text-light);
}

.cpf-loading-spinner i {
    font-size: 24px;
}

/* Pagination */
.cpf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.cpf-pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
    background: var(--cpf-white);
    color: var(--cpf-text-light);
    cursor: pointer;
    transition: var(--cpf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-pagination-btn:hover,
.cpf-pagination-btn.active {
    border-color: #F48120;
    background: #F48120;
    color: var(--cpf-white);
}

.cpf-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cpf-pagination-info {
    font-size: 14px;
    color: var(--cpf-text-light);
    margin: 0 12px;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.cpf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: var(--cpf-transition);
}

.cpf-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.cpf-modal-content {
    background: var(--cpf-white);
    border-radius: var(--cpf-border-radius);
    box-shadow: var(--cpf-shadow);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--cpf-transition);
}

.cpf-modal.show .cpf-modal-content {
    transform: scale(1);
}

.cpf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--cpf-border-color);
}

.cpf-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--cpf-text-color);
}

.cpf-modal-close {
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #f8f8f8 !important;
    color: #666666 !important;
    cursor: pointer;
    transition: var(--cpf-transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.cpf-modal-close:hover {
    background: var(--cpf-danger) !important;
    color: var(--cpf-white) !important;
}

.cpf-modal-body {
    padding: 20px !important;
}

.cpf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--cpf-border-color);
}

/* Form Elements */
.cpf-form-group {
    margin-bottom: 16px;
}

.cpf-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--cpf-text-color);
}

.cpf-form-control {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
    font-size: 14px;
    transition: var(--cpf-transition);
}

.cpf-form-control:focus {
    outline: none;
    border-color: #F48120;
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.1);
}

/* Buttons */
.cpf-btn {
    padding: 10px 20px !important;
    border: none;
    border-radius: var(--cpf-border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cpf-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-btn-primary {
    background: #F48120 !important;
    color: #ffffff !important;
}

.cpf-btn-primary:hover {
    background: #d96f15 !important;
    color: #ffffff !important;
}

.cpf-btn-secondary {
    background: #ffffff !important;
    color: #F48120 !important;
    border: 1px solid #F48120 !important;
}

.cpf-btn-secondary:hover {
    background: #F48120 !important;
    color: #ffffff !important;
}

.cpf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Specific Button Styles - Modal Actions */
#cpf-create-project-btn,
#cpf-update-project-btn,
#cpf-add-to-project-btn {
    background: #F48120 !important;
    color: #ffffff !important;
    border: 1px solid #F48120 !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

#cpf-create-project-btn:hover,
#cpf-update-project-btn:hover,
#cpf-add-to-project-btn:hover {
    background: #d96f15 !important;
    color: #ffffff !important;
}

/* Cancel buttons (modal close buttons with secondary style) */
.cpf-btn-secondary,
button.cpf-btn-secondary {
    background: #ffffff !important;
    color: #F48120 !important;
    border: 1px solid #F48120 !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-btn-secondary:hover,
button.cpf-btn-secondary:hover {
    background: #F48120 !important;
    color: #ffffff !important;
}

/* Projects List in Modal */
.cpf-projects-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
    margin-bottom: 16px;
}

.cpf-project-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--cpf-border-color);
    cursor: pointer;
    transition: var(--cpf-transition);
}

.cpf-project-option:last-child {
    border-bottom: none;
}

.cpf-project-option:hover {
    background: var(--cpf-secondary-color);
}

.cpf-project-option.selected {
    background: rgba(255, 180, 0, 0.1);
    border-color: #F48120;
}

.cpf-project-option input[type="radio"] {
    margin-right: 10px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .cpf-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cpf-search-container {
        max-width: 100%;
    }
    
    .cpf-projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cpf-project-card {
        padding: 15px;
    }
    
    .cpf-project-controls {
        margin-bottom: 15px;
    }
    
    .cpf-project-products-modal .cpf-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .cpf-product-image img {
        height: 150px;
    }
    
    .cpf-modal-content {
        width: 95%;
    }
    
    .cpf-modal-footer {
        flex-direction: column;
    }
    
    .cpf-modal-footer .cpf-btn {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cpf-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cpf-projects-grid {
        gap: 12px;
    }
    
    .cpf-project-card {
        padding: 12px;
    }
    
    .cpf-project-card .cpf-project-title {
        font-size: 16px;
    }
    
    .cpf-project-products-modal .cpf-products-grid {
        grid-template-columns: 1fr;
    }
    
    .cpf-product-card {
        padding: 12px;
    }
    
    .cpf-product-image img {
        height: 180px;
    }
    
    .cpf-favorite-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .cpf-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .cpf-pagination-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Elementor Editor Styles
   ========================================================================== */

.cpf-elementor-notice {
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: var(--cpf-border-radius);
    padding: 20px;
    text-align: center;
    color: var(--cpf-text-light);
    font-style: italic;
}

.cpf-elementor-preview {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border: 2px dashed #ddd;
    border-radius: var(--cpf-border-radius);
    padding: 40px 20px;
    text-align: center;
}

.cpf-preview-notice {
    max-width: 500px;
    margin: 0 auto;
}

.cpf-preview-notice i {
    font-size: 48px;
    color: #F48120;
    margin-bottom: 16px;
}

.cpf-preview-notice h3 {
    margin: 0 0 12px 0;
    color: var(--cpf-text-color);
}

.cpf-preview-notice p {
    margin: 0 0 16px 0;
    color: var(--cpf-text-light);
    line-height: 1.6;
}

.cpf-preview-notice ul {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
    color: var(--cpf-text-light);
}

.cpf-preview-notice li {
    margin-bottom: 4px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .cpf-project-actions,
    .cpf-remove-product,
    .cpf-search-container,
    .cpf-pagination,
    .cpf-modal {
        display: none !important;
    }
    
    .cpf-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cpf-products-grid {
        gap: 10px;
    }
}

/* ==========================================================================
   Project Cover Images and Links
   ========================================================================== */

.cpf-project-cover {
    position: relative;
    margin-bottom: 16px;
    border-radius: var(--cpf-border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.cpf-project-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--cpf-transition);
}

.cpf-project-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.cpf-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--cpf-transition);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.cpf-project-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.cpf-project-link:hover .cpf-project-cover-image {
    transform: scale(1.05);
}

.cpf-project-link:hover .cpf-project-overlay {
    opacity: 1;
}

.cpf-project-title-link {
    color: inherit;
    text-decoration: none;
    transition: var(--cpf-transition);
}

.cpf-project-title-link:hover {
    color: #F48120;
}

/* Multiple Project Selection Modal */
.cpf-project-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--cpf-border-color);
    border-radius: var(--cpf-border-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--cpf-transition);
}

.cpf-project-option:hover {
    background-color: var(--cpf-secondary-color);
    border-color: #F48120;
}

.cpf-project-option.selected {
    background-color: rgba(255, 180, 0, 0.1);
    border-color: #F48120;
}

.cpf-project-option input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 0;
    margin-bottom: 0;
}

.cpf-project-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* ==========================================================================
   Project Details Page
   ========================================================================== */

.cpf-project-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cpf-project-details-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--cpf-border-color);
    padding-bottom: 24px;
}

.cpf-project-back {
    margin-bottom: 16px;
}

.cpf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cpf-secondary-color);
    color: var(--cpf-text-color);
    text-decoration: none;
    border-radius: var(--cpf-border-radius);
    border: 1px solid var(--cpf-border-color);
    transition: var(--cpf-transition);
    font-size: 14px;
}

.cpf-back-btn:hover {
    background: #F48120 !important;
    color: white;
    border-color: #F48120;
    text-decoration: none;
}

.cpf-project-details-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--cpf-text-color);
}

.cpf-project-details-description {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--cpf-text-light);
    line-height: 1.6;
}

.cpf-project-details-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--cpf-text-light);
}

.cpf-product-total {
    font-weight: 600;
    color: #F48120 !important;
}

.cpf-project-products {
    margin-top: 32px;
}

.cpf-project-products.cpf-view-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cpf-project-products.cpf-view-list .cpf-product-card {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.cpf-project-products.cpf-view-list .cpf-product-image {
    width: 120px;
    flex-shrink: 0;
    margin-right: 16px;
}

.cpf-project-products.cpf-view-list .cpf-product-info {
    flex: 1;
}

.cpf-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F48120 !important;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: var(--cpf-border-radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--cpf-transition);
    border: none;
    cursor: pointer;
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.cpf-add-to-cart-btn:hover {
    background: #d96f15 !important;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--cpf-shadow-hover);
}

.cpf-project-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cpf-border-color);
}

/* ==========================================================================
   Responsive Design Updates
   ========================================================================== */

@media (max-width: 768px) {
    .cpf-project-details {
        padding: 16px;
    }
    
    .cpf-project-details-title {
        font-size: 24px;
    }
    
    .cpf-project-details-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cpf-project-products.cpf-view-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .cpf-project-products.cpf-view-list .cpf-product-card {
        flex-direction: column;
    }
    
    .cpf-project-products.cpf-view-list .cpf-product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .cpf-project-overlay {
        font-size: 12px;
    }
    
    .cpf-project-overlay i {
        font-size: 20px;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .cpf-project-products.cpf-view-grid {
        grid-template-columns: 1fr;
    }
    
    .cpf-project-details-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .cpf-project-cover {
        aspect-ratio: 4/3;
    }
}