

.tabs [role=tab]{
    border-radius: 1px !important;
    padding: 14px !important;
}

.mn-contact__wrap{
    background-color: #f8f8f8;
    margin-block: 24px;
    padding: 12px;
}

.search-page {
  padding: 60px 0 100px;
}

.search-page__header {
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 24px;
}

.search-page__header .page-title {
  font-size: 32px;
  color: #2c2a3f;
  margin: 0 0 8px 0;
}

.search-page__header .page-title span {
  color: var(--primary, #f05a30);
}

.search-page__header__count {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
}

.search-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1200px) {
  .search-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .search-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .search-page__grid {
    grid-template-columns: 1fr;
  }
}

.search-page__generic-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.search-page__generic-item .badge {
  background: #e5e7eb;
  color: #4b5563;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
}

.search-page__generic-item .title {
  font-size: 18px;
  margin: 0 0 12px 0;
}

.search-page__generic-item .title a {
  color: #2c2a3f;
  text-decoration: none;
}

.search-page__generic-item .title a:hover {
  color: var(--primary, #f05a30);
}

.search-page__generic-item .excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.search-page__generic-item .excerpt p {
  margin: 0;
}

.search-page__pagination {
  margin-top: 60px;
}

.search-page__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.search-page__pagination .nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.search-page__pagination .nav-links .page-numbers:hover {
  background: #f3f4f6;
}

.search-page__pagination .nav-links .page-numbers.current {
  background: var(--primary, #f05a30);
  color: #fff;
  border-color: var(--primary, #f05a30);
}

.search-page__empty {
  text-align: center;
  padding: 80px 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}

.search-page__empty .empty-icon {
  font-size: 48px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.search-page__empty h2 {
  font-size: 24px;
  color: #2c2a3f;
  margin: 0 0 12px 0;
}

.search-page__empty p {
  color: #6b7280;
  margin: 0 0 32px 0;
}

.search-page__empty .search-page__form-wrap {
  max-width: 500px;
  margin: 0 auto 32px auto;
}

.search-page__empty .search-page__form-wrap form {
  display: flex;
  gap: 8px;
}

.search-page__empty .search-page__form-wrap form input[type="text"],
.search-page__empty .search-page__form-wrap form input[type="search"] {
  flex: 1;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 16px;
}

.search-page__empty .search-page__form-wrap form button,
.search-page__empty .search-page__form-wrap form input[type="submit"] {
  height: 48px;
  padding: 0 24px;
  background: var(--primary, #f05a30);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.woo-single__meta .woo-single__stock.is-instock .dot{
    margin-bottom: 4px;
}

.quantity.custom-qty-ready {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  gap: 4px;
}

.quantity.custom-qty-ready button {
  width: 44px;
  background-color: var(--primary, #f05a30);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.quantity.custom-qty-ready button:hover {
  opacity: 0.9;
}

.quantity.custom-qty-ready .qty {
  width: 60px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 16px;
  color: #2c2a3f;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  box-shadow: none;
  outline: none;
}

.quantity.custom-qty-ready .qty:focus {
  border-color: var(--primary, #f05a30);
}

.quantity.custom-qty-ready .qty::-webkit-outer-spin-button,
.quantity.custom-qty-ready .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.comment-respond .submit{
    height: 40px;
}

/* ==========================================================================
   Сторінка Кошика (WooCommerce Cart Block)
   ========================================================================== */

/* --- ЗАГАЛЬНА СІТКА --- */
.wc-block-cart {
  margin-top: 40px;
}

/* --- ТАБЛИЦЯ ТОВАРІВ --- */
.wc-block-cart-items {
  border-collapse: collapse;
}

/* Заголовки таблиці (ТОВАР, ПОДРОБИЦІ, ЗАГАЛОМ) */
.wc-block-cart-items__header th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 16px;
}

/* Рядок товару */
.wc-block-cart-items__row td {
  padding: 32px 0;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

/* --- ЗОБРАЖЕННЯ ТОВАРУ --- */
.wc-block-cart-item__image {
  width: 100px;
  padding-right: 24px !important;
}

.wc-block-cart-item__image img {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  max-width: 100px;
  height: auto;
}

/* --- ІНФО ПРО ТОВАР --- */
.wc-block-cart-item__wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-block-components-product-name {
  color: #2c2a3f !important;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.wc-block-components-product-name:hover {
  color: var(--primary, #f05a30) !important;
}

/* Ціна */
.wc-block-cart-item__prices {
  font-size: 15px;
}

.wc-block-cart-item__prices del {
  color: #9ca3af;
  margin-right: 8px;
}

.wc-block-cart-item__prices ins {
  text-decoration: none;
  color: #2c2a3f;
  font-weight: 600;
}

/* Метадані (колір, опис) */
.wc-block-components-product-metadata {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

/* --- КНОПКИ КІЛЬКОСТІ (Як на сторінці товару) --- */
.wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  gap: 4px;
  background: transparent;
  border-color: transparent !important;
}

/* Woo Blocks ставить інпут ПЕРЕД кнопками в HTML, лікуємо це через flex-order */
.wc-block-components-quantity-selector__button--minus { order: 1; }
.wc-block-components-quantity-selector__input { order: 2; }
.wc-block-components-quantity-selector__button--plus { order: 3; }

.wc-block-components-quantity-selector__button {
  width: 30px !important;
  height: 30px !important;
  background-color: var(--primary, #f05a30) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 20px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wc-block-components-quantity-selector__button:hover {
  opacity: 0.9;
}

.wc-block-components-quantity-selector__input {
  width: 50px !important;
  height: 30px !important;
  text-align: center;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  color: #2c2a3f !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
}

.wc-block-components-quantity-selector__input:focus {
  border-color: var(--primary, #f05a30) !important;
  outline: none !important;
}

/* Кнопка видалення (Кошик сміття) */
.wc-block-cart-item__remove-link {
  color: #9ca3af !important;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.wc-block-cart-item__remove-link:hover {
  color: #ef4444 !important; /* Червоний при наведенні */
}

/* --- СУМА ТОВАРУ ТА ЗНИЖКА --- */
.wc-block-cart-item__total {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  color: #2c2a3f;
}

.wc-block-components-sale-badge {
  display: inline-block;
  background: #ecfdf5; /* Світло-зелений фон */
  color: #059669; /* Темно-зелений текст */
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ==========================================================================
   ПРАВИЙ БЛОК: ПІДСУМКИ КОШИКА
   ========================================================================== */
.wc-block-cart__sidebar {
  background: #f9fafb; /* Легкий сірий фон */
  padding: 32px !important;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.wc-block-cart__totals-title {
  font-size: 20px !important;
  color: #2c2a3f;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* Купони */
.wc-block-components-panel__button {
  color: #4b5563 !important;
  font-size: 15px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Рядки сум */
.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  color: #4b5563;
}

/* Загальна сума (Разом) */
.wc-block-components-totals-footer-item {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 24px;
  font-size: 20px !important;
  font-weight: 700;
  color: #2c2a3f;
}

.wc-block-components-totals-footer-item-tax-value {
  color: var(--primary, #f05a30) !important;
}


.wc-block-cart__submit-button {
  background-color: var(--primary, #f05a30) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 16px 24px !important;
  border-radius: 4px !important;
  width: 100% !important;
  text-align: center;
  text-decoration: none !important;
  border: none !important;
  transition: opacity 0.2s !important;
  margin-top: 24px !important;
}

.wc-block-cart__submit-button:hover {
  opacity: 0.9 !important;
  background-color: var(--primary, #f05a30) !important;
}

.wc-block-cart-items__header {
    display: none; 
}
@media (max-width: 768px) {

  .wc-block-cart-item__image {
    padding-right: 16px !important;
  }
  
  .wc-block-cart__sidebar {
    padding: 24px !important;
  }
}