/* Retalia Products Styles */

.retalia-products {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    padding: 0px;
    border-radius: 10px;
    box-sizing: border-box;
    width: 1325px;
    margin: -350px;
    
}

.retalia-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.retalia-header img.retalia-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.retalia-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.retalia-product-count {
    font-size: 18px;
    color: #666;
}

.retalia-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.retalia-filter-btn {
    padding: 10px 20px;
    border: 2px solid #dc3545;
    background: white;
    color: #dc3545;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retalia-filter-btn:hover {
    background: #f0f0f0;
}

.retalia-filter-btn.active {
    background: #dc3545;
    color: white;
}

.retalia-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0px;
    margin: 0px;
}

.retalia-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.retalia-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.retalia-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.retalia-product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.retalia-product-image.no-image::before {
    content: '🖼️';
    font-size: 60px;
    opacity: 0.3;
}

.retalia-product-image.no-image::after {
    content: 'Χωρίς Εικόνα';
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.retalia-product-code {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.retalia-product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.retalia-product-stock {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
}

.retalia-add-to-cart-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.retalia-add-to-cart-btn:hover {
    background: #45a049;
}

.retalia-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.retalia-cart-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.retalia-cart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.retalia-cart-badge {
    background: #dc3545;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

/* Modal */
.retalia-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.retalia-modal[style*="display: block"],
.retalia-modal[style*="display:block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.retalia-modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.retalia-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.retalia-close:hover {
    color: #333;
}

.retalia-modal h2 {
    color: #333;
    margin-bottom: 20px;
}

.retalia-product-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.retalia-form-group {
    margin-bottom: 15px;
}

.retalia-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.retalia-form-group input,
.retalia-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.retalia-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.retalia-submit-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.retalia-submit-btn:hover {
    background: #45a049;
}

.retalia-success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

.retalia-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.retalia-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.retalia-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.retalia-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
    background: white;
}

.retalia-cart-item-details {
    flex: 1;
}

.retalia-cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.retalia-cart-item-remove:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 1400px) {
    .retalia-products {
        width: 100%;
        margin: 0;
        padding: 20px;
    }
    
    .retalia-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .retalia-products {
        width: 100%;
        margin: 0;
        padding: 15px;
    }
    
    .retalia-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .retalia-products {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    
    .retalia-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .retalia-cart-button {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .retalia-filters {
        flex-direction: column;
    }
    
    .retalia-filter-btn {
        width: 100%;
    }
    
    .retalia-modal-content {
        max-width: 100%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .retalia-header h1 {
        font-size: 24px;
    }
}
