/* Plugin gallery styles */
.wpps-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    clear: both;
}

.wpps-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    clear: both;
}

.wpps-plugin-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
    margin-bottom: 20px;
}

.wpps-plugin-card:hover {
    transform: translateY(-5px);
}

.wpps-plugin-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wpps-plugin-info {
    padding: 15px;
}

.wpps-plugin-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.wpps-rating {
    margin: 10px 0;
    font-size: 1.1em;
}

.wpps-price {
    font-weight: bold;
    color: #0073aa;
    margin: 5px 0;
}

.wpps-version {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.wpps-categories {
    font-size: 0.9em;
    color: #888;
    margin: 5px 0;
}

.wpps-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.wpps-button:hover {
    background-color: #005a87;
}

.wpps-button-primary {
    background-color: #00a0d2;
}

.wpps-button-primary:hover {
    background-color: #0073aa;
}

/* Plugin product page styles */
.wpps-plugin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    clear: both;
    overflow: hidden;
}

.wpps-plugin-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wpps-plugin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    clear: both;
    overflow: hidden;
}

.wpps-plugin-image {
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.wpps-plugin-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wpps-plugin-details {
    overflow: hidden;
}

.wpps-plugin-meta {
    margin-bottom: 20px;
    overflow: hidden;
}

.wpps-plugin-description {
    margin-bottom: 20px;
    line-height: 1.6;
    overflow: hidden;
}

.wpps-plugin-actions {
    margin-top: 20px;
    overflow: hidden;
}

.wpps-plugin-reviews {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    clear: both;
    overflow: hidden;
}

.wpps-review {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    overflow: hidden;
}

.wpps-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    overflow: hidden;
}

.wpps-review-rating {
    color: #ffc107;
    font-size: 1.2em;
}

.wpps-review-date {
    color: #888;
    font-size: 0.9em;
}

.wpps-review-content {
    line-height: 1.6;
    overflow: hidden;
}

.wpps-review-form {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.wpps-stars {
    font-size: 2em;
    cursor: pointer;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wpps-star {
    color: #ddd;
    transition: color 0.2s;
    font-size: 1.5em;
    width: 1.5em;
    text-align: center;
}

.wpps-star:hover,
.wpps-star.active {
    color: #ffc107;
}

.wpps-review-input textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.wpps-character-count {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.wpps-plugin-reviews-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    clear: both;
    overflow: hidden;
}

.wpps-review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    overflow: hidden;
}

.wpps-review-item:last-child {
    border-bottom: none;
}

/* Clear floats */
.wpps-clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpps-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .wpps-plugin-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .wpps-review-header {
        flex-direction: column;
        gap: 5px;
    }

    .wpps-plugin-page {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wpps-products-grid {
        grid-template-columns: 1fr !important;
    }

    .wpps-plugin-page {
        padding: 10px;
    }

    .wpps-plugin-header h1 {
        font-size: 1.5em;
    }
}