/* === Dr.Soil Price List Widget – FINAL === */

.drsoil-plw-wrap {
  background: var(--e-global-color-77318ff);
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family);
  padding: 16px;
  border-radius: 14px;
}

.drsoil-plw-cat-title {
  font-size: 22px;
  margin: 18px 0 10px;
  border-left: 6px solid var(--e-global-color-accent);
  padding-left: 10px;
  font-weight: 600;
}

.drsoil-plw-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.drsoil-plw-filters input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 8px;
  font-family: var(--e-global-typography-text-font-family);
}

.drsoil-plw-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--e-global-color-dffc4d5);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 12px;
}

.drsoil-plw-table th,
.drsoil-plw-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--e-global-color-secondary);
}

.col-image { width: 80px; }
.col-sku   { width: 140px; }
.col-name  { width: auto; }
.col-price { width: 120px; font-weight: 600; }
.col-stock { width: 140px; font-weight: 500; white-space: nowrap; }
.col-qty   { width: 120px; }
.col-add   { width: 160px; }

.drsoil-plw-qty {
  width: 80px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--e-global-color-secondary);
}

.btn-teutonic {
  font-family: var(--e-global-typography-primary-font-family) !important;
  background: var(--e-global-color-accent);
  color: var(--e-global-color-77318ff);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.btn-teutonic:hover {
  opacity: .9;
}

.drsoil-plw-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

/* =========================================================
   Dr.Soil – Price List Widget
   Aliniat cu tema Hello Elementor
   ========================================================= */

/* Wrapper */
.drsoil-plw-wrap {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
}

/* Titlu categorie */
.drsoil-plw-cat-title {
  margin: 25px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #CC3366; /* accent deja folosit în temă */
  font-size: 1.4rem;
  font-weight: 600;
}

/* Filtre */
.drsoil-plw-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.drsoil-plw-filters input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #666;
  border-radius: 3px;
}

/* Tabel – lăsăm tema să conducă */
.drsoil-plw-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

/* Header */
.drsoil-plw-table thead th {
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  white-space: nowrap;
}

/* Celule */
.drsoil-plw-table td {
  vertical-align: middle;
  font-size: 0.95rem;
}

/* Coloane – DOAR layout, nu stil global */
.col-image { width: 90px; }
.col-sku   { width: 160px; font-weight: 600; }
.col-name  { width: auto; }
.col-price { width: 160px; text-align: center; }
.col-stock { width: 160px; text-align: center; }
.col-qty   { width: 140px; text-align: center; }
.col-add   { width: 160px; text-align: center; }

/* Nume produs */
.drsoil-plw-table .col-name a {
  color: inherit;
  font-weight: 500;
}
.drsoil-plw-table .col-name a:hover {
  text-decoration: underline;
}

/* Preț – folosim exact stilul WooCommerce deja definit */
.drsoil-plw-table .woocommerce-Price-amount.amount {
  color: #349c44 !important;
  font-weight: 600;
}

/* Stoc */
.col-stock {
  font-weight: 500;
}
.col-stock.instock {
  color: #349c44;
}
.col-stock.supplier {
  color: #555;
  font-style: italic;
}

/* Cantitate */
.drsoil-plw-qty {
  width: 80px;
  text-align: center;
}

/* =========================================================
   Buton "Adaugă în coș" – ALINIAT CU TEMA (verde, rotunjit)
   ========================================================= */

.drsoil-plw-add,
.drsoil-plw-add-all {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;

  background-color: #76B82A; /* verdele temei */
  color: #ffffff;

  border: none;
  border-radius: 999px; /* pill / rotunjire completă */

  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
}

/* Hover – verde mai închis */
.drsoil-plw-add:hover,
.drsoil-plw-add-all:hover {
  background-color: #5FA31F;
  color: #ffffff;
}

/* Click */
.drsoil-plw-add:active,
.drsoil-plw-add-all:active {
  transform: translateY(1px);
}

/* Acțiuni */
.drsoil-plw-actions {
  text-align: right;
  margin-top: 10px;
}

/* === Column filter dropdown === */

.filterable {
  position: relative;
  cursor: pointer;
}

.plw-filter-toggle {
  font-size: 0.8em;
  margin-left: 6px;
  opacity: 0.6;
}

.plw-filter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  min-width: 180px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plw-filter-dropdown label {
  display: block;
  font-size: 0.9rem;
  cursor: pointer;
}

.filterable.open .plw-filter-dropdown {
  display: block;
}

.plw-filter-toggle {
  font-size: 1.5em; /* ~ +50% */
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
}

.plw-filter-toggle:hover {
  opacity: 0.7;
}

.plw-filter-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

.plw-filter-dropdown input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.plw-filter-dropdown {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}

.plw-filter-actions {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.plw-filter-actions button {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
}

.plw-filter-actions button:hover {
  background: #eee;
}

/* ===============================
   Price List – filter buttons
   Aliniere cu tema (verde)
   =============================== */

.drsoil-plw-wrap .plw-filter-actions button {
  background-color: #7fbf3f;        /* verde temă */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}

.drsoil-plw-wrap .plw-filter-actions button:hover {
  background-color: #6aa832;        /* verde mai închis */
  opacity: 0.95;
}

.drsoil-plw-wrap .plw-filter-actions button:active {
  transform: translateY(1px);
}

