/**
 * WAAS Product Shortcodes - Frontend Styles
 *
 * Styles dla shortcodów produktów Amazon
 */

/* ====================
   PRODUCT BOX
   ==================== */

.waas-product-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    max-width: 400px;
}

.waas-product-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.waas-product-box .waas-product-image {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.waas-product-box .waas-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.waas-product-box .waas-product-image:hover img {
    transform: scale(1.05);
}

.waas-product-box .waas-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.waas-product-box .waas-product-title a {
    color: #333;
    text-decoration: none;
}

.waas-product-box .waas-product-title a:hover {
    color: #ff9900;
}

.waas-product-box .waas-product-rating {
    margin: 10px 0;
}

.waas-product-box .waas-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #B12704;
    margin: 15px 0;
}

.waas-product-box .waas-product-button {
    margin-top: 15px;
}

.waas-product-box .waas-amazon-button {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.waas-product-box .waas-amazon-button:hover {
    background: #fa8900;
}

/* ====================
   HORIZONTAL LAYOUT
   ==================== */

.waas-product-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    background: #fff;
}

.waas-product-horizontal .waas-product-image-horizontal {
    flex-shrink: 0;
    width: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.waas-product-horizontal .waas-product-image-horizontal img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.waas-product-horizontal .waas-product-image-horizontal:hover img {
    transform: scale(1.1);
}

.waas-product-horizontal .waas-product-details {
    flex: 1;
}

.waas-product-horizontal .waas-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.waas-product-horizontal .waas-product-title a {
    color: #333;
    text-decoration: none;
}

.waas-product-horizontal .waas-product-title a:hover {
    color: #ff9900;
}

.waas-product-horizontal .waas-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
    margin: 10px 0;
}

.waas-product-horizontal .waas-button-small {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.waas-product-horizontal .waas-button-small:hover {
    background: #fa8900;
}

/* ====================
   SIMPLE LAYOUT
   ==================== */

.waas-product-simple {
    margin: 10px 0;
}

.waas-product-simple a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.waas-product-simple a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* ====================
   RATING STARS
   ==================== */

.waas-stars {
    display: inline-block;
    color: #ff9900;
    font-size: 16px;
    line-height: 1;
}

.waas-star {
    display: inline-block;
    margin-right: 2px;
}

.waas-star-full,
.waas-star-half {
    color: #ff9900;
}

.waas-star-empty {
    color: #ddd;
}

.waas-rating-number {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.waas-review-count {
    font-size: 13px;
    color: #888;
    margin-left: 5px;
}

/* ====================
   PRICE
   ==================== */

.waas-price {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
}

/* ====================
   BUTTON STANDALONE
   ==================== */

.waas-button {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.waas-button:hover {
    background: #fa8900;
}

/* ====================
   IMAGE ZOOM EFFECT
   ==================== */

.waas-image-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.waas-image-zoom:hover {
    transform: scale(1.05);
}

/* Image zoom modal */
.waas-zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.waas-zoom-modal.active {
    display: flex;
}

.waas-zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.waas-zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.waas-zoom-modal-close:hover {
    color: #ff9900;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ====================
   RESPONSIVE
   ==================== */

@media (max-width: 768px) {
    .waas-product-box {
        max-width: 100%;
    }

    .waas-product-horizontal {
        flex-direction: column;
    }

    .waas-product-horizontal .waas-product-image-horizontal {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ====================
   ERROR MESSAGES
   ==================== */

.waas-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 12px;
    margin: 20px 0;
    color: #c62828;
    font-weight: 500;
}
