/**
 * Awin Elementor Widgets Styles
 */

/* Product Grid */
.awin-product-grid {
    display: grid;
    gap: 20px;
}

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

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

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

.awin-product-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.awin-product-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.awin-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.awin-product-item .awin-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.awin-product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.awin-product-content {
    padding: 15px;
}

.awin-product-content h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.awin-product-content h3 a {
    color: #1d2327;
    text-decoration: none;
}

.awin-product-content h3 a:hover {
    color: #667eea;
}

.awin-product-content .price {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.awin-product-content .button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Voucher Grid */
.awin-voucher-grid {
    display: grid;
    gap: 20px;
}

.awin-voucher-grid.columns-1 {
    grid-template-columns: 1fr;
}

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

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

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

.awin-voucher-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.voucher-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.voucher-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.voucher-discount {
    font-size: 32px;
    font-weight: bold;
    margin-top: 10px;
}

.voucher-content {
    padding: 20px;
}

.voucher-content p {
    margin: 0 0 15px 0;
}

.voucher-code {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.voucher-code input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.voucher-code .copy-code {
    padding: 10px 20px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.voucher-code .copy-code:hover {
    background: #f0f0f1;
}

.voucher-expiry {
    font-size: 12px;
    opacity: 0.9;
    margin: 10px 0;
}

.voucher-content .button {
    width: 100%;
    background: #fff !important;
    color: #667eea !important;
    border: none;
    font-weight: 600;
}

.voucher-content .button:hover {
    background: #f0f0f1 !important;
}

/* Price Alert Widget */
.awin-price-alert-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
}

.awin-price-alert-widget h3 {
    margin-top: 0;
    color: #1d2327;
}

.awin-price-alert-form .form-row {
    margin-bottom: 20px;
}

.awin-price-alert-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.awin-price-alert-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.awin-price-alert-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

.alert-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
}

.alert-message.success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.alert-message.error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Featured Products */
.awin-featured-products h2 {
    margin-bottom: 30px;
    color: #1d2327;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
}

.products-carousel .featured-product-item {
    min-width: 300px;
    scroll-snap-align: start;
}

.featured-product-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.featured-product-item .product-image {
    position: relative;
}

.featured-product-item .product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-product-item .featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-product-item .product-info {
    padding: 15px;
}

.featured-product-item .product-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.featured-product-item .product-info h3 a {
    color: #1d2327;
    text-decoration: none;
}

.featured-product-item .product-info h3 a:hover {
    color: #667eea;
}

.featured-product-item .price {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.featured-product-item .button {
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .awin-product-grid.columns-6,
    .awin-product-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .awin-voucher-grid.columns-4,
    .awin-voucher-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .awin-product-grid.columns-6,
    .awin-product-grid.columns-4,
    .awin-product-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awin-voucher-grid.columns-4,
    .awin-voucher-grid.columns-3,
    .awin-voucher-grid.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awin-price-alert-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .awin-product-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
