/* Frontend Styles for Wishlist Manager */

.wmjh-wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* No items message */
.wmjh-no-items {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}

/* Items Grid */
.wmjh-wishlist-items {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.wmjh-columns-1 {
    grid-template-columns: 1fr;
}

.wmjh-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wmjh-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wmjh-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 992px) {
    .wmjh-columns-4,
    .wmjh-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wmjh-columns-4,
    .wmjh-columns-3,
    .wmjh-columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Item Card */
.wmjh-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wmjh-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wmjh-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.wmjh-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wmjh-item-content {
    padding: 20px;
}

.wmjh-item-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.wmjh-item-description {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.wmjh-item-price {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.wmjh-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.wmjh-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.wmjh-btn:hover {
    transform: translateY(-1px);
}

.wmjh-btn:active {
    transform: translateY(0);
}

.wmjh-btn-primary {
    background-color: #3498db;
    color: #fff;
}

.wmjh-btn-primary:hover {
    background-color: #2980b9;
    color: #fff;
}

.wmjh-btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.wmjh-btn-secondary:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.wmjh-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

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

.wmjh-btn-added {
    background-color: #27ae60 !important;
}

/* Cart */
.wmjh-cart {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.wmjh-cart h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #2c3e50;
}

.wmjh-cart-items {
    margin-bottom: 30px;
}

.wmjh-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wmjh-cart-item-title {
    font-weight: 600;
    color: #2c3e50;
}

.wmjh-cart-item-price {
    color: #7f8c8d;
    margin-left: 10px;
}

.wmjh-cart-item-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 13px;
}

.wmjh-cart-item-remove:hover {
    background: #c0392b;
}

/* Claim Form */
.wmjh-claim-form h4 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #2c3e50;
}

.wmjh-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .wmjh-form-row {
        grid-template-columns: 1fr;
    }
}

.wmjh-form-group {
    display: flex;
    flex-direction: column;
}

.wmjh-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.wmjh-form-group .required {
    color: #e74c3c;
}

.wmjh-form-group input,
.wmjh-form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.wmjh-form-group input:focus,
.wmjh-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.wmjh-form-group textarea {
    resize: vertical;
}

.wmjh-form-actions {
    margin-top: 20px;
}

.wmjh-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
}

.wmjh-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wmjh-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
