/**
 * SINGLE PRODUCT PAGE CSS
 * Plik: assets/css/single-product.css
 * 
 * Rozmiary zgodne z Figma export
 */
/* ==========================================
   BREADCRUMBS
   ========================================== */
.product-breadcrumbs {
    margin-bottom: 30px;
}

.breadcrumb-nav {
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #FDA635;
}

.breadcrumb-item:last-child a {
    color: #333333;
    font-weight: 500;
    pointer-events: none;
}

.breadcrumb-separator {
    color: #CCCCCC;
    font-size: 16px;
    user-select: none;
}

/* Mobile */
@media (max-width: 767px) {
    .product-breadcrumbs {
        margin-bottom: 20px;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        font-size: 14px;
    }
}
/* ==========================================
   1. GŁÓWNY KONTENER
   ========================================== */

.single-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-product-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ==========================================
   2. LEWA STRONA - GALERIA (bez zmian)
   ========================================== */

.single-product-gallery {
    flex: 0 0 500px;
}

/* ==========================================
   3. PRAWA STRONA - INFO
   ========================================== */

.single-product-info {
    flex: 1;
    max-width: 625px;
}

/* ==========================================
   4. TYTUŁ - 30px, 600
   ========================================== */

.product-title-single {
    font-size: 30px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

/* ==========================================
   5. OPINIE - Gwiazdki + liczba
   ========================================== */

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

.stars-single {
    display: flex;
    gap: 3px;
}

.star-single {
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-single.filled {
    color: #EFC576;
}

.star-single.empty {
    color: #E5E5E5;
}

.rating-count-single {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
}

/* ==========================================
   6. CENA - 33px, 700, #FDA635
   ========================================== */

.product-price-single {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.price-current-single {
    font-size: 33px;
    font-weight: 700;
    color: #FDA635;
}

.price-regular-single {
    font-size: 33px;
    font-weight: 700;
    color: #666666;
    text-decoration: line-through;
}

/* ==========================================
   7. KRÓTKI OPIS - 14px, 400, #666
   ========================================== */

single-product-wrapper .single-product-info .product-short-description,
.single-product-wrapper .single-product-info .product-short-description p {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.7 !important;
}

.single-product-wrapper .single-product-info .product-short-description {
    margin-bottom: 25px;
}

.single-product-wrapper .single-product-info .product-short-description p {
    margin: 0 0 12px 0 !important;
}

.single-product-wrapper .single-product-info .product-short-description p:last-child {
    margin-bottom: 0 !important;
}

/* Nadpisz nagłówki w opisie */
.single-product-wrapper .single-product-info .product-short-description h1,
.single-product-wrapper .single-product-info .product-short-description h2,
.single-product-wrapper .single-product-info .product-short-description h3,
.single-product-wrapper .single-product-info .product-short-description h4 {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    margin: 0 0 10px 0 !important;
}

/* ==========================================
   8. SEKCJA ZAKUPU - Border dashed
   ========================================== */

.product-purchase-section {
    background: #FFFFFF;
    border: 1px dashed #E5E5E5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

/* ==========================================
   9. WARIANTY (Atrybuty) - 16px, 500
   ========================================== */

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

.variation-item {
    margin-bottom: 15px;
}

.variation-item:last-child {
    margin-bottom: 0;
}

.variation-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.variation-select {
    width: 100%;
    max-width: 227px;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FDA635' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.variation-select:focus {
    outline: none;
    border-color: #FDA635;
}

.variation-select option:first-child {
    font-size: 12px;
    font-weight: 500;
    color: #666666;
}

/* ==========================================
   10. ILOŚĆ + DODAJ DO KOSZYKA
   ========================================== */

.quantity-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Ilość - Custom style */
.quantity {
    display: flex;
    align-items: center;
}

.quantity input[type="number"] {
    width: 60px;
    height: 49px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    padding: 0;
    -moz-appearance: textfield;
}

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

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

/* Przyciski +/- (jeśli używasz wtyczki) */
/* Przyciski +/- */
.quantity.custom-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    overflow: hidden;
    height: 49px;
}

.quantity.custom-quantity .qty-btn {
    width: 40px;
    height: 49px;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333333;
    transition: all 0.3s ease;
}

.quantity.custom-quantity .qty-btn:hover {
    background: #F8F8F8;
    color: #FDA635;
}

.quantity.custom-quantity .qty-minus {
    border-right: 1px solid #D9D9D9;
}

.quantity.custom-quantity .qty-plus {
    border-left: 1px solid #D9D9D9;
}

.quantity.custom-quantity input[type="number"] {
    width: 60px;
    height: 49px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    border: none;
    padding: 0;
    -moz-appearance: textfield;
}

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

.quantity.custom-quantity input[type="number"]:focus {
    outline: none;
}
/* Nadpisz WooCommerce + Theme - wyższy specificity */
.single-product-wrapper .single_add_to_cart_button,
.single-product-wrapper button.single_add_to_cart_button,
.woocommerce .single-product-wrapper button.single_add_to_cart_button,
.woocommerce .single-product-wrapper button.single_add_to_cart_button.button.alt {
    height: 49px !important;
    background: #FDA635 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0 35px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.single-product-wrapper .single_add_to_cart_button:hover,
.woocommerce .single-product-wrapper button.single_add_to_cart_button:hover {
    background: #FF6B35 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 166, 53, 0.4);
}

/* Disabled state - wyszarzony */
.single-product-wrapper .single_add_to_cart_button.disabled,
.single-product-wrapper .single_add_to_cart_button:disabled,
.woocommerce .single-product-wrapper button.single_add_to_cart_button:disabled {
    background: #CCCCCC !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.single-product-wrapper .single_add_to_cart_button.disabled:hover,
.single-product-wrapper .single_add_to_cart_button:disabled:hover {
    background: #CCCCCC !important;
    transform: none !important;
}

/* ==========================================
   11. SEPARATOR - 1px #E5E5E5
   ========================================== */

.product-separator {
    width: 100%;
    height: 1px;
    background: #E5E5E5;
    margin: 25px 0;
}

/* ==========================================
   12. WISHLIST + COMPARE - 16px, 500, #666
   ========================================== */

.product-actions-single {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.action-single {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-single svg {
    width: 21px;
    height: 19px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.action-single.compare-single svg {
    width: 17px;
    height: 18px;
}

.action-single:hover {
    color:white;
}

.action-single:hover svg {
    fill: white;
}

.action-single:hover svg path {
    fill: white;
}

/* Gdy dodane - pomarańczowy */
.action-single.added {
    color: #FDA635;
}

.action-single.added svg {
    fill: #FDA635;
}

.action-single.added svg path {
    fill: #FDA635;
}

/* Loading state */
.action-single.loading {
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================
   13. RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .single-product-container {
        gap: 40px;
        flex-direction:column;
    }
    
    .single-product-gallery {
        flex: 0 0 450px;
    }
    
    .product-title-single {
        font-size: 26px;
    }
    
    .price-current-single,
    .price-regular-single {
        font-size: 28px;
    }
    .product-actions-single {
        flex-direction: column;
    }
}

/* Mobile - Stack layout */
@media (max-width: 767px) {
    .single-product-wrapper {
        padding: 20px 15px;
    }
    
    .single-product-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .single-product-gallery {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .single-product-info {
        max-width: 100%;
    }
    
    .product-title-single {
        font-size: 24px;
    }
    
    .price-current-single,
    .price-regular-single {
        font-size: 26px;
    }
    
    .product-short-description {
        font-size: 13px;
    }
    .out-of-stock-badge {
    background: #E63946;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    margin: 25px 0;
}
    .product-purchase-section {
        padding: 20px;
    }
    
    .quantity-cart-wrapper {
        flex-wrap: wrap;
    }
    
    .single_add_to_cart_button {
        width: 100%;
    }
    
    .variation-select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-title-single {
        font-size: 20px;
    }
    
    .price-current-single,
    .price-regular-single {
        font-size: 24px;
    }
    
    .star-single {
        font-size: 18px;
        width: 18px;
        height: 17px;
    }
    
    .rating-count-single {
        font-size: 14px;
    }
    
    .action-single {
        font-size: 14px;
    }
}

/* ==========================================
   14. WOOCOMMERCE OVERRIDES
   ========================================== */

/* Ukryj domyślne elementy WooCommerce */
.single-product .product .summary {
    display: none;
}

/* Reset margin dla form */
.single-product .cart {
    margin: 0;
}

/* Variations form reset */
.variations_form {
    margin: 0;
}

.variations {
    margin: 0;
}

/* Reset price display */
.single-product .price {
    display: none;
}
/* ==========================================
   FIX RELATED PRODUCTS - GRID 5 KOLUMN
   ========================================== */

/* Wrapper sekcji */
section.related.products {
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 0px;
    padding-right: 20px;
}

/* Tytuł z emoji */
section.related.products h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin: 0 0 40px 0 !important;
}

section.related.products h2::after {
    content: ' 🐾';
}

/* GRID 5 KOLUMN */
section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Wyłącz clearfix ::before (tworzy pustą kolumnę) */
section.related.products ul.products::before,
section.related.products ul.products::after {
    display: none !important;
    content: none !important;
}
/* Tablet - 3 kolumny */
@media screen and (max-width: 1200px) {
    section.related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    section.related.products h2 {
        font-size: 30px !important;
    }
}

/* Mobile - 2 kolumny */
@media screen and (max-width: 768px) {
    section.related.products {
        padding: 40px 0 40px 0;
    }
    
    section.related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    section.related.products h2 {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }
}

/* Mobile małe - 1 kolumna */
@media screen and (max-width: 480px) {
    section.related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}
/* ==========================================
   STOCK STATUS (opisowy)
========================================== */
.product-stock-status {
    margin: 1rem 0;
}

.stock-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.stock-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Kolory dla różnych stanów */
.stock-low {
    color: #d32f2f;
    background: #ffebee;
}

.stock-medium {
    color: #f57c00;
    background: #fff3e0;
}

.stock-high {
    color: #388e3c;
    background: #e8f5e9;
}