/**
 * PRODUCT INFO COMPONENTS CSS
 * Plik: assets/css/components.css
 * 
 * Sekcje:
 * 1. Tytuł produktu + Badge
 * 2. Rating (gwiazdki)
 * 3. Cena
 * 4. Krótki opis
 * 5. Selektor atrybutów (Rozmiar)
 * 6. Quantity selector
 * 7. Przycisk "Dodaj do koszyka"
 * 8. Ikony Wishlist & Compare
 */

/* ============================================
   1. TYTUŁ PRODUKTU + BADGE "POLSKI PRODUKT"
   ============================================ */

.product-info-column .product_title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Badge "POLSKI PRODUKT" */
.product-badge-polish {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC8DD 100%); /* Różowy gradient */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.product-badge-polish::before {
    content: "🇵🇱";
    margin-right: 5px;
}

/* ============================================
   2. RATING (Gwiazdki ocen)
   ============================================ */

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.star-rating {
    color: #FFD700; /* Złoty kolor gwiazdek */
    font-size: 16px;
}

.woocommerce-review-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.woocommerce-review-link:hover {
    color: #FF8C42;
}

/* ============================================
   3. CENA
   ============================================ */

.product-info-column .price {
    font-size: 32px;
    font-weight: 700;
    color: #E63946; /* Czerwony kolor z mockupu */
    margin-bottom: 20px;
    display: block;
}

.product-info-column .price del {
    font-size: 24px;
    color: #999;
    font-weight: 400;
    margin-right: 10px;
}

.product-info-column .price ins {
    text-decoration: none;
    color: #E63946;
}

/* ============================================
   4. KRÓTKI OPIS PRODUKTU
   ============================================ */

.woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.woocommerce-product-details__short-description p {
    margin: 0 0 10px 0;
}

/* ============================================
   5. SELEKTOR ATRYBUTÓW (Rozmiar)
   ============================================ */

.product-info-column .variations {
    margin-bottom: 20px;
}

.product-info-column .variations td {
    display: block;
    padding: 0;
}

.product-info-column .variations label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-info-column .variations select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.product-info-column .variations select:hover {
    border-color: #FF8C42;
    background-color: #fff;
}

.product-info-column .variations select:focus {
    outline: none;
    border-color: #FF8C42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

/* ============================================
   6. QUANTITY SELECTOR (+ liczba -)
   ============================================ */

.product-info-column .quantity {
    display: inline-flex;
    margin-right: 15px;
}

.product-info-column .quantity input[type="number"] {
    width: 60px;
    height: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    -moz-appearance: textfield;
}

.product-info-column .quantity input[type="number"]::-webkit-inner-spin-button,
.product-info-column .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-info-column .quantity input[type="number"]:focus {
    outline: none;
    border-color: #FF8C42;
}

/* Custom + - buttons (jeśli chcesz dodać później) */
.quantity-buttons {
    display: flex;
    gap: 5px;
}

/* ============================================
   7. PRZYCISK "DODAJ DO KOSZYKA"
   ============================================ */

.product-info-column .cart {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-info-column button.single_add_to_cart_button {
    flex: 1;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%); /* Pomarańczowy gradient */
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.product-info-column button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.product-info-column button.single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Loading state */
.product-info-column button.single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   8. IKONY WISHLIST & COMPARE
   ============================================ */

.product-actions-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.product-actions-icons a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-actions-icons a:hover {
    color: #FF8C42;
}

.product-actions-icons a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Ikona serca (wishlist) */
.wishlist-icon:hover svg {
    fill: #E63946;
    stroke: #E63946;
}

/* Ikona porównywarka */
.compare-icon:hover svg {
    stroke: #FF8C42;
}

/* ============================================
   9. RESPONSIVE - Mobile
   ============================================ */

@media (max-width: 767px) {
    .product-info-column .product_title {
        font-size: 20px;
    }
    
    .product-info-column .price {
        font-size: 28px;
    }
    
    .product-info-column button.single_add_to_cart_button {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .product-actions-icons {
        justify-content: center;
    }
}
