/*
Theme Name: DecorStore Child
Template: twentytwentyfive
Description: Child theme for DecorStore.kz
Version: 1.0
Text Domain: decorstore-child
*/

/* === ЗАДАЧА 2: Скрыть вкладку Отзывы на странице товара === */
.woocommerce-tabs ul.tabs li.reviews_tab {
    display: none !important;
}
#tab-reviews {
    display: none !important;
}

/* === ЗАДАЧА 3: Кастомная карточка товара === */
.decorstore-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.decorstore-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.decorstore-product-card .product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f5;
}
.decorstore-product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.decorstore-product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}
.decorstore-product-card .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.decorstore-product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.decorstore-product-card .product-excerpt {
    font-size: 13px;
    color: #777;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.decorstore-product-card .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.decorstore-product-card .product-buttons {
    display: flex;
    gap: 8px;
}
.decorstore-product-card .btn-details {
    flex: 1;
    display: inline-block;
    padding: 10px 16px;
    background: #f0f0f0;
    color: #333;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.decorstore-product-card .btn-details:hover {
    background: #e0e0e0;
}
.decorstore-product-card .btn-add-to-cart {
    flex: 1;
    display: inline-block;
    padding: 10px 16px;
    background: #2c6e49;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.decorstore-product-card .btn-add-to-cart:hover {
    background: #1e5233;
}

/* Product grid layout */
ul.products.columns-3,
ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
}
ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* === ЗАДАЧА 4: Плавающая кнопка WhatsApp === */
.decorstore-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.decorstore-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.decorstore-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* === ЗАДАЧА 5: Страница Оплата === */
.decorstore-payment-page {
    max-width: 700px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.decorstore-payment-page h2 {
    text-align: center;
    margin-bottom: 24px;
}
.decorstore-payment-qr-blocks {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}
.decorstore-qr-block {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
    background: #fafafa;
}
.decorstore-qr-block h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
.decorstore-qr-block .qr-placeholder {
    width: 150px;
    height: 150px;
    background: #eee;
    margin: 0 auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}
.decorstore-order-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}
.decorstore-order-info p {
    margin: 4px 0;
}
.btn-whatsapp-order {
    display: block;
    max-width: 350px;
    margin: 24px auto 0;
    padding: 14px 24px;
    background: #25D366;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-whatsapp-order:hover {
    background: #1ea952;
    color: #fff;
}

@media (max-width: 600px) {
    .decorstore-payment-qr-blocks {
        flex-direction: column;
        align-items: center;
    }
    .decorstore-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .decorstore-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
