/*
Theme Name: AKPP Market Child
Theme URI: https://akppmarket.kz/
Description: Дочерняя тема Hello Elementor для AKPP Market — собственные стили, шаблоны страниц и кастомные функции.
Author: AKPP Market
Author URI: https://akppmarket.kz/
Template: hello-elementor
Version: 1.0.0
Text Domain: akppmarket-child
*/

/* ================================
   GLOBAL TOKENS
   Акцентный цвет проекта: #2F67FD
================================ */
:root{
  --akpp-accent: #2F67FD;
  --akpp-accent-hover: #1f55e8;
  --akpp-accent-soft: rgba(47, 103, 253, 0.08);
  --akpp-accent-line: rgba(47, 103, 253, 0.18);
  --akpp-text: #1C1C1C;
  --akpp-muted: #475569;
  --akpp-bg-soft: #F4F7FE;
  --akpp-card: #FFFFFF;
  --akpp-border: rgba(15, 23, 42, 0.08);
  --akpp-radius: 16px;
  --akpp-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --akpp-shadow-strong: 0 18px 40px rgba(47, 103, 253, 0.18);
}

/* ================================
   Woo: Additional information tab
   Перенесено из настроек темы
================================ */
.woocommerce div.product .woocommerce-Tabs-panel--additional_information > h2{
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  border: 1px solid var(--akpp-accent-line);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes tr{
  background: #fff;
  transition: background-color .18s ease;
}
.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes tr:hover{
  background: rgba(47, 103, 253, 0.03);
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes
th.woocommerce-product-attributes-item__label,
.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes
td.woocommerce-product-attributes-item__value{
  padding: 14px 16px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes
th.woocommerce-product-attributes-item__label{
  width: 240px;
  background: rgba(47, 103, 253, 0.035);
  color: #475569;
  font-weight: 600;
  border-right: 1px solid var(--akpp-accent-line);
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes
td.woocommerce-product-attributes-item__value{
  color: #0f172a;
  font-weight: 500;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes tr + tr
th.woocommerce-product-attributes-item__label,
.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes tr + tr
td.woocommerce-product-attributes-item__value{
  border-top: 1px solid var(--akpp-border);
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes
td.woocommerce-product-attributes-item__value p{
  margin: 0;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes a{
  color: var(--akpp-accent);
  text-decoration: none;
}
.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes a:hover{
  text-decoration: underline;
}

.woocommerce div.product .woocommerce-Tabs-panel--additional_information
table.woocommerce-product-attributes.shop_attributes tr:nth-child(even)
td.woocommerce-product-attributes-item__value{
  background: rgba(15, 23, 42, 0.015);
}

@media (max-width: 640px){
  .woocommerce div.product .woocommerce-Tabs-panel--additional_information
  table.woocommerce-product-attributes.shop_attributes tr{
    display: grid;
    grid-template-columns: 1fr;
  }
  .woocommerce div.product .woocommerce-Tabs-panel--additional_information
  table.woocommerce-product-attributes.shop_attributes
  th.woocommerce-product-attributes-item__label{
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--akpp-accent-line);
  }
}
table.woocommerce-product-attributes.shop_attributes th{
  padding-top: 18px !important;
}
table.woocommerce-product-attributes.shop_attributes td{
  font-style: normal;
}
@media (max-width: 767px){
  table.woocommerce-product-attributes.shop_attributes td{
    text-align: center;
  }
}

/* SKU на карточках товаров (стиль для функции из functions.php) */
.wc-loop-sku{
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.25;
  color: #3D3D3D;
  text-align: center;
}

/* Chaty: акцентная заливка на иконке виджета */
#chaty-widget-0 .chaty-i-trigger .chaty-cta-button button ellipse{
  fill: var(--akpp-accent) !important;
}
