@charset "UTF-8";

/* ===== SPINNER ===== */
@keyframes woobt-spinner {
  to { transform: rotate(360deg); }
}
@-webkit-keyframes woobt-spinner {
  to { -webkit-transform: rotate(360deg); }
}

.woobt-wrap.woobt-loading { position: relative; }
.woobt-wrap.woobt-loading:before {
  content: ""; display: block; width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.75);
  position: absolute; top: 0; left: 0; z-index: 9;
}
.woobt-wrap.woobt-loading:after {
  content: "";
  position: absolute; top: 50%; left: 50%; z-index: 10;
  width: 30px; height: 30px; margin-top: -15px; margin-left: -15px;
  border-width: 3px; border-style: solid; border-radius: 50%;
  border-top-color: #4caf50;
  border-left-color: rgba(0,0,0,0.1);
  border-bottom-color: rgba(0,0,0,0.1);
  border-right-color: rgba(0,0,0,0.1);
  animation: woobt-spinner 0.8s linear infinite;
  -webkit-animation: woobt-spinner 0.8s linear infinite;
}

/* ===== WRAP ===== */
.woobt-wrap { display: block; clear: both; width: 100%; box-sizing: border-box; }
.woobt-wrap *, .woobt-wrap *:before, .woobt-wrap *:after { box-sizing: border-box; }
.woobt-wrap .woobt-text { margin: 0 0 8px 0; }
.woobt-wrap .woobt-products { margin: 0; }

/* ===== ITEM TEXT (mesaj intre produse) ===== */
.woobt-item-text {
  padding: 6px 0 2px 0; margin: 0 0 6px 0;
  font-size: 12px; color: #777; font-style: italic;
}
.woobt-item-text-type-h1 > h1, .woobt-item-text-type-h2 > h2,
.woobt-item-text-type-h3 > h3, .woobt-item-text-type-h4 > h4,
.woobt-item-text-type-h5 > h5, .woobt-item-text-type-h6 > h6,
.woobt-item-text-type-p > p { margin: 0 !important; }

/* ===== PRODUCTS LIST ===== */
.woobt-products { border: none; list-style: none; padding: 0; }

