/*
Theme Name: BoxShop Child
Theme URI: http://demo.theme-sky.com/boxshop/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: boxshop
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: boxshop-child
*/
/* Theme Name: BoxShop Child
 * Theme URI: http://demo.theme-sky.com/boxshop/
 * Author: Theme Sky Team
 * Author URI: http://theme-sky.com/
 * Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
 * Template: boxshop
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
 * Text Domain: boxshop-child
 * */
body.wpt_table_body .wpt-wrap table tbody tr.wpt_row>td a.wpt_product_title_in_td {
	  min-width: 50px !important;
	  display: block !important;
}

/* ============================================================
 *    NAPOTEC - Categorii: poza + denumire vizibile permanent
 *    ============================================================ */

.vc-hoverbox-wrapper .vc-hoverbox {
	  transform-style: flat !important;
	  transition: none !important;
}

.vc-hoverbox-wrapper .vc-hoverbox-front {
	  transform: none !important;
	  backface-visibility: visible !important;
	  background-size: contain !important;
	  background-repeat: no-repeat !important;
	  background-position: center center !important;
	  background-color: #f8f9fb !important;
}

.vc-hoverbox-wrapper {
	  position: relative !important;
	  overflow: hidden !important;
	  border-radius: 8px !important;
	  border: 1.5px solid #eaedf0 !important;
	  transition: border-color .2s, box-shadow .2s !important;
}
.vc-hoverbox-wrapper:hover {
	  border-color: #e8912a !important;
	  box-shadow: 0 4px 16px rgba(232,145,42,0.15) !important;
}

.vc-hoverbox-wrapper .vc-hoverbox-back {
	  position: absolute !important;
	  bottom: 0 !important;
	  left: 0 !important;
	  right: 0 !important;
	  top: auto !important;
	  transform: none !important;
	  backface-visibility: visible !important;
	  background: #fff !important;
	  border-top: 2px solid #eaedf0 !important;
	  min-height: auto !important;
	  height: auto !important;
	  display: flex !important;
	  align-items: center !important;
	  justify-content: center !important;
	  transition: background .2s, border-color .2s !important;
}
.vc-hoverbox-wrapper:hover .vc-hoverbox-back {
	  background: #e8912a !important;
	  border-top-color: #e8912a !important;
}

.vc-hoverbox-wrapper .vc-hoverbox-back-inner {
	  padding: 10px 12px !important;
	  text-align: center !important;
}
.vc-hoverbox-wrapper .vc-hoverbox-back-inner h2 {
	  font-size: 13px !important;
	  font-weight: 700 !important;
	  color: #1d4e7a !important;
	  margin: 0 !important;
	  line-height: 1.3 !important;
	  text-transform: none !important;
	  letter-spacing: 0 !important;
	  transition: color .2s !important;
}
.vc-hoverbox-wrapper:hover .vc-hoverbox-back-inner h2 {
	  color: #fff !important;
}

.vc-hoverbox-wrapper .vc-hoverbox-back-inner .vc_btn3-container {
	  display: none !important;
}

/* ============================================================
 *    NAPOTEC - Product Table Mobile
 *    ============================================================ */
@media (max-width: 600px) {
	
	  #wpt_table .item_inside_cell {
		      white-space: normal !important;
		      overflow: hidden !important;
		      word-break: break-word !important;
	}
	
	  #wpt_table td,
	  #wpt_table th {
		      overflow: hidden !important;
		      padding: 5px 3px !important;
		      vertical-align: middle !important;
	}
	
	  #wpt_table th {
		      font-size: 11px !important;
	}
	
	  #wpt_table td.wpt_thumbnails,
	  #wpt_table .wpt_thumbnails .item_inside_cell {
		      text-align: center !important;
	}
	  #wpt_table .wpt_thumbnails .wpt_thumbnails_popup {
		      display: inline-block !important;
		      margin: 0 auto !important;
		      float: none !important;
	}
	  #wpt_table .wpt_thumbnails img {
		      display: block;
		      margin: 0 auto !important;
		      max-width: 100%;
		      height: auto;
	}
	
	  #wpt_table .wpt_product_title_in_td {
		      white-space: normal !important;
		      display: inline-block;
		      max-width: 100%;
		      word-break: break-word;
		      font-size: 13px !important;
		      line-height: 1.2;
	}
	
	  #wpt_table .wpt_price .item_inside_cell,
	  #wpt_table .wpt_price * {
		      white-space: normal !important;
		      font-size: 12px !important;
		      line-height: 1.25 !important;
	}
	
	  #wpt_table .wpt_action .item_inside_cell {
		      text-align: center !important;
	}
	
	  #wpt_table .wpt_action form.cart {
		      display: flex !important;
		      flex-direction: column !important;
		      align-items: center !important;
		      gap: 3px !important;
	}
	
	  /* [-] [qty] [+] pe o linie orizontala */
	  #wpt_table .wpt_action .quantity {
		      display: flex !important;
		      flex-direction: row !important;
		      align-items: center !important;
		      justify-content: center !important;
		      gap: 0 !important;
	}
	
	  #wpt_table .wpt_action .quantity .qty {
		      width: 32px !important;
		      min-width: 32px !important;
		      height: 28px !important;
		      padding: 2px 4px !important;
		      font-size: 13px !important;
		      text-align: center !important;
		      border: 1px solid #ccc !important;
		      border-radius: 0 !important;
		      box-sizing: border-box !important;
	}
	
	  #wpt_table .wpt_action .quantity .minus,
	  #wpt_table .wpt_action .quantity .plus {
		      width: 28px !important;
		      min-width: 28px !important;
		      height: 28px !important;
		      line-height: 26px !important;
		      padding: 0 !important;
		      font-size: 16px !important;
		      font-weight: bold !important;
		      text-align: center !important;
		      cursor: pointer !important;
		      border-radius: 4px !important;
		      box-sizing: border-box !important;
	}
	
	  /* Buton Adauga in cos - compact, aceeasi inaltime ca qty */
	  #wpt_table .wpt_action .single_add_to_cart_button {
		      height: 28px !important;
		      line-height: 28px !important;
		      padding: 0 8px !important;
		      font-size: 11px !important;
		      white-space: nowrap !important;
		      width: auto !important;
		      min-width: 0 !important;
		      display: inline-block !important;
		      box-sizing: border-box !important;
	}
	
	  /* Stoc VERDE */
	  #wpt_table .wpt_instock,
	  #wpt_table .stock.in-stock,
	  .wpt_table_body .in-stock {
		      color: #28a745 !important;
		      font-weight: 600 !important;
		      font-size: 11px !important;
	}
	
	  /* Stoc ROSU - epuizat sau stoc redus */
	  #wpt_table .wpt_outofstock,
	  #wpt_table .stock.out-of-stock,
	  .wpt_table_body .out-of-stock,
	  #wpt_table .stock.available-on-backorder,
	  .wpt_table_body .low-stock {
		      color: #dc3545 !important;
		      font-weight: 600 !important;
		      font-size: 11px !important;
	}
	
}body.wpt_table_body .wpt-wrap table tbody tr.wpt_row>td a.wpt_product_title_in_td {
    min-width: 50px !important;
    display: block !important; /* Dacă vrei să forțezi display: block */
}
/* ============================================================
   NAPOTEC - Categorii: poza + denumire vizibile permanent
   Adaugă în: Aspect → Editor temă → style.css (boxshop-child)
   ============================================================ */

