/*
Theme Name: Storefront Child Theme
Description: Child theme dla Storefront
Template: storefront
Version: 1.0.0
*/

/* Price and Package Info Row Layout - Equal Height */
.price-package-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Custom Price Block - Clean Design */
.custom-price-wrapper {
    flex: 1;
    margin: 0 !important;
    min-width: 250px;
    max-width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 24px !important;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.custom-price-wrapper::before {
    content: 'PREIS';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 10px;
    font-weight: 600;
    color: #999999;
    letter-spacing: 1px;
}

.custom-price-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    text-align: center;
}

.custom-price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

/* Custom Price Styling */
.custom-price-regular,
.custom-price-new {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(44, 62, 80, 0.1);
    margin: 0 !important;
}

.custom-price-old {
    font-size: 24px !important;
    color: #bbbbbb !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.custom-price-new {
    color: #e74c3c !important;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.custom-price-suffix {
    font-size: 14px !important;
    color: #888888 !important;
    font-weight: normal !important;
    margin: 0 !important;
    line-height: 1.4;
    display: block !important;
    font-style: italic;
}

/* Package Info Wrapper - Equal Layout with Custom Price */
.price-package-wrapper .package-info-wrapper {
    flex: 1;
    margin: 0 !important;
    min-width: 250px;
    max-width: 300px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments - keep in row on mobile */
@media (max-width: 768px) {
    .price-package-wrapper {
        gap: 12px;
    }
    
    .custom-price-wrapper,
    .price-package-wrapper .package-info-wrapper {
        min-width: 200px;
        max-width: none;
        padding: 16px !important;
        min-height: 100px;
    }
    
    .custom-price-regular,
    .custom-price-new {
        font-size: 22px !important;
    }
    
    .custom-price-old {
        font-size: 16px !important;
    }
    
    .custom-price-suffix {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .price-package-wrapper {
        gap: 8px;
    }
    
    .custom-price-wrapper,
    .price-package-wrapper .package-info-wrapper {
        min-width: 150px;
        min-height: 90px;
        padding: 12px !important;
    }
    
    .custom-price-regular,
    .custom-price-new {
        font-size: 18px !important;
    }
    
    .custom-price-old {
        font-size: 14px !important;
    }
    
    .custom-price-suffix {
        font-size: 9px !important;
    }
}

/* Fix WooCommerce archive/loop price strikethrough positioning - Custom approach */
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del,
.woocommerce .product .price del {
    text-decoration: none !important;
    position: relative !important;
    vertical-align: baseline !important;
    display: inline-block !important;
}

/* Add custom centered strikethrough line */
.woocommerce ul.products li.product .price del::after,
.woocommerce-page ul.products li.product .price del::after,
.woocommerce .product .price del::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #999;
    transform: translateY(-50%);
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .price del .woocommerce-Price-amount {
    vertical-align: baseline;
    line-height: inherit;
}

/* Ensure proper baseline alignment for sale prices - centered */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price ins {
    display: inline;
    vertical-align: baseline;
    line-height: 1.2;
}

/* Sale price styling - red and bold */
.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

/* Product title - smaller font and justified text */
h2.woocommerce-loop-product__title {
    font-size: 0.9em !important;
    text-align: justify !important;
    line-height: 1.4 !important;
}