/* ===== PRODUS CARD ===== */
.woobt-products .woobt-product {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 0 8px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  min-height: 64px;
}
.woobt-products .woobt-product:last-child { margin-bottom: 0; }
.woobt-products .woobt-product:hover {
  border-color: #b0bfb0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Produsul PRINCIPAL — verde */
.woobt-products .woobt-product-this {
  border-color: #43a047 !important;
  background: #f6fbf6 !important;
  box-shadow: 0 2px 8px rgba(67,160,71,0.12) !important;
}

.woobt-products .woobt-product.woobt-hide-this { display: none !important; }
/* Resetam orice padding/bg pe divuri copil */
.woobt-products .woobt-product > div { padding: 0; background: transparent; }

/* ===== CHECKBOX (col 1) ===== */
.woobt-choose {
  flex: 0 0 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woobt-choose label {
  position: relative; top: auto;
  width: auto; height: auto; overflow: visible;
  cursor: pointer; margin: 0; padding: 0;
}
.woobt-checkbox {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  appearance: none; -webkit-appearance: none;
  cursor: pointer; background: #fff;
  display: block;
  transition: background 0.15s, border-color 0.15s;
  position: relative; outline: none; margin: 0;
  flex-shrink: 0;
}
.woobt-checkbox:checked {
  background: #43a047;
  border-color: #43a047;
}
.woobt-checkbox:checked::after {
  content: "";
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
  position: absolute;
  top: 3px; left: 7px;
}
/* Produsul principal arata cercul verde plin cu bifa */
.woobt-product-this .woobt-choose .woobt-checkbox {
  background: #43a047 !important;
  border-color: #43a047 !important;
  pointer-events: none;
}
.woobt-product-this .woobt-choose .woobt-checkbox::after {
  content: "";
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
  position: absolute;
  top: 3px; left: 7px;
}
.woobt-checkbox:disabled { cursor: not-allowed; opacity: 0.45; }
.woobt-choose .checkmark { display: none; }

/* ===== THUMBNAIL (col 2) ===== */
.woobt-products .woobt-product .woobt-thumb {
  flex: 0 0 64px;
  width: 64px;
}
.woobt-products .woobt-product .woobt-thumb img {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid #efefef;
  background: #fafafa;
}

/* ===== TITLU + VARIANTE (col 3, flex-grow) ===== */
.woobt-products .woobt-product .woobt-title {
  flex: 1 1 auto;
  min-width: 0; /* permite text-overflow */
  padding: 0;
}
.woobt-products .woobt-product .woobt-title > a,
.woobt-products .woobt-product .woobt-title .woobt-title-inner {
  display: block;
  text-decoration: none;
  box-shadow: none;
  font-weight: 600;
  color: #222;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: normal;
}
.woobt-products .woobt-product .woobt-title > a:hover { color: #43a047; }

/* Variations form — inline sub titlu */
.woobt-products .woobt-product .variations_form { margin: 4px 0 0 0; padding: 0; }
.woobt-products .woobt-product .variations_form table.variations { display: block; margin: 0; padding: 0; border: none; }
.woobt-products .woobt-product .variations_form .variations { display: block; width: 100%; padding: 0; margin: 0; }
.woobt-products .woobt-product .variations_form .variations tbody,
.woobt-products .woobt-product .variations_form .variations tr { display: block; }
.woobt-products .woobt-product .variations_form .variations .variation { display: block; margin: 0 0 4px 0; }
.woobt-products .woobt-product .variations_form .variations .variation > div { display: block; }
.woobt-products .woobt-product .variations_form .variations .variation .label { display: none; }
.woobt-products .woobt-product .variations_form .variations .variation .value { display: block; }

/* Select dropdown stilizat */
.woobt-products .woobt-product .variations_form .variations .variation .value select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 5px 28px 5px 10px;
  border: 1.5px solid #d5dde5;
  border-radius: 6px;
  background-color: #fff;
  font-size: 13px;
  color: #333;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  cursor: pointer;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s;
}
.woobt-products .woobt-product .variations_form .variations .variation .value select:focus {
  border-color: #43a047;
  box-shadow: 0 0 0 2px rgba(67,160,71,0.13);
}
/* Select sincronizat automat de la produsul principal */
.woobt-products .woobt-product .variations_form .variations .variation .value select.woobt-attr-synced {
  background-color: #f3f7f3;
  color: #555;
  border-color: #c5d9c5;
  cursor: default;
  pointer-events: none;
}
.woobt-products .woobt-product .variations_form .variations a.reset_variations { display: none !important; }
.woobt-products .woobt-product .woobt-title .woovr-variations-select .woovr-variation-image,
.woobt-products .woobt-product .woobt-title .woovr-variations-default .woovr-variation-image,
.woobt-products .woobt-product .woobt-title .woovr-variations-select .woovr-variation-price { display: none !important; }

/* Stock */
.woobt-products .woobt-product .woobt-title .stock { font-size: 11px; margin: 2px 0 0 0 !important; }
.woobt-products .woobt-product .woobt-title .stock.in-stock { color: #43a047; }
.woobt-products .woobt-product .woobt-title .stock.available-on-backorder { color: #f57c00; }
.woobt-products .woobt-product .woobt-title .stock.out-of-stock { color: #e53935; }

/* ===== PRET (col 4) ===== */
.woobt-products .woobt-product .woobt-price {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: right;
  white-space: nowrap;
  padding: 0 4px;
}
.woobt-products .woobt-product .woobt-price del {
  display: block;
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
  line-height: 1.2;
  opacity: 1;
}
.woobt-products .woobt-product .woobt-price del span { text-decoration: line-through; }
.woobt-products .woobt-product .woobt-price ins {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #2e7d32;
  text-decoration: none;
  line-height: 1.3;
}
.woobt-products .woobt-product .woobt-price .amount { display: inline; }
.woobt-products .woobt-product-this .woobt-price .woobt-price-new { display: none; }

/* ===== CANTITATE (col 5) ===== */
.woobt-products .woobt-product .woobt-quantity {
  flex: 0 0 auto;
  padding: 0 0 0 4px;
}
.woobt-products .woobt-product .woobt-quantity .quantity { float: none !important; margin: 0 !important; }
.woobt-products .woobt-product.woobt-hide .woobt-quantity * { opacity: 0.4; pointer-events: none; }

.woobt-quantity-input {
  display: flex;
  align-items: center;
  border: 1.5px solid #d5dde5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.woobt-quantity-input-plus,
.woobt-quantity-input-minus {
  width: 30px; flex: 0 0 30px; height: 34px;
  line-height: 32px; text-align: center; cursor: pointer;
  background-color: #f5f5f5; border: none;
  font-size: 18px; font-weight: 300; color: #555;
  user-select: none; -webkit-user-select: none;
  transition: background 0.12s;
}
.woobt-quantity-input-plus:hover, .woobt-quantity-input-minus:hover { background-color: #e6e6e6; }

.woobt-quantity-plus-minus .plus, .woobt-quantity-plus-minus .minus,
.woobt-quantity-plus-minus .minus-btn, .woobt-quantity-plus-minus .plus-btn { display: none !important; }

.woobt-product .woobt-quantity-input .qty,
.woobt-product .woobt-quantity-input .woobt-qty {
  width: 38px; min-width: 34px; height: 34px; line-height: 32px;
  margin: 0; padding: 0 2px; box-shadow: none; border: none;
  border-left: 1.5px solid #d5dde5; border-right: 1.5px solid #d5dde5;
  border-radius: 0; background-color: #fff;
  -moz-appearance: textfield; text-align: center; font-size: 13px; font-weight: 600;
}
.woobt-product .woobt-quantity-input .qty:focus,
.woobt-product .woobt-quantity-input .woobt-qty:focus { outline: none; }
.woobt-quantity-input input::-webkit-outer-spin-button,
.woobt-quantity-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woobt-qty { width: 38px; text-align: center; }

/* ===== ALERTS / TOTAL ===== */
.woobt-additional, .woobt-total, .woobt-alert { display: none; }
.woobt-alert {
  padding: 6px 10px 6px 14px; border-left: 4px solid #43a047;
  background-color: #f6fbf6; font-size: 12px; border-radius: 0 6px 6px 0; margin: 6px 0;
}

/* ===== ACTIONS ===== */
.woobt-actions form.cart { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ===== DISABLED ===== */
.woobt-disabled { opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none !important; }
.woobt-checkbox:disabled { cursor: not-allowed; }

/* ===== SEPARATE LAYOUT ===== */
.woobt-wrap.woobt-layout-separate .woobt-product > .woobt-thumb,
.woobt-wrap.woobt-layout-separate .woobt-product > .woobt-price { display: none; }
.woobt-wrap.woobt-layout-separate .woobt-product .woobt-title .woobt-price { margin-left: 8px; }

/* ===== IMAGES ROW ===== */
.woobt-images { display: flex; align-items: center; margin-bottom: 12px; overflow-x: auto; gap: 12px; }
.woobt-images .woobt-image { width: 72px; flex: 0 0 72px; display: block; position: relative; }
.woobt-images .woobt-image:not(.woobt-image-this):before {
  content: "+"; position: absolute; top: 50%; left: -8px;
  transform: translate3d(-50%, -50%, 0);
  font-size: 14px; color: #43a047; font-weight: 700;
}
.woobt-images .woobt-image.woobt-image-hide { opacity: 0.3; }
.woobt-images .woobt-image.woobt-image-hide img { filter: grayscale(100%); }
.woobt-images .woobt-image img { width: 100%; height: auto; border-radius: 6px; }

/* ===== COUNT ===== */
.woobt-count { margin-left: 4px; }
.woobt-count:before { content: "("; }
.woobt-count:after { content: ")"; }

/* ===================================================================
   RESPONSIVE — mobile first
   =================================================================== */

/* Tabletă mică / telefon mare (< 600px) */
@media only screen and (max-width: 599px) {
  .woobt-products .woobt-product {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 10px;
  }

  /* Rand 1: checkbox + thumb + titlu */
  .woobt-products .woobt-product .woobt-choose { order: 1; flex: 0 0 28px; }
  .woobt-products .woobt-product .woobt-thumb  { order: 2; flex: 0 0 56px; width: 56px; }
  .woobt-products .woobt-product .woobt-thumb img { width: 56px; height: 56px; }
  .woobt-products .woobt-product .woobt-title  { order: 3; flex: 1 1 calc(100% - 28px - 56px - 30px); }

  /* Rand 2: pret + qty (aliniate la dreapta) */
  .woobt-products .woobt-product .woobt-price    { order: 4; flex: 1 1 auto; text-align: left; padding: 0 0 0 36px; /* indentat sub checkbox */ }
  .woobt-products .woobt-product .woobt-quantity { order: 5; flex: 0 0 auto; margin-left: auto; }

  /* Select mai lat pe mobil */
  .woobt-products .woobt-product .variations_form .variations .variation .value select {
    max-width: 100%;
  }
}

/* Telefon mic (< 400px) */
@media only screen and (max-width: 399px) {
  .woobt-products .woobt-product .woobt-price { padding-left: 0; }
  .woobt-products .woobt-product .woobt-thumb { flex: 0 0 48px; width: 48px; }
  .woobt-products .woobt-product .woobt-thumb img { width: 48px; height: 48px; }
}

/* ===================================================================
   GRID LAYOUT
   =================================================================== */
.woobt-products[class*=woobt-products-layout-grid] {
  display: flex; flex-wrap: wrap;
  margin-left: -7px; margin-right: -7px; border: none;
}
.woobt-products[class*=woobt-products-layout-grid] .woobt-item-text { width: 100%; margin: 7px; padding: 6px 0; }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product {
  width: calc(50% - 14px); margin: 7px; padding: 12px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 13px; text-align: center;
  flex-direction: column; align-items: center;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.woobt-products[class*=woobt-products-layout-grid] .woobt-product:hover { border-color: #43a047; }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product .woobt-title-inner { font-weight: 700; }
.woobt-products.woobt-products-layout-grid-1 .woobt-product { width: calc(100% - 14px); }
.woobt-products.woobt-products-layout-grid-3 .woobt-product { width: calc(33.333% - 14px); }
.woobt-products.woobt-products-layout-grid-4 .woobt-product { width: calc(25% - 14px); }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product > div {
  width: 100% !important; flex: 0 0 auto !important; text-align: center;
  margin: 0 0 5px 0; padding: 0;
}
.woobt-products[class*=woobt-products-layout-grid] .woobt-product > div:last-child { margin-bottom: 0; }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product .woobt-quantity-input { justify-content: center; }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product select { text-align: center; }
.woobt-products[class*=woobt-products-layout-grid] .woobt-product .variations_form .variations .reset { display: none; }
@media only screen and (max-width: 599px) {
  .woobt-products[class*=woobt-products-layout-grid] .woobt-product { width: calc(50% - 14px); }
}
@media only screen and (max-width: 399px) {
  .woobt-products[class*=woobt-products-layout-grid] .woobt-product { width: calc(100% - 14px); }
}

/* ===================================================================
   CAROUSEL LAYOUT
   =================================================================== */
.woobt-products[class*=woobt-products-layout-carousel] {
  display: flex; flex-wrap: wrap;
  margin-left: -7px; margin-right: -7px; border: none;
}
.woobt-products[class*=woobt-products-layout-carousel] .woobt-item-text { width: 100%; margin: 7px; padding: 6px 0; }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product {
  width: calc(33% - 14px); margin: 7px; padding: 12px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 13px; text-align: center;
  flex-direction: column; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product:hover { border-color: #43a047; }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product .woobt-title-inner { font-weight: 700; }
.woobt-products.woobt-products-layout-carousel-1 .woobt-product { width: calc(100% - 14px); }
.woobt-products.woobt-products-layout-carousel-3 .woobt-product { width: calc(33.333% - 14px); }
.woobt-products.woobt-products-layout-carousel-4 .woobt-product { width: calc(25% - 14px); }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product > div {
  width: 100% !important; flex: 0 0 auto !important; text-align: center;
  margin: 0 0 5px 0; padding: 0;
}
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product > div:last-child { margin-bottom: 0; }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product .woobt-quantity-input { justify-content: center; }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product select { text-align: center; }
.woobt-products[class*=woobt-products-layout-carousel] .woobt-product .variations_form .variations .reset { display: none; }
.woobt-products[class*=woobt-products-layout-carousel] { display: none !important; }
.woobt-products[class*=woobt-products-layout-carousel].woobt-carousel,
.woobt-products[class*=woobt-products-layout-carousel].woobt-no-carousel { display: flex !important; }

/* Slick dots */
.woobt-carousel .slick-dots { display: block; width: 100%; list-style: none; text-align: center; margin: 0; padding: 0; }
.woobt-carousel .slick-dots li { display: inline-block; margin: 0 4px; font-size: 0; }
.woobt-carousel .slick-dots li button {
  width: 7px; height: 7px; border-radius: 4px; padding: 0; font-size: 0; line-height: 0;
  border: none; background-color: rgba(0,0,0,0.2); outline: none; overflow: hidden;
}
.woobt-carousel .slick-dots li.slick-active button { background-color: #43a047; }
.woobt-carousel .slick-arrow {
  width: 38px; height: 38px; line-height: 36px; text-align: center;
  padding: 0; margin: 0; position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 0; color: #333; background-color: #fff; border-radius: 50%;
  border: 1.5px solid #ddd; z-index: 8; opacity: 0; visibility: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10); transition: opacity 0.18s;
}
.woobt-carousel:hover .slick-arrow { opacity: 1; visibility: visible; }
.woobt-carousel .slick-arrow:hover { color: #fff; background-color: #43a047; border-color: #43a047; }
.woobt-carousel .slick-arrow:before { font-size: 22px; line-height: 38px; font-style: normal; }
.woobt-carousel .slick-arrow:focus { outline: none; }
.woobt-carousel .slick-arrow.slick-prev { left: 4px; }
.woobt-carousel .slick-arrow.slick-prev:before { content: "‹"; }
.woobt-carousel .slick-arrow.slick-next { right: 4px; }
.woobt-carousel .slick-arrow.slick-next:before { content: "›"; }

/* ===================================================================
   COMPACT LAYOUT
   =================================================================== */
.woobt-wrap.woobt-layout-compact .woobt-inner {
  display: flex; align-items: center; flex-wrap: nowrap; margin: 0 0 12px 0;
}
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-text { margin: 0 0 8px 0; }
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-alert { display: none !important; }
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products {
  display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto;
  margin: 0 10px 0 -10px; border: none;
}
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product {
  min-width: 90px; max-width: 180px; margin: 8px; padding: 10px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 13px; text-align: center; position: relative;
  flex-direction: column; background: #fff;
}
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product:before {
  content: "+"; position: absolute; top: 50%; right: -18px;
  transform: translate3d(-50%,-50%,0); color: #43a047; font-weight: 700; font-size: 15px;
}
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product:last-child:before { content: ""; display: none; }
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product > div {
  width: 100%; flex: 0 0 auto; text-align: center; margin: 0 0 4px 0; padding: 0;
}
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product .woobt-choose { position: absolute; width: auto; top: 8px; right: 8px; }
.woobt-wrap.woobt-layout-compact .woobt-inner .woobt-actions .single_add_to_cart_button { white-space: nowrap; margin: 0 !important; }
body.rtl .woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products { margin: 0 -10px 0 10px; }
body.rtl .woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product:first-child:before { display: none; }
body.rtl .woobt-wrap.woobt-layout-compact .woobt-inner .woobt-products .woobt-product:last-child:before { content: "+"; display: block; }
