/* ================================
   استایل‌های اصلی
   ================================ */

:root {
    --wcpae-column-gap: 12px;
    --wcpae-row-gap: 12px;
}

/* ================================
   Widget تعدادی ویژگی‌ها (Partial)
   ================================ */

.wcpae-partial-box {
    direction: rtl;
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wcpae-partial-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.wcpae-partial-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.wcpae-show-more-btn {
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #222;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.wcpae-show-more-btn:hover {
    background-color: #f0f0f0;
    color: #222;
}

.wcpae-show-more-btn:focus {
    outline: none;
}

.wcpae-partial-grid {
    display: grid;
    gap: var(--wcpae-column-gap) var(--wcpae-row-gap);
    grid-template-columns: repeat(3, 1fr);
}

.wcpae-partial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 18px;
    min-height: 55px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.wcpae-partial-item:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wcpae-partial-label {
    font-size: 15px;
    color: #888;
    text-align: right;
    width: 100%;
}

.wcpae-partial-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: right;
    width: 100%;
    margin-top: 4px;
}

/* ================================
   Widget تمام ویژگی‌ها (All)
   ================================ */

.wcpae-all-box {
    direction: rtl;
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wcpae-all-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.wcpae-all-grid {
    display: grid;
    gap: var(--wcpae-column-gap) var(--wcpae-row-gap);
    grid-template-columns: repeat(2, 1fr);
}

.wcpae-all-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 10px;
    min-height: 55px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.wcpae-all-item:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wcpae-all-label {
    font-size: 16px;
    color: #888;
    text-align: right;
    width: 100%;
}

.wcpae-all-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-align: right;
    width: 100%;
    margin-top: 4px;
}

/* ================================
   Responsive - Tablet
   ================================ */

@media (max-width: 1024px) {
    .wcpae-partial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wcpae-all-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Responsive - Mobile
   ================================ */

@media (max-width: 768px) {
    .wcpae-partial-grid {
        grid-template-columns: 1fr;
    }

    .wcpae-partial-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wcpae-show-more-btn {
        width: 100%;
        text-align: right;
    }

    .wcpae-all-grid {
        grid-template-columns: 1fr;
    }
}

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

.elementor-widget-wcpae_partial_attributes,
.elementor-widget-wcpae_all_attributes {
    font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ================================
   Responsive - Tablet
   ================================ */

@media (max-width: 1024px) {
    .wcpae-partial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wcpae-all-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Responsive - Mobile
   ================================ */

@media (max-width: 768px) {
    .wcpae-partial-grid {
        grid-template-columns: 1fr;
    }

    .wcpae-partial-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wcpae-show-more-btn {
        width: 100%;
        text-align: right;
    }

    .wcpae-all-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Animation
   ================================ */

@media (prefers-reduced-motion: no-preference) {
    .wcpae-partial-item,
    .wcpae-all-item {
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
