:root {
    --huawei-red: #E60012;
    --huawei-dark: #1A1A1A;
    --huawei-gray: #F8F8F8;
    --huawei-border: #E5E5E5;
    --huawei-gradient: linear-gradient(135deg, #E60012 0%, #FF3B3B 100%);
    --huawei-shadow: 0 8px 24px rgba(230, 0, 18, 0.12);
}

/* Конфигуратор */
.woocommerce-Tabs-panel,
body.single-product .wooco-wrap ~ * .woocommerce-Tabs-panel { display: block !important; }
.wooco-wrap ~ form.cart button.single_add_to_cart_button,
.wooco-wrap ~ form.cart div.quantity,
.wooco_item_selected { border: 2px solid var(--huawei-red) !important; }

/* Контейнеры */
.wooco_wrap {
    background: #fff;
    border: 1px solid var(--huawei-border);
    border-radius: 20px;
    padding: 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-Tabs-panel {
    background: #fff;
    border: 1px solid var(--huawei-border);
    border-radius: 20px;
    padding: 28px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-Tabs-panel { margin-top: 10px; }
.wooco_component_product { width: 100%; }
.wooco_component_product_selection_list { display: flex; flex-direction: column; gap: 12px; }

/* Карточка товара */
.wooco_component_product_selection_list_item {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    background: var(--huawei-gray);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wooco_component_product_selection_list_item:hover {
    background: #fff;
    border-color: var(--huawei-border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.wooco_component_product_selection_list_item_image { flex: 0 0 80px; }
.wooco_component_product_selection_list_item_image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wooco_component_product_selection_list_item_info {
    flex: 1 1 calc(100% - 112px);
    min-width: 120px;
    overflow: hidden;
}

.wooco_component_product_selection_list_item_name {
    font-size: 15px;
    font-weight: 600;
    color: var(--huawei-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

.wooco_component_product_selection_list_item_desc {
    font-size: 16px;
    font-weight: 700;
    color: #666;
}

.wooco_component_product_selection_list_item_qty {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
}

/* Количество */
.wooco-qty-input {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wooco_component_product_qty_input {
    width: 83px !important;
    height: 36px;
    text-align: center;
    border: 2px solid var(--huawei-border);
    border-radius: 8px;
    font-weight: 600;
    color: var(--huawei-dark);
    padding: 0 36px;
    position: relative;
}

.wooco_component_product_qty_input::-webkit-outer-spin-button,
.wooco_component_product_qty_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wooco_component_product_qty_input[type=number] {
    -moz-appearance: textfield;
}

.wooco_component_product_qty_btn {
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--huawei-dark);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.wooco_component_product_qty_btn:hover {
    color: var(--huawei-red);
}

.wooco_component_product_qty_btn.wooco-minus {
    left: 2px;
}

.wooco_component_product_qty_btn.wooco-plus {
    right: 2px;
}

/* Уведомление */
.wooco_alert {
    background: var(--huawei-gray);
    border: 1px solid var(--huawei-border);
    color: var(--huawei-dark);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Кнопки заказа */
.order-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.custom-order-button {
    flex: 1;
    padding: 18px 32px;
    background: var(--huawei-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--huawei-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-order-button {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--huawei-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--huawei-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-order-button:hover,
.download-order-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(230, 0, 18, 0.2);
}

.custom-order-button:active,
.download-order-button:active { 
    transform: translateY(-1px); 
}

/* Продукт */
.product_title.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--huawei-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

p.price {
    font-size: 28px;
    font-weight: 700;
    color: #666;
    margin-bottom: 20px;
}

.woocommerce-product-details__short-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.product_meta {
    padding: 16px 20px;
    background: var(--huawei-gray);
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.product_meta span { display: block; margin-bottom: 8px; color: #666; }

.woocommerce-Tabs-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--huawei-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--huawei-red);
    display: inline-block;
}

form.cart,
.cart.form-group { margin-top: 0 !important; }
.summary.entry-summary { margin-top: 20px; }
.hestia-product-image-wrap { margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb { font-size: 16px; margin-top: 20px !important;}

@media (min-width: 769px) and (max-width: 1024px) {
    .product_title.entry-title { font-size: 24px; }
    p.price { font-size: 22px; }
    p.price.wooco-price-29 { color: inherit !important; }
    .wooco_wrap,
    .woocommerce-Tabs-panel { padding: 20px; border-radius: 16px; }
    .wooco_component_product_selection_list_item { padding: 12px; gap: 10px; flex-wrap: wrap !important; }
    .wooco_component_product_selection_list_item_image { flex: 0 0 60px; }
    .wooco_component_product_selection_list_item_info { flex: 1 1 calc(100% - 70px); min-width: 0; }
    .wooco_component_product_selection_list_item_qty { flex: 0 0 100%; margin-left: 0; margin-top: 8px; }
    .wooco_component_product_selection_list_item_name { font-size: 12px; }
    .wooco_component_product_selection_list_item_desc { font-size: 12px; }
    .wooco_component_product_qty_input { width: 70px !important; height: 32px; font-size: 12px; padding: 0 26px !important; }
    .wooco_component_product_qty_btn { width: 26px; height: 26px; font-size: 13px; }
    .custom-order-button { padding: 16px 24px; font-size: 14px; }
    .download-order-button { width: 50px; height: 50px; }
}

@media (max-width: 768px) {
    .product_title.entry-title { font-size: 20px; }
    p.price { font-size: 18px; }
    p.price.wooco-price-29 { color: inherit !important; }
    .wooco_wrap,
    .woocommerce-Tabs-panel { padding: 16px; border-radius: 12px; }
    .wooco_component_product_selection_list { gap: 10px; }
    .wooco_component_product_selection_list_item { padding: 10px; gap: 10px; flex-wrap: nowrap !important; }
    .wooco_component_product_selection_list_item_image { flex: 0 0 60px; }
    .wooco_component_product_selection_list_item_info { flex: 1 1 auto; min-width: 0; }
    .wooco_component_product_selection_list_item_qty { flex: 0 0 auto; margin-left: auto; }
    .wooco_component_product_selection_list_item_name { font-size: 13px; margin-bottom: 2px; }
    .wooco_component_product_selection_list_item_desc { font-size: 13px; }
    .wooco_component_product_qty_btn { width: 24px; height: 24px; font-size: 14px; }
    .wooco_component_product_qty_input { width: 70px !important; height: 32px; font-size: 13px; padding: 0 26px !important; }
    .custom-order-button { padding: 14px 20px; font-size: 13px; }
    .download-order-button { width: 48px; height: 48px; }
    .download-order-button svg { width: 18px; height: 18px; }
    .hestia-product-image-wrap,
    .summary.entry-summary { width: 100% !important; max-width: 100% !important; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wooco_component_product_selection_list .wooco_component_product_selection_list_item.wooco_item_selected .wooco_component_product_selection_list_item_choose span:before {
    background-color: #E60012;
}
.wooco_component_product_selection_list_item.wooco_item_selected {
    background: rgba(230, 0, 18, 0.06);
    border-color: var(--huawei-red);
}