/**
 * Public CSS for Walmart Price Tracker
 */

/* Product Display */
.wpt-product-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.wpt-product-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.wpt-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.wpt-product-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpt-product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.wpt-product-brand {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.wpt-product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.wpt-current-price {
    font-size: 32px;
    font-weight: bold;
    color: #c60c30;
}

.wpt-original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.wpt-discount {
    background: #c60c30;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.wpt-out-of-stock {
    font-size: 24px;
    font-weight: bold;
    color: #999;
}

.wpt-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpt-rating-stars {
    color: #ffc220;
    font-size: 20px;
}

.wpt-rating-value {
    font-weight: bold;
    color: #333;
}

.wpt-review-count {
    color: #666;
}

.wpt-product-actions {
    margin-top: 10px;
}

.wpt-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpt-button-primary {
    background: #0071ce;
    color: #fff;
}

.wpt-button-primary:hover {
    background: #004f9a;
    color: #fff;
}

.wpt-button-secondary {
    background: #fff;
    color: #0071ce;
    border: 2px solid #0071ce;
}

.wpt-button-secondary:hover {
    background: #0071ce;
    color: #fff;
}

.wpt-shipping-info {
    color: #2e7d32;
    font-weight: 500;
}

/* Price History Chart */
.wpt-price-history {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wpt-price-history h3 {
    margin-top: 0;
}

/* Price Alert Form */
.wpt-price-alert-form {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #0071ce;
    border-radius: 8px;
}

.wpt-price-alert-form h3 {
    margin-top: 0;
    color: #0071ce;
}

.wpt-alert-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.wpt-alert-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpt-alert-form input[type="email"] {
    flex: 1;
}

.wpt-alert-form input[type="number"] {
    width: 150px;
}

.wpt-alert-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

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

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

/* Product Description */
.wpt-product-description {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wpt-product-description h3 {
    margin-top: 0;
}

/* Search Form */
.wpt-search-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.wpt-search {
    display: flex;
    gap: 10px;
}

.wpt-search input[type="text"] {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #0071ce;
    border-radius: 4px;
}

/* Products Grid */
.wpt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wpt-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpt-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wpt-product-card .wpt-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.wpt-product-card .wpt-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpt-product-card .wpt-product-details {
    padding: 15px;
}

.wpt-product-card h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wpt-product-card .wpt-price {
    margin: 10px 0;
}

.wpt-product-card .wpt-actions {
    margin-top: 15px;
}

.wpt-product-card .wpt-button {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Price Tracker Form */
.wpt-price-tracker-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.wpt-price-tracker-form h3 {
    margin-top: 0;
    color: #0071ce;
}

.wpt-form-field {
    margin-bottom: 20px;
}

.wpt-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wpt-form-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpt-product-header {
        grid-template-columns: 1fr;
    }
    
    .wpt-product-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .wpt-alert-form {
        flex-direction: column;
    }
    
    .wpt-alert-form input[type="email"],
    .wpt-alert-form input[type="number"] {
        width: 100%;
    }
    
    .wpt-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .wpt-product-title {
        font-size: 20px;
    }
    
    .wpt-current-price {
        font-size: 24px;
    }
    
    .wpt-products-grid {
        grid-template-columns: 1fr;
    }
}