/* 1. Dezactivează perspectiva 3D și animația flip */
.vc-hoverbox-wrapper .vc-hoverbox {
    transform-style: flat !important;
    transition: none !important;
}

/* 2. Fața (poza) - mereu vizibilă, fără rotire */
.vc-hoverbox-wrapper .vc-hoverbox-front {
    transform: none !important;
    backface-visibility: visible !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #f8f9fb !important;
}

/* 3. Spatele - repoziționat ca bandă de titlu fixă în jos */
.vc-hoverbox-wrapper {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 1.5px solid #eaedf0 !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.vc-hoverbox-wrapper:hover {
    border-color: #e8912a !important;
    box-shadow: 0 4px 16px rgba(232,145,42,0.15) !important;
}

.vc-hoverbox-wrapper .vc-hoverbox-back {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    backface-visibility: visible !important;
    background: #fff !important;
    border-top: 2px solid #eaedf0 !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .2s, border-color .2s !important;
}

/* 4. Hover - titlu pe portocaliu Napotec */
.vc-hoverbox-wrapper:hover .vc-hoverbox-back {
    background: #e8912a !important;
    border-top-color: #e8912a !important;
}

/* 5. Textul titlului categoriei */
.vc-hoverbox-wrapper .vc-hoverbox-back-inner {
    padding: 10px 12px !important;
    text-align: center !important;
}
.vc-hoverbox-wrapper .vc-hoverbox-back-inner h2 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1d4e7a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: color .2s !important;
}
.vc-hoverbox-wrapper:hover .vc-hoverbox-back-inner h2 {
    color: #fff !important;
}

/* 6. Ascunde butonul "Vezi categoria" - nu mai e nevoie */
.vc-hoverbox-wrapper .vc-hoverbox-back-inner .vc_btn3-container {
    display: none !important;
}
@media (max-width: 600px) {
  /* Permite wrap în toate celulele tabelului de produse */
  #wpt_table .item_inside_cell {
    white-space: normal !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }
  #wpt_table td,
  #wpt_table th {
    overflow: hidden !important;
    padding: 6px 4px !important;
    vertical-align: middle !important;
  }
  #wpt_table th { font-size: 11px !important; }

  /* Coloana IMAGINI – centrare */
  #wpt_table td.wpt_thumbnails,
  #wpt_table .wpt_thumbnails .item_inside_cell {
    text-align: center !important;
  }
  #wpt_table .wpt_thumbnails .wpt_thumbnails_popup {
    display: inline-block !important;
    margin: 0 auto !important;
    float: none !important;
  }
  #wpt_table .wpt_thumbnails img {
    display: block;
    margin: 0 auto !important;
    max-width: 100%;
    height: auto;
  }

  /* Coloana TITLU */
  #wpt_table .wpt_product_title_in_td {
    white-space: normal !important;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    font-size: 13px !important;
    line-height: 1.2;
  }

  /* Coloana PREȚ */
  #wpt_table .wpt_price .item_inside_cell,
  #wpt_table .wpt_price * {
    white-space: normal !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  /* Coloana ACȚIUNE – butonul „Adaugă în coș" vizibil complet */
  #wpt_table .wpt_action form.cart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  #wpt_table .wpt_action .item_inside_cell { text-align: center !important; }
  #wpt_table .wpt_action .quantity { display: flex; justify-content: center; }
  #wpt_table .wpt_action .quantity .qty {
    width: 28px !important;
    min-width: 28px !important;
    padding: 2px !important;
    font-size: 12px !important;
  }
  #wpt_table .wpt_action .quantity .minus,
  #wpt_table .wpt_action .quantity .plus {
    width: 18px !important;
    min-width: 18px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }
  #wpt_table .wpt_action .single_add_to_cart_button {
    white-space: normal !important;
    word-break: break-word;
    font-size: 11px !important;
    padding: 6px 4px !important;
    line-height: 1.15 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}