/* 
Theme Name: IPS WooCommerce Theme
Description: Minimal starter WordPress theme with WooCommerce support.
Version: 1.1.0


/* {
  outline: 1px solid red !important;
}
*/


:root {
  --yt-red: #ff6600;
  --yt-dark: #202020;
  --yt-light: #ffffff;
  --yt-grey: #f9f9f9;
  --content-width: 98%;
  --primary-menu-color: var(--yt-light);
  --heading-color: var(--yt-dark);
}

/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

body {
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--yt-dark);
  background: var(--yt-grey);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.site-header {
  background: var(--yt-dark);
  color: var(--yt-light);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title a {
  color: var(--yt-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4rem;
}

.site-description {
  color: #aaa;
  font-size: 0.9rem;
}

.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.site-navigation a {
  color: var(--yt-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-navigation a:hover {
  color: var(--yt-red);
}

/* Content */
.site-content {
  max-width: var(--content-width);
  margin: 20px auto;
  background: var(--yt-light);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
}

.entry-title, .entry-header h1, .entry-header h2 {
  color: var(--yt-dark);
  margin-bottom: 10px;
}

.entry-title a {
  color: var(--yt-dark);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--yt-red);
}

/* Sidebar */
.content-wrapper {
  display: flex;
  flex-wrap: nowrap; /* sidebar завжди справа */
  gap: 20px;
  align-items: flex-start;
}

.main-content {
  flex: 1 1 70%;
  max-width: 70%;
}

.widget-area {
  flex: 1 1 30%;
  max-width: 30%;
  background: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

/* мобільна адаптація */
@media (max-width: 768px) {
  .main-content,
  .widget-area {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Footer */
.site-footer {
  background: var(--yt-dark);
  color: var(--yt-light);
  padding: 15px 20px;
  text-align: center;
  margin-top: 20px;
}

/*================================================================== ТУТ ДАЛІ НОВИЙ ЕОД */

/* ===== Магазин WooCommerce (Shop) ===== */

.shop-content-area {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
  max-width: var(--content-width);
  margin: 0 auto;
}

.shop-main {
  flex: 1 1 70%;
  max-width: 70%;
}

.shop-sidebar {
  flex: 1 1 30%;
  max-width: 30%;
  background: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

/* адаптація */
@media (max-width: 768px) {
  .shop-content-area {
    flex-wrap: wrap;
  }

  .shop-main,
  .shop-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ===== Сторінка товару ===== */

.single-product-area {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-product-main {
  flex: 1 1 70%;
  max-width: 70%;
}

.single-product-sidebar {
  flex: 1 1 30%;
  max-width: 30%;
  background: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

/* адаптація */
@media (max-width: 768px) {
  .single-product-area {
    flex-wrap: wrap;
  }

  .single-product-main,
  .single-product-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.shop-page-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
}

/* Сайдбар зліва */
.shop-sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* Контент справа */
.shop-content-area {
  flex: 1 1 75%;
  max-width: 75%;
}

/* Адаптивність */
@media (max-width: 768px) {
  .shop-page-wrapper {
    flex-direction: column;
  }
  .shop-sidebar,
  .shop-content-area {
    max-width: 100%;
  }
}

.single-product-area {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-start;
}

.single-product-sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  background: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #ddd;
}

.single-product-main {
  flex: 1 1 75%;
  max-width: 75%;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .single-product-area {
    flex-direction: column;
  }
  .single-product-sidebar,
  .single-product-main {
    max-width: 100%;
  }
}

 /*================================================================== КІНЕЦЬ НОВОГО КОДУ */
 
 /*========================================= ПРОДОВЖЕННЯ СТАРОГО КОДУ */


/* WooCommerce */
.woocommerce .products .product {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.woocommerce .products .product:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.woocommerce a.button,
button, input[type=submit] {
  background: var(--yt-red);
  color: var(--yt-light);
  border: none;
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.woocommerce a.button:hover,
button:hover, input[type=submit]:hover {
  background: #ff6600;
}

/* Responsive header nav */
@media (max-width: 800px) {
  :root { --content-width: 100%; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-navigation ul { flex-direction: column; gap: 8px; margin-top: 10px; }
}

/* Top bar */
.top-bar {
  background: #333;
  color: #fff;
  padding: 5px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--yt-red);
}

.top-bar .search-form {
  margin: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
}

h1.entry-title { font-size: 1.5rem; }
h2.entry-title { font-size: 1rem; }

/* Mobile Woo grid */
@media (max-width: 600px) {
  .woocommerce ul.products {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* Menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 9999;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile menu */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-navigation ul { display: none; }
  .site-navigation.toggled ul { display: block; }
}

.menu-toggle:hover { background-color: #00ff00; }
.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after { background-color: #ff6600; }
.menu-toggle:hover .hamburger,
.menu-toggle:hover .hamburger::before,
.menu-toggle:hover .hamburger::after { background-color: #004400; }

/* === Custom buttons === */
.ewt-request-button {
  display: inline-block;
  background: var(--yt-red);
  color: var(--yt-light);
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: all 0.3s ease;
/*  margin-top: 10px; */
}
.ewt-request-button:hover {
  background: #ff6600;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* === Modal === */
.ewt-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.ewt-modal-content {
  background: var(--yt-light);
  padding: 25px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ewt-modal-content h2 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--yt-dark);
  text-align: center;
  border-bottom: 2px solid var(--yt-red);
  padding-bottom: 10px;
}
.ewt-modal-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
  color: var(--yt-dark);
}
.ewt-modal-content input,
.ewt-modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.ewt-modal-content input:focus,
.ewt-modal-content textarea:focus {
  outline: none;
  border-color: var(--yt-red);
  box-shadow: 0 0 4px rgba(255,102,0,0.5);
}
.ewt-modal-content button[type=submit] {
  width: 100%;
  background: var(--yt-red);
  color: var(--yt-light);
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.ewt-modal-content button[type=submit]:hover {
  background: #ff6600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ewt-close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ewt-close:hover { color: var(--yt-red); }

/* === Alibaba product page styles === */
.alibaba-product-page { margin: 20px 0; }
.alibaba-product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}
.alibaba-gallery { flex: 1 1 45%; min-width: 300px; }
.alibaba-summary { flex: 1 1 50%; min-width: 300px; }
.product-title { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.price-label { font-size: 20px; margin-bottom: 15px; color: #e47911; }
.product-attributes {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.product-attributes td {
  padding: 8px 10px;
  border: 1px solid #eee;
}
.product-attributes td:first-child {
  font-weight: bold;
  background-color: #f9f9f9;
  width: 40%;
}
.product-actions { margin-top: 20px; }
.btn-request,
.btn-inquiry {
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-request {
  background-color: #f60;
  color: #fff;
}
.btn-request:hover {
  background-color: #d95400;
  transform: translateY(-2px);
}
.btn-inquiry {
  background-color: #fff;
  color: #f60;
  border: 2px solid #f60;
}
.btn-inquiry:hover {
  background-color: #fef2e5;
  transform: translateY(-2px);
}

/* Опис під колонками */
.alibaba-tabs { margin-top: 40px; }
.alibaba-tabs h2 { font-size: 22px; margin-bottom: 15px; }
.product-description { line-height: 1.6; color: #333; }

/* Alibaba адаптивність */
@media (max-width: 768px) {
  .shop-content-area { flex-direction: column; }
  .alibaba-gallery,
  .alibaba-summary { flex: 1 1 100%; }
}

/* Related products */
.related-products-section { margin-top: 60px; }
.related-products-section h2 { font-size: 24px; margin-bottom: 20px; }
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-product {
  border: 1px solid #eee;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
}
.related-product img { max-width: 100%; height: auto; }
.related-product h3 { font-size: 16px; margin: 10px 0; }
.related-product .price { font-weight: bold; margin-bottom: 10px; }
.related-product .button {
  background: #ff6600;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}
.related-product .button:hover { background: #a30000; }

/* WooCommerce products grid */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
/*ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.products li.product {
  width: calc(33.333% - 20px);
  box-sizing: border-box;
}
*/


@media (max-width: 768px) {
  ul.products li.product { width: calc(50% - 15px); }
}
@media (max-width: 480px) {
  ul.products li.product { width: 100%; }
}
.product-short-desc {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555;
}
.product-attributes-inline,
.product-tags-inline {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}

/* Blog grid */
.custom-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.blog-post-card {
  border: 1px solid #ddd;
  padding: 15px;
  background-color: #fff;
  transition: box-shadow 0.3s;
}
.blog-post-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.blog-post-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Pagination */
.custom-pagination { text-align: center; }
.custom-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}
.custom-pagination .current {
  background-color: #007cba;
  color: #fff;
  border-color: #007cba;
}

.product-short-description {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.products .product {
    text-align: center;
}

.products .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.products .woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
}

.products .woocommerce-loop-product__title a:hover {
    text-decoration: underline;
}

.products .ewt-button-wrap {
    margin: 10px 0;
}

.products .ewt-button-wrap button,
.products .ewt-button-wrap a {
    display: inline-block;
    margin: 0 auto;
}

.product-short-description {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
    text-align: left; /* Вирівнюємо ліворуч */
    padding: 0 15px;
}

.read-more-wrap {
    margin-top: 10px;
}

.read-more-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.read-more-button:hover {
    background-color: #005177;
}

.product-buttons-wrap > * {
    padding: 7px 12px;
    font-size: 18px;
    line-height: 1.3;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.product-buttons-wrap .read-more-button {
    background-color: #479a73;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.product-buttons-wrap .read-more-button:hover {
    background-color: #005177;
}

.msc-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.msc-price {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

.msc-ellipsis {
    padding: 0 6px;
    color: #888;
}
.msc-desc {
    text-align: left !important;
    padding: 0 10px;
}

ul.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  list-style: none;
}

ul.products.columns-4 li.product {
  margin: 0;
}
ul.products.columns-4 li.product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

ul.products.columns-4 li.product > * {
  width: 100%;
}

/* Перевизначення WooCommerce сітки товарів */
ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
}

ul.products.columns-4 li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: 0.2s ease;
}

ul.products.columns-4 li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Сітка для списку товарів без класу columns-4 (наприклад, у блозі) */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: 0.2s ease;
}

/* Схожі товари під записом у блозі – примусово 3 в ряд */
.single-post ul.products,
.blog ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

/* Вирівнюємо текст всередині Select2 */
.select2-container .select2-selection--single {
  height: 38px;              /* загальна висота */
  display: flex;
  align-items: center;       /* вирівнювання по центру */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 8px;         /* щоб текст не прилипав до краю */
}

/* ===== Універсальний мобільний стек: зробити контент повношироким, сайдбар під ним ===== */
@media (max-width: 768px) {
  /* Перехоплюємо типові контейнерні класи */
  .content-sidebar-wrap,
  .content-wrapper,
  .site-content,
  .container-content,
  .layout,
  .page-content,
  .inner-wrap,
  .wrap {
    display: block !important;
    grid-template-columns: none !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* Основний контент — займати всю ширину */
  .content-area,
  .site-main,
  .primary,
  .main-content,
  .entry-content,
  .post-content,
  .post-inner {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-right: 0 !important;
    order: 0 !important; /* для flex-парентів */
    grid-column: 1 / -1 !important; /* для grid-парентів */
  }

  /* Сайдбар — зробити звичайним потоком під контентом 
  .sidebar,
  .site-sidebar,
  .widget-area,
  .secondary,
  #secondary,
  aside.widget,
  .sidebar-wrap,
  .right-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    position: static !important;    /* прибираємо sticky/fixed/absolute */
 /*  left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    order: 1 !important;            /* забезпечує, що він після контенту в flex */
 /*     grid-column: 1 / -1 !important; /* для grid */
  /*    z-index: auto !important;
  }
  */

  /* Якщо сайдбар використовує спеціальні sticky класи (плагіни) */
  .is-sticky,
  .sticky-sidebar,
  .sticky,
  .elementor-sticky,
  .affix,
  .js-sticky {
    position: static !important;
    top: auto !important;
  }

  /* Якщо в inline-стилях або через JS sidebar абсолют/ fixed */
  aside[style],
  .sidebar[style],
  .widget-area[style] {
    position: static !important;
  }

  /* Коли батько — flex без wrap (на всякий випадок) */
  .content-sidebar-wrap,
  .content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  /* Додаткові захисні правила */
  .site-main > .sidebar,
  .site-main + .sidebar {
    order: 1 !important;
  }
}

/* Відновлюємо сітку карток товарів у блозі */
.single-post ul.products,
.blog ul.products,
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 20px !important;
}

/* Адаптивність */
@media (max-width: 768px) {
  .single-post ul.products,
  .blog ul.products,
  .related.products ul.products {
    grid-template-columns: 1fr !important; /* одна картка в рядок на телефоні */
  }
}

.price-request {
  display: inline-block;
  font-weight: 600;
  color: #d9534f; /* червонуватий акцент */
  font-size: 1rem;
}

/* Єдиний стиль для обох кнопок */
.product-card-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1.2;
}

.product-card-button:hover {
    background: #a30000;
    color: #fff;
}

/* Якщо хочеш трохи відрізнити */
.read-more-button {
    background: #0073aa;
}
.read-more-button:hover {
    background: #005177;
}

/* === Вирівнювання кнопок "Запит..." і "Детальніше" === */
.product-buttons-wrap {
    display: flex;
    justify-content: center;
    align-items: center; /* вирівнює кнопки по вертикалі */
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Щоб усі кнопки мали однакові властивості вирівнювання */
.product-card-button,
.ewt-request-button,
.read-more-button {
    display: inline-flex;
    align-items: center; /* вертикальне вирівнювання тексту */
    justify-content: center;
    background-color: #ff6600;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.4;
    height: auto;
}

.product-card-button:hover,
.ewt-request-button:hover,
.read-more-button:hover {
    background-color: #cc5200;
    color: #fff !important;
    transform: translateY(-2px);
}

.ewt-request-button {
  margin-top: 0 !important;
}

/* === ФІНАЛЬНЕ ВИРІВНЮВАННЯ КНОПОК У КАРТЦІ ТОВАРУ === */
.product-buttons-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch; /* усі однакової висоти */
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-buttons-wrap a,
.product-buttons-wrap button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important; /* однакова висота */
  line-height: 1 !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: none !important;
  background: #ff6600 !important;
  color: #fff !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.2s;
}

.product-buttons-wrap a:hover,
.product-buttons-wrap button:hover {
  background: #cc5200 !important;
  transform: translateY(-2px);
}
/* Contact info */
.top-bar .contact-info{
	font-weight:500;
	font-size:20px;
	font-style:normal;
	
}

/* Search submit */
.top-bar-right .search-form .search-submit{
	border-top-left-radius:20px;
	border-top-right-radius:20px;
	border-bottom-left-radius:20px;
	border-bottom-right-radius:20px;
	
}

/* Search submit */
.top-bar-right .search-form .search-submit{
	background-color:#fb5004;
	
}

/* Link */
#primary-menu .menu-item a{
	font-weight:600;
	font-size:18px;
	
}

/* Віджети у футері */

.footer-widgets {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap; /* на випадок, якщо екрани маленькі */
  color: #fff; /* білий текст */
}

.footer-widget-area {
  flex: 1;
  min-width: 200px;
  text-align: left; /* вирівнювання зліва */
}

.footer-widget-area .widget-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
	
	
}

.footer-widget-area a {
  color: #fff;
  text-decoration: none;
}

.footer-widget-area a:hover {
  text-decoration: underline;
}

/* Бонус: стилі для нижньої частини футера */
.site-info {
  text-align: center;
  padding: 20px;

  color: #ccc;
  font-size: 14px;
}

.site-info a {
  color: #ccc;
  text-decoration: none;
}

.site-info a:hover {
  text-decoration: underline;
}

.footer-widgets {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* розхмітка блоків  */

 {
  outline: 1px solid red;
}

/* === Фікс зображень у картках WooCommerce === */
ul.products li.product a img,
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 250px; /* фіксована висота */
  object-fit: cover; /* або cover — якщо хочеш, щоб картинка займала все поле */
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

/* Щоб сам контейнер не розтягувався */
ul.products li.product a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

/* ===== УНІВЕРСАЛЬНІ СТИЛІ ДЛЯ КАРТОК ТОВАРІВ (уніфікація зображень) ===== */

/* Контейнер мініатюри */
.msc-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
  /* сучасний спосіб: робимо квадрат */
  aspect-ratio: 1 / 1;
  position: relative;
}

/* fallback: якщо aspect-ratio не підтримується — забезпечимо квадрат через padding */
@supports not (aspect-ratio: 1/1) {
  .msc-thumb { padding-top: 100%; height: 0; }
  .msc-thumb > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}

/* Саме зображення всередині контейнера */
.msc-thumb img,
.msc-thumb picture,
.msc-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* початково — показати всю картинку без обрізки */
  object-position: center center;
  -o-object-fit: contain;
  transition: transform .25s ease;
}

/* Hover-ефект (необов'язково) */
.msc-thumb img:hover { transform: scale(1.03); }

/* Резервні селектори — щоб перекрити різні структури HTML */
ul.products li.product img,
.woocommerce ul.products li.product img,
.related-product img,
.msc-product-card img,
.product-card img {
  max-width: 100%;
  height: auto; /* щоб не ламати верстку у випадку, якщо JS ще не обгорнув */
  display: block;
  box-sizing: border-box;
}

/* Якщо хочеш, щоб картинка заповнювала весь блок і обрізалась (маркетплейс-тип): */
/* заміни object-fit: contain; на object-fit: cover; вище */

/* related under single post — 3 в ряд (уніфікація) */
.single .msc-products-grid,
.single-post .msc-products-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

/* адаптив */
@media (max-width: 768px) {
  .single .msc-products-grid,
  .single-post .msc-products-grid {
    grid-template-columns: 1fr !important;
  }
}

.vcw-category-menu,
.vcw-category-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vcw-category-menu li {
    position: relative;
}

.vcw-category-menu > ul > li {
    border-bottom: 1px solid #ddd;
}

.vcw-category-menu li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background: #f9f9f9;
    transition: background 0.2s;
}

.vcw-category-menu li a:hover {
    background: #ffd580;
}

.vcw-category-menu li ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #fff;
    border: 1

/* === WooCommerce: сайдбар праворуч === */
.woocommerce .content-wrapper,
.woocommerce-page .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px; /* контент + сайдбар */
  gap: 30px;
  align-items: start;
}

.woocommerce .main-content,
.woocommerce-page .main-content {
  width: 100%;
}

/* Адаптивність */
@media (max-width: 992px) {
  .woocommerce .content-wrapper,
  .woocommerce-page .content-wrapper {
    grid-template-columns: 1fr;
  }
  .woocommerce .sidebar,
  .woocommerce-page .sidebar {
    order: 2; /* щоб сайдбар ішов під контентом */
  }
}

/* WooCommerce: тестова сітка контент + сайдбар */
.woocommerce #primary,
.woocommerce-page #primary {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/*.woocommerce #secondary,
.woocommerce-page #secondary {
  width: 100%;
}

@media (max-width: 992px) {
  .woocommerce #primary,
  .woocommerce-page #primary {
    grid-template-columns: 1fr;
  }
  .woocommerce #secondary,
  .woocommerce-page #secondary {
    order: 2;
  }
}
*/

/* Вирівняти сайдбар WooCommerce */
.woocommerce .container .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.woocommerce .container .row > .col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.woocommerce .container .row > .col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

@media (max-width: 991px) {
  .woocommerce .container .row {
    flex-wrap: wrap;
  }
  .woocommerce .container .row > .col-md-9,
  .woocommerce .container .row > .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: nowrap;
}

.col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding-right: 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 15px;
  
  
}

/*=================================== Новий новий код */

/* Сітка товарів */
/* Flexbox сітка для товарів */
.msc-product-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin: 0 -10px; /* компенсуємо padding карток */
}

.msc-product-card {
  flex: 1 1 calc(25% - 20px); /* 4 колонки на десктопі */
  box-sizing: border-box;
  margin: 10px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msc-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Адаптивність */
@media (max-width: 1200px) {
  .msc-product-card {
    flex: 1 1 calc(33.333% - 20px); /* 3 колонки */
  }
}

@media (max-width: 900px) {
  .msc-product-card {
    flex: 1 1 calc(50% - 20px); /* 2 колонки */
  }
}

@media (max-width: 600px) {
  .msc-product-card {
    flex: 1 1 100%; /* 1 колонка на мобільних */
  }
}

/* =============================== код після обіду */

/* === КАТАЛОГ Woo === */
.msc-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Картка товару */
.msc-product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msc-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Вирівнюємо елементи всередині картки */
.msc-product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.msc-product-card h4 {
  font-size: 1rem;
  margin: 10px 0;
  text-align: center;
}

.msc-price {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-buttons-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

.read-more-button,
.ewt-request-button {
  background-color: #ff6600;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.read-more-button:hover,
.ewt-request-button:hover {
  background-color: #e65500;
}

/* мобільна адаптація */
@media (max-width: 768px) {
  .msc-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
}

.msc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.msc-product-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  transition: box-shadow 0.2s ease-in-out;
}

.msc-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alibaba-shop-sidebar #secondary,
.alibaba-shop-sidebar .secondary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  display: block !important;
}

#secondary.widget-area,
.shop-sidebar.widget-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.footer-widgets .menu-item {
	list-style-type: lower-alpha;
	list-style-position: outside;
	display: block;
}
