/* ===== PPR MAIN STYLES ===== */
.centerform {
    max-width: 100% !important;
}

.ppr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== FORM STYLES ===== */
.ppr-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
}

.ppr-form h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.ppr-form .form-row {
    margin-bottom: 20px;
}

.ppr-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.ppr-form input[type="text"],
.ppr-form input[type="date"],
.ppr-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ppr-form input[type="text"]:focus,
.ppr-form input[type="date"]:focus,
.ppr-form input[type="number"]:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ppr-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ===== SPECIES SELECTION ===== */
.ppr-species {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.ppr-icon-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    min-width: 90px;
}

.ppr-icon-option:hover {
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ppr-icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ppr-icon-option input[type="radio"]:checked + .ppr-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.ppr-icon-option input[type="radio"]:checked ~ .ppr-label {
    color: #fff;
    font-weight: 700;
}

.ppr-icon-option input[type="radio"]:checked {
    border-color: #fff;
    background: rgba(255,255,255,0.2);
}

.ppr-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.ppr-label {
    font-weight: 600;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

/* ===== DROPDOWN SELECTS ===== */
.ppr-dropdown-container {
    position: relative;
    margin: 15px 0;
}

.ppr-dropdown-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ppr-dropdown-button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.ppr-dropdown-button.active {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
}

.ppr-dropdown-arrow {
    transition: transform 0.3s ease;
}

.ppr-dropdown-button.active .ppr-dropdown-arrow {
    transform: rotate(180deg);
}

.ppr-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ppr-dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ppr-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.ppr-dropdown-option:hover {
    background: rgba(102,126,234,0.1);
}

.ppr-dropdown-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.ppr-dropdown-option.selected {
    background: rgba(102,126,234,0.2);
    color: #667eea;
    font-weight: 600;
}

.ppr-selected-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: auto;
}

/* ===== DROPDOWN SCROLLBAR ===== */
.ppr-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.ppr-dropdown-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.ppr-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(102,126,234,0.5);
    border-radius: 3px;
}

.ppr-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102,126,234,0.7);
}

/* ===== DROPDOWN ANIMATIONS ===== */
.ppr-dropdown-content {
    transform-origin: top;
}

.ppr-dropdown-content.active {
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== DROPDOWN RESPONSIVE ===== */
@media (max-width: 768px) {
    .ppr-dropdown-content {
        max-height: 150px;
    }
    
    .ppr-dropdown-option {
        padding: 12px 16px;
    }
}

/* ===== ALLERGIES CHECKBOXES ===== */
.ppr-allergies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.ppr-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ppr-check:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.ppr-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.ppr-check input[type="checkbox"]:checked + span {
    color: #fff;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.ppr-form button[type="submit"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 100%;
    margin-top: 20px;
}

.ppr-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===== TABLE STYLES ===== */
.ppr-pets-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.ppr-pets-table table {
    width: 100%;
    border-collapse: collapse;
}

.ppr-pets-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.ppr-pets-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ppr-pets-table tr:hover {
    background: #f8f9ff;
}

.ppr-pets-table tr:last-child td {
    border-bottom: none;
}

/* ===== ACTION BUTTONS ===== */
.ppr-action-buttons {
    display: flex;
    gap: 8px;
}

.ppr-action-buttons .button {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ppr-action-buttons .button:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ppr-action-buttons .button:last-child {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.ppr-action-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== RECOMMENDED FOOD BUTTONS ===== */
.ppr-recommended-food-buttons {
    margin: 30px 0;
    text-align: center;
}

.ppr-food-button {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.ppr-food-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #4a9a26 0%, #8dd4b8 100%);
}

.ppr-recommended-food-products {
    margin: 30px 0;
}

.ppr-recommended-food-products .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppr-recommended-food-products .products li.product,
.ppr-recommended-food-products .products .product {
    margin: 0;
    padding: 0;
}

/* הגבל ל-3 מוצרים בדסקטופ */
@media (min-width: 768px) {
    .ppr-recommended-food-products .products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ppr-recommended-food-products .fullwidth.no-sidebar .i-medium,
    .ppr-recommended-food-products .i-medium {
        width: calc(100% / 3) !important;
    }
}

/* ===== STATUS BADGES ===== */
.ppr-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ppr-status-golden {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
}

.ppr-status-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ppr-status-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.ppr-status-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ppr-species {
        flex-direction: column;
        gap: 15px;
    }

    .ppr-allergies-container {
        grid-template-columns: 1fr;
    }

    .ppr-pets-table {
        overflow-x: auto;
    }

    .ppr-pets-table table {
        min-width: 600px;
    }

    .ppr-action-buttons {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ppr-form {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.ppr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
.ppr-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    animation: fadeInUp 0.4s ease-out;
}

.ppr-message.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.ppr-message.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

/* ===== EMPTY STATE ===== */
.ppr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.ppr-empty-state .ppr-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

/* ===== RECOMMENDATIONS STYLES ===== */
.ppr-recommendations {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    color: white;
}

.ppr-recommendations h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.ppr-recommendations .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ppr-recommendations .product {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ppr-recommendations .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ===== RIPPLE EFFECT ===== */
.ppr-form button,
.ppr-action-buttons .button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===== SELECTED STATE ===== */
.ppr-icon-option.selected {
    border-color: #fff;
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ppr-icon-option.selected .ppr-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.ppr-icon-option.selected .ppr-label {
    color: #fff;
    font-weight: 700;
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */
.ppr-form .form-row-first,
.ppr-form .form-row-last {
    float: left;
    width: 48%;
    margin-right: 2%;
}

.ppr-form .form-row-last {
    margin-right: 0;
}

.ppr-form .form-row-wide {
    clear: both;
    width: 100%;
}

/* ===== LOADING ANIMATION ===== */
.ppr-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.ppr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== TOOLTIP STYLES ===== */
.ppr-tooltip {
    position: relative;
    display: inline-block;
}

.ppr-tooltip .ppr-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.ppr-tooltip:hover .ppr-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== PROGRESS BAR ===== */
.ppr-progress {
    width: 100%;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 3px;
    margin: 10px 0;
}

.ppr-progress-bar {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    height: 20px;
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ppr-pulse {
    animation: pulse 2s infinite;
}

/* ===== SHIMMER EFFECT ===== */
.ppr-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== RECOMMENDED BADGE ON CATEGORY PAGES ===== */
.products li.product,
.products .product {
    position: relative;
}

.ppr-recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
}

.ppr-recommended-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* תגית מומלץ בעמוד מוצר */
.ppr-recommended-badge-single {
    display: inline-block;
    margin-bottom: 15px;
}
