/* Секція самовивозу з магазинів */
.store-pickup-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.store-pickup-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 40px;
    text-align: center;
}

.stores-availability {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.store-item {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.store-item:hover {
    border-color: #E21E25;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(226, 30, 37, 0.1);
}

.store-location {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-location svg {
    flex-shrink: 0;
}

.store-location strong {
    font-size: 18px;
    color: #1E1E1E;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

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

.status-badge.tomorrow {
    background: #f59e0b;
    color: #ffffff;
}

.stock-quantity {
    font-size: 15px;
    font-weight: 600;
    color: #1E1E1E;
}

.stock-note {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Секція "Популярні категорії" на сторінці продукту */
.product-popular-categories {
    padding: 60px 0;
    background: #f9f9f9;
}

.product-popular-categories .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 40px;
    text-align: center;
}

.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.popular-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.popular-category-item:hover {
    border-color: #E21E25;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(226, 30, 37, 0.15);
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 50%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.popular-category-item:hover .category-icon-wrapper {
    background: #E21E25;
}

.category-icon-wrapper i {
    font-size: 32px;
    color: #E21E25;
    transition: all 0.3s ease;
}

.popular-category-item:hover .category-icon-wrapper i {
    color: #ffffff;
}

.category-icon-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.popular-category-item .category-name {
    font-size: 15px;
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 6px;
    line-height: 1.3;
}

.popular-category-item .category-count {
    font-size: 13px;
    color: #999;
}

/* Контейнер для вкладок та секції самовивозу */
.product-tabs.container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 60px 0;
}

/* Секція самовивозу в контексті вкладок */
.product-tabs .store-pickup-section {
    width: 40%;
    padding: 0;
    border: none;
    background: transparent;
}

.product-tabs .store-pickup-section .section-title {
    text-align: left;
    font-size: 28px;
    margin-bottom: 30px;
}

.product-tabs .stores-availability {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Стилі для вкладок опису та відгуків на сторінці товару */
.woocommerce-tabs.wc-tabs-wrapper {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.woocommerce-tabs .tabs.wc-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
    width: 100%;
}

.woocommerce-tabs .tabs.wc-tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs.wc-tabs li a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs .tabs.wc-tabs li a:hover {
    color: #E21E25;
}

.woocommerce-tabs .tabs.wc-tabs li.active a {
    color: #E21E25;
    border-bottom-color: #E21E25;
}

.woocommerce-Tabs-panel {
    padding: 0;
    width: 100%;
}

.woocommerce-Tabs-panel h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 24px;
}

.woocommerce-Tabs-panel p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 16px;
}

/* Стилі для форми відгуків */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 8px;
    display: block;
}

.comment-form-rating .stars {
    margin: 0;
}

.comment-form-rating .stars a {
    color: #E21E25;
    font-size: 20px;
    text-decoration: none;
}

.comment-form-comment label {
    font-weight: 600;
    color: #1E1E1E;
    margin-bottom: 8px;
    display: block;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #E21E25;
}

.form-submit input[type="submit"] {
    background: #E21E25;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #c41b22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 30, 37, 0.3);
}

.woocommerce-noreviews {
    font-size: 15px;
    color: #999;
    font-style: italic;
}

/* Секція "З цим товаром купують" */
.product-bought-together {
    padding: 60px 0;
    background: #ffffff;
}

.product-bought-together .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 40px;
    text-align: center;
}

.bought-together-grid {
    display: grid;
     grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bought-together-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bought-together-item:hover {
    border-color: #E21E25;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(226, 30, 37, 0.1);
}

.bought-together-item .product-image {
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.bought-together-item .product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bought-together-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info .product-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.product-info .product-title a {
    color: #1E1E1E;
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .product-title a:hover {
    color: #E21E25;
}

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

.product-rating .star-rating {
    font-size: 14px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #E21E25;
}

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

.product-actions {
    margin-top: 8px;
}

.product-actions .button {
    width: 100%;
    padding: 12px 20px;
    background: #E21E25;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

/* Адаптивні стилі */
@media (max-width: 1024px) {

    .popular-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .bought-together-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .woocommerce-tabs .tabs.wc-tabs li a {
        padding: 12px 16px;
        font-size: 15px;
    }

    .store-pickup-section {
        padding: 40px 0;
    }

    .store-pickup-section .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .stores-availability {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-popular-categories,
    .product-bought-together {
        padding: 40px 0;
    }

    .product-popular-categories .section-title,
    .product-bought-together .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .popular-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .popular-category-item {
        padding: 16px 12px;
    }

    .category-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .category-icon-wrapper i {
        font-size: 28px;
    }

    .popular-category-item .category-name {
        font-size: 14px;
    }

    .bought-together-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bought-together-item {
        padding: 16px;
    }

    .bought-together-item .product-image img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .store-pickup-section .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .stores-availability {
        grid-template-columns: 1fr;
    }

    .store-item {
        padding: 20px;
    }

    .store-location strong {
        font-size: 16px;
    }

    .stock-quantity,
    .status-badge {
        font-size: 13px;
    }

    .popular-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .popular-category-item {
        padding: 12px 8px;
    }

    .category-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .category-icon-wrapper i {
        font-size: 24px;
    }

    .popular-category-item .category-name {
        font-size: 12px;
    }

    .popular-category-item .category-count {
        font-size: 11px;
    }

    .bought-together-grid {
        grid-template-columns: 1fr;
    }

    .product-popular-categories .section-title,
    .product-bought-together .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}