/* Основна структура сторінки продукту */

.site-main.product-wrapper {
    background: #ffffff;
}

.product-detail {
    width: 100%;
}

.product-content {
    width: 100%;
}

/* Breadcrumbs */
.breadcrumb-container {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-container .breadcrumbs {
    font-size: 14px;
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
    color: #666;
}

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

.woocommerce-breadcrumb a:hover {
    color: #c41b22;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 8px;
}

/* Основний блок продукту */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

/* Галерея */
.product-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-gallery img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Інформація про продукт */
.product-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Статус наявності */
.stock-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    width: fit-content;
}

.stock-status.in-stock {
    background: white;
    color: #10b981;
}

.stock-status.out-of-stock {
    background: #ef4444;
    color: #ffffff;
}

/* Заголовок продукту */
.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E1E;
    line-height: 1.3;
    margin: 0;
}

/* Ціна */
.product-price {
    font-size: 36px;
    font-weight: 700;
    color: #E21E25;
    margin: 0;
}

.product-price del {
    font-size: 24px;
    color: #999;
    margin-right: 12px;
}

/* Атрибути (Об'єм, Вага) */
.option-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-block label {
    font-size: 16px;
    font-weight: 600;
    color: #1E1E1E;
}

.variant-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.variant-button {
    padding: 10px 20px;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1E1E1E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-button:hover,
.variant-button.active {
    border-color: #E21E25;
    color: #E21E25;
    background: #fef2f2;
}

/* Кнопки товару */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.product-buttons .cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-buttons .quantity {
    display: flex;
    align-items: center;
}

.product-buttons .quantity input {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.product-buttons .single_add_to_cart_button {
    flex: 1;
    height: 50px;
    padding: 0 32px;
    background: #E21E25;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-buttons .single_add_to_cart_button:hover {
    background: #c41b22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 30, 37, 0.3);
}

.product-buttons .quick-buy-button {
    width: 100%;
    height: 50px;
    padding: 0 32px;
    background: #ffffff;
    color: #E21E25;
    border: 2px solid #E21E25;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-buttons .quick-buy-button:hover {
    background: #E21E25;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 30, 37, 0.3);
}

/* Адаптивні стилі для основного блоку */
@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

    .product-gallery img {
        max-width: 400px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 16px 0;
    }

    .product-main {
        gap: 30px;
        padding: 30px 0;
    }

    .product-gallery img {
        max-width: 100%;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .variant-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .product-buttons .cart {
        flex-direction: column;
        gap: 12px;
    }

    .product-buttons .quantity {
        width: 100%;
    }

    .product-buttons .quantity input {
        width: 100%;
    }

    .product-buttons .single_add_to_cart_button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-buttons .single_add_to_cart_button,
    .product-buttons .quick-buy-button {
        height: 45px;
        font-size: 15px;
    }
}